[02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:06]recv_with_timeout no data received [03:00:09]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:41]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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]recv_with_timeout no data received [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:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:22]recv_with_timeout no data received [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07: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:05]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:57]OFD Sender: No OFD packet to send [03:14:02]OFD Sender: No OFD packet to send [03:14:07]OFD Sender: No OFD packet to send [03:14:12]OFD Sender: No OFD packet to send [03:14:17]OFD Sender: No OFD packet to send [03:14:22]OFD Sender: No OFD packet to send [03:14:27]OFD Sender: No OFD packet to send [03:14:32]OFD Sender: No OFD packet to send [03:14:37]OFD Sender: No OFD packet to send [03:14:42]OFD Sender: No OFD packet to send [03:14:42]recv_with_timeout no data received [03:14:47]OFD Sender: No OFD packet to send [03:14:52]OFD Sender: No OFD packet to send [03:14:57]OFD Sender: No OFD packet to send [03:15:02]OFD Sender: No OFD packet to send [03:15:05]accept exits with 9 [03:15:05]New connection [03:15:05]New thread 3067374948 created [03:15:05]Thread 3067231588 joined [03:15:05]Waiting for new connection... [03:15:05] Sock 9.Parse request [03:15:05]Sock 9.Check first char [03:15:05]Sock 9.First char is OK [03:15:05]request: POST /json_proto HTTP/1.0 [03:15:05]Method: POST [03:15:05]URL: /json_proto [03:15:05]Method is POST - this is cgi request [03:15:05]url: /json_proto [03:15:05]query_string will be loaded in cgi processing [03:15:05]execute_cgi json_proto POST (null) [03:15:05]execute_cgi path=json_proto method=POST [03:15:05]POST find Content-Length [03:15:05]Host: 172.17.44.131:8080 [03:15:05]Content-Length: 793 [03:15:05]Content-Type: application/json [03:15:05] [03:15:05]POST finish read [03:15:05]Found Content-Length = 793 [03:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 50.880, "sum" : 3500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:05]execute_script... [03:15: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)293969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 50.880, "sum" : 3500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:15:05]POST & json_proto [03:15:05]process_json_proto [03:15:05]json parsed OK: [03:15:05]protocol is kg_v1.0 [03:15:05]action value=close_receipt [03:15:05]process_action close_receipt [03:15:05]cmd_close_receipt [03:15:05]MH_GetDate [03:15:05]Write to MH i2c: F0 00 00 3A 04 2D [03:15:05]Write i2c OK [03:15:05]MH_I2C_Read... [03:15:05]Read from MH i2c: F0 [03:15:05]MH_I2C_Read... [03:15:05]Read from MH i2c: F0 09 00 [03:15:05]MH_I2C_Read... [03:15:05]Read from MH i2c: F0 09 00 3A 04 00 BA FE C7 66 4F 53 BE 66 E1 [03:15:05]GetLastDocTimeStamp 1724380682 [03:15:05]current date 1724382906 [03:15:05]FM_GetShiftState [03:15:05]SAM_PROTO_GetShiftState [03:15:05]wFMCommunicate request_size=4 [03:15:05]MH_SAM_APDU [03:15:05]CAPDU: 80 13 01 00 [03:15:05]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [03:15:05]Write i2c OK [03:15:05]MH_I2C_Read... [03:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:05]Read from MH i2c: E2 [03:15:05]MH_I2C_Read... [03:15:05]Read from MH i2c: E2 0E 00 [03:15:05]MH_I2C_Read... [03:15:05]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 93 [03:15:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [03:15:05]wFMCommunicate OK [03:15:05]SAM_PROTO_GetShiftState done [03:15:05]FM_GetShiftState done [03:15:05]opened in 1724371660 [03:15:05]opened+sec_in_day 1724458060 [03:15:05]quantity*price = 350054 [03:15:05]sum+1 = 350055 [03:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.54 НСП 1% : 30.98 НДС 12% : 371.74 Наличными: 0.00 Безнал.: 3500.54 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 36 23.08.2024 03:15 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178576 ФПД: 8518421930828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T031506&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178576&fm=8518421930828&tin=02508201610067®Number=0000000000092561&sum=350054 [03:15:06]StoreToDocumentArchive [03:15:06]shift 470 fd 178576 [03:15:06]save to /storage/0470/doc_00178576 [03:15:06]save last doc name /storage/0470/doc_00178576 to /storage/kkm_last_doc_name [03:15:06]save OK [03:15:06]Clear old archive folders... [03:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=249 [03:15:06]tlvbuf is 00D634D0 [03:15:06]SAM_PROTO_ClearQueue [03:15:06]wFMCommunicate request_size=4 [03:15:06]MH_SAM_APDU [03:15:06]CAPDU: 80 09 00 00 [03:15:06]Write to MH i2c: E2 08 00 48 04 80 09 00 00 00 00 00 00 BE [03:15:06]Write i2c OK [03:15:06]MH_I2C_Read... [03:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:15:06]Read from MH i2c: E2 [03:15:06]MH_I2C_Read... [03:15:06]Read from MH i2c: E2 03 00 [03:15:06]MH_I2C_Read... [03:15:06]Read from MH i2c: E2 03 00 48 04 00 90 00 C0 [03:15:06]RAPDU: 90 00 [03:15:06]wFMCommunicate OK [03:15:06]SAM_PROTO_ClearQueue done [03:15:06]KKMCreateOFDPacket [03:15:06]OFDProtocolAddRootSTLVToBuf [03:15:06]FM_MakeSignedData [03:15:06]FM_MakeSignedData [03:15:06]SAM_PROTO_SignData [03:15:06]wFMCommunicate request_size=4 [03:15:06]MH_SAM_APDU [03:15:06]CAPDU: 80 0D 01 02 [03:15:06]Write to MH i2c: E2 08 00 49 04 80 0D 01 02 00 00 00 00 C6 [03:15:06]Write i2c OK [03:15:06]MH_I2C_Read... [03:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:15:06]Read from MH i2c: E2 [03:15:06]MH_I2C_Read... [03:15:06]Read from MH i2c: E2 03 00 [03:15:06]MH_I2C_Read... [03:15:06]Read from MH i2c: E2 03 00 49 04 00 90 00 C1 [03:15:06]RAPDU: 90 00 [03:15:06]wFMCommunicate OK [03:15:06]wFMCommunicate request_size=255 [03:15:06]MH_SAM_APDU [03:15:06]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 C6 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA FE C7 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 90 B9 02 00 35 04 06 00 07 BF 59 [03:15:06]Write to MH i2c: E2 02 01 4A 04 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 C6 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA FE C7 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 90 B9 02 00 35 04 06 00 07 BF 59 00 00 8B [03:15:06]Write i2c OK [03:15:06]MH_I2C_Read... [03:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:07]Read from MH i2c: E2 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 03 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [03:15:07]RAPDU: 90 00 [03:15:07]wFMCommunicate OK [03:15:07]wFMCommunicate request_size=8 [03:15:07]MH_SAM_APDU [03:15:07]CAPDU: 80 0D 02 02 03 83 63 4C [03:15:07]Write to MH i2c: E2 0B 00 4B 04 80 0D 02 02 03 00 83 63 4C 00 00 01 [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:15:07]Read from MH i2c: E2 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 03 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [03:15:07]RAPDU: 90 00 [03:15:07]wFMCommunicate OK [03:15:07]wFMCommunicate request_size=4 [03:15:07]MH_SAM_APDU [03:15:07]CAPDU: 80 0D 03 02 [03:15:07]Write to MH i2c: E2 08 00 4C 04 80 0D 03 02 00 00 00 00 CB [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:15:07]Read from MH i2c: E2 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 0B 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 0B 00 4C 04 00 72 73 88 D9 3F 31 0F 0F 90 00 A0 [03:15:07]RAPDU: 72 73 88 D9 3F 31 0F 0F 90 00 [03:15:07]wFMCommunicate OK [03:15:07]SAM_PROTO_SignData done [03:15:07]FM_MakeSignedData done [03:15:07]CreateOFDProtocolMessage [03:15:07]wFMCommunicate request_size=4 [03:15:07]MH_SAM_APDU [03:15:07]CAPDU: 80 11 00 00 [03:15:07]Write to MH i2c: E2 08 00 4D 04 80 11 00 00 00 00 00 00 CB [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:07]Read from MH i2c: E2 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 17 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: E2 17 00 4D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 24 [03:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:15:07]wFMCommunicate OK [03:15:07]CreateOFDProtocolMessage done [03:15:07]OFDSenderStorePacket 178576 [03:15:07]StoreOFDPacket docnum=178576 [03:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 28 68 05 01 98 E8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 C6 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA FE C7 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 90 B9 02 00 35 04 06 00 07 BF 59 83 63 4C 72 73 88 D9 3F 31 0F 0F [03:15:07]CheckFolder [03:15:07]dirname=/storage/ofd_packets [03:15:07]CheckFolder done [03:15:07]ProducePacketName [03:15:07]name=ofd_packets/00178576 [03:15:07]NVStorageSaveData ofd_packets/00178576 [03:15:07]File name is /storage/ofd_packets/00178576 [03:15:07]Write 299 bytes [03:15:07]NVStorageSaveData done [03:15:07]OFDSenderStorePacket done [03:15:07]KKMCreateOFDPacket done [03:15:07]NVStorageSaveData kkm_last_timestamp [03:15:07]File name is /storage/kkm_last_timestamp [03:15:07]Write 4 bytes [03:15:07]NVStorageSaveData done [03:15:07]ExternCall_PrintAddStr [03:15:07]wPrintStart [03:15:07]Write to MH i2c: 01 00 00 4E 04 52 [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: 01 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: 01 07 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: 01 07 00 4E 04 00 00 00 00 00 FF 0F 67 [03:15:07]RasterBufferAndPrint [03:15:07]line Счет N : (1)293969 [03:15:07]line ИНН: 02508201610067 [03:15:07]line Контрольно-Кассовый Чек [03:15:07]line ПРОДАЖА [03:15:07]line ТРК (МРК, ГНК) : 31 [03:15:07]line Товар: 2710124130 [03:15:07]line SU-92-К-5 [03:15:07]line 50.880 * 68.80 [03:15:07]line = 3500.54 [03:15:07]line НДС 12% НСП 1% [03:15:07]line > о реализуемом товаре [03:15:07]line ИТОГО: 3500.54 [03:15:07]line НСП 1% : 30.98 [03:15:07]line НДС 12% : 371.74 [03:15:07]line Наличными: 0.00 [03:15:07]line Безнал.: 3500.54 [03:15:07]line Место: АЗС № 130 "Партнер Нефть" [03:15:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [03:15:07]line СНО: Общий режим [03:15:07]line Чек 36 23.08.2024 03:15 [03:15:07]line Смена: 470 ФФД: 1.0 [03:15:07]line ЗНМ: 0300000071 [03:15:07]line РНМ: 0000000000092561 [03:15:07]line Версия ККМ: 001 [03:15:07]line Платежная система: O! деньги [03:15:07]line ФМ: 0000000000871778 [03:15:07]line ФД: 178576 [03:15:07]line ФПД: 8518421930828 [03:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T031506&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178576&fm=8518421930828&tin=02508201610067®Number=0000000000092561&sum=350054 [03:15:07]written 0, free lines is 4095 [03:15:07]OFD Sender: Processing packet 178576 [packets to send 497, broken 496] [03:15:07]ProducePacketName [03:15:07]name=ofd_packets/00178576 [03:15:07]OFD Sender: To server: pG, [03:15:07]CommunicateWithHost lk.salyk.kg:30040 [03:15:07]ConnectInit lk.salyk.kg [03:15:07]Write to MH i2c: 01 00 00 78 04 7C [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: 01 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: 01 07 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 D0 0C 5F [03:15:07]RasterBufferAndPrint [03:15:07]line [03:15:07]line [03:15:07]line [03:15:07]line [03:15:07]line [03:15:07]written 0, free lines is 3287 [03:15:07]MH_Cut [03:15:07]Write to MH i2c: D1 01 00 7F 04 01 55 [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: D1 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: D1 01 00 [03:15:07]MH_I2C_Read... [03:15:07]Read from MH i2c: D1 01 00 7F 04 00 54 [03:15:07]Write to MH i2c: 01 00 00 80 04 84 [03:15:07]Write i2c OK [03:15:07]MH_I2C_Read... [03:15:08]Connected sock=11 [03:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 28 68 05 01 98 E8 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 C6 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 66 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 66 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 66 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BA FE C7 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 90 B9 02 00 35 04 06 00 07 BF 59 83 63 4C 72 73 88 D9 3F 31 0F 0F [03:15:08]*** Cut start [03:15:08]*** Partial cut [03:15:08]*** CUTSNS_PIN = 1 [03:15:08]*** CUTSNS_PIN = 0 [03:15:08]*** Brake cut motor [03:15:08]Read from MH i2c: 01 [03:15:08]MH_I2C_Read... [03:15:08]*** Stop cut motor [03:15:08]*** Cut end [03:15:08]Read from MH i2c: 01 07 00 [03:15:08]MH_I2C_Read... [03:15:08]Read from MH i2c: 01 07 00 80 04 00 00 00 00 00 FF 0F 99 [03:15:08]process_action close_receipt done [03:15:08]requested_data is exist [03:15:08]produce_requested_data [03:15:08]requested_item fm.sn is exist - process it [03:15:08]wFMCommunicate request_size=4 [03:15:08]MH_SAM_APDU [03:15:08]CAPDU: 80 11 00 00 [03:15:08]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [03:15:08]Write i2c OK [03:15:08]MH_I2C_Read... [03:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:15:09]Read from MH i2c: E2 [03:15:09]MH_I2C_Read... [03:15:09]Read from MH i2c: E2 17 00 [03:15:09]MH_I2C_Read... [03:15:09]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 58 [03:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [03:15:09]wFMCommunicate OK [03:15:09]requested_item fd.num is exist - process it [03:15:09]SAM_PROTO_GetFieldsCounters [03:15:09]wFMCommunicate request_size=4 [03:15:09]MH_SAM_APDU [03:15:09]CAPDU: 80 13 00 00 [03:15:09]Write to MH i2c: E2 08 00 82 04 80 13 00 00 00 00 00 00 02 [03:15:09]Write i2c OK [03:15:09]MH_I2C_Read... [03:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:15:09]Read from MH i2c: E2 [03:15:09]MH_I2C_Read... [03:15:09]Read from MH i2c: E2 62 00 [03:15:09]MH_I2C_Read... [03:15:09]Read from MH i2c: E2 62 00 82 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 90 B9 02 00 0E 04 04 00 D6 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 B5 [03:15: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 90 B9 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:15:09]wFMCommunicate OK [03:15:09]SAM_PROTO_GetFieldsCounters done [03:15:09]requested_item shift.num is exist - process it [03:15:09]requested_item shift.opened is exist - process it [03:15:09]req_shift_opened [03:15:09]FM_GetShiftState [03:15:09]SAM_PROTO_GetShiftState [03:15:09]wFMCommunicate request_size=4 [03:15:09]MH_SAM_APDU [03:15:09]CAPDU: 80 13 01 00 [03:15:09]Write to MH i2c: E2 08 00 83 04 80 13 01 00 00 00 00 00 04 [03:15:09]Write i2c OK [03:15:09]MH_I2C_Read... [03:15:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 58 68 47 00 0A 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 31 37 37 38 10 04 04 00 90 B9 02 00 F4 03 04 00 63 AA C7 66 B6 04 01 00 00 33 A2 C5 1C D9 2D 11 76 [03:15:09]CommunicateWithHost err = 0 [03:15:09]CheckOFDResponse [03:15:09]1017 (14) - 77093643461234 [03:15:09]1041 (16) - 0000000000871778 [03:15:09]1040 (4) - 178576 [03:15:09]1012 (4) - 22.08.2024 21:15 [03:15:09]1206 (1) - 0 [03:15:09]OFD Sender: Remove packet 178576 [03:15:09]ProducePacketName [03:15:09]name=ofd_packets/00178576 [03:15:09]NVStorageDeleteData [03:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:15:09]Read from MH i2c: E2 [03:15:09]MH_I2C_Read... [03:15:09]Read from MH i2c: E2 0E 00 [03:15:09]MH_I2C_Read... [03:15:09]Read from MH i2c: E2 0E 00 83 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 DB [03:15:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [03:15:09]wFMCommunicate OK [03:15:09]SAM_PROTO_GetShiftState done [03:15:09]FM_GetShiftState done [03:15:09]req_shift_opened done [03:15:09]requested_item shift.open_date is exist - process it [03:15:09]req_shift_open_date [03:15:09]req_shift_open_date done [03:15:09]produce_requested_data done [03:15:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178576,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [03:15:09]process_action_free close_receipt [03:15:09]json_value_free [03:15:09]json_value_free done [03:15:09]process_json_proto returns [03:15:09]Send response to host [03:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178576,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [03:15:09]free response buf [03:15:09]execute_script done [03:15:09]execute_script returns [03:15:09]free content buf [03:15:09]Sock 9.Close socket [03:15:09]Sock 9.Thread stoped [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:18]recv_with_timeout no data received [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:36]recv_with_timeout no data received [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:23]recv_with_timeout no data received [03:16:24]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:42]recv_with_timeout no data received [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:15]recv_with_timeout no data received [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:03]recv_with_timeout no data received [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:43]recv_with_timeout no data received [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:40]recv_with_timeout no data received [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:52]recv_with_timeout no data received [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23: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:52]recv_with_timeout no data received [03:27:56]OFD Sender: No OFD packet to send [03:28:00]accept exits with 10 [03:28:00]New connection [03:28:00]New thread 3067231588 created [03:28:00]Thread 3067374948 joined [03:28:00]Waiting for new connection... [03:28:00] Sock 10.Parse request [03:28:00]Sock 10.Check first char [03:28:00]Sock 10.First char is OK [03:28:00]request: POST /json_proto HTTP/1.0 [03:28:00]Method: POST [03:28:00]URL: /json_proto [03:28:00]Method is POST - this is cgi request [03:28:00]url: /json_proto [03:28:00]query_string will be loaded in cgi processing [03:28:00]execute_cgi json_proto POST (null) [03:28:00]execute_cgi path=json_proto method=POST [03:28:00]POST find Content-Length [03:28:00]Host: 172.17.44.131:8080 [03:28:00]Content-Length: 679 [03:28:00]Content-Type: application/json [03:28:00] [03:28:00]POST finish read [03:28:00]Found Content-Length = 679 [03:28:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:28:00]execute_script... [03:28: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)293971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:28:00]POST & json_proto [03:28:00]process_json_proto [03:28:00]json parsed OK: [03:28:00]protocol is kg_v1.0 [03:28:00]action value=close_receipt [03:28:00]process_action close_receipt [03:28:00]cmd_close_receipt [03:28:00]MH_GetDate [03:28:00]Write to MH i2c: F0 00 00 84 04 77 [03:28:00]Write i2c OK [03:28:00]MH_I2C_Read... [03:28:00]Read from MH i2c: F0 [03:28:00]MH_I2C_Read... [03:28:00]Read from MH i2c: F0 09 00 [03:28:00]MH_I2C_Read... [03:28:00]Read from MH i2c: F0 09 00 84 04 00 C1 01 C8 66 4F 53 BE 66 36 [03:28:00]GetLastDocTimeStamp 1724382906 [03:28:00]current date 1724383681 [03:28:00]FM_GetShiftState [03:28:00]SAM_PROTO_GetShiftState [03:28:00]wFMCommunicate request_size=4 [03:28:00]MH_SAM_APDU [03:28:00]CAPDU: 80 13 01 00 [03:28:00]Write to MH i2c: E2 08 00 85 04 80 13 01 00 00 00 00 00 06 [03:28:00]Write i2c OK [03:28:00]MH_I2C_Read... [03:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:28:00]Read from MH i2c: E2 [03:28:00]MH_I2C_Read... [03:28:00]Read from MH i2c: E2 0E 00 [03:28:00]MH_I2C_Read... [03:28:00]Read from MH i2c: E2 0E 00 85 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 DD [03:28:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [03:28:00]wFMCommunicate OK [03:28:00]SAM_PROTO_GetShiftState done [03:28:00]FM_GetShiftState done [03:28:00]opened in 1724371660 [03:28:00]opened+sec_in_day 1724458060 [03:28:00]quantity*price = 100050 [03:28:00]sum+1 = 100052 [03:28:00]Check (price>sum+1) || (price+1 о реализуемом товаре [04:08:46]line ОКРУГЛЕНИЕ: -0.51 [04:08:46]line ИТОГО: 1000.00 [04:08:46]line Внесено: 1000.00 [04:08:46]line СДАЧА: 0.00 [04:08:46]line НСП 1% : 8.85 [04:08:46]line НДС 12% : 106.25 [04:08:46]line Наличными: 1000.00 [04:08:46]line Безнал.: 0.00 [04:08:46]line Место: АЗС № 130 "Партнер Нефть" [04:08:46]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:08:46]line СНО: Общий режим [04:08:46]line Чек 37 23.08.2024 03:28 [04:08:46]line Смена: 470 ФФД: 1.0 [04:08:46]line ЗНМ: 0300000071 [04:08:46]line РНМ: 0000000000092561 [04:08:46]line Версия ККМ: 001 [04:08:46]line ФМ: 0000000000871778 [04:08:46]line ФД: 178577 [04:08:46]line ФПД: 170348864031384 [04:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T032802&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178577&fm=170348864031384&tin=02508201610067®Number=0000000000092561&sum=100000 [04:08:46]written 0, free lines is 4095 [04:08:46]Write to MH i2c: 01 00 00 48 00 48 [04:08:46]Write i2c OK [04:08:46]MH_I2C_Read... [04:08:46]Read from MH i2c: 01 [04:08:46]MH_I2C_Read... [04:08:46]Read from MH i2c: 01 07 00 [04:08:46]MH_I2C_Read... [04:08:46]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D1 0C 2C [04:08:46]RasterBufferAndPrint [04:08:46]line [04:08:46]line [04:08:46]line [04:08:46]line [04:08:46]line [04:08:46]written 0, free lines is 3308 [04:08:46]MH_Cut [04:08:46]Write to MH i2c: D1 01 00 4F 00 01 21 [04:08:46]Write i2c OK [04:08:46]MH_I2C_Read... [04:08:46]Read from MH i2c: D1 [04:08:46]MH_I2C_Read... [04:08:46]Read from MH i2c: D1 01 00 [04:08:46]MH_I2C_Read... [04:08:46]Read from MH i2c: D1 01 00 4F 00 00 20 [04:08:46]Write to MH i2c: 01 00 00 50 00 50 [04:08:46]Write i2c OK [04:08:46]MH_I2C_Read... [04:08:47]*** Cut start [04:08:47]*** Partial cut [04:08:47]*** CUTSNS_PIN = 1 [04:08:47]*** CUTSNS_PIN = 0 [04:08:47]*** Brake cut motor [04:08:48]Read from MH i2c: 01 [04:08:48]MH_I2C_Read... [04:08:48]*** Stop cut motor [04:08:48]*** Cut end [04:08:48]Read from MH i2c: 01 07 00 [04:08:48]MH_I2C_Read... [04:08:48]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [04:08:48]process_action print_doc done [04:08:48]requested_data is exist [04:08:48]produce_requested_data [04:08:48]produce_requested_data return (null) [04:08:48]process_action_free print_doc [04:08:48]json_value_free [04:08:48]json_value_free done [04:08:48]process_json_proto returns [04:08:48]Send response to host [04:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [04:08:48]free response buf [04:08:48]execute_script done [04:08:48]execute_script returns [04:08:48]free content buf [04:08:48]Sock 9.Close socket [04:08:48]Sock 9.Thread stoped [04:08:48]accept exits with 7 [04:08:48]New connection [04:08:48]New thread 3067198820 created [04:08:48]Thread 3067342180 joined [04:08:48]Waiting for new connection... [04:08:48] Sock 7.Parse request [04:08:48]Sock 7.Check first char [04:08:48]Sock 7.First char is OK [04:08:48]request: POST /json_proto HTTP/1.0 [04:08:48]Method: POST [04:08:48]URL: /json_proto [04:08:48]Method is POST - this is cgi request [04:08:48]url: /json_proto [04:08:48]query_string will be loaded in cgi processing [04:08:48]execute_cgi json_proto POST (null) [04:08:48]execute_cgi path=json_proto method=POST [04:08:48]POST find Content-Length [04:08:48]Host: 172.17.44.131:8080 [04:08:48]Content-Length: 803 [04:08:48]Content-Type: application/json [04:08:48] [04:08:48]POST finish read [04:08:48]Found Content-Length = 803 [04:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:08:48]execute_script... [04:08:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:08:48]POST & json_proto [04:08:48]process_json_proto [04:08:48]json parsed OK: [04:08:48]protocol is kg_v1.0 [04:08:48]action value=close_receipt [04:08:48]process_action close_receipt [04:08:48]cmd_close_receipt [04:08:48]MH_GetDate [04:08:48]Write to MH i2c: F0 00 00 51 00 40 [04:08:48]Write i2c OK [04:08:48]MH_I2C_Read... [04:08:48]Read from MH i2c: F0 [04:08:48]MH_I2C_Read... [04:08:48]Read from MH i2c: F0 09 00 [04:08:48]MH_I2C_Read... [04:08:48]Read from MH i2c: F0 09 00 51 00 00 51 0B C8 66 4F 53 BE 66 99 [04:08:48]GetLastDocTimeStamp 1724383682 [04:08:48]current date 1724386129 [04:08:48]FM_GetShiftState [04:08:48]SAM_PROTO_GetShiftState [04:08:48]wFMCommunicate request_size=4 [04:08:48]MH_SAM_APDU [04:08:48]CAPDU: 80 13 01 00 [04:08:48]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [04:08:48]Write i2c OK [04:08:48]MH_I2C_Read... [04:08:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:48]Read from MH i2c: E2 [04:08:48]MH_I2C_Read... [04:08:48]Read from MH i2c: E2 0E 00 [04:08:48]MH_I2C_Read... [04:08:48]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A6 [04:08:48]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:08:48]wFMCommunicate OK [04:08:48]SAM_PROTO_GetShiftState done [04:08:48]FM_GetShiftState done [04:08:48]opened in 1724371660 [04:08:48]opened+sec_in_day 1724458060 [04:08:48]quantity*price = 300064 [04:08:48]sum+1 = 300066 [04:08:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 38 23.08.2024 04:08 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178578 ФПД: 48286054064158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T040849&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178578&fm=48286054064158&tin=02508201610067®Number=0000000000092561&sum=300065 [04:08:49]StoreToDocumentArchive [04:08:49]shift 470 fd 178578 [04:08:49]save to /storage/0470/doc_00178578 [04:08:49]save last doc name /storage/0470/doc_00178578 to /storage/kkm_last_doc_name [04:08:49]save OK [04:08:49]Clear old archive folders... [04:08:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:08:49]tlvbuf is 0073D2F0 [04:08:49]SAM_PROTO_ClearQueue [04:08:49]wFMCommunicate request_size=4 [04:08:49]MH_SAM_APDU [04:08:49]CAPDU: 80 09 00 00 [04:08:49]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [04:08:49]Write i2c OK [04:08:49]MH_I2C_Read... [04:08:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:08:49]Read from MH i2c: E2 [04:08:49]MH_I2C_Read... [04:08:49]Read from MH i2c: E2 03 00 [04:08:49]MH_I2C_Read... [04:08:49]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [04:08:49]RAPDU: 90 00 [04:08:49]wFMCommunicate OK [04:08:49]SAM_PROTO_ClearQueue done [04:08:49]KKMCreateOFDPacket [04:08:49]OFDProtocolAddRootSTLVToBuf [04:08:49]FM_MakeSignedData [04:08:49]FM_MakeSignedData [04:08:49]SAM_PROTO_SignData [04:08:49]wFMCommunicate request_size=4 [04:08:49]MH_SAM_APDU [04:08:49]CAPDU: 80 0D 01 02 [04:08:49]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [04:08:49]Write i2c OK [04:08:49]MH_I2C_Read... [04:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:08:50]Read from MH i2c: E2 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 03 00 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [04:08:50]RAPDU: 90 00 [04:08:50]wFMCommunicate OK [04:08:50]wFMCommunicate request_size=255 [04:08:50]MH_SAM_APDU [04:08: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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 B9 02 00 35 04 06 00 2B [04:08:50]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 B9 02 00 35 04 06 00 2B 00 00 20 [04:08:50]Write i2c OK [04:08:50]MH_I2C_Read... [04:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:50]Read from MH i2c: E2 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 03 00 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [04:08:50]RAPDU: 90 00 [04:08:50]wFMCommunicate OK [04:08:50]wFMCommunicate request_size=10 [04:08:50]MH_SAM_APDU [04:08:50]CAPDU: 80 0D 02 02 05 EA 79 19 A0 1E [04:08:50]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 EA 79 19 A0 1E 00 00 20 [04:08:50]Write i2c OK [04:08:50]MH_I2C_Read... [04:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:50]Read from MH i2c: E2 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 03 00 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [04:08:50]RAPDU: 90 00 [04:08:50]wFMCommunicate OK [04:08:50]wFMCommunicate request_size=4 [04:08:50]MH_SAM_APDU [04:08:50]CAPDU: 80 0D 03 02 [04:08:50]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [04:08:50]Write i2c OK [04:08:50]MH_I2C_Read... [04:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:08:50]Read from MH i2c: E2 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 0B 00 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 0B 00 63 00 00 49 48 59 7C 5E D6 B8 DF 90 00 10 [04:08:50]RAPDU: 49 48 59 7C 5E D6 B8 DF 90 00 [04:08:50]wFMCommunicate OK [04:08:50]SAM_PROTO_SignData done [04:08:50]FM_MakeSignedData done [04:08:50]CreateOFDProtocolMessage [04:08:50]wFMCommunicate request_size=4 [04:08:50]MH_SAM_APDU [04:08:50]CAPDU: 80 11 00 00 [04:08:50]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [04:08:50]Write i2c OK [04:08:50]MH_I2C_Read... [04:08:50]OFD Sender: No OFD packet to send [04:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:50]Read from MH i2c: E2 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 17 00 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [04:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:08:50]wFMCommunicate OK [04:08:50]CreateOFDProtocolMessage done [04:08:50]OFDSenderStorePacket 178578 [04:08:50]StoreOFDPacket docnum=178578 [04:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E9 25 07 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 B9 02 00 35 04 06 00 2B EA 79 19 A0 1E 49 48 59 7C 5E D6 B8 DF [04:08:50]CheckFolder [04:08:50]dirname=/storage/ofd_packets [04:08:50]CheckFolder done [04:08:50]ProducePacketName [04:08:50]name=ofd_packets/00178578 [04:08:50]NVStorageSaveData ofd_packets/00178578 [04:08:50]File name is /storage/ofd_packets/00178578 [04:08:50]Write 301 bytes [04:08:50]NVStorageSaveData done [04:08:50]OFDSenderStorePacket done [04:08:50]KKMCreateOFDPacket done [04:08:50]NVStorageSaveData kkm_last_timestamp [04:08:50]File name is /storage/kkm_last_timestamp [04:08:50]Write 4 bytes [04:08:50]NVStorageSaveData done [04:08:50]ExternCall_PrintAddStr [04:08:50]wPrintStart [04:08:50]Write to MH i2c: 01 00 00 65 00 65 [04:08:50]Write i2c OK [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: 01 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: 01 07 00 [04:08:50]MH_I2C_Read... [04:08:50]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [04:08:50]RasterBufferAndPrint [04:08:50]line Счет N : (1)293970 [04:08:50]line ИНН: 02508201610067 [04:08:50]line Контрольно-Кассовый Чек [04:08:50]line ПРОДАЖА [04:08:50]line ТРК (МРК, ГНК) : 43 [04:08:50]line Товар: 2710124500 [04:08:50]line Аи-95-К-5 [04:08:50]line 40.440 * 74.20 [04:08:50]line = 3000.65 [04:08:50]line НДС 12% НСП 1% [04:08:50]line > о реализуемом товаре [04:08:50]line ИТОГО: 3000.65 [04:08:50]line НСП 1% : 26.55 [04:08:50]line НДС 12% : 318.65 [04:08:50]line Наличными: 0.00 [04:08:50]line Безнал.: 3000.65 [04:08:50]line Место: АЗС № 130 "Партнер Нефть" [04:08:50]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:08:50]line СНО: Общий режим [04:08:50]line Чек 38 23.08.2024 04:08 [04:08:50]line Смена: 470 ФФД: 1.0 [04:08:50]line ЗНМ: 0300000071 [04:08:50]line РНМ: 0000000000092561 [04:08:50]line Версия ККМ: 001 [04:08:50]line Платежная система: O! деньги [04:08:50]line ФМ: 0000000000871778 [04:08:50]line ФД: 178578 [04:08:50]line ФПД: 48286054064158 [04:08:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T040849&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178578&fm=48286054064158&tin=02508201610067®Number=0000000000092561&sum=300065 [04:08:50]OFD Sender: Processing packet 178578 [packets to send 497, broken 496] [04:08:50]ProducePacketName [04:08:50]name=ofd_packets/00178578 [04:08:50]OFD Sender: To server: pG, [04:08:50]CommunicateWithHost lk.salyk.kg:30040 [04:08:50]ConnectInit lk.salyk.kg [04:08:50]written 0, free lines is 4095 [04:08:51]recv_with_timeout no data received [04:08:51]Write to MH i2c: 01 00 00 8F 00 8F [04:08:51]Write i2c OK [04:08:51]MH_I2C_Read... [04:08:51]Read from MH i2c: 01 [04:08:51]MH_I2C_Read... [04:08:51]Read from MH i2c: 01 07 00 [04:08:51]MH_I2C_Read... [04:08:51]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 D7 0C 79 [04:08:51]RasterBufferAndPrint [04:08:51]line [04:08:51]line [04:08:51]line [04:08:51]line [04:08:51]line [04:08:51]written 0, free lines is 3314 [04:08:51]MH_Cut [04:08:51]Write to MH i2c: D1 01 00 96 00 01 68 [04:08:51]Write i2c OK [04:08:51]MH_I2C_Read... [04:08:51]Read from MH i2c: D1 [04:08:51]MH_I2C_Read... [04:08:51]Read from MH i2c: D1 01 00 [04:08:51]MH_I2C_Read... [04:08:51]Read from MH i2c: D1 01 00 96 00 00 67 [04:08:51]Write to MH i2c: 01 00 00 97 00 97 [04:08:51]Write i2c OK [04:08:51]MH_I2C_Read... [04:08:52]*** Cut start [04:08:52]*** Partial cut [04:08:52]*** CUTSNS_PIN = 1 [04:08:52]*** CUTSNS_PIN = 0 [04:08:52]*** Brake cut motor [04:08:52]Read from MH i2c: 01 [04:08:52]MH_I2C_Read... [04:08:52]*** Stop cut motor [04:08:52]*** Cut end [04:08:52]Read from MH i2c: 01 07 00 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [04:08:52]process_action close_receipt done [04:08:52]requested_data is exist [04:08:52]produce_requested_data [04:08:52]requested_item fm.sn is exist - process it [04:08:52]wFMCommunicate request_size=4 [04:08:52]MH_SAM_APDU [04:08:52]CAPDU: 80 11 00 00 [04:08:52]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [04:08:52]Write i2c OK [04:08:52]MH_I2C_Read... [04:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:52]Read from MH i2c: E2 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: E2 17 00 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6B [04:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:08:52]wFMCommunicate OK [04:08:52]requested_item fd.num is exist - process it [04:08:52]SAM_PROTO_GetFieldsCounters [04:08:52]wFMCommunicate request_size=4 [04:08:52]MH_SAM_APDU [04:08:52]CAPDU: 80 13 00 00 [04:08:52]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [04:08:52]Write i2c OK [04:08:52]MH_I2C_Read... [04:08:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:08:52]Read from MH i2c: E2 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: E2 62 00 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 92 B9 02 00 0E 04 04 00 D6 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 D0 [04:08:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 92 B9 02 00 0E 04 04 00 D6 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 [04:08:52]wFMCommunicate OK [04:08:52]SAM_PROTO_GetFieldsCounters done [04:08:52]requested_item shift.num is exist - process it [04:08:52]requested_item shift.opened is exist - process it [04:08:52]req_shift_opened [04:08:52]FM_GetShiftState [04:08:52]SAM_PROTO_GetShiftState [04:08:52]wFMCommunicate request_size=4 [04:08:52]MH_SAM_APDU [04:08:52]CAPDU: 80 13 01 00 [04:08:52]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [04:08:52]Write i2c OK [04:08:52]MH_I2C_Read... [04:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:52]Read from MH i2c: E2 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: E2 0E 00 [04:08:52]MH_I2C_Read... [04:08:52]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 EE [04:08:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:08:52]wFMCommunicate OK [04:08:52]SAM_PROTO_GetShiftState done [04:08:52]FM_GetShiftState done [04:08:52]req_shift_opened done [04:08:52]requested_item shift.open_date is exist - process it [04:08:52]req_shift_open_date [04:08:52]req_shift_open_date done [04:08:52]produce_requested_data done [04:08:52]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178578,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:08:52]process_action_free close_receipt [04:08:52]json_value_free [04:08:52]json_value_free done [04:08:52]process_json_proto returns [04:08:52]Send response to host [04:08:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178578,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:08:53]free response buf [04:08:53]execute_script done [04:08:53]execute_script returns [04:08:53]free content buf [04:08:53]Sock 7.Close socket [04:08:53]Sock 7.Thread stoped [04:08:55]ConnectInit Can't take IP for lk.salyk.kg [04:08:55]CommunicateWithHost connect error [04:08:55]CommunicateWithHost err = -1 [04:08:55]OFD Sender: Server communicate error [04:09:00]OFD Sender: Processing packet 178578 [packets to send 497, broken 496] [04:09:00]ProducePacketName [04:09:00]name=ofd_packets/00178578 [04:09:00]OFD Sender: To server: pG, [04:09:00]CommunicateWithHost lk.salyk.kg:30040 [04:09:00]ConnectInit lk.salyk.kg [04:09:05]ConnectInit Can't take IP for lk.salyk.kg [04:09:05]CommunicateWithHost connect error [04:09:05]CommunicateWithHost err = -1 [04:09:05]OFD Sender: Server communicate error [04:09:10]OFD Sender: Processing packet 178578 [packets to send 497, broken 496] [04:09:10]ProducePacketName [04:09:10]name=ofd_packets/00178578 [04:09:10]OFD Sender: To server: pG, [04:09:10]CommunicateWithHost lk.salyk.kg:30040 [04:09:10]ConnectInit lk.salyk.kg [04:09:16]recv_with_timeout no data received [04:09:35]Connected sock=10 [04:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E9 25 07 01 F7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 92 B9 02 00 35 04 06 00 2B EA 79 19 A0 1E 49 48 59 7C 5E D6 B8 DF [04:09:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A0 A5 47 00 8F 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 31 37 37 38 10 04 04 00 92 B9 02 00 F4 03 04 00 27 B7 C7 66 B6 04 01 00 00 9E 15 F2 E4 CC 2B 8A 32 [04:09:36]CommunicateWithHost err = 0 [04:09:36]CheckOFDResponse [04:09:36]1017 (14) - 77093643461234 [04:09:36]1041 (16) - 0000000000871778 [04:09:36]1040 (4) - 178578 [04:09:36]1012 (4) - 22.08.2024 22:09 [04:09:36]1206 (1) - 0 [04:09:36]OFD Sender: Remove packet 178578 [04:09:36]ProducePacketName [04:09:36]name=ofd_packets/00178578 [04:09:36]NVStorageDeleteData [04:09:37]OFD Sender: No OFD packet to send [04:09:40]recv_with_timeout no data received [04:09:42]accept exits with 9 [04:09:42]New connection [04:09:42]New thread 3067342180 created [04:09:42]Thread 3067198820 joined [04:09:42]Waiting for new connection... [04:09:42] Sock 9.Parse request [04:09:42]Sock 9.Check first char [04:09:42]Sock 9.First char is OK [04:09:42]request: POST /json_proto HTTP/1.0 [04:09:42]Method: POST [04:09:42]URL: /json_proto [04:09:42]Method is POST - this is cgi request [04:09:42]url: /json_proto [04:09:42]query_string will be loaded in cgi processing [04:09:42]execute_cgi json_proto POST (null) [04:09:42]execute_cgi path=json_proto method=POST [04:09:42]POST find Content-Length [04:09:42]Host: 172.17.44.131:8080 [04:09:42]Content-Length: 677 [04:09:42]Content-Type: application/json [04:09:42] [04:09:42]POST finish read [04:09:42]Found Content-Length = 677 [04:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293974", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [04:09:42]execute_script... [04:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293974", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [04:09:42]POST & json_proto [04:09:42]process_json_proto [04:09:42]json parsed OK: [04:09:42]protocol is kg_v1.0 [04:09:42]action value=close_receipt [04:09:42]process_action close_receipt [04:09:42]cmd_close_receipt [04:09:42]MH_GetDate [04:09:42]Write to MH i2c: F0 00 00 9B 00 8A [04:09:42]Write i2c OK [04:09:42]MH_I2C_Read... [04:09:42]Read from MH i2c: F0 [04:09:42]MH_I2C_Read... [04:09:42]Read from MH i2c: F0 09 00 [04:09:42]MH_I2C_Read... [04:09:42]Read from MH i2c: F0 09 00 9B 00 00 86 0B C8 66 4F 53 BE 66 18 [04:09:42]GetLastDocTimeStamp 1724386129 [04:09:42]current date 1724386182 [04:09:42]FM_GetShiftState [04:09:42]SAM_PROTO_GetShiftState [04:09:42]wFMCommunicate request_size=4 [04:09:42]MH_SAM_APDU [04:09:42]CAPDU: 80 13 01 00 [04:09:42]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [04:09:42]Write i2c OK [04:09:42]MH_I2C_Read... [04:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:42]Read from MH i2c: E2 [04:09:42]MH_I2C_Read... [04:09:42]Read from MH i2c: E2 0E 00 [04:09:42]MH_I2C_Read... [04:09:42]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F0 [04:09:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:09:42]wFMCommunicate OK [04:09:42]SAM_PROTO_GetShiftState done [04:09:42]FM_GetShiftState done [04:09:42]opened in 1724371660 [04:09:42]opened+sec_in_day 1724458060 [04:09:42]quantity*price = 30035 [04:09:42]sum+1 = 30036 [04:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 39 23.08.2024 04:09 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178579 ФПД: 63000092399414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T040943&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178579&fm=63000092399414&tin=02508201610067®Number=0000000000092561&sum=30000 [04:09:43]StoreToDocumentArchive [04:09:43]shift 470 fd 178579 [04:09:43]save to /storage/0470/doc_00178579 [04:09:43]save last doc name /storage/0470/doc_00178579 to /storage/kkm_last_doc_name [04:09:43]save OK [04:09:43]Clear old archive folders... [04:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:09:43]tlvbuf is 00768630 [04:09:43]SAM_PROTO_ClearQueue [04:09:43]wFMCommunicate request_size=4 [04:09:43]MH_SAM_APDU [04:09:43]CAPDU: 80 09 00 00 [04:09:43]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [04:09:43]Write i2c OK [04:09:43]MH_I2C_Read... [04:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:09:43]Read from MH i2c: E2 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [04:09:43]RAPDU: 90 00 [04:09:43]wFMCommunicate OK [04:09:43]SAM_PROTO_ClearQueue done [04:09:43]KKMCreateOFDPacket [04:09:43]OFDProtocolAddRootSTLVToBuf [04:09:43]FM_MakeSignedData [04:09:43]FM_MakeSignedData [04:09:43]SAM_PROTO_SignData [04:09:43]wFMCommunicate request_size=4 [04:09:43]MH_SAM_APDU [04:09:43]CAPDU: 80 0D 01 02 [04:09:43]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [04:09:43]Write i2c OK [04:09:43]MH_I2C_Read... [04:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:09:43]Read from MH i2c: E2 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [04:09:43]RAPDU: 90 00 [04:09:43]wFMCommunicate OK [04:09:43]wFMCommunicate request_size=255 [04:09:43]MH_SAM_APDU [04: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 87 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 B9 02 00 35 04 06 00 39 [04:09:43]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 87 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 B9 02 00 35 04 06 00 39 00 00 0A [04:09:43]Write i2c OK [04:09:43]MH_I2C_Read... [04:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:43]Read from MH i2c: E2 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [04:09:43]RAPDU: 90 00 [04:09:43]wFMCommunicate OK [04:09:43]wFMCommunicate request_size=10 [04:09:43]MH_SAM_APDU [04:09:43]CAPDU: 80 0D 02 02 05 4C 5A 20 D7 36 [04:09:43]Write to MH i2c: E2 0D 00 AC 00 80 0D 02 02 05 00 4C 5A 20 D7 36 00 00 03 [04:09:43]Write i2c OK [04:09:43]MH_I2C_Read... [04:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:09:43]Read from MH i2c: E2 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [04:09:43]RAPDU: 90 00 [04:09:43]wFMCommunicate OK [04:09:43]wFMCommunicate request_size=4 [04:09:43]MH_SAM_APDU [04:09:43]CAPDU: 80 0D 03 02 [04:09:43]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [04:09:43]Write i2c OK [04:09:43]MH_I2C_Read... [04:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:09:43]Read from MH i2c: E2 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 0B 00 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 0B 00 AD 00 00 8B 93 0C 5F 29 2C 78 98 90 00 17 [04:09:43]RAPDU: 8B 93 0C 5F 29 2C 78 98 90 00 [04:09:43]wFMCommunicate OK [04:09:43]SAM_PROTO_SignData done [04:09:43]FM_MakeSignedData done [04:09:43]CreateOFDProtocolMessage [04:09:43]wFMCommunicate request_size=4 [04:09:43]MH_SAM_APDU [04:09:43]CAPDU: 80 11 00 00 [04:09:43]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [04:09:43]Write i2c OK [04:09:43]MH_I2C_Read... [04:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:43]Read from MH i2c: E2 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 17 00 [04:09:43]MH_I2C_Read... [04:09:43]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 81 [04:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:09:44]wFMCommunicate OK [04:09:44]CreateOFDProtocolMessage done [04:09:44]OFDSenderStorePacket 178579 [04:09:44]StoreOFDPacket docnum=178579 [04:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 85 3D 07 01 0F 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 87 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 B9 02 00 35 04 06 00 39 4C 5A 20 D7 36 8B 93 0C 5F 29 2C 78 98 [04:09:44]CheckFolder [04:09:44]dirname=/storage/ofd_packets [04:09:44]CheckFolder done [04:09:44]ProducePacketName [04:09:44]name=ofd_packets/00178579 [04:09:44]NVStorageSaveData ofd_packets/00178579 [04:09:44]File name is /storage/ofd_packets/00178579 [04:09:44]Write 301 bytes [04:09:44]NVStorageSaveData done [04:09:44]OFDSenderStorePacket done [04:09:44]KKMCreateOFDPacket done [04:09:44]NVStorageSaveData kkm_last_timestamp [04:09:44]File name is /storage/kkm_last_timestamp [04:09:44]Write 4 bytes [04:09:44]NVStorageSaveData done [04:09:44]ExternCall_PrintAddStr [04:09:44]wPrintStart [04:09:44]Write to MH i2c: 01 00 00 AF 00 AF [04:09:44]Write i2c OK [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: 01 [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: 01 07 00 [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [04:09:44]RasterBufferAndPrint [04:09:44]line Счет N : (1)293974 [04:09:44]line ИНН: 02508201610067 [04:09:44]line Контрольно-Кассовый Чек [04:09:44]line ПРОДАЖА [04:09:44]line ТРК (МРК, ГНК) : 32 [04:09:44]line Товар: 2710124130 [04:09:44]line Аи-92-К-5 [04:09:44]line 4.430 * 67.80 [04:09:44]line = 300.35 [04:09:44]line НДС 12% НСП 1% [04:09:44]line > о реализуемом товаре [04:09:44]line ОКРУГЛЕНИЕ: -0.35 [04:09:44]line ИТОГО: 300.00 [04:09:44]line Внесено: 300.00 [04:09:44]line СДАЧА: 0.00 [04:09:44]line НСП 1% : 2.66 [04:09:44]line НДС 12% : 31.90 [04:09:44]line Наличными: 300.00 [04:09:44]line Безнал.: 0.00 [04:09:44]line Место: АЗС № 130 "Партнер Нефть" [04:09:44]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:09:44]line СНО: Общий режим [04:09:44]line Чек 39 23.08.2024 04:09 [04:09:44]line Смена: 470 ФФД: 1.0 [04:09:44]line ЗНМ: 0300000071 [04:09:44]line РНМ: 0000000000092561 [04:09:44]line Версия ККМ: 001 [04:09:44]line ФМ: 0000000000871778 [04:09:44]line ФД: 178579 [04:09:44]line ФПД: 63000092399414 [04:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T040943&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178579&fm=63000092399414&tin=02508201610067®Number=0000000000092561&sum=30000 [04:09:44]OFD Sender: Processing packet 178579 [packets to send 497, broken 496] [04:09:44]ProducePacketName [04:09:44]name=ofd_packets/00178579 [04:09:44]OFD Sender: To server: pG, [04:09:44]CommunicateWithHost lk.salyk.kg:30040 [04:09:44]ConnectInit lk.salyk.kg [04:09:44]written 0, free lines is 4095 [04:09:44]Write to MH i2c: 01 00 00 DA 00 DA [04:09:44]Write i2c OK [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: 01 [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: 01 07 00 [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 C4 0C B1 [04:09:44]RasterBufferAndPrint [04:09:44]line [04:09:44]line [04:09:44]line [04:09:44]line [04:09:44]line [04:09:44]written 0, free lines is 3295 [04:09:44]MH_Cut [04:09:44]Write to MH i2c: D1 01 00 E1 00 01 B3 [04:09:44]Write i2c OK [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: D1 [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: D1 01 00 [04:09:44]MH_I2C_Read... [04:09:44]Read from MH i2c: D1 01 00 E1 00 00 B2 [04:09:44]Write to MH i2c: 01 00 00 E2 00 E2 [04:09:44]Write i2c OK [04:09:44]MH_I2C_Read... [04:09:44]Connected sock=10 [04: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 31 37 37 38 0F 01 00 00 85 3D 07 01 0F 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 87 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 93 B9 02 00 35 04 06 00 39 4C 5A 20 D7 36 8B 93 0C 5F 29 2C 78 98 [04:09:45]*** Cut start [04:09:45]*** Partial cut [04:09:45]*** CUTSNS_PIN = 1 [04:09:45]*** CUTSNS_PIN = 0 [04:09:45]*** Brake cut motor [04:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EF 10 47 00 9B 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 31 37 37 38 10 04 04 00 93 B9 02 00 F4 03 04 00 30 B7 C7 66 B6 04 01 00 00 B1 76 B0 D3 1E B4 FC 93 [04:09:45]CommunicateWithHost err = 0 [04:09:45]CheckOFDResponse [04:09:45]1017 (14) - 77093643461234 [04:09:45]1041 (16) - 0000000000871778 [04:09:45]1040 (4) - 178579 [04:09:45]1012 (4) - 22.08.2024 22:09 [04:09:45]1206 (1) - 0 [04:09:45]OFD Sender: Remove packet 178579 [04:09:45]ProducePacketName [04:09:45]name=ofd_packets/00178579 [04:09:45]NVStorageDeleteData [04:09:45]Read from MH i2c: 01 [04:09:45]MH_I2C_Read... [04:09:45]*** Stop cut motor [04:09:45]*** Cut end [04:09:45]Read from MH i2c: 01 07 00 [04:09:45]MH_I2C_Read... [04:09:45]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [04:09:45]process_action close_receipt done [04:09:45]requested_data is exist [04:09:45]produce_requested_data [04:09:45]requested_item fm.sn is exist - process it [04:09:45]wFMCommunicate request_size=4 [04:09:45]MH_SAM_APDU [04:09:45]CAPDU: 80 11 00 00 [04:09:45]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [04:09:45]Write i2c OK [04:09:45]MH_I2C_Read... [04:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:45]Read from MH i2c: E2 [04:09:45]MH_I2C_Read... [04:09:45]Read from MH i2c: E2 17 00 [04:09:45]MH_I2C_Read... [04:09:45]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B6 [04:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:09:46]wFMCommunicate OK [04:09:46]requested_item fd.num is exist - process it [04:09:46]SAM_PROTO_GetFieldsCounters [04:09:46]wFMCommunicate request_size=4 [04:09:46]MH_SAM_APDU [04:09:46]CAPDU: 80 13 00 00 [04:09:46]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [04:09:46]Write i2c OK [04:09:46]MH_I2C_Read... [04:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:09:46]Read from MH i2c: E2 [04:09:46]MH_I2C_Read... [04:09:46]Read from MH i2c: E2 62 00 [04:09:46]MH_I2C_Read... [04:09:46]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 93 B9 02 00 0E 04 04 00 D6 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 1F [04:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 93 B9 02 00 0E 04 04 00 D6 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 [04:09:46]wFMCommunicate OK [04:09:46]SAM_PROTO_GetFieldsCounters done [04:09:46]requested_item shift.num is exist - process it [04:09:46]requested_item shift.opened is exist - process it [04:09:46]req_shift_opened [04:09:46]FM_GetShiftState [04:09:46]SAM_PROTO_GetShiftState [04:09:46]wFMCommunicate request_size=4 [04:09:46]MH_SAM_APDU [04:09:46]CAPDU: 80 13 01 00 [04:09:46]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [04:09:46]Write i2c OK [04:09:46]MH_I2C_Read... [04:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:46]Read from MH i2c: E2 [04:09:46]MH_I2C_Read... [04:09:46]Read from MH i2c: E2 0E 00 [04:09:46]MH_I2C_Read... [04:09:46]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 39 [04:09:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:09:46]wFMCommunicate OK [04:09:46]SAM_PROTO_GetShiftState done [04:09:46]FM_GetShiftState done [04:09:46]req_shift_opened done [04:09:46]requested_item shift.open_date is exist - process it [04:09:46]req_shift_open_date [04:09:46]req_shift_open_date done [04:09:46]produce_requested_data done [04:09:46]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178579,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:09:46]process_action_free close_receipt [04:09:46]json_value_free [04:09:46]json_value_free done [04:09:46]process_json_proto returns [04:09:46]Send response to host [04:09:46]OFD Sender: No OFD packet to send [04:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178579,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:09:46]free response buf [04:09:46]execute_script done [04:09:46]execute_script returns [04:09:46]free content buf [04:09:46]Sock 9.Close socket [04:09:46]Sock 9.Thread stoped [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:07]accept exits with 7 [04:10:07]New connection [04:10:07]New thread 3067198820 created [04:10:07]Thread 3067342180 joined [04:10:07]Waiting for new connection... [04:10:07] Sock 7.Parse request [04:10:07]Sock 7.Check first char [04:10:07]Sock 7.First char is OK [04:10:07]request: POST /json_proto HTTP/1.0 [04:10:07]Method: POST [04:10:07]URL: /json_proto [04:10:07]Method is POST - this is cgi request [04:10:07]url: /json_proto [04:10:07]query_string will be loaded in cgi processing [04:10:07]execute_cgi json_proto POST (null) [04:10:07]execute_cgi path=json_proto method=POST [04:10:07]POST find Content-Length [04:10:07]Host: 172.17.44.131:8080 [04:10:07]Content-Length: 677 [04:10:07]Content-Type: application/json [04:10:07] [04:10:07]POST finish read [04:10:07]Found Content-Length = 677 [04:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:10:07]execute_script... [04:10:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:10:07]POST & json_proto [04:10:07]process_json_proto [04:10:07]json parsed OK: [04:10:07]protocol is kg_v1.0 [04:10:07]action value=close_receipt [04:10:07]process_action close_receipt [04:10:07]cmd_close_receipt [04:10:07]MH_GetDate [04:10:07]Write to MH i2c: F0 00 00 E6 00 D5 [04:10:07]Write i2c OK [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: F0 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: F0 09 00 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: F0 09 00 E6 00 00 A0 0B C8 66 4F 53 BE 66 7D [04:10:07]GetLastDocTimeStamp 1724386183 [04:10:07]current date 1724386208 [04:10:07]FM_GetShiftState [04:10:07]SAM_PROTO_GetShiftState [04:10:07]wFMCommunicate request_size=4 [04:10:07]MH_SAM_APDU [04:10:07]CAPDU: 80 13 01 00 [04:10:07]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [04:10:07]Write i2c OK [04:10:07]MH_I2C_Read... [04:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:07]Read from MH i2c: E2 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: E2 0E 00 [04:10:07]MH_I2C_Read... [04:10:07]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3B [04:10:07]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:10:07]wFMCommunicate OK [04:10:07]SAM_PROTO_GetShiftState done [04:10:07]FM_GetShiftState done [04:10:07]opened in 1724371660 [04:10:07]opened+sec_in_day 1724458060 [04:10:07]quantity*price = 50010 [04:10:07]sum+1 = 50012 [04:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 40 23.08.2024 04:10 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178580 ФПД: 92045936971049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T041008&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178580&fm=92045936971049&tin=02508201610067®Number=0000000000092561&sum=50000 [04:10:08]StoreToDocumentArchive [04:10:08]shift 470 fd 178580 [04:10:08]save to /storage/0470/doc_00178580 [04:10:08]save last doc name /storage/0470/doc_00178580 to /storage/kkm_last_doc_name [04:10:08]save OK [04:10:08]Clear old archive folders... [04:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:10:08]tlvbuf is 0072C6D0 [04:10:08]SAM_PROTO_ClearQueue [04:10:08]wFMCommunicate request_size=4 [04:10:08]MH_SAM_APDU [04:10:08]CAPDU: 80 09 00 00 [04:10:08]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [04:10:08]Write i2c OK [04:10:08]MH_I2C_Read... [04:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:10:08]Read from MH i2c: E2 [04:10:08]MH_I2C_Read... [04:10:08]Read from MH i2c: E2 03 00 [04:10:08]MH_I2C_Read... [04:10:08]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [04:10:08]RAPDU: 90 00 [04:10:08]wFMCommunicate OK [04:10:08]SAM_PROTO_ClearQueue done [04:10:08]KKMCreateOFDPacket [04:10:08]OFDProtocolAddRootSTLVToBuf [04:10:08]FM_MakeSignedData [04:10:08]FM_MakeSignedData [04:10:08]SAM_PROTO_SignData [04:10:08]wFMCommunicate request_size=4 [04:10:08]MH_SAM_APDU [04:10:08]CAPDU: 80 0D 01 02 [04:10:08]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [04:10:08]Write i2c OK [04:10:08]MH_I2C_Read... [04:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:10:08]Read from MH i2c: E2 [04:10:08]MH_I2C_Read... [04:10:08]Read from MH i2c: E2 03 00 [04:10:08]MH_I2C_Read... [04:10:08]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [04:10:08]RAPDU: 90 00 [04:10:08]wFMCommunicate OK [04:10:08]wFMCommunicate request_size=255 [04:10:08]MH_SAM_APDU [04:10: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 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A0 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 B9 02 00 35 04 06 00 53 [04:10:08]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A0 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 B9 02 00 35 04 06 00 53 00 00 53 [04:10:08]Write i2c OK [04:10:08]MH_I2C_Read... [04:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:08]Read from MH i2c: E2 [04:10:08]MH_I2C_Read... [04:10:08]Read from MH i2c: E2 03 00 [04:10:08]MH_I2C_Read... [04:10:08]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [04:10:08]RAPDU: 90 00 [04:10:08]wFMCommunicate OK [04:10:08]wFMCommunicate request_size=10 [04:10:08]MH_SAM_APDU [04:10:08]CAPDU: 80 0D 02 02 05 B7 1D 60 4D 29 [04:10:08]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 B7 1D 60 4D 29 00 00 25 [04:10:09]Write i2c OK [04:10:09]MH_I2C_Read... [04:10:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:09]Read from MH i2c: E2 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 03 00 [04:10:09]MH_I2C_Read... [04:10:09]Read from MH i2c: E2 03 00 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 638854+1723749199=1724388053 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 D6 12 C8 66 4F 53 BE 66 DB [04:40:54]Current date/time: 23.08.2024 04:40 [04:40:54]FM_Init [04:40:54]wFMConnect [04:40:54]MH_SAM_On [04:40:54]Write to MH i2c: E0 00 00 08 00 E7 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_init finished! [04:40:54]*** atr: [04:40:54]*** 0F 3B D5 18 FF 81 91 FE [04:40:54]*** 1F C3 80 73 C8 21 10 0A [04:40:54]*** 00 00 00 00 00 00 00 00 [04:40:54]*** 00 00 00 00 00 00 00 00 [04:40:54]*** 00 00 00 00 00 00 00 00 [04:40:54]*** 00 00 00 00 00 00 00 00 [04:40:54]Read from MH i2c: *** 00 00 00 00 00 00 00 00 [04:40:54]E0 [04:40:54]MH_I2C_Read... [04:40:54]*** 00 00 00 00 00 00 00 00 [04:40:54]Read from MH i2c: E0 10 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [04:40:54]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [04:40:54]wFMCommunicate request_size=10 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [04:40:54]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [04:40:54]Read from MH i2c: E2 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [04:40:54]RAPDU: 90 00 [04:40:54]wFMCommunicate OK [04:40:54]wFMCommunicate request_size=4 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 80 11 00 00 [04:40:54]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:54]Read from MH i2c: E2 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 17 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [04:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:40:54]wFMCommunicate OK [04:40:54]Detected FM SN is 0000000000871778 [04:40:54]Stored FM SN is 0000000000871778 [04:40:54]wFMCommunicate request_size=9 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 80 16 00 00 04 D9 BA 00 00 [04:40:54]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [04:40:54]Read from MH i2c: E2 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [04:40:54]RAPDU: 90 00 [04:40:54]wFMCommunicate OK [04:40:54]FM PIN OK [04:40:54]wFMCommunicate request_size=8 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 80 14 04 00 03 02 00 01 [04:40:54]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [04:40:54]Read from MH i2c: E2 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [04:40:54]RAPDU: 90 00 [04:40:54]wFMCommunicate OK [04:40:54]wFMCommunicate request_size=13 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [04:40:54]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [04:40:54]Read from MH i2c: E2 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [04:40:54]RAPDU: 90 00 [04:40:54]wFMCommunicate OK [04:40:54]wFMCommunicate request_size=4 [04:40:54]MH_SAM_APDU [04:40:54]CAPDU: 80 11 00 00 [04:40:54]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:54]Read from MH i2c: E2 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 17 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [04:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:40:54]wFMCommunicate OK [04:40:54]DocumentArchiveInit [04:40:54]Start Httpd... [04:40:54]Httpd thread 3067817316 created [04:40:54]Write to MH i2c: 01 00 00 0F 00 0F [04:40:54]Write i2c OK [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: 01 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: 01 07 00 [04:40:54]MH_I2C_Read... [04:40:54]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [04:40:54]MH Int Process started [04:40:54]Allocated Socket 8 [04:40:54]Bind OK [04:40:54]Listen OK [04:40:54]httpd running on port 8080 [04:40:54]Waiting for new connection... [04:40:55]OFD Sender: Processing packet 178580 [packets to send 497, broken 496] [04:40:55]ProducePacketName [04:40:55]name=ofd_packets/00178580 [04:40:55]OFD Sender: To server: pG, [04:40:55]CommunicateWithHost lk.salyk.kg:30040 [04:40:55]ConnectInit lk.salyk.kg [04:40:56]Connected sock=6 [04:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 62 6E 07 01 C8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 A0 0B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 94 B9 02 00 35 04 06 00 53 B7 1D 60 4D 29 40 5E 95 AA 61 9A CD 2D [04:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 5F 53 47 00 88 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 31 37 37 38 10 04 04 00 94 B9 02 00 F4 03 04 00 7E BE C7 66 B6 04 01 00 00 35 A5 58 2B D9 A8 BB 48 [04:40:56]CommunicateWithHost err = 0 [04:40:56]CheckOFDResponse [04:40:56]1017 (14) - 77093643461234 [04:40:56]1041 (16) - 0000000000871778 [04:40:56]1040 (4) - 178580 [04:40:56]1012 (4) - 22.08.2024 22:41 [04:40:56]1206 (1) - 0 [04:40:56]OFD Sender: Remove packet 178580 [04:40:56]ProducePacketName [04:40:56]name=ofd_packets/00178580 [04:40:56]NVStorageDeleteData [04:40:57]OFD Sender: No OFD packet to send [04:40:58]accept exits with 9 [04:40:58]New connection [04:40:58]New thread 3067530596 created [04:40:58]Waiting for new connection... [04:40:58] Sock 9.Parse request [04:40:58]Sock 9.Check first char [04:40:58]Sock 9.First char is OK [04:40:58]request: POST /json_proto HTTP/1.0 [04:40:58]Method: POST [04:40:58]URL: /json_proto [04:40:58]Method is POST - this is cgi request [04:40:58]url: /json_proto [04:40:58]query_string will be loaded in cgi processing [04:40:58]execute_cgi json_proto POST (null) [04:40:58]execute_cgi path=json_proto method=POST [04:40:58]POST find Content-Length [04:40:58]Host: 172.17.44.131:8080 [04:40:58]Content-Length: 215 [04:40:58]Content-Type: application/json [04:40:58] [04:40:58]POST finish read [04:40:58]Found Content-Length = 215 [04:40:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:58]execute_script... [04:40:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:40:58]POST & json_proto [04:40:58]process_json_proto [04:40:58]json parsed OK: [04:40:58]protocol is kg_v1.0 [04:40:58]action value=get_value [04:40:58]process_action get_value [04:40:58]cmd_get_value [04:40:58]process_action get_value done [04:40:58]requested_data is exist [04:40:58]produce_requested_data [04:40:58]requested_item kkm.sn is exist - process it [04:40:58]requested_item kkm.ver is exist - process it [04:40:58]requested_item fm.sn is exist - process it [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 11 00 00 [04:40:58]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 17 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [04:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:40:58]wFMCommunicate OK [04:40:58]requested_item fd.num is exist - process it [04:40:58]SAM_PROTO_GetFieldsCounters [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 13 00 00 [04:40:58]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 62 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 94 B9 02 00 0E 04 04 00 D6 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 50 [04:40: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 94 B9 02 00 0E 04 04 00 D6 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 [04:40:58]wFMCommunicate OK [04:40:58]SAM_PROTO_GetFieldsCounters done [04:40:58]requested_item shift.num is exist - process it [04:40:58]requested_item shift.opened is exist - process it [04:40:58]req_shift_opened [04:40:58]FM_GetShiftState [04:40:58]SAM_PROTO_GetShiftState [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 13 01 00 [04:40:58]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [04:40:58]Write i2c OK [04:40:58]MH_I2C_Read... [04:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:58]Read from MH i2c: E2 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 0E 00 [04:40:58]MH_I2C_Read... [04:40:58]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [04:40:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:40:58]wFMCommunicate OK [04:40:58]SAM_PROTO_GetShiftState done [04:40:58]FM_GetShiftState done [04:40:58]req_shift_opened done [04:40:58]requested_item shift.open_date is exist - process it [04:40:58]req_shift_open_date [04:40:58]req_shift_open_date done [04:40:58]produce_requested_data done [04:40:58]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178580,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:40:58]process_action_free get_value [04:40:58]json_value_free [04:40:58]json_value_free done [04:40:58]process_json_proto returns [04:40:58]Send response to host [04:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178580,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:40:58]free response buf [04:40:58]execute_script done [04:40:58]execute_script returns [04:40:58]free content buf [04:40:58]Sock 9.Close socket [04:40:58]Sock 9.Thread stoped [04:40:58]accept exits with 10 [04:40:58]New connection [04:40:58]New thread 3067387236 created [04:40:58]Thread 3067530596 joined [04:40:58]Waiting for new connection... [04:40:58] Sock 10.Parse request [04:40:58]Sock 10.Check first char [04:40:58]Sock 10.First char is OK [04:40:58]request: POST /json_proto HTTP/1.0 [04:40:58]Method: POST [04:40:58]URL: /json_proto [04:40:58]Method is POST - this is cgi request [04:40:58]url: /json_proto [04:40:58]query_string will be loaded in cgi processing [04:40:58]execute_cgi json_proto POST (null) [04:40:58]execute_cgi path=json_proto method=POST [04:40:58]POST find Content-Length [04:40:58]Host: 172.17.44.131:8080 [04:40:58]Content-Length: 331 [04:40:58]Content-Type: application/json [04:40:58] [04:40:58]POST finish read [04:40:58]Found Content-Length = 331 [04:40: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" ] } } [04:40:58]execute_script... [04:40: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" ] } } [04:40:58]POST & json_proto [04:40:58]process_json_proto [04:40:58]json parsed OK: [04:40:58]protocol is kg_v1.0 [04:40:58]action value=get_value [04:40:58]process_action get_value [04:40:58]cmd_get_value [04:40:58]process_action get_value done [04:40:58]requested_data is exist [04:40:58]produce_requested_data [04:40:58]requested_item fm.sale.total is exist - process it [04:40:58]SAM_PROTO_GetFMData [04:40:58]wFMCommunicate request_size=4 [04:40:58]MH_SAM_APDU [04:40:58]CAPDU: 80 13 03 00 [04:40:58]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [04:40:59]Write i2c OK [04:40:59]MH_I2C_Read... [04:40:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:40:59]Read from MH i2c: E2 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: E2 FD 00 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 E8 B5 02 00 69 04 A4 00 6F 04 04 00 52 B4 02 00 B1 04 05 00 67 6C 4A 2A 05 70 04 05 00 EF B0 14 14 04 72 04 05 00 78 BB 35 16 01 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 80 FF 73 8C 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 FD 22 B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 F5 [04:40:59]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 E8 B5 02 00 69 04 A4 00 6F 04 04 00 52 B4 02 00 B1 04 05 00 67 6C 4A 2A 05 70 04 05 00 EF B0 14 14 04 72 04 05 00 78 BB 35 16 01 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 80 FF 73 8C 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 FD 22 B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 [04:40:59]wFMCommunicate OK [04:40:59]wFMCommunicate request_size=4 [04:40:59]MH_SAM_APDU [04:40:59]CAPDU: 80 17 00 00 [04:40:59]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [04:40:59]Write i2c OK [04:40:59]MH_I2C_Read... [04:40:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:40:59]Read from MH i2c: E2 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: E2 FD 00 [04:40:59]MH_I2C_Read... [04:40:59]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [04:40:59]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:40:59]wFMCommunicate OK [04:40:59]wFMCommunicate request_size=4 [04:40:59]MH_SAM_APDU [04:40:59]CAPDU: 80 17 00 00 [04:40:59]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [04:40:59]Write i2c OK [04:40:59]MH_I2C_Read... [04:41:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:41:00]Read from MH i2c: E2 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 FD 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [04:41:00]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:41:00]wFMCommunicate OK [04:41:00]wFMCommunicate request_size=4 [04:41:00]MH_SAM_APDU [04:41:00]CAPDU: 80 17 00 00 [04:41:00]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [04:41:00]Write i2c OK [04:41:00]MH_I2C_Read... [04:41:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:41:00]Read from MH i2c: E2 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 FD 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [04:41:00]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:41:00]wFMCommunicate OK [04:41:00]wFMCommunicate request_size=4 [04:41:00]MH_SAM_APDU [04:41:00]CAPDU: 80 17 00 00 [04:41:00]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [04:41:00]Write i2c OK [04:41:00]MH_I2C_Read... [04:41:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [04:41:00]Read from MH i2c: E2 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 E3 00 [04:41:00]MH_I2C_Read... [04:41:00]Read from MH i2c: E2 E3 00 17 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 76 [04:41:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:41:00]wFMCommunicate OK [04:41:00]SAM_PROTO_GetFMData done [04:41:00]requested_item fm.sale_refund.total is exist - process it [04:41:00]requested_item fm.buy.total is exist - process it [04:41:00]requested_item shift.sale.total is exist - process it [04:41:00]SAM_PROTO_GetShiftData [04:41:00]wFMCommunicate request_size=4 [04:41:00]MH_SAM_APDU [04:41:00]CAPDU: 80 13 02 00 [04:41:00]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [04:41:00]Write i2c OK [04:41:00]MH_I2C_Read... [04:41:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:41:01]Read from MH i2c: E2 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: E2 FD 00 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 28 00 00 00 69 04 9B 00 6F 04 04 00 28 00 00 00 B1 04 03 00 D6 AF 55 70 04 03 00 0C 79 2A 72 04 03 00 CA 36 2B 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 E4 19 09 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 28 C2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [04:41:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 28 00 00 00 69 04 9B 00 6F 04 04 00 28 00 00 00 B1 04 03 00 D6 AF 55 70 04 03 00 0C 79 2A 72 04 03 00 CA 36 2B 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 E4 19 09 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 28 C2 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:41:01]wFMCommunicate OK [04:41:01]wFMCommunicate request_size=4 [04:41:01]MH_SAM_APDU [04:41:01]CAPDU: 80 17 00 00 [04:41:01]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [04:41:01]Write i2c OK [04:41:01]MH_I2C_Read... [04:41:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:41:01]Read from MH i2c: E2 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: E2 FD 00 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: E2 FD 00 19 00 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 BB [04:41:01]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 [04:41:01]wFMCommunicate OK [04:41:01]wFMCommunicate request_size=4 [04:41:01]MH_SAM_APDU [04:41:01]CAPDU: 80 17 00 00 [04:41:01]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [04:41:01]Write i2c OK [04:41:01]MH_I2C_Read... [04:41:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:41:01]Read from MH i2c: E2 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: E2 FD 00 [04:41:01]MH_I2C_Read... [04:41:01]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [04:41:01]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 [04:41:01]wFMCommunicate OK [04:41:01]wFMCommunicate request_size=4 [04:41:01]MH_SAM_APDU [04:41:01]CAPDU: 80 17 00 00 [04:41:01]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [04:41:01]Write i2c OK [04:41:01]MH_I2C_Read... [04:41:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:41:02]Read from MH i2c: E2 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 FD 00 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 FD 00 1B 00 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 0D [04:41:02]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 [04:41:02]wFMCommunicate OK [04:41:02]wFMCommunicate request_size=4 [04:41:02]MH_SAM_APDU [04:41:02]CAPDU: 80 17 00 00 [04:41:02]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [04:41:02]Write i2c OK [04:41:02]MH_I2C_Read... [04:41:02]OFD Sender: No OFD packet to send [04:41:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [04:41:02]Read from MH i2c: E2 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 CB 00 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 CB 00 1C 00 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 85 [04:41:02]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 [04:41:02]wFMCommunicate OK [04:41:02]SAM_PROTO_GetShiftData done [04:41:02]requested_item shift.sale.total_cash is exist - process it [04:41:02]requested_item shift.sale_refund.total is exist - process it [04:41:02]requested_item shift.sale_refund.total_cash is exist - process it [04:41:02]requested_item shift.buy.total is exist - process it [04:41:02]requested_item shift.buy.total_cash is exist - process it [04:41:02]produce_requested_data done [04:41:02]produce_requested_data return {"fm.sale.total":221843569.67,"fm.sale_refund.total":18116550.00,"fm.buy.total":0.00,"shift.sale.total":56155.74,"shift.sale.total_cash":27835.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} [04:41:02]process_action_free get_value [04:41:02]json_value_free [04:41:02]json_value_free done [04:41:02]process_json_proto returns [04:41:02]Send response to host [04:41:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":221843569.67,"fm.sale_refund.total":18116550.00,"fm.buy.total":0.00,"shift.sale.total":56155.74,"shift.sale.total_cash":27835.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}}} [04:41:02]free response buf [04:41:02]execute_script done [04:41:02]execute_script returns [04:41:02]free content buf [04:41:02]Sock 10.Close socket [04:41:02]Sock 10.Thread stoped [04:41:02]accept exits with 9 [04:41:02]New connection [04:41:02]New thread 3067530596 created [04:41:02]Thread 3067387236 joined [04:41:02]Waiting for new connection... [04:41:02] Sock 9.Parse request [04:41:02]Sock 9.Check first char [04:41:02]Sock 9.First char is OK [04:41:02]request: POST /json_proto HTTP/1.0 [04:41:02]Method: POST [04:41:02]URL: /json_proto [04:41:02]Method is POST - this is cgi request [04:41:02]url: /json_proto [04:41:02]query_string will be loaded in cgi processing [04:41:02]execute_cgi json_proto POST (null) [04:41:02]execute_cgi path=json_proto method=POST [04:41:02]POST find Content-Length [04:41:02]Host: 172.17.44.131:8080 [04:41:02]Content-Length: 800 [04:41:02]Content-Type: application/json [04:41:02] [04:41:02]POST finish read [04:41:02]Found Content-Length = 800 [04:41:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:02]execute_script... [04:41: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)293976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:41:02]POST & json_proto [04:41:02]process_json_proto [04:41:02]json parsed OK: [04:41:02]protocol is kg_v1.0 [04:41:02]action value=close_receipt [04:41:02]process_action close_receipt [04:41:02]cmd_close_receipt [04:41:02]MH_GetDate [04:41:02]Write to MH i2c: F0 00 00 1D 00 0C [04:41:02]Write i2c OK [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: F0 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: F0 09 00 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: F0 09 00 1D 00 00 DF 12 C8 66 4F 53 BE 66 FA [04:41:02]GetLastDocTimeStamp 1724386208 [04:41:02]current date 1724388063 [04:41:02]FM_GetShiftState [04:41:02]SAM_PROTO_GetShiftState [04:41:02]wFMCommunicate request_size=4 [04:41:02]MH_SAM_APDU [04:41:02]CAPDU: 80 13 01 00 [04:41:02]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [04:41:02]Write i2c OK [04:41:02]MH_I2C_Read... [04:41:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:02]Read from MH i2c: E2 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 0E 00 [04:41:02]MH_I2C_Read... [04:41:02]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [04:41:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:41:02]wFMCommunicate OK [04:41:02]SAM_PROTO_GetShiftState done [04:41:02]FM_GetShiftState done [04:41:02]opened in 1724371660 [04:41:02]opened+sec_in_day 1724458060 [04:41:02]quantity*price = 300075 [04:41:02]sum+1 = 300077 [04:41:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 41 23.08.2024 04:41 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178581 ФПД: 12548965475201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T044103&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178581&fm=12548965475201&tin=02508201610067®Number=0000000000092561&sum=300076 [04:41:03]StoreToDocumentArchive [04:41:03]shift 470 fd 178581 [04:41:03]save to /storage/0470/doc_00178581 [04:41:03]save last doc name /storage/0470/doc_00178581 to /storage/kkm_last_doc_name [04:41:03]save OK [04:41:03]Clear old archive folders... [04:41:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:41:03]tlvbuf is 001C86D0 [04:41:03]SAM_PROTO_ClearQueue [04:41:03]wFMCommunicate request_size=4 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 09 00 00 [04:41:03]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:41:03]Read from MH i2c: E2 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 [04:41:03]MH_I2C_Read... [04:41:03]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [04:41:03]RAPDU: 90 00 [04:41:03]wFMCommunicate OK [04:41:03]SAM_PROTO_ClearQueue done [04:41:03]KKMCreateOFDPacket [04:41:03]OFDProtocolAddRootSTLVToBuf [04:41:03]FM_MakeSignedData [04:41:03]FM_MakeSignedData [04:41:03]SAM_PROTO_SignData [04:41:03]wFMCommunicate request_size=4 [04:41:03]MH_SAM_APDU [04:41:03]CAPDU: 80 0D 01 02 [04:41:03]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [04:41:03]Write i2c OK [04:41:03]MH_I2C_Read... [04:41:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:41:04]Read from MH i2c: E2 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 03 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [04:41:04]RAPDU: 90 00 [04:41:04]wFMCommunicate OK [04:41:04]wFMCommunicate request_size=255 [04:41:04]MH_SAM_APDU [04:41:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 DF 12 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 B9 02 00 35 04 06 00 0B 69 C8 A1 [04:41:04]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 DF 12 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 B9 02 00 35 04 06 00 0B 69 C8 A1 00 00 50 [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:04]Read from MH i2c: E2 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 03 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [04:41:04]RAPDU: 90 00 [04:41:04]wFMCommunicate OK [04:41:04]wFMCommunicate request_size=7 [04:41:04]MH_SAM_APDU [04:41:04]CAPDU: 80 0D 02 02 02 23 81 [04:41:04]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 23 81 00 00 50 [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:41:04]Read from MH i2c: E2 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 03 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [04:41:04]RAPDU: 90 00 [04:41:04]wFMCommunicate OK [04:41:04]wFMCommunicate request_size=4 [04:41:04]MH_SAM_APDU [04:41:04]CAPDU: 80 0D 03 02 [04:41:04]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:41:04]Read from MH i2c: E2 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 0B 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 0B 00 2F 00 00 0E 16 38 5F 07 71 A9 C5 90 00 4C [04:41:04]RAPDU: 0E 16 38 5F 07 71 A9 C5 90 00 [04:41:04]wFMCommunicate OK [04:41:04]SAM_PROTO_SignData done [04:41:04]FM_MakeSignedData done [04:41:04]CreateOFDProtocolMessage [04:41:04]wFMCommunicate request_size=4 [04:41:04]MH_SAM_APDU [04:41:04]CAPDU: 80 11 00 00 [04:41:04]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:04]Read from MH i2c: E2 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 17 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [04:41:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:41:04]wFMCommunicate OK [04:41:04]CreateOFDProtocolMessage done [04:41:04]OFDSenderStorePacket 178581 [04:41:04]StoreOFDPacket docnum=178581 [04:41:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 5D 86 04 01 0B FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 DF 12 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 B9 02 00 35 04 06 00 0B 69 C8 A1 23 81 0E 16 38 5F 07 71 A9 C5 [04:41:04]CheckFolder [04:41:04]dirname=/storage/ofd_packets [04:41:04]CheckFolder done [04:41:04]ProducePacketName [04:41:04]name=ofd_packets/00178581 [04:41:04]NVStorageSaveData ofd_packets/00178581 [04:41:04]File name is /storage/ofd_packets/00178581 [04:41:04]Write 298 bytes [04:41:04]NVStorageSaveData done [04:41:04]OFDSenderStorePacket done [04:41:04]KKMCreateOFDPacket done [04:41:04]NVStorageSaveData kkm_last_timestamp [04:41:04]File name is /storage/kkm_last_timestamp [04:41:04]Write 4 bytes [04:41:04]NVStorageSaveData done [04:41:04]ExternCall_PrintAddStr [04:41:04]wPrintStart [04:41:04]Write to MH i2c: 01 00 00 31 00 31 [04:41:04]Write i2c OK [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: 01 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: 01 07 00 [04:41:04]MH_I2C_Read... [04:41:04]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [04:41:04]RasterBufferAndPrint [04:41:04]line Счет N : (1)293976 [04:41:04]line ИНН: 02508201610067 [04:41:04]line Контрольно-Кассовый Чек [04:41:04]line ПРОДАЖА [04:41:04]line ТРК (МРК, ГНК) : 11 [04:41:04]line Товар: 2710194800 [04:41:04]line ДТ-К-5 [04:41:04]line 39.380 * 76.20 [04:41:04]line = 3000.76 [04:41:04]line НДС 12% НСП 1% [04:41:04]line > о реализуемом товаре [04:41:04]line ИТОГО: 3000.76 [04:41:04]line НСП 1% : 26.55 [04:41:04]line НДС 12% : 318.66 [04:41:04]line Наличными: 0.00 [04:41:04]line Безнал.: 3000.76 [04:41:04]line Место: АЗС № 130 "Партнер Нефть" [04:41:04]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:41:04]line СНО: Общий режим [04:41:04]line Чек 41 23.08.2024 04:41 [04:41:04]line Смена: 470 ФФД: 1.0 [04:41:04]line ЗНМ: 0300000071 [04:41:04]line РНМ: 0000000000092561 [04:41:04]line Версия ККМ: 001 [04:41:04]line Платежная система: O! деньги [04:41:04]line ФМ: 0000000000871778 [04:41:04]line ФД: 178581 [04:41:04]line ФПД: 12548965475201 [04:41:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T044103&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178581&fm=12548965475201&tin=02508201610067®Number=0000000000092561&sum=300076 [04:41:04]written 0, free lines is 4095 [04:41:05]OFD Sender: Processing packet 178581 [packets to send 497, broken 496] [04:41:05]ProducePacketName [04:41:05]name=ofd_packets/00178581 [04:41:05]OFD Sender: To server: pG, [04:41:05]CommunicateWithHost lk.salyk.kg:30040 [04:41:05]ConnectInit lk.salyk.kg [04:41:05]Write to MH i2c: 01 00 00 5B 00 5B [04:41:05]Write i2c OK [04:41:05]MH_I2C_Read... [04:41:05]Read from MH i2c: 01 [04:41:05]MH_I2C_Read... [04:41:05]Read from MH i2c: 01 07 00 [04:41:05]MH_I2C_Read... [04:41:05]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E1 0C 4F [04:41:05]RasterBufferAndPrint [04:41:05]line [04:41:05]line [04:41:05]line [04:41:05]line [04:41:05]line [04:41:05]written 0, free lines is 3321 [04:41:05]MH_Cut [04:41:05]Write to MH i2c: D1 01 00 62 00 01 34 [04:41:05]Write i2c OK [04:41:05]MH_I2C_Read... [04:41:05]Read from MH i2c: D1 [04:41:05]MH_I2C_Read... [04:41:05]Read from MH i2c: D1 01 00 [04:41:05]MH_I2C_Read... [04:41:05]Read from MH i2c: D1 01 00 62 00 00 33 [04:41:05]Write to MH i2c: 01 00 00 63 00 63 [04:41:05]Write i2c OK [04:41:05]MH_I2C_Read... [04:41:06]*** Cut start [04:41:06]*** Partial cut [04:41:06]*** CUTSNS_PIN = 1 [04:41:06]Connected sock=10 [04:41:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 5D 86 04 01 0B FB 5A 03 01 00 03 *** CUTSNS_PIN = 0 [04:41:06]00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 DF 12 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 95 B9 02 00 35 04 06 00 0B 69 C8 A1 23 81 0E 16 38 5F 07 71 A9 C5 [04:41:06]*** Brake cut motor [04:41:06]Read from MH i2c: 01 *** Stop cut motor [04:41:06] [04:41:06]*** Cut end [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: 01 07 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [04:41:06]process_action close_receipt done [04:41:06]requested_data is exist [04:41:06]produce_requested_data [04:41:06]requested_item fm.sn is exist - process it [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 11 00 00 [04:41:06]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 17 00 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [04:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:41:06]wFMCommunicate OK [04:41:06]requested_item fd.num is exist - process it [04:41:06]SAM_PROTO_GetFieldsCounters [04:41:06]wFMCommunicate request_size=4 [04:41:06]MH_SAM_APDU [04:41:06]CAPDU: 80 13 00 00 [04:41:06]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [04:41:06]Write i2c OK [04:41:06]MH_I2C_Read... [04:41:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:41:06]Read from MH i2c: E2 [04:41:06]MH_I2C_Read... [04:41:06]Read from MH i2c: E2 62 00 [04:41:06]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 95 B9 02 00 0E 04 04 00 D6 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 A8 [04:41: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 95 B9 02 00 0E 04 04 00 D6 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 [04:41:07]wFMCommunicate OK [04:41:07]SAM_PROTO_GetFieldsCounters done [04:41:07]requested_item shift.num is exist - process it [04:41:07]requested_item shift.opened is exist - process it [04:41:07]req_shift_opened [04:41:07]FM_GetShiftState [04:41:07]SAM_PROTO_GetShiftState [04:41:07]wFMCommunicate request_size=4 [04:41:07]MH_SAM_APDU [04:41:07]CAPDU: 80 13 01 00 [04:41:07]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [04:41:07]Write i2c OK [04:41:07]MH_I2C_Read... [04:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:41:07]Read from MH i2c: E2 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 0E 00 [04:41:07]MH_I2C_Read... [04:41:07]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BA [04:41:07]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:41:07]wFMCommunicate OK [04:41:07]SAM_PROTO_GetShiftState done [04:41:07]FM_GetShiftState done [04:41:07]req_shift_opened done [04:41:07]requested_item shift.open_date is exist - process it [04:41:07]req_shift_open_date [04:41:07]req_shift_open_date done [04:41:07]produce_requested_data done [04:41:07]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178581,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:41:07]process_action_free close_receipt [04:41:07]json_value_free [04:41:07]json_value_free done [04:41:07]process_json_proto returns [04:41:07]Send response to host [04:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178581,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:41:07]free response buf [04:41:07]execute_script done [04:41:07]execute_script returns [04:41:07]free content buf [04:41:07]Sock 9.Close socket [04:41:07]Sock 9.Thread stoped [04:41:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D4 B2 47 00 B0 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 31 37 37 38 10 04 04 00 95 B9 02 00 F4 03 04 00 89 BE C7 66 B6 04 01 00 00 FB F2 B1 14 2E B6 1B A9 [04:41:07]CommunicateWithHost err = 0 [04:41:07]CheckOFDResponse [04:41:07]1017 (14) - 77093643461234 [04:41:07]1041 (16) - 0000000000871778 [04:41:07]1040 (4) - 178581 [04:41:07]1012 (4) - 22.08.2024 22:41 [04:41:07]1206 (1) - 0 [04:41:07]OFD Sender: Remove packet 178581 [04:41:07]ProducePacketName [04:41:07]name=ofd_packets/00178581 [04:41:07]NVStorageDeleteData [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:34]recv_with_timeout no data received [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:49]recv_with_timeout no data received [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:45]accept exits with 6 [04:44:45]New connection [04:44:45]New thread 3067387236 created [04:44:45]Thread 3067530596 joined [04:44:45]Waiting for new connection... [04:44:45] Sock 6.Parse request [04:44:45]Sock 6.Check first char [04:44:45]Sock 6.First char is OK [04:44:45]request: POST /json_proto HTTP/1.0 [04:44:45]Method: POST [04:44:45]URL: /json_proto [04:44:45]Method is POST - this is cgi request [04:44:45]url: /json_proto [04:44:45]query_string will be loaded in cgi processing [04:44:45]execute_cgi json_proto POST (null) [04:44:45]execute_cgi path=json_proto method=POST [04:44:45]POST find Content-Length [04:44:45]Host: 172.17.44.131:8080 [04:44:45]Content-Length: 678 [04:44:45]Content-Type: application/json [04:44:45] [04:44:45]POST finish read [04:44:45]Found Content-Length = 678 [04:44:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293979", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [04:44:45]execute_script... [04:44: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)293979", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [04:44:45]POST & json_proto [04:44:45]process_json_proto [04:44:45]json parsed OK: [04:44:45]protocol is kg_v1.0 [04:44:45]action value=close_receipt [04:44:45]process_action close_receipt [04:44:45]cmd_close_receipt [04:44:45]MH_GetDate [04:44:45]Write to MH i2c: F0 00 00 67 00 56 [04:44:45]Write i2c OK [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: F0 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: F0 09 00 [04:44:45]MH_I2C_Read... [04:44:45]Read from MH i2c: F0 09 00 67 00 00 BE 13 C8 66 4F 53 BE 66 24 [04:44:45]GetLastDocTimeStamp 1724388063 [04:44:45]current date 1724388286 [04:44:45]FM_GetShiftState [04:44:45]SAM_PROTO_GetShiftState [04:44:45]wFMCommunicate request_size=4 [04:44:45]MH_SAM_APDU [04:44:45]CAPDU: 80 13 01 00 [04:44:45]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [04:44:45]Write i2c OK [04:44:45]MH_I2C_Read... [04:44:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:46]Read from MH i2c: E2 [04:44:46]MH_I2C_Read... [04:44:46]Read from MH i2c: E2 0E 00 [04:44:46]MH_I2C_Read... [04:44:46]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BC [04:44:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:44:46]wFMCommunicate OK [04:44:46]SAM_PROTO_GetShiftState done [04:44:46]FM_GetShiftState done [04:44:46]opened in 1724371660 [04:44:46]opened+sec_in_day 1724458060 [04:44:46]quantity*price = 70037 [04:44:46]sum+1 = 70038 [04:44:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 42 23.08.2024 04:44 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178582 ФПД: 13477338913319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T044446&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178582&fm=13477338913319&tin=02508201610067®Number=0000000000092561&sum=70000 [04:44:47]StoreToDocumentArchive [04:44:47]shift 470 fd 178582 [04:44:47]save to /storage/0470/doc_00178582 [04:44:47]save last doc name /storage/0470/doc_00178582 to /storage/kkm_last_doc_name [04:44:47]save OK [04:44:47]Clear old archive folders... [04:44:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:44:47]tlvbuf is 001D4E70 [04:44:47]SAM_PROTO_ClearQueue [04:44:47]wFMCommunicate request_size=4 [04:44:47]MH_SAM_APDU [04:44:47]CAPDU: 80 09 00 00 [04:44:47]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:44:47]Read from MH i2c: E2 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [04:44:47]RAPDU: 90 00 [04:44:47]wFMCommunicate OK [04:44:47]SAM_PROTO_ClearQueue done [04:44:47]KKMCreateOFDPacket [04:44:47]OFDProtocolAddRootSTLVToBuf [04:44:47]FM_MakeSignedData [04:44:47]FM_MakeSignedData [04:44:47]SAM_PROTO_SignData [04:44:47]wFMCommunicate request_size=4 [04:44:47]MH_SAM_APDU [04:44:47]CAPDU: 80 0D 01 02 [04:44:47]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:44:47]Read from MH i2c: E2 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [04:44:47]RAPDU: 90 00 [04:44:47]wFMCommunicate OK [04:44:47]wFMCommunicate request_size=255 [04:44:47]MH_SAM_APDU [04:44: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 2A 00 00 00 F4 03 04 00 BE 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 B9 02 00 35 04 06 00 0C [04:44:47]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 2A 00 00 00 F4 03 04 00 BE 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 B9 02 00 35 04 06 00 0C 00 00 B6 [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:47]Read from MH i2c: E2 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [04:44:47]RAPDU: 90 00 [04:44:47]wFMCommunicate OK [04:44:47]wFMCommunicate request_size=10 [04:44:47]MH_SAM_APDU [04:44:47]CAPDU: 80 0D 02 02 05 41 EF FF 9A 27 [04:44:47]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 41 EF FF 9A 27 00 00 EC [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:44:47]Read from MH i2c: E2 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [04:44:47]RAPDU: 90 00 [04:44:47]wFMCommunicate OK [04:44:47]wFMCommunicate request_size=4 [04:44:47]MH_SAM_APDU [04:44:47]CAPDU: 80 0D 03 02 [04:44:47]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:44:47]Read from MH i2c: E2 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 0B 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 0B 00 79 00 00 81 4A 50 DB 65 52 CB C8 90 00 35 [04:44:47]RAPDU: 81 4A 50 DB 65 52 CB C8 90 00 [04:44:47]wFMCommunicate OK [04:44:47]SAM_PROTO_SignData done [04:44:47]FM_MakeSignedData done [04:44:47]CreateOFDProtocolMessage [04:44:47]wFMCommunicate request_size=4 [04:44:47]MH_SAM_APDU [04:44:47]CAPDU: 80 11 00 00 [04:44:47]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:47]Read from MH i2c: E2 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 17 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [04:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:44:47]wFMCommunicate OK [04:44:47]CreateOFDProtocolMessage done [04:44:47]OFDSenderStorePacket 178582 [04:44:47]StoreOFDPacket docnum=178582 [04:44:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E1 24 07 01 30 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 2A 00 00 00 F4 03 04 00 BE 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 B9 02 00 35 04 06 00 0C 41 EF FF 9A 27 81 4A 50 DB 65 52 CB C8 [04:44:47]CheckFolder [04:44:47]dirname=/storage/ofd_packets [04:44:47]CheckFolder done [04:44:47]ProducePacketName [04:44:47]name=ofd_packets/00178582 [04:44:47]NVStorageSaveData ofd_packets/00178582 [04:44:47]File name is /storage/ofd_packets/00178582 [04:44:47]Write 301 bytes [04:44:47]NVStorageSaveData done [04:44:47]OFDSenderStorePacket done [04:44:47]KKMCreateOFDPacket done [04:44:47]NVStorageSaveData kkm_last_timestamp [04:44:47]File name is /storage/kkm_last_timestamp [04:44:47]Write 4 bytes [04:44:47]NVStorageSaveData done [04:44:47]ExternCall_PrintAddStr [04:44:47]wPrintStart [04:44:47]Write to MH i2c: 01 00 00 7B 00 7B [04:44:47]Write i2c OK [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: 01 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: 01 07 00 [04:44:47]MH_I2C_Read... [04:44:47]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [04:44:47]RasterBufferAndPrint [04:44:47]line Счет N : (1)293979 [04:44:47]line ИНН: 02508201610067 [04:44:47]line Контрольно-Кассовый Чек [04:44:47]line ПРОДАЖА [04:44:47]line ТРК (МРК, ГНК) : 52 [04:44:47]line Товар: 2710124130 [04:44:47]line Аи-92-К-5 [04:44:47]line 10.330 * 67.80 [04:44:47]line = 700.37 [04:44:47]line НДС 12% НСП 1% [04:44:47]line > о реализуемом товаре [04:44:47]line ОКРУГЛЕНИЕ: -0.37 [04:44:47]line ИТОГО: 700.00 [04:44:47]line Внесено: 700.00 [04:44:47]line СДАЧА: 0.00 [04:44:47]line НСП 1% : 6.20 [04:44:47]line НДС 12% : 74.38 [04:44:47]line Наличными: 700.00 [04:44:47]line Безнал.: 0.00 [04:44:47]line Место: АЗС № 130 "Партнер Нефть" [04:44:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:44:47]line СНО: Общий режим [04:44:47]line Чек 42 23.08.2024 04:44 [04:44:47]line Смена: 470 ФФД: 1.0 [04:44:47]line ЗНМ: 0300000071 [04:44:47]line РНМ: 0000000000092561 [04:44:47]line Версия ККМ: 001 [04:44:47]line ФМ: 0000000000871778 [04:44:47]line ФД: 178582 [04:44:47]line ФПД: 13477338913319 [04:44:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T044446&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178582&fm=13477338913319&tin=02508201610067®Number=0000000000092561&sum=70000 [04:44:47]written 0, free lines is 4095 [04:44:47]OFD Sender: Processing packet 178582 [packets to send 497, broken 496] [04:44:47]ProducePacketName [04:44:47]name=ofd_packets/00178582 [04:44:47]OFD Sender: To server: pG, [04:44:47]CommunicateWithHost lk.salyk.kg:30040 [04:44:47]ConnectInit lk.salyk.kg [04:44:48]Write to MH i2c: 01 00 00 A6 00 A6 [04:44:48]Write i2c OK [04:44:48]MH_I2C_Read... [04:44:48]Read from MH i2c: 01 [04:44:48]MH_I2C_Read... [04:44:48]Read from MH i2c: 01 07 00 [04:44:48]MH_I2C_Read... [04:44:48]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 BF 0C 78 [04:44:48]RasterBufferAndPrint [04:44:48]line [04:44:48]line [04:44:48]line [04:44:48]line [04:44:48]line [04:44:48]written 0, free lines is 3269 [04:44:48]MH_Cut [04:44:48]Write to MH i2c: D1 01 00 AD 00 01 7F [04:44:48]Write i2c OK [04:44:48]MH_I2C_Read... [04:44:48]Read from MH i2c: D1 [04:44:48]MH_I2C_Read... [04:44:48]Read from MH i2c: D1 01 00 [04:44:48]MH_I2C_Read... [04:44:48]Read from MH i2c: D1 01 00 AD 00 00 7E [04:44:48]Write to MH i2c: 01 00 00 AE 00 AE [04:44:48]Write i2c OK [04:44:48]MH_I2C_Read... [04:44:48]*** Cut start [04:44:48]*** Partial cut [04:44:48]*** CUTSNS_PIN = 1 [04:44:49]*** CUTSNS_PIN = 0 [04:44:49]*** Brake cut motor [04:44:49]Read from MH i2c: 01 [04:44:49]MH_I2C_Read... [04:44:49]*** Stop cut motor [04:44:49]*** Cut end [04:44:49]Read from MH i2c: 01 07 00 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [04:44:49]process_action close_receipt done [04:44:49]requested_data is exist [04:44:49]produce_requested_data [04:44:49]requested_item fm.sn is exist - process it [04:44:49]wFMCommunicate request_size=4 [04:44:49]MH_SAM_APDU [04:44:49]CAPDU: 80 11 00 00 [04:44:49]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [04:44:49]Write i2c OK [04:44:49]MH_I2C_Read... [04:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:44:49]Read from MH i2c: E2 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: E2 17 00 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [04:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:44:49]wFMCommunicate OK [04:44:49]requested_item fd.num is exist - process it [04:44:49]SAM_PROTO_GetFieldsCounters [04:44:49]wFMCommunicate request_size=4 [04:44:49]MH_SAM_APDU [04:44:49]CAPDU: 80 13 00 00 [04:44:49]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [04:44:49]Write i2c OK [04:44:49]MH_I2C_Read... [04:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:44:49]Read from MH i2c: E2 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: E2 62 00 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 96 B9 02 00 0E 04 04 00 D6 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 F7 [04:44: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 96 B9 02 00 0E 04 04 00 D6 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 [04:44:49]wFMCommunicate OK [04:44:49]SAM_PROTO_GetFieldsCounters done [04:44:49]requested_item shift.num is exist - process it [04:44:49]requested_item shift.opened is exist - process it [04:44:49]req_shift_opened [04:44:49]FM_GetShiftState [04:44:49]SAM_PROTO_GetShiftState [04:44:49]wFMCommunicate request_size=4 [04:44:49]MH_SAM_APDU [04:44:49]CAPDU: 80 13 01 00 [04:44:49]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [04:44:49]Write i2c OK [04:44:49]MH_I2C_Read... [04:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:44:49]Read from MH i2c: E2 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: E2 0E 00 [04:44:49]MH_I2C_Read... [04:44:49]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 05 [04:44:49]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:44:49]wFMCommunicate OK [04:44:49]SAM_PROTO_GetShiftState done [04:44:49]FM_GetShiftState done [04:44:49]req_shift_opened done [04:44:49]requested_item shift.open_date is exist - process it [04:44:49]req_shift_open_date [04:44:49]req_shift_open_date done [04:44:49]produce_requested_data done [04:44:49]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178582,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:44:49]process_action_free close_receipt [04:44:49]json_value_free [04:44:49]json_value_free done [04:44:49]process_json_proto returns [04:44:49]Send response to host [04:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178582,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:44:49]free response buf [04:44:49]execute_script done [04:44:49]execute_script returns [04:44:49]free content buf [04:44:49]Sock 6.Close socket [04:44:49]Sock 6.Thread stoped [04:44:52]ConnectInit Can't take IP for lk.salyk.kg [04:44:52]CommunicateWithHost connect error [04:44:52]CommunicateWithHost err = -1 [04:44:52]OFD Sender: Server communicate error [04:44:57]OFD Sender: Processing packet 178582 [packets to send 497, broken 496] [04:44:57]ProducePacketName [04:44:57]name=ofd_packets/00178582 [04:44:57]OFD Sender: To server: pG, [04:44:57]CommunicateWithHost lk.salyk.kg:30040 [04:44:57]ConnectInit lk.salyk.kg [04:45:04]recv_with_timeout no data received [04:45:08]accept exits with 9 [04:45:08]New connection [04:45:08]New thread 3067530596 created [04:45:08]Thread 3067387236 joined [04:45:08]Waiting for new connection... [04:45:08] Sock 9.Parse request [04:45:08]Sock 9.Check first char [04:45:08]Sock 9.First char is OK [04:45:08]request: POST /json_proto HTTP/1.0 [04:45:08]Method: POST [04:45:08]URL: /json_proto [04:45:08]Method is POST - this is cgi request [04:45:08]url: /json_proto [04:45:08]query_string will be loaded in cgi processing [04:45:08]execute_cgi json_proto POST (null) [04:45:08]execute_cgi path=json_proto method=POST [04:45:08]POST find Content-Length [04:45:08]Host: 172.17.44.131:8080 [04:45:08]Content-Length: 677 [04:45:08]Content-Type: application/json [04:45:08] [04:45:08]POST finish read [04:45:08]Found Content-Length = 677 [04:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293980", "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" : 67.80, "quantity" : 9.670, "sum" : 655.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 655.00, "total" : 655.00, "payments": [ { "type": 0, "sum" : 655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:08]execute_script... [04:45: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)293980", "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" : 67.80, "quantity" : 9.670, "sum" : 655.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 655.00, "total" : 655.00, "payments": [ { "type": 0, "sum" : 655.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:45:08]POST & json_proto [04:45:08]process_json_proto [04:45:08]json parsed OK: [04:45:08]protocol is kg_v1.0 [04:45:08]action value=close_receipt [04:45:08]process_action close_receipt [04:45:08]cmd_close_receipt [04:45:08]MH_GetDate [04:45:08]Write to MH i2c: F0 00 00 B2 00 A1 [04:45:08]Write i2c OK [04:45:08]MH_I2C_Read... [04:45:08]Read from MH i2c: F0 [04:45:08]MH_I2C_Read... [04:45:08]Read from MH i2c: F0 09 00 [04:45:08]MH_I2C_Read... [04:45:08]Read from MH i2c: F0 09 00 B2 00 00 D4 13 C8 66 4F 53 BE 66 85 [04:45:08]GetLastDocTimeStamp 1724388286 [04:45:08]current date 1724388308 [04:45:08]FM_GetShiftState [04:45:08]SAM_PROTO_GetShiftState [04:45:08]wFMCommunicate request_size=4 [04:45:08]MH_SAM_APDU [04:45:08]CAPDU: 80 13 01 00 [04:45:08]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [04:45:08]Write i2c OK [04:45:08]MH_I2C_Read... [04:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:08]Read from MH i2c: E2 [04:45:08]MH_I2C_Read... [04:45:08]Read from MH i2c: E2 0E 00 [04:45:08]MH_I2C_Read... [04:45:08]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 07 [04:45:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:45:08]wFMCommunicate OK [04:45:08]SAM_PROTO_GetShiftState done [04:45:08]FM_GetShiftState done [04:45:08]opened in 1724371660 [04:45:08]opened+sec_in_day 1724458060 [04:45:08]quantity*price = 65562 [04:45:08]sum+1 = 65564 [04:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 655.00 Внесено: 655.00 СДАЧА: 0.00 НСП 1% : 5.80 НДС 12% : 69.62 Наличными: 655.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 43 23.08.2024 04:45 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178583 ФПД: 26947803328914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T044508&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178583&fm=26947803328914&tin=02508201610067®Number=0000000000092561&sum=65500 [04:45:09]StoreToDocumentArchive [04:45:09]shift 470 fd 178583 [04:45:09]save to /storage/0470/doc_00178583 [04:45:09]save last doc name /storage/0470/doc_00178583 to /storage/kkm_last_doc_name [04:45:09]save OK [04:45:09]Clear old archive folders... [04:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:45:09]tlvbuf is 001E33F0 [04:45:09]SAM_PROTO_ClearQueue [04:45:09]wFMCommunicate request_size=4 [04:45:09]MH_SAM_APDU [04:45:09]CAPDU: 80 09 00 00 [04:45:09]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [04:45:09]Write i2c OK [04:45:09]MH_I2C_Read... [04:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:45:09]Read from MH i2c: E2 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [04:45:09]RAPDU: 90 00 [04:45:09]wFMCommunicate OK [04:45:09]SAM_PROTO_ClearQueue done [04:45:09]KKMCreateOFDPacket [04:45:09]OFDProtocolAddRootSTLVToBuf [04:45:09]FM_MakeSignedData [04:45:09]FM_MakeSignedData [04:45:09]SAM_PROTO_SignData [04:45:09]wFMCommunicate request_size=4 [04:45:09]MH_SAM_APDU [04:45:09]CAPDU: 80 0D 01 02 [04:45:09]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [04:45:09]Write i2c OK [04:45:09]MH_I2C_Read... [04:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:45:09]Read from MH i2c: E2 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [04:45:09]RAPDU: 90 00 [04:45:09]wFMCommunicate OK [04:45:09]wFMCommunicate request_size=255 [04:45:09]MH_SAM_APDU [04:45: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 C6 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1B 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 D4 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 B9 02 00 35 04 06 00 18 [04:45:09]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1B 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 D4 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 B9 02 00 35 04 06 00 18 00 00 AF [04:45:09]Write i2c OK [04:45:09]MH_I2C_Read... [04:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:09]Read from MH i2c: E2 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [04:45:09]RAPDU: 90 00 [04:45:09]wFMCommunicate OK [04:45:09]wFMCommunicate request_size=10 [04:45:09]MH_SAM_APDU [04:45:09]CAPDU: 80 0D 02 02 05 82 46 3E B1 92 [04:45:09]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 82 46 3E B1 92 00 00 90 [04:45:09]Write i2c OK [04:45:09]MH_I2C_Read... [04:45:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:45:09]Read from MH i2c: E2 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [04:45:09]RAPDU: 90 00 [04:45:09]wFMCommunicate OK [04:45:09]wFMCommunicate request_size=4 [04:45:09]MH_SAM_APDU [04:45:09]CAPDU: 80 0D 03 02 [04:45:09]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [04:45:09]Write i2c OK [04:45:09]MH_I2C_Read... [04:45:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:45:09]Read from MH i2c: E2 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 0B 00 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 0B 00 C4 00 00 CE 5C A2 1B A7 0F 50 A0 90 00 CD [04:45:09]RAPDU: CE 5C A2 1B A7 0F 50 A0 90 00 [04:45:09]wFMCommunicate OK [04:45:09]SAM_PROTO_SignData done [04:45:09]FM_MakeSignedData done [04:45:09]CreateOFDProtocolMessage [04:45:09]wFMCommunicate request_size=4 [04:45:09]MH_SAM_APDU [04:45:09]CAPDU: 80 11 00 00 [04:45:09]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [04:45:09]Write i2c OK [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 [04:45:09]MH_I2C_Read... [04:45:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:09]Read from MH i2c: E2 17 00 [04:45:09]MH_I2C_Read... [04:45:09]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [04:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:45:10]wFMCommunicate OK [04:45:10]CreateOFDProtocolMessage done [04:45:10]OFDSenderStorePacket 178583 [04:45:10]StoreOFDPacket docnum=178583 [04:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 C6 82 07 01 C0 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 C6 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1B 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 D4 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 B9 02 00 35 04 06 00 18 82 46 3E B1 92 CE 5C A2 1B A7 0F 50 A0 [04:45:10]CheckFolder [04:45:10]dirname=/storage/ofd_packets [04:45:10]CheckFolder done [04:45:10]ProducePacketName [04:45:10]name=ofd_packets/00178583 [04:45:10]NVStorageSaveData ofd_packets/00178583 [04:45:10]File name is /storage/ofd_packets/00178583 [04:45:10]Write 301 bytes [04:45:10]NVStorageSaveData done [04:45:10]OFDSenderStorePacket done [04:45:10]KKMCreateOFDPacket done [04:45:10]NVStorageSaveData kkm_last_timestamp [04:45:10]File name is /storage/kkm_last_timestamp [04:45:10]Write 4 bytes [04:45:10]NVStorageSaveData done [04:45:10]ExternCall_PrintAddStr [04:45:10]wPrintStart [04:45:10]Write to MH i2c: 01 00 00 C6 00 C6 [04:45:10]Write i2c OK [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: 01 [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: 01 07 00 [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [04:45:10]RasterBufferAndPrint [04:45:10]line Счет N : (1)293980 [04:45:10]line ИНН: 02508201610067 [04:45:10]line Контрольно-Кассовый Чек [04:45:10]line ПРОДАЖА [04:45:10]line ТРК (МРК, ГНК) : 32 [04:45:10]line Товар: 2710124130 [04:45:10]line Аи-92-К-5 [04:45:10]line 9.670 * 67.80 [04:45:10]line = 655.63 [04:45:10]line НДС 12% НСП 1% [04:45:10]line > о реализуемом товаре [04:45:10]line ОКРУГЛЕНИЕ: -0.63 [04:45:10]line ИТОГО: 655.00 [04:45:10]line Внесено: 655.00 [04:45:10]line СДАЧА: 0.00 [04:45:10]line НСП 1% : 5.80 [04:45:10]line НДС 12% : 69.62 [04:45:10]line Наличными: 655.00 [04:45:10]line Безнал.: 0.00 [04:45:10]line Место: АЗС № 130 "Партнер Нефть" [04:45:10]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:45:10]line СНО: Общий режим [04:45:10]line Чек 43 23.08.2024 04:45 [04:45:10]line Смена: 470 ФФД: 1.0 [04:45:10]line ЗНМ: 0300000071 [04:45:10]line РНМ: 0000000000092561 [04:45:10]line Версия ККМ: 001 [04:45:10]line ФМ: 0000000000871778 [04:45:10]line ФД: 178583 [04:45:10]line ФПД: 26947803328914 [04:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T044508&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178583&fm=26947803328914&tin=02508201610067®Number=0000000000092561&sum=65500 [04:45:10]written 0, free lines is 4095 [04:45:10]Write to MH i2c: 01 00 00 F1 00 F1 [04:45:10]Write i2c OK [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: 01 [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: 01 07 00 [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 C8 0C CC [04:45:10]RasterBufferAndPrint [04:45:10]line [04:45:10]line [04:45:10]line [04:45:10]line [04:45:10]line [04:45:10]written 0, free lines is 3282 [04:45:10]MH_Cut [04:45:10]Write to MH i2c: D1 01 00 F8 00 01 CA [04:45:10]Write i2c OK [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: D1 [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: D1 01 00 [04:45:10]MH_I2C_Read... [04:45:10]Read from MH i2c: D1 01 00 F8 00 00 C9 [04:45:10]Write to MH i2c: 01 00 00 F9 00 F9 [04:45:10]Write i2c OK [04:45:10]MH_I2C_Read... [04:45:11]*** Cut start [04:45:11]*** Partial cut [04:45:11]*** CUTSNS_PIN = 1 [04:45:11]*** CUTSNS_PIN = 0 [04:45:11]*** Brake cut motor [04:45:11]Read from MH i2c: 01 [04:45:11]MH_I2C_Read... [04:45:11]*** Stop cut motor [04:45:11]*** Cut end [04:45:11]Read from MH i2c: 01 07 00 [04:45:11]MH_I2C_Read... [04:45:11]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [04:45:11]process_action close_receipt done [04:45:11]requested_data is exist [04:45:11]produce_requested_data [04:45:11]requested_item fm.sn is exist - process it [04:45:11]wFMCommunicate request_size=4 [04:45:11]MH_SAM_APDU [04:45:11]CAPDU: 80 11 00 00 [04:45:11]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [04:45:11]Write i2c OK [04:45:11]MH_I2C_Read... [04:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:45:11]Read from MH i2c: E2 [04:45:11]MH_I2C_Read... [04:45:11]Read from MH i2c: E2 17 00 [04:45:11]MH_I2C_Read... [04:45:11]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [04:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:45:11]wFMCommunicate OK [04:45:11]requested_item fd.num is exist - process it [04:45:11]SAM_PROTO_GetFieldsCounters [04:45:11]wFMCommunicate request_size=4 [04:45:11]MH_SAM_APDU [04:45:11]CAPDU: 80 13 00 00 [04:45:11]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [04:45:11]Write i2c OK [04:45:11]MH_I2C_Read... [04:45:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:45:12]Read from MH i2c: E2 [04:45:12]MH_I2C_Read... [04:45:12]Read from MH i2c: E2 62 00 [04:45:12]MH_I2C_Read... [04:45:12]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 97 B9 02 00 0E 04 04 00 D6 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 46 [04: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 97 B9 02 00 0E 04 04 00 D6 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 [04:45:12]wFMCommunicate OK [04:45:12]SAM_PROTO_GetFieldsCounters done [04:45:12]requested_item shift.num is exist - process it [04:45:12]requested_item shift.opened is exist - process it [04:45:12]req_shift_opened [04:45:12]FM_GetShiftState [04:45:12]SAM_PROTO_GetShiftState [04:45:12]wFMCommunicate request_size=4 [04:45:12]MH_SAM_APDU [04:45:12]CAPDU: 80 13 01 00 [04:45:12]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [04:45:12]Write i2c OK [04:45:12]MH_I2C_Read... [04:45:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:45:12]Read from MH i2c: E2 [04:45:12]MH_I2C_Read... [04:45:12]Read from MH i2c: E2 0E 00 [04:45:12]MH_I2C_Read... [04:45:12]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 50 [04:45:12]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:45:12]wFMCommunicate OK [04:45:12]SAM_PROTO_GetShiftState done [04:45:12]FM_GetShiftState done [04:45:12]req_shift_opened done [04:45:12]requested_item shift.open_date is exist - process it [04:45:12]req_shift_open_date [04:45:12]req_shift_open_date done [04:45:12]produce_requested_data done [04:45:12]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178583,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:45:12]process_action_free close_receipt [04:45:12]json_value_free [04:45:12]json_value_free done [04:45:12]process_json_proto returns [04:45:12]Send response to host [04:45:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178583,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:45:12]free response buf [04:45:12]execute_script done [04:45:12]execute_script returns [04:45:12]free content buf [04:45:12]Sock 9.Close socket [04:45:12]Sock 9.Thread stoped [04:45:18]Connected sock=10 [04:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E1 24 07 01 30 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 2A 00 00 00 F4 03 04 00 BE 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 96 B9 02 00 35 04 06 00 0C 41 EF FF 9A 27 81 4A 50 DB 65 52 CB C8 [04:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 40 57 47 00 60 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 31 37 37 38 10 04 04 00 96 B9 02 00 F4 03 04 00 86 BF C7 66 B6 04 01 00 00 FF 2E 04 6B DD 25 01 4B [04:45:20]CommunicateWithHost err = 0 [04:45:20]CheckOFDResponse [04:45:20]1017 (14) - 77093643461234 [04:45:20]1041 (16) - 0000000000871778 [04:45:20]1040 (4) - 178582 [04:45:20]1012 (4) - 22.08.2024 22:45 [04:45:20]1206 (1) - 0 [04:45:20]OFD Sender: Remove packet 178582 [04:45:20]ProducePacketName [04:45:20]name=ofd_packets/00178582 [04:45:20]NVStorageDeleteData [04:45:20]OFD Sender: Processing packet 178583 [packets to send 497, broken 496] [04:45:20]ProducePacketName [04:45:20]name=ofd_packets/00178583 [04:45:20]OFD Sender: To server: pG, [04:45:20]CommunicateWithHost lk.salyk.kg:30040 [04:45:20]ConnectInit lk.salyk.kg [04:45:21]Connected sock=9 [04:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 C6 82 07 01 C0 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 C6 25 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 1B 00 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC FF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 1B 00 00 00 00 07 04 06 00 DC FF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 D4 13 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 97 B9 02 00 35 04 06 00 18 82 46 3E B1 92 CE 5C A2 1B A7 0F 50 A0 [04:45:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DF 5E 47 00 E9 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 31 37 37 38 10 04 04 00 97 B9 02 00 F4 03 04 00 87 BF C7 66 B6 04 01 00 00 A0 98 E5 5A 78 1C 58 88 [04:45:22]CommunicateWithHost err = 0 [04:45:22]CheckOFDResponse [04:45:22]1017 (14) - 77093643461234 [04:45:22]1041 (16) - 0000000000871778 [04:45:22]1040 (4) - 178583 [04:45:22]1012 (4) - 22.08.2024 22:45 [04:45:22]1206 (1) - 0 [04:45:22]OFD Sender: Remove packet 178583 [04:45:22]ProducePacketName [04:45:22]name=ofd_packets/00178583 [04:45:22]NVStorageDeleteData [04:45:22]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:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]recv_with_timeout no data received [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:48]recv_with_timeout no data received [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:17]recv_with_timeout no data received [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:44]recv_with_timeout no data received [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:49:59]recv_with_timeout no data received [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:28]recv_with_timeout no data received [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:52]accept exits with 6 [04:54:52]New connection [04:54:52]New thread 3067387236 created [04:54:52]Thread 3067530596 joined [04:54:52]Waiting for new connection... [04:54:52] Sock 6.Parse request [04:54:52]Sock 6.Check first char [04:54:52]Sock 6.First char is OK [04:54:52]request: POST /json_proto HTTP/1.0 [04:54:52]Method: POST [04:54:52]URL: /json_proto [04:54:52]Method is POST - this is cgi request [04:54:52]url: /json_proto [04:54:52]query_string will be loaded in cgi processing [04:54:52]execute_cgi json_proto POST (null) [04:54:52]execute_cgi path=json_proto method=POST [04:54:52]POST find Content-Length [04:54:52]Host: 172.17.44.131:8080 [04:54:52]Content-Length: 797 [04:54:52]Content-Type: application/json [04:54:52] [04:54:52]POST finish read [04:54:52]Found Content-Length = 797 [04:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:52]execute_script... [04:54: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)293982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:52]POST & json_proto [04:54:52]process_json_proto [04:54:52]json parsed OK: [04:54:52]protocol is kg_v1.0 [04:54:52]action value=close_receipt [04:54:52]process_action close_receipt [04:54:52]cmd_close_receipt [04:54:52]MH_GetDate [04:54:52]Write to MH i2c: F0 00 00 FD 00 EC [04:54:52]Write i2c OK [04:54:52]MH_I2C_Read... [04:54:52]Read from MH i2c: F0 [04:54:52]MH_I2C_Read... [04:54:52]Read from MH i2c: F0 09 00 [04:54:52]MH_I2C_Read... [04:54:52]Read from MH i2c: F0 09 00 FD 00 00 1D 16 C8 66 4F 53 BE 66 1C [04:54:52]GetLastDocTimeStamp 1724388308 [04:54:52]current date 1724388893 [04:54:52]FM_GetShiftState [04:54:52]SAM_PROTO_GetShiftState [04:54:52]wFMCommunicate request_size=4 [04:54:52]MH_SAM_APDU [04:54:52]CAPDU: 80 13 01 00 [04:54:52]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [04:54:52]Write i2c OK [04:54:52]MH_I2C_Read... [04:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:52]Read from MH i2c: E2 [04:54:52]MH_I2C_Read... [04:54:52]Read from MH i2c: E2 0E 00 [04:54:52]MH_I2C_Read... [04:54:52]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 52 [04:54:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:54:52]wFMCommunicate OK [04:54:52]SAM_PROTO_GetShiftState done [04:54:52]FM_GetShiftState done [04:54:52]opened in 1724371660 [04:54:52]opened+sec_in_day 1724458060 [04:54:52]quantity*price = 50063 [04:54:52]sum+1 = 50064 [04:54:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 44 23.08.2024 04:54 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178584 ФПД: 41374176482295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045453&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178584&fm=41374176482295&tin=02508201610067®Number=0000000000092561&sum=50063 [04:54:53]StoreToDocumentArchive [04:54:53]shift 470 fd 178584 [04:54:53]save to /storage/0470/doc_00178584 [04:54:53]save last doc name /storage/0470/doc_00178584 to /storage/kkm_last_doc_name [04:54:53]save OK [04:54:53]Clear old archive folders... [04:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:54:53]tlvbuf is 001E4D10 [04:54:53]SAM_PROTO_ClearQueue [04:54:53]wFMCommunicate request_size=4 [04:54:53]MH_SAM_APDU [04:54:53]CAPDU: 80 09 00 00 [04:54:53]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [04:54:53]Write i2c OK [04:54:53]MH_I2C_Read... [04:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:53]Read from MH i2c: E2 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: E2 03 00 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [04:54:53]RAPDU: 90 00 [04:54:53]wFMCommunicate OK [04:54:53]SAM_PROTO_ClearQueue done [04:54:53]KKMCreateOFDPacket [04:54:53]OFDProtocolAddRootSTLVToBuf [04:54:53]FM_MakeSignedData [04:54:53]FM_MakeSignedData [04:54:53]SAM_PROTO_SignData [04:54:53]wFMCommunicate request_size=4 [04:54:53]MH_SAM_APDU [04:54:53]CAPDU: 80 0D 01 02 [04:54:53]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [04:54:53]Write i2c OK [04:54:53]MH_I2C_Read... [04:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:53]Read from MH i2c: E2 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: E2 03 00 [04:54:53]MH_I2C_Read... [04:54:53]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [04:54:53]RAPDU: 90 00 [04:54:53]wFMCommunicate OK [04:54:53]wFMCommunicate request_size=255 [04:54:53]MH_SAM_APDU [04:54:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 B9 02 00 35 04 06 00 25 A1 2D 17 [04:54:53]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 B9 02 00 35 04 06 00 25 A1 2D 17 00 00 DB [04:54:53]Write i2c OK [04:54:53]MH_I2C_Read... [04:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:54]Read from MH i2c: E2 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [04:54:54]RAPDU: 90 00 [04:54:54]wFMCommunicate OK [04:54:54]wFMCommunicate request_size=7 [04:54:54]MH_SAM_APDU [04:54:54]CAPDU: 80 0D 02 02 02 93 F7 [04:54:54]Write to MH i2c: E2 0A 00 0E 01 80 0D 02 02 02 00 93 F7 00 00 17 [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:54]Read from MH i2c: E2 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [04:54:54]RAPDU: 90 00 [04:54:54]wFMCommunicate OK [04:54:54]wFMCommunicate request_size=4 [04:54:54]MH_SAM_APDU [04:54:54]CAPDU: 80 0D 03 02 [04:54:54]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:54]OFD Sender: No OFD packet to send [04:54:54]Read from MH i2c: E2 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 0B 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 0B 00 0F 01 00 3C EC D8 B2 9C D0 84 04 90 00 32 [04:54:54]RAPDU: 3C EC D8 B2 9C D0 84 04 90 00 [04:54:54]wFMCommunicate OK [04:54:54]SAM_PROTO_SignData done [04:54:54]FM_MakeSignedData done [04:54:54]CreateOFDProtocolMessage [04:54:54]wFMCommunicate request_size=4 [04:54:54]MH_SAM_APDU [04:54:54]CAPDU: 80 11 00 00 [04:54:54]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:54]Read from MH i2c: E2 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 17 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [04:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:54:54]wFMCommunicate OK [04:54:54]CreateOFDProtocolMessage done [04:54:54]OFDSenderStorePacket 178584 [04:54:54]StoreOFDPacket docnum=178584 [04:54:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 22 D2 04 01 90 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 B9 02 00 35 04 06 00 25 A1 2D 17 93 F7 3C EC D8 B2 9C D0 84 04 [04:54:54]CheckFolder [04:54:54]dirname=/storage/ofd_packets [04:54:54]CheckFolder done [04:54:54]ProducePacketName [04:54:54]name=ofd_packets/00178584 [04:54:54]NVStorageSaveData ofd_packets/00178584 [04:54:54]File name is /storage/ofd_packets/00178584 [04:54:54]Write 298 bytes [04:54:54]NVStorageSaveData done [04:54:54]OFDSenderStorePacket done [04:54:54]KKMCreateOFDPacket done [04:54:54]NVStorageSaveData kkm_last_timestamp [04:54:54]File name is /storage/kkm_last_timestamp [04:54:54]Write 4 bytes [04:54:54]NVStorageSaveData done [04:54:54]ExternCall_PrintAddStr [04:54:54]wPrintStart [04:54:54]Write to MH i2c: 01 00 00 11 01 12 [04:54:54]Write i2c OK [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: 01 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: 01 07 00 [04:54:54]MH_I2C_Read... [04:54:54]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [04:54:54]RasterBufferAndPrint [04:54:54]line Счет N : (1)293982 [04:54:54]line ИНН: 02508201610067 [04:54:54]line Контрольно-Кассовый Чек [04:54:54]line ПРОДАЖА [04:54:54]line ТРК (МРК, ГНК) : 21 [04:54:54]line Товар: 2710194800 [04:54:54]line ДТ-К-5 [04:54:54]line 6.570 * 76.20 [04:54:54]line = 500.63 [04:54:54]line НДС 12% НСП 1% [04:54:54]line > о реализуемом товаре [04:54:54]line ИТОГО: 500.63 [04:54:54]line НСП 1% : 4.43 [04:54:54]line НДС 12% : 53.16 [04:54:54]line Наличными: 0.00 [04:54:54]line Безнал.: 500.63 [04:54:54]line Место: АЗС № 130 "Партнер Нефть" [04:54:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:54:54]line СНО: Общий режим [04:54:54]line Чек 44 23.08.2024 04:54 [04:54:54]line Смена: 470 ФФД: 1.0 [04:54:54]line ЗНМ: 0300000071 [04:54:54]line РНМ: 0000000000092561 [04:54:54]line Версия ККМ: 001 [04:54:54]line Платежная система: O! деньги [04:54:54]line ФМ: 0000000000871778 [04:54:54]line ФД: 178584 [04:54:54]line ФПД: 41374176482295 [04:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045453&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178584&fm=41374176482295&tin=02508201610067®Number=0000000000092561&sum=50063 [04:54:54]OFD Sender: Processing packet 178584 [packets to send 497, broken 496] [04:54:54]ProducePacketName [04:54:54]name=ofd_packets/00178584 [04:54:54]OFD Sender: To server: pG, [04:54:54]CommunicateWithHost lk.salyk.kg:30040 [04:54:54]ConnectInit lk.salyk.kg [04:54:54]written 0, free lines is 4095 [04:54:55]Write to MH i2c: 01 00 00 3B 01 3C [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: 01 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: 01 07 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 D7 0C 26 [04:54:55]RasterBufferAndPrint [04:54:55]line [04:54:55]line [04:54:55]line [04:54:55]line [04:54:55]line [04:54:55]written 0, free lines is 3294 [04:54:55]MH_Cut [04:54:55]Write to MH i2c: D1 01 00 42 01 01 15 [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: D1 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: D1 01 00 [04:54:55]MH_I2C_Read... [04:54:55]Read from MH i2c: D1 01 00 42 01 00 14 [04:54:55]Write to MH i2c: 01 00 00 43 01 44 [04:54:55]Write i2c OK [04:54:55]MH_I2C_Read... [04:54:55]*** Cut start [04:54:55]*** Partial cut [04:54:55]*** CUTSNS_PIN = 1 [04:54:55]*** CUTSNS_PIN = 0 [04:54:56]*** Brake cut motor [04:54:56]Read from MH i2c: 01 [04:54:56]MH_I2C_Read... [04:54:56]*** Stop cut motor [04:54:56]*** Cut end [04:54:56]Read from MH i2c: 01 07 00 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [04:54:56]process_action close_receipt done [04:54:56]requested_data is exist [04:54:56]produce_requested_data [04:54:56]requested_item fm.sn is exist - process it [04:54:56]wFMCommunicate request_size=4 [04:54:56]MH_SAM_APDU [04:54:56]CAPDU: 80 11 00 00 [04:54:56]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [04:54:56]Write i2c OK [04:54:56]MH_I2C_Read... [04:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:56]Read from MH i2c: E2 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: E2 17 00 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 18 [04:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:54:56]wFMCommunicate OK [04:54:56]requested_item fd.num is exist - process it [04:54:56]SAM_PROTO_GetFieldsCounters [04:54:56]wFMCommunicate request_size=4 [04:54:56]MH_SAM_APDU [04:54:56]CAPDU: 80 13 00 00 [04:54:56]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [04:54:56]Write i2c OK [04:54:56]MH_I2C_Read... [04:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:56]Read from MH i2c: E2 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: E2 62 00 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 98 B9 02 00 0E 04 04 00 D6 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 95 [04:54: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 98 B9 02 00 0E 04 04 00 D6 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 [04:54:56]wFMCommunicate OK [04:54:56]SAM_PROTO_GetFieldsCounters done [04:54:56]requested_item shift.num is exist - process it [04:54:56]requested_item shift.opened is exist - process it [04:54:56]req_shift_opened [04:54:56]FM_GetShiftState [04:54:56]SAM_PROTO_GetShiftState [04:54:56]wFMCommunicate request_size=4 [04:54:56]MH_SAM_APDU [04:54:56]CAPDU: 80 13 01 00 [04:54:56]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [04:54:56]Write i2c OK [04:54:56]MH_I2C_Read... [04:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:56]Read from MH i2c: E2 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: E2 0E 00 [04:54:56]MH_I2C_Read... [04:54:56]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9B [04:54:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:54:56]wFMCommunicate OK [04:54:56]SAM_PROTO_GetShiftState done [04:54:56]FM_GetShiftState done [04:54:56]req_shift_opened done [04:54:56]requested_item shift.open_date is exist - process it [04:54:56]req_shift_open_date [04:54:56]req_shift_open_date done [04:54:56]produce_requested_data done [04:54:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178584,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:54:56]process_action_free close_receipt [04:54:56]json_value_free [04:54:56]json_value_free done [04:54:56]process_json_proto returns [04:54:56]Send response to host [04:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178584,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:54:56]free response buf [04:54:56]execute_script done [04:54:56]execute_script returns [04:54:56]free content buf [04:54:56]Sock 6.Close socket [04:54:56]Sock 6.Thread stoped [04:54:59]ConnectInit Can't take IP for lk.salyk.kg [04:54:59]CommunicateWithHost connect error [04:54:59]CommunicateWithHost err = -1 [04:54:59]OFD Sender: Server communicate error [04:55:04]OFD Sender: Processing packet 178584 [packets to send 497, broken 496] [04:55:04]ProducePacketName [04:55:04]name=ofd_packets/00178584 [04:55:04]OFD Sender: To server: pG, [04:55:04]CommunicateWithHost lk.salyk.kg:30040 [04:55:04]ConnectInit lk.salyk.kg [04:55:06]recv_with_timeout no data received [04:55:06]Connected sock=9 [04: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 31 37 37 38 0C 01 00 00 22 D2 04 01 90 41 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 1D 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 98 B9 02 00 35 04 06 00 25 A1 2D 17 93 F7 3C EC D8 B2 9C D0 84 04 [04:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 56 BE 47 00 20 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 31 37 37 38 10 04 04 00 98 B9 02 00 F4 03 04 00 D1 C1 C7 66 B6 04 01 00 00 36 F8 18 15 30 9E D8 BB [04:55:07]CommunicateWithHost err = 0 [04:55:07]CheckOFDResponse [04:55:07]1017 (14) - 77093643461234 [04:55:07]1041 (16) - 0000000000871778 [04:55:07]1040 (4) - 178584 [04:55:07]1012 (4) - 22.08.2024 22:55 [04:55:07]1206 (1) - 0 [04:55:07]OFD Sender: Remove packet 178584 [04:55:07]ProducePacketName [04:55:07]name=ofd_packets/00178584 [04:55:07]NVStorageDeleteData [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:27]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:46]accept exits with 10 [04:56:46]New connection [04:56:46]New thread 3067530596 created [04:56:46]Thread 3067387236 joined [04:56:46]Waiting for new connection... [04:56:46] Sock 10.Parse request [04:56:46]Sock 10.Check first char [04:56:46]Sock 10.First char is OK [04:56:46]request: POST /json_proto HTTP/1.0 [04:56:46]Method: POST [04:56:46]URL: /json_proto [04:56:46]Method is POST - this is cgi request [04:56:46]url: /json_proto [04:56:46]query_string will be loaded in cgi processing [04:56:46]execute_cgi json_proto POST (null) [04:56:46]execute_cgi path=json_proto method=POST [04:56:46]POST find Content-Length [04:56:46]Host: 172.17.44.131:8080 [04:56:46]Content-Length: 677 [04:56:46]Content-Type: application/json [04:56:46] [04:56:46]POST finish read [04:56:46]Found Content-Length = 677 [04:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293984", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [04:56:46]execute_script... [04:56: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)293984", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [04:56:46]POST & json_proto [04:56:46]process_json_proto [04:56:46]json parsed OK: [04:56:46]protocol is kg_v1.0 [04:56:46]action value=close_receipt [04:56:46]process_action close_receipt [04:56:46]cmd_close_receipt [04:56:46]MH_GetDate [04:56:46]Write to MH i2c: F0 00 00 47 01 37 [04:56:46]Write i2c OK [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: F0 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: F0 09 00 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: F0 09 00 47 01 00 8E 16 C8 66 4F 53 BE 66 D8 [04:56:46]GetLastDocTimeStamp 1724388893 [04:56:46]current date 1724389006 [04:56:46]FM_GetShiftState [04:56:46]SAM_PROTO_GetShiftState [04:56:46]wFMCommunicate request_size=4 [04:56:46]MH_SAM_APDU [04:56:46]CAPDU: 80 13 01 00 [04:56:46]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [04:56:46]Write i2c OK [04:56:46]MH_I2C_Read... [04:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:46]Read from MH i2c: E2 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: E2 0E 00 [04:56:46]MH_I2C_Read... [04:56:46]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9D [04:56:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:56:46]wFMCommunicate OK [04:56:46]SAM_PROTO_GetShiftState done [04:56:46]FM_GetShiftState done [04:56:46]opened in 1724371660 [04:56:46]opened+sec_in_day 1724458060 [04:56:46]quantity*price = 50036 [04:56:46]sum+1 = 50037 [04:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 45 23.08.2024 04:56 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178585 ФПД: 15743992684336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045646&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178585&fm=15743992684336&tin=02508201610067®Number=0000000000092561&sum=50000 [04:56:47]StoreToDocumentArchive [04:56:47]shift 470 fd 178585 [04:56:47]save to /storage/0470/doc_00178585 [04:56:47]save last doc name /storage/0470/doc_00178585 to /storage/kkm_last_doc_name [04:56:47]save OK [04:56:47]Clear old archive folders... [04:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:56:47]tlvbuf is 0015D2C0 [04:56:47]SAM_PROTO_ClearQueue [04:56:47]wFMCommunicate request_size=4 [04:56:47]MH_SAM_APDU [04:56:47]CAPDU: 80 09 00 00 [04:56:47]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:47]Read from MH i2c: E2 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [04:56:47]RAPDU: 90 00 [04:56:47]wFMCommunicate OK [04:56:47]SAM_PROTO_ClearQueue done [04:56:47]KKMCreateOFDPacket [04:56:47]OFDProtocolAddRootSTLVToBuf [04:56:47]FM_MakeSignedData [04:56:47]FM_MakeSignedData [04:56:47]SAM_PROTO_SignData [04:56:47]wFMCommunicate request_size=4 [04:56:47]MH_SAM_APDU [04:56:47]CAPDU: 80 0D 01 02 [04:56:47]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:47]Read from MH i2c: E2 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [04:56:47]RAPDU: 90 00 [04:56:47]wFMCommunicate OK [04:56:47]wFMCommunicate request_size=255 [04:56:47]MH_SAM_APDU [04:56: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8E 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 B9 02 00 35 04 06 00 0E [04:56:47]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8E 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 B9 02 00 35 04 06 00 0E 00 00 8B [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:47]Read from MH i2c: E2 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [04:56:47]RAPDU: 90 00 [04:56:47]wFMCommunicate OK [04:56:47]wFMCommunicate request_size=10 [04:56:47]MH_SAM_APDU [04:56:47]CAPDU: 80 0D 02 02 05 51 AF 17 5F 30 [04:56:47]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 51 AF 17 5F 30 00 00 83 [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:47]Read from MH i2c: E2 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [04:56:47]RAPDU: 90 00 [04:56:47]wFMCommunicate OK [04:56:47]wFMCommunicate request_size=4 [04:56:47]MH_SAM_APDU [04:56:47]CAPDU: 80 0D 03 02 [04:56:47]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:47]OFD Sender: No OFD packet to send [04:56:47]Read from MH i2c: E2 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 0B 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 0B 00 59 01 00 41 BF 8D E7 E3 E0 4A 33 90 00 8A [04:56:47]RAPDU: 41 BF 8D E7 E3 E0 4A 33 90 00 [04:56:47]wFMCommunicate OK [04:56:47]SAM_PROTO_SignData done [04:56:47]FM_MakeSignedData done [04:56:47]CreateOFDProtocolMessage [04:56:47]wFMCommunicate request_size=4 [04:56:47]MH_SAM_APDU [04:56:47]CAPDU: 80 11 00 00 [04:56:47]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:47]Read from MH i2c: E2 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 17 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2E [04:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:56:47]wFMCommunicate OK [04:56:47]CreateOFDProtocolMessage done [04:56:47]OFDSenderStorePacket 178585 [04:56:47]StoreOFDPacket docnum=178585 [04:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9C 06 07 01 DD 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8E 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 B9 02 00 35 04 06 00 0E 51 AF 17 5F 30 41 BF 8D E7 E3 E0 4A 33 [04:56:47]CheckFolder [04:56:47]dirname=/storage/ofd_packets [04:56:47]CheckFolder done [04:56:47]ProducePacketName [04:56:47]name=ofd_packets/00178585 [04:56:47]NVStorageSaveData ofd_packets/00178585 [04:56:47]File name is /storage/ofd_packets/00178585 [04:56:47]Write 301 bytes [04:56:47]NVStorageSaveData done [04:56:47]OFDSenderStorePacket done [04:56:47]KKMCreateOFDPacket done [04:56:47]NVStorageSaveData kkm_last_timestamp [04:56:47]File name is /storage/kkm_last_timestamp [04:56:47]Write 4 bytes [04:56:47]NVStorageSaveData done [04:56:47]ExternCall_PrintAddStr [04:56:47]wPrintStart [04:56:47]Write to MH i2c: 01 00 00 5B 01 5C [04:56:47]Write i2c OK [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: 01 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: 01 07 00 [04:56:47]MH_I2C_Read... [04:56:47]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [04:56:47]RasterBufferAndPrint [04:56:47]line Счет N : (1)293984 [04:56:47]line ИНН: 02508201610067 [04:56:47]line Контрольно-Кассовый Чек [04:56:47]line ПРОДАЖА [04:56:47]line ТРК (МРК, ГНК) : 42 [04:56:47]line Товар: 2710124130 [04:56:47]line Аи-92-К-5 [04:56:47]line 7.380 * 67.80 [04:56:47]line = 500.36 [04:56:47]line НДС 12% НСП 1% [04:56:47]line > о реализуемом товаре [04:56:47]line ОКРУГЛЕНИЕ: -0.36 [04:56:47]line ИТОГО: 500.00 [04:56:47]line Внесено: 500.00 [04:56:47]line СДАЧА: 0.00 [04:56:47]line НСП 1% : 4.43 [04:56:47]line НДС 12% : 53.14 [04:56:47]line Наличными: 500.00 [04:56:47]line Безнал.: 0.00 [04:56:47]line Место: АЗС № 130 "Партнер Нефть" [04:56:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:56:47]line СНО: Общий режим [04:56:47]line Чек 45 23.08.2024 04:56 [04:56:47]line Смена: 470 ФФД: 1.0 [04:56:47]line ЗНМ: 0300000071 [04:56:47]line РНМ: 0000000000092561 [04:56:47]line Версия ККМ: 001 [04:56:47]line ФМ: 0000000000871778 [04:56:47]line ФД: 178585 [04:56:47]line ФПД: 15743992684336 [04:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045646&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178585&fm=15743992684336&tin=02508201610067®Number=0000000000092561&sum=50000 [04:56:47]written 0, free lines is 4095 [04:56:47]OFD Sender: Processing packet 178585 [packets to send 497, broken 496] [04:56:47]ProducePacketName [04:56:47]name=ofd_packets/00178585 [04:56:47]OFD Sender: To server: pG, [04:56:47]CommunicateWithHost lk.salyk.kg:30040 [04:56:47]ConnectInit lk.salyk.kg [04:56:48]Write to MH i2c: 01 00 00 86 01 87 [04:56:48]Write i2c OK [04:56:48]MH_I2C_Read... [04:56:48]Read from MH i2c: 01 [04:56:48]MH_I2C_Read... [04:56:48]Read from MH i2c: 01 07 00 [04:56:48]MH_I2C_Read... [04:56:48]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 C7 0C 61 [04:56:48]RasterBufferAndPrint [04:56:48]line [04:56:48]line [04:56:48]line [04:56:48]line [04:56:48]line [04:56:48]written 0, free lines is 3277 [04:56:48]MH_Cut [04:56:48]Write to MH i2c: D1 01 00 8D 01 01 60 [04:56:48]Write i2c OK [04:56:48]MH_I2C_Read... [04:56:48]Read from MH i2c: D1 [04:56:48]MH_I2C_Read... [04:56:48]Read from MH i2c: D1 01 00 [04:56:48]MH_I2C_Read... [04:56:48]Read from MH i2c: D1 01 00 8D 01 00 5F [04:56:48]Write to MH i2c: 01 00 00 8E 01 8F [04:56:48]Write i2c OK [04:56:48]MH_I2C_Read... [04:56:49]Connected sock=7 [04:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9C 06 07 01 DD 08 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 8E 16 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 99 B9 02 00 35 04 06 00 0E 51 AF 17 5F 30 41 BF 8D E7 E3 E0 4A 33 [04:56:49]*** Cut start [04:56:49]*** Partial cut [04:56:49]*** CUTSNS_PIN = 1 [04:56:49]*** CUTSNS_PIN = 0 [04:56:49]*** Brake cut motor [04:56:49]Read from MH i2c: 01 [04:56:49]MH_I2C_Read... [04:56:49]*** Stop cut motor [04:56:49]*** Cut end [04:56:49]Read from MH i2c: 01 07 00 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [04:56:49]process_action close_receipt done [04:56:49]requested_data is exist [04:56:49]produce_requested_data [04:56:49]requested_item fm.sn is exist - process it [04:56:49]wFMCommunicate request_size=4 [04:56:49]MH_SAM_APDU [04:56:49]CAPDU: 80 11 00 00 [04:56:49]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [04:56:49]Write i2c OK [04:56:49]MH_I2C_Read... [04:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:49]Read from MH i2c: E2 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: E2 17 00 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 63 [04:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:56:49]wFMCommunicate OK [04:56:49]requested_item fd.num is exist - process it [04:56:49]SAM_PROTO_GetFieldsCounters [04:56:49]wFMCommunicate request_size=4 [04:56:49]MH_SAM_APDU [04:56:49]CAPDU: 80 13 00 00 [04:56:49]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [04:56:49]Write i2c OK [04:56:49]MH_I2C_Read... [04:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:49]Read from MH i2c: E2 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: E2 62 00 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 99 B9 02 00 0E 04 04 00 D6 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 E4 [04:56: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 99 B9 02 00 0E 04 04 00 D6 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 [04:56:49]wFMCommunicate OK [04:56:49]SAM_PROTO_GetFieldsCounters done [04:56:49]requested_item shift.num is exist - process it [04:56:49]requested_item shift.opened is exist - process it [04:56:49]req_shift_opened [04:56:49]FM_GetShiftState [04:56:49]SAM_PROTO_GetShiftState [04:56:49]wFMCommunicate request_size=4 [04:56:49]MH_SAM_APDU [04:56:49]CAPDU: 80 13 01 00 [04:56:49]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [04:56:49]Write i2c OK [04:56:49]MH_I2C_Read... [04:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:49]Read from MH i2c: E2 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: E2 0E 00 [04:56:49]MH_I2C_Read... [04:56:49]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E6 [04:56:49]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:56:49]wFMCommunicate OK [04:56:49]SAM_PROTO_GetShiftState done [04:56:49]FM_GetShiftState done [04:56:49]req_shift_opened done [04:56:49]requested_item shift.open_date is exist - process it [04:56:49]req_shift_open_date [04:56:49]req_shift_open_date done [04:56:49]produce_requested_data done [04:56:49]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178585,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:56:49]process_action_free close_receipt [04:56:49]json_value_free [04:56:49]json_value_free done [04:56:49]process_json_proto returns [04:56:49]Send response to host [04:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178585,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:56:49]free response buf [04:56:49]execute_script done [04:56:49]execute_script returns [04:56:49]free content buf [04:56:49]Sock 10.Close socket [04:56:49]Sock 10.Thread stoped [04:56:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4A 6B 47 00 88 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 31 37 37 38 10 04 04 00 99 B9 02 00 F4 03 04 00 38 C2 C7 66 B6 04 01 00 00 3D F3 D1 0C 2D 39 E6 1F [04:56:50]CommunicateWithHost err = 0 [04:56:50]CheckOFDResponse [04:56:50]1017 (14) - 77093643461234 [04:56:50]1041 (16) - 0000000000871778 [04:56:50]1040 (4) - 178585 [04:56:50]1012 (4) - 22.08.2024 22:56 [04:56:50]1206 (1) - 0 [04:56:50]OFD Sender: Remove packet 178585 [04:56:50]ProducePacketName [04:56:50]name=ofd_packets/00178585 [04:56:50]NVStorageDeleteData [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:56:57]recv_with_timeout no data received [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:17]recv_with_timeout no data received [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:54]accept exits with 9 [04:58:54]New connection [04:58:54]New thread 3067387236 created [04:58:54]Thread 3067530596 joined [04:58:54]Waiting for new connection... [04:58:54] Sock 9.Parse request [04:58:54]Sock 9.Check first char [04:58:54]Sock 9.First char is OK [04:58:54]request: POST /json_proto HTTP/1.0 [04:58:54]Method: POST [04:58:54]URL: /json_proto [04:58:54]Method is POST - this is cgi request [04:58:54]url: /json_proto [04:58:54]query_string will be loaded in cgi processing [04:58:54]execute_cgi json_proto POST (null) [04:58:54]execute_cgi path=json_proto method=POST [04:58:54]POST find Content-Length [04:58:54]Host: 172.17.44.131:8080 [04:58:54]Content-Length: 685 [04:58:54]Content-Type: application/json [04:58:54] [04:58:54]POST finish read [04:58:54]Found Content-Length = 685 [04:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 42.790, "sum" : 1600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:54]execute_script... [04:58: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)293981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 42.790, "sum" : 1600.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:58:54]POST & json_proto [04:58:54]process_json_proto [04:58:54]json parsed OK: [04:58:54]protocol is kg_v1.0 [04:58:54]action value=close_receipt [04:58:54]process_action close_receipt [04:58:54]cmd_close_receipt [04:58:54]MH_GetDate [04:58:54]Write to MH i2c: F0 00 00 92 01 82 [04:58:54]Write i2c OK [04:58:54]MH_I2C_Read... [04:58:54]Read from MH i2c: F0 [04:58:54]MH_I2C_Read... [04:58:54]Read from MH i2c: F0 09 00 [04:58:54]MH_I2C_Read... [04:58:54]Read from MH i2c: F0 09 00 92 01 00 0E 17 C8 66 4F 53 BE 66 A4 [04:58:54]GetLastDocTimeStamp 1724389006 [04:58:54]current date 1724389134 [04:58:54]FM_GetShiftState [04:58:54]SAM_PROTO_GetShiftState [04:58:54]wFMCommunicate request_size=4 [04:58:54]MH_SAM_APDU [04:58:54]CAPDU: 80 13 01 00 [04:58:54]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [04:58:54]Write i2c OK [04:58:54]MH_I2C_Read... [04:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:54]Read from MH i2c: E2 [04:58:54]MH_I2C_Read... [04:58:54]Read from MH i2c: E2 0E 00 [04:58:54]MH_I2C_Read... [04:58:54]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E8 [04:58:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:58:54]wFMCommunicate OK [04:58:54]SAM_PROTO_GetShiftState done [04:58:54]FM_GetShiftState done [04:58:54]opened in 1724371660 [04:58:54]opened+sec_in_day 1724458060 [04:58:54]quantity*price = 160034 [04:58:54]sum+1 = 160036 [04:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 46 23.08.2024 04:58 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178586 ФПД: 80557370544748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045854&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178586&fm=80557370544748&tin=02508201610067®Number=0000000000092561&sum=160000 [04:58:55]StoreToDocumentArchive [04:58:55]shift 470 fd 178586 [04:58:55]save to /storage/0470/doc_00178586 [04:58:55]save last doc name /storage/0470/doc_00178586 to /storage/kkm_last_doc_name [04:58:55]save OK [04:58:55]Clear old archive folders... [04:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [04:58:55]tlvbuf is 00160370 [04:58:55]SAM_PROTO_ClearQueue [04:58:55]wFMCommunicate request_size=4 [04:58:55]MH_SAM_APDU [04:58:55]CAPDU: 80 09 00 00 [04:58:55]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:58:55]Read from MH i2c: E2 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [04:58:55]RAPDU: 90 00 [04:58:55]wFMCommunicate OK [04:58:55]SAM_PROTO_ClearQueue done [04:58:55]KKMCreateOFDPacket [04:58:55]OFDProtocolAddRootSTLVToBuf [04:58:55]FM_MakeSignedData [04:58:55]FM_MakeSignedData [04:58:55]SAM_PROTO_SignData [04:58:55]wFMCommunicate request_size=4 [04:58:55]MH_SAM_APDU [04:58:55]CAPDU: 80 0D 01 02 [04:58:55]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:58:55]Read from MH i2c: E2 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [04:58:55]RAPDU: 90 00 [04:58:55]wFMCommunicate OK [04:58:55]wFMCommunicate request_size=255 [04:58:55]MH_SAM_APDU [04:58:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 26 A7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A B9 02 00 35 04 06 00 49 44 [04:58:55]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 26 A7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A B9 02 00 35 04 06 00 49 44 00 00 38 [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:55]Read from MH i2c: E2 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [04:58:55]RAPDU: 90 00 [04:58:55]wFMCommunicate OK [04:58:55]wFMCommunicate request_size=9 [04:58:55]MH_SAM_APDU [04:58:55]CAPDU: 80 0D 02 02 04 39 74 92 6C [04:58:55]Write to MH i2c: E2 0C 00 A3 01 80 0D 02 02 04 00 39 74 92 6C 00 00 D1 [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:58:55]Read from MH i2c: E2 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [04:58:55]RAPDU: 90 00 [04:58:55]wFMCommunicate OK [04:58:55]wFMCommunicate request_size=4 [04:58:55]MH_SAM_APDU [04:58:55]CAPDU: 80 0D 03 02 [04:58:55]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:58:55]Read from MH i2c: E2 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 0B 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 0B 00 A4 01 00 37 88 3B 44 B2 41 AC 21 90 00 1F [04:58:55]RAPDU: 37 88 3B 44 B2 41 AC 21 90 00 [04:58:55]wFMCommunicate OK [04:58:55]SAM_PROTO_SignData done [04:58:55]FM_MakeSignedData done [04:58:55]CreateOFDProtocolMessage [04:58:55]wFMCommunicate request_size=4 [04:58:55]MH_SAM_APDU [04:58:55]CAPDU: 80 11 00 00 [04:58:55]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:55]Read from MH i2c: E2 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 17 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 79 [04:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:58:55]wFMCommunicate OK [04:58:55]CreateOFDProtocolMessage done [04:58:55]OFDSenderStorePacket 178586 [04:58:55]StoreOFDPacket docnum=178586 [04:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 7E A2 06 01 15 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 26 A7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A B9 02 00 35 04 06 00 49 44 39 74 92 6C 37 88 3B 44 B2 41 AC 21 [04:58:55]CheckFolder [04:58:55]dirname=/storage/ofd_packets [04:58:55]CheckFolder done [04:58:55]ProducePacketName [04:58:55]name=ofd_packets/00178586 [04:58:55]NVStorageSaveData ofd_packets/00178586 [04:58:55]File name is /storage/ofd_packets/00178586 [04:58:55]Write 300 bytes [04:58:55]NVStorageSaveData done [04:58:55]OFDSenderStorePacket done [04:58:55]KKMCreateOFDPacket done [04:58:55]NVStorageSaveData kkm_last_timestamp [04:58:55]File name is /storage/kkm_last_timestamp [04:58:55]Write 4 bytes [04:58:55]NVStorageSaveData done [04:58:55]ExternCall_PrintAddStr [04:58:55]wPrintStart [04:58:55]Write to MH i2c: 01 00 00 A6 01 A7 [04:58:55]Write i2c OK [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: 01 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: 01 07 00 [04:58:55]MH_I2C_Read... [04:58:55]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [04:58:55]RasterBufferAndPrint [04:58:55]line Счет N : (1)293981 [04:58:55]line ИНН: 02508201610067 [04:58:55]line Контрольно-Кассовый Чек [04:58:55]line ПРОДАЖА [04:58:55]line ТРК (МРК, ГНК) : 71 [04:58:55]line Товар: 2711129700 [04:58:55]line ГАЗ-К-5 [04:58:55]line 42.790 * 37.40 [04:58:55]line = 1600.35 [04:58:55]line НДС 12% НСП 1% [04:58:55]line > о реализуемом товаре [04:58:55]line ОКРУГЛЕНИЕ: -0.35 [04:58:55]line ИТОГО: 1600.00 [04:58:55]line Внесено: 1600.00 [04:58:55]line СДАЧА: 0.00 [04:58:55]line НСП 1% : 14.16 [04:58:55]line НДС 12% : 169.95 [04:58:55]line Наличными: 1600.00 [04:58:55]line Безнал.: 0.00 [04:58:55]line Место: АЗС № 130 "Партнер Нефть" [04:58:55]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:58:55]line СНО: Общий режим [04:58:55]line Чек 46 23.08.2024 04:58 [04:58:55]line Смена: 470 ФФД: 1.0 [04:58:55]line ЗНМ: 0300000071 [04:58:55]line РНМ: 0000000000092561 [04:58:55]line Версия ККМ: 001 [04:58:55]line ФМ: 0000000000871778 [04:58:55]line ФД: 178586 [04:58:55]line ФПД: 80557370544748 [04:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045854&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178586&fm=80557370544748&tin=02508201610067®Number=0000000000092561&sum=160000 [04:58:56]written 0, free lines is 4095 [04:58:56]OFD Sender: Processing packet 178586 [packets to send 497, broken 496] [04:58:56]ProducePacketName [04:58:56]name=ofd_packets/00178586 [04:58:56]OFD Sender: To server: pG, [04:58:56]CommunicateWithHost lk.salyk.kg:30040 [04:58:56]ConnectInit lk.salyk.kg [04:58:56]Write to MH i2c: 01 00 00 D1 01 D2 [04:58:56]Write i2c OK [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: 01 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: 01 07 00 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 C9 0C AE [04:58:56]RasterBufferAndPrint [04:58:56]line [04:58:56]line [04:58:56]line [04:58:56]line [04:58:56]line [04:58:56]written 0, free lines is 3280 [04:58:56]MH_Cut [04:58:56]Write to MH i2c: D1 01 00 D8 01 01 AB [04:58:56]Write i2c OK [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: D1 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: D1 01 00 [04:58:56]MH_I2C_Read... [04:58:56]Read from MH i2c: D1 01 00 D8 01 00 AA [04:58:56]Write to MH i2c: 01 00 00 D9 01 DA [04:58:56]Write i2c OK [04:58:56]MH_I2C_Read... [04:58:57]*** Cut start [04:58:57]*** Partial cut [04:58:57]*** CUTSNS_PIN = 1 [04:58:57]*** CUTSNS_PIN = 0 [04:58:57]*** Brake cut motor [04:58:57]Read from MH i2c: 01 [04:58:57]MH_I2C_Read... [04:58:57]*** Stop cut motor [04:58:57]*** Cut end [04:58:57]Read from MH i2c: 01 07 00 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [04:58:57]process_action close_receipt done [04:58:57]requested_data is exist [04:58:57]produce_requested_data [04:58:57]requested_item fm.sn is exist - process it [04:58:57]wFMCommunicate request_size=4 [04:58:57]MH_SAM_APDU [04:58:57]CAPDU: 80 11 00 00 [04:58:57]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [04:58:57]Write i2c OK [04:58:57]MH_I2C_Read... [04:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:58:57]Read from MH i2c: E2 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: E2 17 00 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AE [04:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:58:57]wFMCommunicate OK [04:58:57]requested_item fd.num is exist - process it [04:58:57]SAM_PROTO_GetFieldsCounters [04:58:57]wFMCommunicate request_size=4 [04:58:57]MH_SAM_APDU [04:58:57]CAPDU: 80 13 00 00 [04:58:57]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [04:58:57]Write i2c OK [04:58:57]MH_I2C_Read... [04:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:58:57]Read from MH i2c: E2 [04:58:57]MH_I2C_Read... [04:58:57]Read from MH i2c: E2 62 00 [04:58:57]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9A B9 02 00 0E 04 04 00 D6 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 33 [04:58: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9A B9 02 00 0E 04 04 00 D6 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 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_GetFieldsCounters done [04:58:58]requested_item shift.num is exist - process it [04:58:58]requested_item shift.opened is exist - process it [04:58:58]req_shift_opened [04:58:58]FM_GetShiftState [04:58:58]SAM_PROTO_GetShiftState [04:58:58]wFMCommunicate request_size=4 [04:58:58]MH_SAM_APDU [04:58:58]CAPDU: 80 13 01 00 [04:58:58]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [04:58:58]Write i2c OK [04:58:58]MH_I2C_Read... [04:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:58:58]Read from MH i2c: E2 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0E 00 [04:58:58]MH_I2C_Read... [04:58:58]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 31 [04:58:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:58:58]wFMCommunicate OK [04:58:58]SAM_PROTO_GetShiftState done [04:58:58]FM_GetShiftState done [04:58:58]req_shift_opened done [04:58:58]requested_item shift.open_date is exist - process it [04:58:58]req_shift_open_date [04:58:58]req_shift_open_date done [04:58:58]produce_requested_data done [04:58:58]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178586,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:58:58]process_action_free close_receipt [04:58:58]json_value_free [04:58:58]json_value_free done [04:58:58]process_json_proto returns [04:58:58]Send response to host [04:58:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178586,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:58:58]free response buf [04:58:58]execute_script done [04:58:58]execute_script returns [04:58:58]free content buf [04:58:58]Sock 9.Close socket [04:58:58]Sock 9.Thread stoped [04:58:58]Connected sock=11 [04:58:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 7E A2 06 01 15 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 26 A7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 23 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 0E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9A B9 02 00 35 04 06 00 49 44 39 74 92 6C 37 88 3B 44 B2 41 AC 21 [04:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 8A 3B 47 00 64 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 31 37 37 38 10 04 04 00 9A B9 02 00 F4 03 04 00 B9 C2 C7 66 B6 04 01 00 00 63 B8 AE 5D 92 D7 BF AC [04:58:58]CommunicateWithHost err = 0 [04:58:58]CheckOFDResponse [04:58:58]1017 (14) - 77093643461234 [04:58:58]1041 (16) - 0000000000871778 [04:58:58]1040 (4) - 178586 [04:58:58]1012 (4) - 22.08.2024 22:59 [04:58:58]1206 (1) - 0 [04:58:58]OFD Sender: Remove packet 178586 [04:58:58]ProducePacketName [04:58:58]name=ofd_packets/00178586 [04:58:58]NVStorageDeleteData [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:12]recv_with_timeout no data received [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:42]accept exits with 7 [04:59:42]New connection [04:59:42]New thread 3067530596 created [04:59:42]Thread 3067387236 joined [04:59:42]Waiting for new connection... [04:59:42] Sock 7.Parse request [04:59:42]Sock 7.Check first char [04:59:42]Sock 7.First char is OK [04:59:42]request: POST /json_proto HTTP/1.0 [04:59:42]Method: POST [04:59:42]URL: /json_proto [04:59:42]Method is POST - this is cgi request [04:59:42]url: /json_proto [04:59:42]query_string will be loaded in cgi processing [04:59:42]execute_cgi json_proto POST (null) [04:59:42]execute_cgi path=json_proto method=POST [04:59:42]POST find Content-Length [04:59:42]Host: 172.17.44.131:8080 [04:59:42]Content-Length: 677 [04:59:42]Content-Type: application/json [04:59:42] [04:59:42]POST finish read [04:59:42]Found Content-Length = 677 [04:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293985", "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" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [04:59:42]execute_script... [04:59: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)293985", "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" : 67.80, "quantity" : 3.690, "sum" : 250.18, "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" ] } } [04:59:42]POST & json_proto [04:59:42]process_json_proto [04:59:42]json parsed OK: [04:59:42]protocol is kg_v1.0 [04:59:42]action value=close_receipt [04:59:42]process_action close_receipt [04:59:42]cmd_close_receipt [04:59:42]MH_GetDate [04:59:42]Write to MH i2c: F0 00 00 DD 01 CD [04:59:42]Write i2c OK [04:59:42]MH_I2C_Read... [04:59:42]Read from MH i2c: F0 [04:59:42]MH_I2C_Read... [04:59:42]Read from MH i2c: F0 09 00 [04:59:42]MH_I2C_Read... [04:59:42]Read from MH i2c: F0 09 00 DD 01 00 3E 17 C8 66 4F 53 BE 66 1F [04:59:42]GetLastDocTimeStamp 1724389134 [04:59:42]current date 1724389182 [04:59:42]FM_GetShiftState [04:59:42]SAM_PROTO_GetShiftState [04:59:42]wFMCommunicate request_size=4 [04:59:42]MH_SAM_APDU [04:59:42]CAPDU: 80 13 01 00 [04:59:42]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [04:59:42]Write i2c OK [04:59:42]MH_I2C_Read... [04:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:42]Read from MH i2c: E2 [04:59:42]MH_I2C_Read... [04:59:42]Read from MH i2c: E2 0E 00 [04:59:42]MH_I2C_Read... [04:59:42]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 33 [04:59:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:59:42]wFMCommunicate OK [04:59:42]SAM_PROTO_GetShiftState done [04:59:42]FM_GetShiftState done [04:59:42]opened in 1724371660 [04:59:42]opened+sec_in_day 1724458060 [04:59:42]quantity*price = 25018 [04:59:42]sum+1 = 25019 [04:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 47 23.08.2024 04:59 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178587 ФПД: 36725440742582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045942&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178587&fm=36725440742582&tin=02508201610067®Number=0000000000092561&sum=25000 [04:59:43]StoreToDocumentArchive [04:59:43]shift 470 fd 178587 [04:59:43]save to /storage/0470/doc_00178587 [04:59:43]save last doc name /storage/0470/doc_00178587 to /storage/kkm_last_doc_name [04:59:43]save OK [04:59:43]Clear old archive folders... [04:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:59:43]tlvbuf is 001E1580 [04:59:43]SAM_PROTO_ClearQueue [04:59:43]wFMCommunicate request_size=4 [04:59:43]MH_SAM_APDU [04:59:43]CAPDU: 80 09 00 00 [04:59:43]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:43]Read from MH i2c: E2 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [04:59:43]RAPDU: 90 00 [04:59:43]wFMCommunicate OK [04:59:43]SAM_PROTO_ClearQueue done [04:59:43]KKMCreateOFDPacket [04:59:43]OFDProtocolAddRootSTLVToBuf [04:59:43]FM_MakeSignedData [04:59:43]FM_MakeSignedData [04:59:43]SAM_PROTO_SignData [04:59:43]wFMCommunicate request_size=4 [04:59:43]MH_SAM_APDU [04:59:43]CAPDU: 80 0D 01 02 [04:59:43]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:43]Read from MH i2c: E2 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [04:59:43]RAPDU: 90 00 [04:59:43]wFMCommunicate OK [04:59:43]wFMCommunicate request_size=255 [04:59:43]MH_SAM_APDU [04:59: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 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 61 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 2F 00 00 00 F4 03 04 00 3E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B B9 02 00 35 04 06 00 21 [04:59:43]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 61 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 2F 00 00 00 F4 03 04 00 3E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B B9 02 00 35 04 06 00 21 00 00 F7 [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:43]Read from MH i2c: E2 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [04:59:43]RAPDU: 90 00 [04:59:43]wFMCommunicate OK [04:59:43]wFMCommunicate request_size=10 [04:59:43]MH_SAM_APDU [04:59:43]CAPDU: 80 0D 02 02 05 66 CE D9 84 B6 [04:59:43]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 66 CE D9 84 B6 00 00 BA [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:43]Read from MH i2c: E2 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [04:59:43]RAPDU: 90 00 [04:59:43]wFMCommunicate OK [04:59:43]wFMCommunicate request_size=4 [04:59:43]MH_SAM_APDU [04:59:43]CAPDU: 80 0D 03 02 [04:59:43]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:43]Read from MH i2c: E2 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 0B 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 0B 00 EF 01 00 C2 37 10 59 E5 76 D5 09 90 00 07 [04:59:43]RAPDU: C2 37 10 59 E5 76 D5 09 90 00 [04:59:43]wFMCommunicate OK [04:59:43]SAM_PROTO_SignData done [04:59:43]FM_MakeSignedData done [04:59:43]CreateOFDProtocolMessage [04:59:43]wFMCommunicate request_size=4 [04:59:43]MH_SAM_APDU [04:59:43]CAPDU: 80 11 00 00 [04:59:43]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:43]Read from MH i2c: E2 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 17 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C4 [04:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:59:43]wFMCommunicate OK [04:59:43]CreateOFDProtocolMessage done [04:59:43]OFDSenderStorePacket 178587 [04:59:43]StoreOFDPacket docnum=178587 [04:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E6 DF 07 01 5A 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 61 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 2F 00 00 00 F4 03 04 00 3E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B B9 02 00 35 04 06 00 21 66 CE D9 84 B6 C2 37 10 59 E5 76 D5 09 [04:59:43]CheckFolder [04:59:43]dirname=/storage/ofd_packets [04:59:43]CheckFolder done [04:59:43]ProducePacketName [04:59:43]name=ofd_packets/00178587 [04:59:43]NVStorageSaveData ofd_packets/00178587 [04:59:43]File name is /storage/ofd_packets/00178587 [04:59:43]Write 301 bytes [04:59:43]NVStorageSaveData done [04:59:43]OFDSenderStorePacket done [04:59:43]KKMCreateOFDPacket done [04:59:43]NVStorageSaveData kkm_last_timestamp [04:59:43]File name is /storage/kkm_last_timestamp [04:59:43]Write 4 bytes [04:59:43]NVStorageSaveData done [04:59:43]ExternCall_PrintAddStr [04:59:43]wPrintStart [04:59:43]Write to MH i2c: 01 00 00 F1 01 F2 [04:59:43]Write i2c OK [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: 01 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: 01 07 00 [04:59:43]MH_I2C_Read... [04:59:43]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [04:59:43]RasterBufferAndPrint [04:59:43]line Счет N : (1)293985 [04:59:43]line ИНН: 02508201610067 [04:59:43]line Контрольно-Кассовый Чек [04:59:43]line ПРОДАЖА [04:59:43]line ТРК (МРК, ГНК) : 42 [04:59:43]line Товар: 2710124130 [04:59:43]line Аи-92-К-5 [04:59:43]line 3.690 * 67.80 [04:59:43]line = 250.18 [04:59:43]line НДС 12% НСП 1% [04:59:43]line > о реализуемом товаре [04:59:43]line ОКРУГЛЕНИЕ: -0.18 [04:59:43]line ИТОГО: 250.00 [04:59:43]line Внесено: 250.00 [04:59:43]line СДАЧА: 0.00 [04:59:43]line НСП 1% : 2.21 [04:59:43]line НДС 12% : 26.57 [04:59:43]line Наличными: 250.00 [04:59:43]line Безнал.: 0.00 [04:59:43]line Место: АЗС № 130 "Партнер Нефть" [04:59:43]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [04:59:43]line СНО: Общий режим [04:59:43]line Чек 47 23.08.2024 04:59 [04:59:43]line Смена: 470 ФФД: 1.0 [04:59:43]line ЗНМ: 0300000071 [04:59:43]line РНМ: 0000000000092561 [04:59:43]line Версия ККМ: 001 [04:59:43]line ФМ: 0000000000871778 [04:59:43]line ФД: 178587 [04:59:43]line ФПД: 36725440742582 [04:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T045942&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178587&fm=36725440742582&tin=02508201610067®Number=0000000000092561&sum=25000 [04:59:43]written 0, free lines is 4095 [04:59:43]OFD Sender: Processing packet 178587 [packets to send 497, broken 496] [04:59:43]ProducePacketName [04:59:43]name=ofd_packets/00178587 [04:59:43]OFD Sender: To server: pG, [04:59:43]CommunicateWithHost lk.salyk.kg:30040 [04:59:43]ConnectInit lk.salyk.kg [04:59:44]Write to MH i2c: 01 00 00 1C 02 1E [04:59:44]Write i2c OK [04:59:44]MH_I2C_Read... [04:59:44]Read from MH i2c: 01 [04:59:44]MH_I2C_Read... [04:59:44]Read from MH i2c: 01 07 00 [04:59:44]MH_I2C_Read... [04:59:44]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 C7 0C F8 [04:59:44]RasterBufferAndPrint [04:59:44]line [04:59:44]line [04:59:44]line [04:59:44]line [04:59:44]line [04:59:44]written 0, free lines is 3277 [04:59:44]MH_Cut [04:59:44]Write to MH i2c: D1 01 00 23 02 01 F7 [04:59:44]Write i2c OK [04:59:44]MH_I2C_Read... [04:59:44]Read from MH i2c: D1 [04:59:44]MH_I2C_Read... [04:59:44]Read from MH i2c: D1 01 00 [04:59:44]MH_I2C_Read... [04:59:44]Read from MH i2c: D1 01 00 23 02 00 F6 [04:59:44]Write to MH i2c: 01 00 00 24 02 26 [04:59:44]Write i2c OK [04:59:44]MH_I2C_Read... [04:59:44]Connected sock=10 [04:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E6 DF 07 01 5A 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 0E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 BA 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 61 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 2F 00 00 00 F4 03 04 00 3E 17 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B B9 02 00 35 04 06 00 21 66 CE D9 84 B6 C2 37 10 59 E5 76 D5 09 [04:59:45]*** Cut start [04:59:45]*** Partial cut [04:59:45]*** CUTSNS_PIN = 1 [04:59:45]*** CUTSNS_PIN = 0 [04:59:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A2 83 47 00 CB 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9B B9 02 00 F4 03 04 00 E7 C2 C7 66 B6 04 01 00 00 C7 A8 BA 2C DD 0C 54 BD [04:59:45]CommunicateWithHost err = 0 [04:59:45]CheckOFDResponse [04:59:45]1017 (14) - 77093643461234 [04:59:45]1041 (16) - 0000000000871778 [04:59:45]1040 (4) - 178587 [04:59:45]1012 (4) - 22.08.2024 22:59 [04:59:45]1206 (1) - 0 [04:59:45]OFD Sender: Remove packet 178587 [04:59:45]ProducePacketName [04:59:45]name=ofd_packets/00178587 [04:59:45]NVStorageDeleteData [04:59:45]*** Brake cut motor [04:59:45]Read from MH i2c: 01 [04:59:45]MH_I2C_Read... [04:59:45]*** Stop cut motor [04:59:45]*** Cut end [04:59:45]Read from MH i2c: 01 07 00 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [04:59:45]process_action close_receipt done [04:59:45]requested_data is exist [04:59:45]produce_requested_data [04:59:45]requested_item fm.sn is exist - process it [04:59:45]wFMCommunicate request_size=4 [04:59:45]MH_SAM_APDU [04:59:45]CAPDU: 80 11 00 00 [04:59:45]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [04:59:45]Write i2c OK [04:59:45]MH_I2C_Read... [04:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:45]Read from MH i2c: E2 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: E2 17 00 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FA [04:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [04:59:45]wFMCommunicate OK [04:59:45]requested_item fd.num is exist - process it [04:59:45]SAM_PROTO_GetFieldsCounters [04:59:45]wFMCommunicate request_size=4 [04:59:45]MH_SAM_APDU [04:59:45]CAPDU: 80 13 00 00 [04:59:45]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [04:59:45]Write i2c OK [04:59:45]MH_I2C_Read... [04:59:45]OFD Sender: No OFD packet to send [04:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:45]Read from MH i2c: E2 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: E2 62 00 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9B B9 02 00 0E 04 04 00 D6 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 83 [04:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9B B9 02 00 0E 04 04 00 D6 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 [04:59:45]wFMCommunicate OK [04:59:45]SAM_PROTO_GetFieldsCounters done [04:59:45]requested_item shift.num is exist - process it [04:59:45]requested_item shift.opened is exist - process it [04:59:45]req_shift_opened [04:59:45]FM_GetShiftState [04:59:45]SAM_PROTO_GetShiftState [04:59:45]wFMCommunicate request_size=4 [04:59:45]MH_SAM_APDU [04:59:45]CAPDU: 80 13 01 00 [04:59:45]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [04:59:45]Write i2c OK [04:59:45]MH_I2C_Read... [04:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:45]Read from MH i2c: E2 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: E2 0E 00 [04:59:45]MH_I2C_Read... [04:59:45]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7D [04:59:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [04:59:45]wFMCommunicate OK [04:59:45]SAM_PROTO_GetShiftState done [04:59:45]FM_GetShiftState done [04:59:45]req_shift_opened done [04:59:45]requested_item shift.open_date is exist - process it [04:59:45]req_shift_open_date [04:59:45]req_shift_open_date done [04:59:45]produce_requested_data done [04:59:45]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178587,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [04:59:45]process_action_free close_receipt [04:59:45]json_value_free [04:59:45]json_value_free done [04:59:45]process_json_proto returns [04:59:45]Send response to host [04:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178587,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [04:59:45]free response buf [04:59:45]execute_script done [04:59:45]execute_script returns [04:59:45]free content buf [04:59:45]Sock 7.Close socket [04:59:45]Sock 7.Thread stoped [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:00:57]recv_with_timeout no data received [05:01:00]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:16]recv_with_timeout no data received [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:35]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:53]recv_with_timeout no data received [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:43]recv_with_timeout no data received [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:16]recv_with_timeout no data received [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:40]recv_with_timeout no data received [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]accept exits with 9 [05:14:37]New connection [05:14:37]New thread 3067387236 created [05:14:37]Thread 3067530596 joined [05:14:37]Waiting for new connection... [05:14:37] Sock 9.Parse request [05:14:37]Sock 9.Check first char [05:14:37]Sock 9.First char is OK [05:14:37]request: POST /json_proto HTTP/1.0 [05:14:37]Method: POST [05:14:37]URL: /json_proto [05:14:37]Method is POST - this is cgi request [05:14:37]url: /json_proto [05:14:37]query_string will be loaded in cgi processing [05:14:37]execute_cgi json_proto POST (null) [05:14:37]execute_cgi path=json_proto method=POST [05:14:37]POST find Content-Length [05:14:37]Host: 172.17.44.131:8080 [05:14:37]Content-Length: 679 [05:14:37]Content-Type: application/json [05:14:37] [05:14:37]POST finish read [05:14:37]Found Content-Length = 679 [05:14:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:14:37]execute_script... [05: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)293986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 23.630, "sum" : 1800.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:14:37]POST & json_proto [05:14:37]process_json_proto [05:14:37]json parsed OK: [05:14:37]protocol is kg_v1.0 [05:14:37]action value=close_receipt [05:14:37]process_action close_receipt [05:14:37]cmd_close_receipt [05:14:37]MH_GetDate [05:14:37]Write to MH i2c: F0 00 00 28 02 19 [05:14:37]Write i2c OK [05:14:37]MH_I2C_Read... [05:14:37]Read from MH i2c: F0 [05:14:37]MH_I2C_Read... [05:14:37]Read from MH i2c: F0 09 00 [05:14:37]MH_I2C_Read... [05:14:37]Read from MH i2c: F0 09 00 28 02 00 BE 1A C8 66 4F 53 BE 66 EE [05:14:37]GetLastDocTimeStamp 1724389182 [05:14:37]current date 1724390078 [05:14:37]FM_GetShiftState [05:14:37]SAM_PROTO_GetShiftState [05:14:37]wFMCommunicate request_size=4 [05:14:37]MH_SAM_APDU [05:14:37]CAPDU: 80 13 01 00 [05:14:37]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [05:14:37]Write i2c OK [05:14:37]MH_I2C_Read... [05:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:37]Read from MH i2c: E2 [05:14:37]MH_I2C_Read... [05:14:37]Read from MH i2c: E2 0E 00 [05:14:37]MH_I2C_Read... [05:14:37]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7F [05:14:37]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:14:37]wFMCommunicate OK [05:14:37]SAM_PROTO_GetShiftState done [05:14:37]FM_GetShiftState done [05:14:37]opened in 1724371660 [05:14:37]opened+sec_in_day 1724458060 [05:14:37]quantity*price = 180060 [05:14:37]sum+1 = 180062 [05:14:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.21 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 48 23.08.2024 05:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178588 ФПД: 240200965837772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T051438&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178588&fm=240200965837772&tin=02508201610067®Number=0000000000092561&sum=180000 [05:14:38]StoreToDocumentArchive [05:14:38]shift 470 fd 178588 [05:14:38]save to /storage/0470/doc_00178588 [05:14:38]save last doc name /storage/0470/doc_00178588 to /storage/kkm_last_doc_name [05:14:38]save OK [05:14:38]Clear old archive folders... [05:14:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:14:38]tlvbuf is 0015FF80 [05:14:38]SAM_PROTO_ClearQueue [05:14:38]wFMCommunicate request_size=4 [05:14:38]MH_SAM_APDU [05:14:38]CAPDU: 80 09 00 00 [05:14:38]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [05:14:38]Write i2c OK [05:14:38]MH_I2C_Read... [05:14:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:14:38]Read from MH i2c: E2 [05:14:38]MH_I2C_Read... [05:14:38]Read from MH i2c: E2 03 00 [05:14:38]MH_I2C_Read... [05:14:38]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [05:14:38]RAPDU: 90 00 [05:14:38]wFMCommunicate OK [05:14:38]SAM_PROTO_ClearQueue done [05:14:38]KKMCreateOFDPacket [05:14:38]OFDProtocolAddRootSTLVToBuf [05:14:38]FM_MakeSignedData [05:14:38]FM_MakeSignedData [05:14:38]SAM_PROTO_SignData [05:14:38]wFMCommunicate request_size=4 [05:14:38]MH_SAM_APDU [05:14:38]CAPDU: 80 0D 01 02 [05:14:38]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [05:14:38]Write i2c OK [05:14:38]MH_I2C_Read... [05:14:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:14:39]Read from MH i2c: E2 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 03 00 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [05:14:39]RAPDU: 90 00 [05:14:39]wFMCommunicate OK [05:14:39]wFMCommunicate request_size=255 [05:14:39]MH_SAM_APDU [05:14:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BE 1A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C B9 02 00 35 04 06 00 DA 76 25 3E [05:14:39]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BE 1A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C B9 02 00 35 04 06 00 DA 76 25 3E 00 00 D4 [05:14:39]Write i2c OK [05:14:39]MH_I2C_Read... [05:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:39]Read from MH i2c: E2 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 03 00 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [05:14:39]RAPDU: 90 00 [05:14:39]wFMCommunicate OK [05:14:39]wFMCommunicate request_size=7 [05:14:39]MH_SAM_APDU [05:14:39]CAPDU: 80 0D 02 02 02 53 CC [05:14:39]Write to MH i2c: E2 0A 00 39 02 80 0D 02 02 02 00 53 CC 00 00 D8 [05:14:39]Write i2c OK [05:14:39]MH_I2C_Read... [05:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:14:39]Read from MH i2c: E2 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 03 00 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [05:14:39]RAPDU: 90 00 [05:14:39]wFMCommunicate OK [05:14:39]wFMCommunicate request_size=4 [05:14:39]MH_SAM_APDU [05:14:39]CAPDU: 80 0D 03 02 [05:14:39]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [05:14:39]Write i2c OK [05:14:39]MH_I2C_Read... [05:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:14:39]Read from MH i2c: E2 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 0B 00 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 0B 00 3A 02 00 8B B6 8B 64 5F FA F0 A8 90 00 D9 [05:14:39]RAPDU: 8B B6 8B 64 5F FA F0 A8 90 00 [05:14:39]wFMCommunicate OK [05:14:39]SAM_PROTO_SignData done [05:14:39]FM_MakeSignedData done [05:14:39]CreateOFDProtocolMessage [05:14:39]wFMCommunicate request_size=4 [05:14:39]MH_SAM_APDU [05:14:39]CAPDU: 80 11 00 00 [05:14:39]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [05:14:39]Write i2c OK [05:14:39]MH_I2C_Read... [05:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:39]Read from MH i2c: E2 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 17 00 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 10 [05:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:14:39]wFMCommunicate OK [05:14:39]CreateOFDProtocolMessage done [05:14:39]OFDSenderStorePacket 178588 [05:14:39]StoreOFDPacket docnum=178588 [05:14:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 0A 50 04 01 38 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BE 1A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C B9 02 00 35 04 06 00 DA 76 25 3E 53 CC 8B B6 8B 64 5F FA F0 A8 [05:14:39]CheckFolder [05:14:39]dirname=/storage/ofd_packets [05:14:39]CheckFolder done [05:14:39]ProducePacketName [05:14:39]name=ofd_packets/00178588 [05:14:39]NVStorageSaveData ofd_packets/00178588 [05:14:39]File name is /storage/ofd_packets/00178588 [05:14:39]Write 298 bytes [05:14:39]NVStorageSaveData done [05:14:39]OFDSenderStorePacket done [05:14:39]KKMCreateOFDPacket done [05:14:39]NVStorageSaveData kkm_last_timestamp [05:14:39]File name is /storage/kkm_last_timestamp [05:14:39]Write 4 bytes [05:14:39]NVStorageSaveData done [05:14:39]ExternCall_PrintAddStr [05:14:39]wPrintStart [05:14:39]Write to MH i2c: 01 00 00 3C 02 3E [05:14:39]Write i2c OK [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: 01 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: 01 07 00 [05:14:39]MH_I2C_Read... [05:14:39]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [05:14:39]RasterBufferAndPrint [05:14:39]line Счет N : (1)293986 [05:14:39]line ИНН: 02508201610067 [05:14:39]line Контрольно-Кассовый Чек [05:14:39]line ПРОДАЖА [05:14:39]line ТРК (МРК, ГНК) : 11 [05:14:39]line Товар: 2710194800 [05:14:39]line ДТ-К-5 [05:14:39]line 23.630 * 76.20 [05:14:39]line = 1800.61 [05:14:39]line НДС 12% НСП 1% [05:14:39]line > о реализуемом товаре [05:14:39]line ОКРУГЛЕНИЕ: -0.61 [05:14:39]line ИТОГО: 1800.00 [05:14:39]line Внесено: 1800.00 [05:14:39]line СДАЧА: 0.00 [05:14:39]line НСП 1% : 15.93 [05:14:39]line НДС 12% : 191.21 [05:14:39]line Наличными: 1800.00 [05:14:39]line Безнал.: 0.00 [05:14:39]line Место: АЗС № 130 "Партнер Нефть" [05:14:39]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:14:39]line СНО: Общий режим [05:14:39]line Чек 48 23.08.2024 05:14 [05:14:39]line Смена: 470 ФФД: 1.0 [05:14:39]line ЗНМ: 0300000071 [05:14:39]line РНМ: 0000000000092561 [05:14:39]line Версия ККМ: 001 [05:14:39]line ФМ: 0000000000871778 [05:14:39]line ФД: 178588 [05:14:39]line ФПД: 240200965837772 [05:14:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T051438&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178588&fm=240200965837772&tin=02508201610067®Number=0000000000092561&sum=180000 [05:14:39]OFD Sender: Processing packet 178588 [packets to send 497, broken 496] [05:14:39]ProducePacketName [05:14:39]name=ofd_packets/00178588 [05:14:39]OFD Sender: To server: pG, [05:14:39]CommunicateWithHost lk.salyk.kg:30040 [05:14:39]ConnectInit lk.salyk.kg [05:14:39]written 0, free lines is 4095 [05:14:40]Write to MH i2c: 01 00 00 67 02 69 [05:14:40]Write i2c OK [05:14:40]MH_I2C_Read... [05:14:40]Read from MH i2c: 01 [05:14:40]MH_I2C_Read... [05:14:40]Read from MH i2c: 01 07 00 [05:14:40]MH_I2C_Read... [05:14:40]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 CA 0C 46 [05:14:40]RasterBufferAndPrint [05:14:40]line [05:14:40]line [05:14:40]line [05:14:40]line [05:14:40]line [05:14:40]written 0, free lines is 3281 [05:14:40]MH_Cut [05:14:40]Write to MH i2c: D1 01 00 6E 02 01 42 [05:14:40]Write i2c OK [05:14:40]MH_I2C_Read... [05:14:40]Read from MH i2c: D1 [05:14:40]MH_I2C_Read... [05:14:40]Read from MH i2c: D1 01 00 [05:14:40]MH_I2C_Read... [05:14:40]Read from MH i2c: D1 01 00 6E 02 00 41 [05:14:40]Write to MH i2c: 01 00 00 6F 02 71 [05:14:40]Write i2c OK [05:14:40]MH_I2C_Read... [05:14:40]Connected sock=10 [05: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 31 37 37 38 0C 01 00 00 0A 50 04 01 38 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4E 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 BE 1A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9C B9 02 00 35 04 06 00 DA 76 25 3E 53 CC 8B B6 8B 64 5F FA F0 A8 [05:14:41]*** Cut start [05:14:41]*** Partial cut [05:14:41]*** CUTSNS_PIN = 1 [05:14:41]*** CUTSNS_PIN = 0 [05:14:41]*** Brake cut motor [05:14:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B8 47 47 00 7F 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 31 37 37 38 10 04 04 00 9C B9 02 00 F4 03 04 00 67 C6 C7 66 B6 04 01 00 00 CB F7 F7 F5 B1 90 0A 18 [05:14:41]CommunicateWithHost err = 0 [05:14:41]CheckOFDResponse [05:14:41]1017 (14) - 77093643461234 [05:14:41]1041 (16) - 0000000000871778 [05:14:41]1040 (4) - 178588 [05:14:41]1012 (4) - 22.08.2024 23:14 [05:14:41]1206 (1) - 0 [05:14:41]OFD Sender: Remove packet 178588 [05:14:41]ProducePacketName [05:14:41]name=ofd_packets/00178588 [05:14:41]NVStorageDeleteData [05:14:41]Read from MH i2c: 01 [05:14:41]MH_I2C_Read... [05:14:41]*** Stop cut motor [05:14:41]*** Cut end [05:14:41]Read from MH i2c: 01 07 00 [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [05:14:41]process_action close_receipt done [05:14:41]requested_data is exist [05:14:41]produce_requested_data [05:14:41]requested_item fm.sn is exist - process it [05:14:41]wFMCommunicate request_size=4 [05:14:41]MH_SAM_APDU [05:14:41]CAPDU: 80 11 00 00 [05:14:41]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [05:14:41]Write i2c OK [05:14:41]MH_I2C_Read... [05:14:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:14:41]Read from MH i2c: E2 [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: E2 17 00 [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 45 [05:14:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:14:41]wFMCommunicate OK [05:14:41]requested_item fd.num is exist - process it [05:14:41]SAM_PROTO_GetFieldsCounters [05:14:41]wFMCommunicate request_size=4 [05:14:41]MH_SAM_APDU [05:14:41]CAPDU: 80 13 00 00 [05:14:41]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [05:14:41]Write i2c OK [05:14:41]MH_I2C_Read... [05:14:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:14:41]Read from MH i2c: E2 [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: E2 62 00 [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9C B9 02 00 0E 04 04 00 D6 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 D2 [05: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9C B9 02 00 0E 04 04 00 D6 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 [05:14:41]wFMCommunicate OK [05:14:41]SAM_PROTO_GetFieldsCounters done [05:14:41]requested_item shift.num is exist - process it [05:14:41]requested_item shift.opened is exist - process it [05:14:41]req_shift_opened [05:14:41]FM_GetShiftState [05:14:41]SAM_PROTO_GetShiftState [05:14:41]wFMCommunicate request_size=4 [05:14:41]MH_SAM_APDU [05:14:41]CAPDU: 80 13 01 00 [05:14:41]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [05:14:41]Write i2c OK [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: E2 [05:14:41]MH_I2C_Read... [05:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:14:41]Read from MH i2c: E2 0E 00 [05:14:41]MH_I2C_Read... [05:14:41]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C8 [05:14:41]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:14:41]wFMCommunicate OK [05:14:41]SAM_PROTO_GetShiftState done [05:14:41]FM_GetShiftState done [05:14:41]req_shift_opened done [05:14:41]requested_item shift.open_date is exist - process it [05:14:41]req_shift_open_date [05:14:41]req_shift_open_date done [05:14:41]produce_requested_data done [05:14:41]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178588,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [05:14:41]process_action_free close_receipt [05:14:41]json_value_free [05:14:41]json_value_free done [05:14:41]process_json_proto returns [05:14:41]Send response to host [05:14:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178588,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [05:14:41]free response buf [05:14:41]execute_script done [05:14:41]execute_script returns [05:14:41]free content buf [05:14:41]Sock 9.Close socket [05:14:41]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:44]accept exits with 7 [05:16:44]New connection [05:16:44]New thread 3067530596 created [05:16:44]Thread 3067387236 joined [05:16:44]Waiting for new connection... [05:16:44] Sock 7.Parse request [05:16:44]Sock 7.Check first char [05:16:44]Sock 7.First char is OK [05:16:44]request: POST /json_proto HTTP/1.0 [05:16:44]Method: POST [05:16:44]URL: /json_proto [05:16:44]Method is POST - this is cgi request [05:16:44]url: /json_proto [05:16:44]query_string will be loaded in cgi processing [05:16:44]execute_cgi json_proto POST (null) [05:16:44]execute_cgi path=json_proto method=POST [05:16:44]POST find Content-Length [05:16:44]Host: 172.17.44.131:8080 [05:16:44]Content-Length: 639 [05:16:44]Content-Type: application/json [05:16:44] [05:16:44]POST finish read [05:16:44]Found Content-Length = 639 [05:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 20.210, "sum" : 1540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:44]execute_script... [05:16:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 20.210, "sum" : 1540.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:44]POST & json_proto [05:16:44]process_json_proto [05:16:44]json parsed OK: [05:16:44]protocol is kg_v1.0 [05:16:44]action value=close_receipt [05:16:44]process_action close_receipt [05:16:44]cmd_close_receipt [05:16:44]MH_GetDate [05:16:44]Write to MH i2c: F0 00 00 73 02 64 [05:16:44]Write i2c OK [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: F0 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: F0 09 00 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: F0 09 00 73 02 00 3D 1B C8 66 4F 53 BE 66 B9 [05:16:44]GetLastDocTimeStamp 1724390078 [05:16:44]current date 1724390205 [05:16:44]FM_GetShiftState [05:16:44]SAM_PROTO_GetShiftState [05:16:44]wFMCommunicate request_size=4 [05:16:44]MH_SAM_APDU [05:16:44]CAPDU: 80 13 01 00 [05:16:44]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [05:16:44]Write i2c OK [05:16:44]MH_I2C_Read... [05:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:44]Read from MH i2c: E2 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: E2 0E 00 [05:16:44]MH_I2C_Read... [05:16:44]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CA [05:16:44]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:16:44]wFMCommunicate OK [05:16:44]SAM_PROTO_GetShiftState done [05:16:44]FM_GetShiftState done [05:16:44]opened in 1724371660 [05:16:44]opened+sec_in_day 1724458060 [05:16:44]quantity*price = 154000 [05:16:44]sum+1 = 154001 [05:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1540.00 НСП 1% : 13.63 НДС 12% : 163.54 Наличными: 1540.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 49 23.08.2024 05:16 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178589 ФПД: 147026783634183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T051645&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178589&fm=147026783634183&tin=02508201610067®Number=0000000000092561&sum=154000 [05:16:45]StoreToDocumentArchive [05:16:45]shift 470 fd 178589 [05:16:45]save to /storage/0470/doc_00178589 [05:16:45]save last doc name /storage/0470/doc_00178589 to /storage/kkm_last_doc_name [05:16:45]save OK [05:16:45]Clear old archive folders... [05:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:16:45]tlvbuf is 001E15D0 [05:16:45]SAM_PROTO_ClearQueue [05:16:45]wFMCommunicate request_size=4 [05:16:45]MH_SAM_APDU [05:16:45]CAPDU: 80 09 00 00 [05:16:45]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [05:16:45]Write i2c OK [05:16:45]MH_I2C_Read... [05:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:45]Read from MH i2c: E2 [05:16:45]MH_I2C_Read... [05:16:45]Read from MH i2c: E2 03 00 [05:16:45]MH_I2C_Read... [05:16:45]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [05:16:45]RAPDU: 90 00 [05:16:45]wFMCommunicate OK [05:16:45]SAM_PROTO_ClearQueue done [05:16:45]KKMCreateOFDPacket [05:16:45]OFDProtocolAddRootSTLVToBuf [05:16:45]FM_MakeSignedData [05:16:45]FM_MakeSignedData [05:16:45]SAM_PROTO_SignData [05:16:45]wFMCommunicate request_size=4 [05:16:45]MH_SAM_APDU [05:16:45]CAPDU: 80 0D 01 02 [05:16:45]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [05:16:45]Write i2c OK [05:16:45]MH_I2C_Read... [05:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:46]Read from MH i2c: E2 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 03 00 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [05:16:46]RAPDU: 90 00 [05:16:46]wFMCommunicate OK [05:16:46]wFMCommunicate request_size=255 [05:16:46]MH_SAM_APDU [05:16:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 90 59 02 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 3D 1B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D B9 02 00 35 04 06 00 85 B8 57 36 [05:16:46]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 90 59 02 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 3D 1B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D B9 02 00 35 04 06 00 85 B8 57 36 00 00 6E [05:16:46]Write i2c OK [05:16:46]MH_I2C_Read... [05:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:46]Read from MH i2c: E2 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 03 00 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [05:16:46]RAPDU: 90 00 [05:16:46]wFMCommunicate OK [05:16:46]wFMCommunicate request_size=7 [05:16:46]MH_SAM_APDU [05:16:46]CAPDU: 80 0D 02 02 02 03 07 [05:16:46]Write to MH i2c: E2 0A 00 84 02 80 0D 02 02 02 00 03 07 00 00 0E [05:16:46]Write i2c OK [05:16:46]MH_I2C_Read... [05:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:46]Read from MH i2c: E2 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 03 00 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [05:16:46]RAPDU: 90 00 [05:16:46]wFMCommunicate OK [05:16:46]wFMCommunicate request_size=4 [05:16:46]MH_SAM_APDU [05:16:46]CAPDU: 80 0D 03 02 [05:16:46]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [05:16:46]Write i2c OK [05:16:46]MH_I2C_Read... [05:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:46]Read from MH i2c: E2 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 0B 00 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 0B 00 85 02 00 7C DC 2E 1F F0 A9 76 97 90 00 4E [05:16:46]RAPDU: 7C DC 2E 1F F0 A9 76 97 90 00 [05:16:46]wFMCommunicate OK [05:16:46]SAM_PROTO_SignData done [05:16:46]FM_MakeSignedData done [05:16:46]CreateOFDProtocolMessage [05:16:46]wFMCommunicate request_size=4 [05:16:46]MH_SAM_APDU [05:16:46]CAPDU: 80 11 00 00 [05:16:46]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [05:16:46]Write i2c OK [05:16:46]MH_I2C_Read... [05:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:46]Read from MH i2c: E2 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 17 00 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5B [05:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:16:46]wFMCommunicate OK [05:16:46]CreateOFDProtocolMessage done [05:16:46]OFDSenderStorePacket 178589 [05:16:46]StoreOFDPacket docnum=178589 [05:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 5C BE 04 01 5D B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 90 59 02 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 3D 1B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D B9 02 00 35 04 06 00 85 B8 57 36 03 07 7C DC 2E 1F F0 A9 76 97 [05:16:46]CheckFolder [05:16:46]dirname=/storage/ofd_packets [05:16:46]CheckFolder done [05:16:46]ProducePacketName [05:16:46]name=ofd_packets/00178589 [05:16:46]NVStorageSaveData ofd_packets/00178589 [05:16:46]File name is /storage/ofd_packets/00178589 [05:16:46]Write 298 bytes [05:16:46]NVStorageSaveData done [05:16:46]OFDSenderStorePacket done [05:16:46]KKMCreateOFDPacket done [05:16:46]NVStorageSaveData kkm_last_timestamp [05:16:46]File name is /storage/kkm_last_timestamp [05:16:46]Write 4 bytes [05:16:46]NVStorageSaveData done [05:16:46]ExternCall_PrintAddStr [05:16:46]wPrintStart [05:16:46]Write to MH i2c: 01 00 00 87 02 89 [05:16:46]Write i2c OK [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: 01 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: 01 07 00 [05:16:46]MH_I2C_Read... [05:16:46]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [05:16:46]RasterBufferAndPrint [05:16:46]line Счет N : (1)293987 [05:16:46]line ИНН: 02508201610067 [05:16:46]line Контрольно-Кассовый Чек [05:16:46]line ПРОДАЖА [05:16:46]line ТРК (МРК, ГНК) : 44 [05:16:46]line Товар: 2710194800 [05:16:46]line ДТ-К-5 [05:16:46]line 20.210 * 76.20 [05:16:46]line = 1540.00 [05:16:46]line НДС 12% НСП 1% [05:16:46]line > о реализуемом товаре [05:16:46]line ИТОГО: 1540.00 [05:16:46]line НСП 1% : 13.63 [05:16:46]line НДС 12% : 163.54 [05:16:46]line Наличными: 1540.00 [05:16:46]line Безнал.: 0.00 [05:16:46]line Место: АЗС № 130 "Партнер Нефть" [05:16:46]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:16:46]line СНО: Общий режим [05:16:46]line Чек 49 23.08.2024 05:16 [05:16:46]line Смена: 470 ФФД: 1.0 [05:16:46]line ЗНМ: 0300000071 [05:16:46]line РНМ: 0000000000092561 [05:16:46]line Версия ККМ: 001 [05:16:46]line ФМ: 0000000000871778 [05:16:46]line ФД: 178589 [05:16:46]line ФПД: 147026783634183 [05:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T051645&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178589&fm=147026783634183&tin=02508201610067®Number=0000000000092561&sum=154000 [05:16:46]OFD Sender: Processing packet 178589 [packets to send 497, broken 496] [05:16:46]ProducePacketName [05:16:46]name=ofd_packets/00178589 [05:16:46]OFD Sender: To server: pG, [05:16:46]CommunicateWithHost lk.salyk.kg:30040 [05:16:46]ConnectInit lk.salyk.kg [05:16:46]written 0, free lines is 4095 [05:16:47]Write to MH i2c: 01 00 00 AF 02 B1 [05:16:47]Write i2c OK [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: 01 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: 01 07 00 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FB 0C BF [05:16:47]RasterBufferAndPrint [05:16:47]line [05:16:47]line [05:16:47]line [05:16:47]line [05:16:47]line [05:16:47]written 0, free lines is 3329 [05:16:47]MH_Cut [05:16:47]Write to MH i2c: D1 01 00 B6 02 01 8A [05:16:47]Write i2c OK [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: D1 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: D1 01 00 [05:16:47]MH_I2C_Read... [05:16:47]Read from MH i2c: D1 01 00 B6 02 00 89 [05:16:47]Write to MH i2c: 01 00 00 B7 02 B9 [05:16:47]Write i2c OK [05:16:47]MH_I2C_Read... [05:16:47]*** Cut start [05:16:47]*** Partial cut [05:16:47]*** CUTSNS_PIN = 1 [05:16:48]*** CUTSNS_PIN = 0 [05:16:48]*** Brake cut motor [05:16:48]Connected sock=10 [05:16:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 5C BE 04 01 5D B9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F2 4E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 59 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 59 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 53 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 3F 00 00 00 00 07 04 06 00 90 59 02 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 3D 1B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9D B9 02 00 35 04 06 00 85 B8 57 36 03 07 7C DC 2E 1F F0 A9 76 97 [05:16:48]Read from MH i2c: 01 [05:16:48]MH_I2C_Read... [05:16:48]*** Stop cut motor [05:16:48]*** Cut end [05:16:48]Read from MH i2c: 01 07 00 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [05:16:48]process_action close_receipt done [05:16:48]requested_data is exist [05:16:48]produce_requested_data [05:16:48]requested_item fm.sn is exist - process it [05:16:48]wFMCommunicate request_size=4 [05:16:48]MH_SAM_APDU [05:16:48]CAPDU: 80 11 00 00 [05:16:48]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [05:16:48]Write i2c OK [05:16:48]MH_I2C_Read... [05:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:48]Read from MH i2c: E2 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 17 00 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 8D [05:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:16:48]wFMCommunicate OK [05:16:48]requested_item fd.num is exist - process it [05:16:48]SAM_PROTO_GetFieldsCounters [05:16:48]wFMCommunicate request_size=4 [05:16:48]MH_SAM_APDU [05:16:48]CAPDU: 80 13 00 00 [05:16:48]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [05:16:48]Write i2c OK [05:16:48]MH_I2C_Read... [05:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:48]Read from MH i2c: E2 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 62 00 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 62 00 B9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9D B9 02 00 0E 04 04 00 D6 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 1E [05:16: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9D B9 02 00 0E 04 04 00 D6 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 [05:16:48]wFMCommunicate OK [05:16:48]SAM_PROTO_GetFieldsCounters done [05:16:48]requested_item shift.num is exist - process it [05:16:48]requested_item shift.opened is exist - process it [05:16:48]req_shift_opened [05:16:48]FM_GetShiftState [05:16:48]SAM_PROTO_GetShiftState [05:16:48]wFMCommunicate request_size=4 [05:16:48]MH_SAM_APDU [05:16:48]CAPDU: 80 13 01 00 [05:16:48]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [05:16:48]Write i2c OK [05:16:48]MH_I2C_Read... [05:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:48]Read from MH i2c: E2 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 0E 00 [05:16:48]MH_I2C_Read... [05:16:48]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 10 [05:16:48]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:16:48]wFMCommunicate OK [05:16:48]SAM_PROTO_GetShiftState done [05:16:48]FM_GetShiftState done [05:16:48]req_shift_opened done [05:16:48]requested_item shift.open_date is exist - process it [05:16:48]req_shift_open_date [05:16:48]req_shift_open_date done [05:16:48]produce_requested_data done [05:16:48]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178589,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [05:16:48]process_action_free close_receipt [05:16:48]json_value_free [05:16:48]json_value_free done [05:16:48]process_json_proto returns [05:16:48]Send response to host [05:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178589,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [05:16:48]free response buf [05:16:48]execute_script done [05:16:48]execute_script returns [05:16:48]free content buf [05:16:48]Sock 7.Close socket [05:16:48]Sock 7.Thread stoped [05:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D2 88 47 00 21 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 31 37 37 38 10 04 04 00 9D B9 02 00 F4 03 04 00 E7 C6 C7 66 B6 04 01 00 00 99 7A 6F 60 86 3C 57 6D [05:16:49]CommunicateWithHost err = 0 [05:16:49]CheckOFDResponse [05:16:49]1017 (14) - 77093643461234 [05:16:49]1041 (16) - 0000000000871778 [05:16:49]1040 (4) - 178589 [05:16:49]1012 (4) - 22.08.2024 23:16 [05:16:49]1206 (1) - 0 [05:16:49]OFD Sender: Remove packet 178589 [05:16:49]ProducePacketName [05:16:49]name=ofd_packets/00178589 [05:16:49]NVStorageDeleteData [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:00]recv_with_timeout no data received [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:42]recv_with_timeout no data received [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]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:18]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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: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:30]recv_with_timeout no data received [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:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]recv_with_timeout no data received [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:20]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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: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:39]recv_with_timeout no data received [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:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:40]recv_with_timeout no data received [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:57]recv_with_timeout no data received [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:02]recv_with_timeout no data received [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:33]accept exits with 9 [05:38:33]New connection [05:38:33]New thread 3067387236 created [05:38:33]Thread 3067530596 joined [05:38:33]Waiting for new connection... [05:38:33] Sock 9.Parse request [05:38:33]Sock 9.Check first char [05:38:33]Sock 9.First char is OK [05:38:33]request: POST /json_proto HTTP/1.0 [05:38:33]Method: POST [05:38:33]URL: /json_proto [05:38:33]Method is POST - this is cgi request [05:38:33]url: /json_proto [05:38:33]query_string will be loaded in cgi processing [05:38:33]execute_cgi json_proto POST (null) [05:38:33]execute_cgi path=json_proto method=POST [05:38:33]POST find Content-Length [05:38:33]Host: 172.17.44.131:8080 [05:38:33]Content-Length: 790 [05:38:33]Content-Type: application/json [05:38:33] [05:38:33]POST finish read [05:38:33]Found Content-Length = 790 [05:38:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:33]execute_script... [05:38:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:33]POST & json_proto [05:38:33]process_json_proto [05:38:33]json parsed OK: [05:38:33]protocol is kg_v1.0 [05:38:33]action value=close_receipt [05:38:33]process_action close_receipt [05:38:33]cmd_close_receipt [05:38:33]MH_GetDate [05:38:33]Write to MH i2c: F0 00 00 BB 02 AC [05:38:33]Write i2c OK [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: F0 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: F0 09 00 [05:38:33]MH_I2C_Read... [05:38:33]Read from MH i2c: F0 09 00 BB 02 00 5A 20 C8 66 4F 53 BE 66 23 [05:38:33]GetLastDocTimeStamp 1724390205 [05:38:33]current date 1724391514 [05:38:33]FM_GetShiftState [05:38:33]SAM_PROTO_GetShiftState [05:38:33]wFMCommunicate request_size=4 [05:38:33]MH_SAM_APDU [05:38:33]CAPDU: 80 13 01 00 [05:38:33]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [05:38:33]Write i2c OK [05:38:33]MH_I2C_Read... [05:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:34]Read from MH i2c: E2 [05:38:34]MH_I2C_Read... [05:38:34]Read from MH i2c: E2 0E 00 [05:38:34]MH_I2C_Read... [05:38:34]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 12 [05:38:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:38:34]wFMCommunicate OK [05:38:34]SAM_PROTO_GetShiftState done [05:38:34]FM_GetShiftState done [05:38:34]opened in 1724371660 [05:38:34]opened+sec_in_day 1724458060 [05:38:34]quantity*price = 50017 [05:38:34]sum+1 = 50019 [05:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 50 23.08.2024 05:38 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178590 ФПД: 166231127738802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T053834&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178590&fm=166231127738802&tin=02508201610067®Number=0000000000092561&sum=50018 [05:38:35]StoreToDocumentArchive [05:38:35]shift 470 fd 178590 [05:38:35]save to /storage/0470/doc_00178590 [05:38:35]save last doc name /storage/0470/doc_00178590 to /storage/kkm_last_doc_name [05:38:35]save OK [05:38:35]Clear old archive folders... [05:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=249 [05:38:35]tlvbuf is 001EC150 [05:38:35]SAM_PROTO_ClearQueue [05:38:35]wFMCommunicate request_size=4 [05:38:35]MH_SAM_APDU [05:38:35]CAPDU: 80 09 00 00 [05:38:35]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:35]Read from MH i2c: E2 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [05:38:35]RAPDU: 90 00 [05:38:35]wFMCommunicate OK [05:38:35]SAM_PROTO_ClearQueue done [05:38:35]KKMCreateOFDPacket [05:38:35]OFDProtocolAddRootSTLVToBuf [05:38:35]FM_MakeSignedData [05:38:35]FM_MakeSignedData [05:38:35]SAM_PROTO_SignData [05:38:35]wFMCommunicate request_size=4 [05:38:35]MH_SAM_APDU [05:38:35]CAPDU: 80 0D 01 02 [05:38:35]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:35]Read from MH i2c: E2 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [05:38:35]RAPDU: 90 00 [05:38:35]wFMCommunicate OK [05:38:35]wFMCommunicate request_size=255 [05:38:35]MH_SAM_APDU [05:38:35]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5A 20 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E B9 02 00 35 04 06 00 97 2F B3 [05:38:35]Write to MH i2c: E2 02 01 CB 02 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5A 20 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E B9 02 00 35 04 06 00 97 2F B3 00 00 0B [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:35]Read from MH i2c: E2 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [05:38:35]RAPDU: 90 00 [05:38:35]wFMCommunicate OK [05:38:35]wFMCommunicate request_size=8 [05:38:35]MH_SAM_APDU [05:38:35]CAPDU: 80 0D 02 02 03 51 C9 B2 [05:38:35]Write to MH i2c: E2 0B 00 CC 02 80 0D 02 02 03 00 51 C9 B2 00 00 1A [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 [05:38:35]MH_I2C_Read... [05:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:35]Read from MH i2c: E2 03 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [05:38:35]RAPDU: 90 00 [05:38:35]wFMCommunicate OK [05:38:35]wFMCommunicate request_size=4 [05:38:35]MH_SAM_APDU [05:38:35]CAPDU: 80 0D 03 02 [05:38:35]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:35]Read from MH i2c: E2 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 0B 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 0B 00 CD 02 00 2F 56 7E 5C 07 CC B8 70 90 00 A5 [05:38:35]RAPDU: 2F 56 7E 5C 07 CC B8 70 90 00 [05:38:35]wFMCommunicate OK [05:38:35]SAM_PROTO_SignData done [05:38:35]FM_MakeSignedData done [05:38:35]CreateOFDProtocolMessage [05:38:35]wFMCommunicate request_size=4 [05:38:35]MH_SAM_APDU [05:38:35]CAPDU: 80 11 00 00 [05:38:35]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:35]Read from MH i2c: E2 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 17 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A3 [05:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:38:35]wFMCommunicate OK [05:38:35]CreateOFDProtocolMessage done [05:38:35]OFDSenderStorePacket 178590 [05:38:35]StoreOFDPacket docnum=178590 [05:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 23 9C 05 01 E8 36 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5A 20 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E B9 02 00 35 04 06 00 97 2F B3 51 C9 B2 2F 56 7E 5C 07 CC B8 70 [05:38:35]CheckFolder [05:38:35]dirname=/storage/ofd_packets [05:38:35]CheckFolder done [05:38:35]ProducePacketName [05:38:35]name=ofd_packets/00178590 [05:38:35]NVStorageSaveData ofd_packets/00178590 [05:38:35]File name is /storage/ofd_packets/00178590 [05:38:35]Write 299 bytes [05:38:35]NVStorageSaveData done [05:38:35]OFDSenderStorePacket done [05:38:35]KKMCreateOFDPacket done [05:38:35]NVStorageSaveData kkm_last_timestamp [05:38:35]File name is /storage/kkm_last_timestamp [05:38:35]Write 4 bytes [05:38:35]NVStorageSaveData done [05:38:35]ExternCall_PrintAddStr [05:38:35]wPrintStart [05:38:35]Write to MH i2c: 01 00 00 CF 02 D1 [05:38:35]Write i2c OK [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: 01 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: 01 07 00 [05:38:35]MH_I2C_Read... [05:38:35]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [05:38:35]RasterBufferAndPrint [05:38:35]line Счет N : (1)293989 [05:38:35]line ИНН: 02508201610067 [05:38:35]line Контрольно-Кассовый Чек [05:38:35]line ПРОДАЖА [05:38:35]line ТРК (МРК, ГНК) : 41 [05:38:35]line Товар: 2710124130 [05:38:35]line SU-92-К-5 [05:38:35]line 7.270 * 68.80 [05:38:35]line = 500.18 [05:38:35]line НДС 12% НСП 1% [05:38:35]line > о реализуемом товаре [05:38:35]line ИТОГО: 500.18 [05:38:35]line НСП 1% : 4.43 [05:38:35]line НДС 12% : 53.12 [05:38:35]line Наличными: 0.00 [05:38:35]line Безнал.: 500.18 [05:38:35]line Место: АЗС № 130 "Партнер Нефть" [05:38:35]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:38:35]line СНО: Общий режим [05:38:35]line Чек 50 23.08.2024 05:38 [05:38:35]line Смена: 470 ФФД: 1.0 [05:38:35]line ЗНМ: 0300000071 [05:38:35]line РНМ: 0000000000092561 [05:38:35]line Версия ККМ: 001 [05:38:35]line Платежная система: O! деньги [05:38:35]line ФМ: 0000000000871778 [05:38:35]line ФД: 178590 [05:38:35]line ФПД: 166231127738802 [05:38:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T053834&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178590&fm=166231127738802&tin=02508201610067®Number=0000000000092561&sum=50018 [05:38:35]written 0, free lines is 4095 [05:38:35]OFD Sender: Processing packet 178590 [packets to send 497, broken 496] [05:38:35]ProducePacketName [05:38:35]name=ofd_packets/00178590 [05:38:35]OFD Sender: To server: pG, [05:38:35]CommunicateWithHost lk.salyk.kg:30040 [05:38:35]ConnectInit lk.salyk.kg [05:38:36]Write to MH i2c: 01 00 00 F9 02 FB [05:38:36]Write i2c OK [05:38:36]MH_I2C_Read... [05:38:36]Read from MH i2c: 01 [05:38:36]MH_I2C_Read... [05:38:36]Read from MH i2c: 01 07 00 [05:38:36]MH_I2C_Read... [05:38:36]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 C7 0C D5 [05:38:36]RasterBufferAndPrint [05:38:36]line [05:38:36]line [05:38:36]line [05:38:36]line [05:38:36]line [05:38:36]written 0, free lines is 3277 [05:38:36]MH_Cut [05:38:36]Write to MH i2c: D1 01 00 00 03 01 D5 [05:38:36]Write i2c OK [05:38:36]MH_I2C_Read... [05:38:36]Read from MH i2c: D1 [05:38:36]MH_I2C_Read... [05:38:36]Read from MH i2c: D1 01 00 [05:38:36]MH_I2C_Read... [05:38:36]Read from MH i2c: D1 01 00 00 03 00 D4 [05:38:36]Write to MH i2c: 01 00 00 01 03 04 [05:38:36]Write i2c OK [05:38:36]MH_I2C_Read... [05:38:36]*** Cut start [05:38:36]*** Partial cut [05:38:36]*** CUTSNS_PIN = 1 [05:38:36]*** CUTSNS_PIN = 0 [05:38:37]*** Brake cut motor [05:38:37]Read from MH i2c: 01 [05:38:37]MH_I2C_Read... [05:38:37]*** Stop cut motor [05:38:37]*** Cut end [05:38:37]Read from MH i2c: 01 07 00 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [05:38:37]process_action close_receipt done [05:38:37]requested_data is exist [05:38:37]produce_requested_data [05:38:37]requested_item fm.sn is exist - process it [05:38:37]wFMCommunicate request_size=4 [05:38:37]MH_SAM_APDU [05:38:37]CAPDU: 80 11 00 00 [05:38:37]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [05:38:37]Write i2c OK [05:38:37]MH_I2C_Read... [05:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:37]Read from MH i2c: E2 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: E2 17 00 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D8 [05:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:38:37]wFMCommunicate OK [05:38:37]requested_item fd.num is exist - process it [05:38:37]SAM_PROTO_GetFieldsCounters [05:38:37]wFMCommunicate request_size=4 [05:38:37]MH_SAM_APDU [05:38:37]CAPDU: 80 13 00 00 [05:38:37]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [05:38:37]Write i2c OK [05:38:37]MH_I2C_Read... [05:38:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:37]Read from MH i2c: E2 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: E2 62 00 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: E2 62 00 03 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9E B9 02 00 0E 04 04 00 D6 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 6D [05:38:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9E B9 02 00 0E 04 04 00 D6 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 [05:38:37]wFMCommunicate OK [05:38:37]SAM_PROTO_GetFieldsCounters done [05:38:37]requested_item shift.num is exist - process it [05:38:37]requested_item shift.opened is exist - process it [05:38:37]req_shift_opened [05:38:37]FM_GetShiftState [05:38:37]SAM_PROTO_GetShiftState [05:38:37]wFMCommunicate request_size=4 [05:38:37]MH_SAM_APDU [05:38:37]CAPDU: 80 13 01 00 [05:38:37]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [05:38:37]Write i2c OK [05:38:37]MH_I2C_Read... [05:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:37]Read from MH i2c: E2 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: E2 0E 00 [05:38:37]MH_I2C_Read... [05:38:37]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5B [05:38:37]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:38:37]wFMCommunicate OK [05:38:37]SAM_PROTO_GetShiftState done [05:38:37]FM_GetShiftState done [05:38:37]req_shift_opened done [05:38:37]requested_item shift.open_date is exist - process it [05:38:37]req_shift_open_date [05:38:37]req_shift_open_date done [05:38:37]produce_requested_data done [05:38:37]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178590,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [05:38:37]process_action_free close_receipt [05:38:37]json_value_free [05:38:37]json_value_free done [05:38:37]process_json_proto returns [05:38:37]Send response to host [05:38:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178590,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [05:38:37]free response buf [05:38:37]execute_script done [05:38:37]execute_script returns [05:38:37]free content buf [05:38:37]Sock 9.Close socket [05:38:37]Sock 9.Thread stoped [05:38:41]Connected sock=11 [05:38:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 23 9C 05 01 E8 36 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 5A 20 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E B9 02 00 35 04 06 00 97 2F B3 51 C9 B2 2F 56 7E 5C 07 CC B8 70 [05:38:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1A 58 47 00 B5 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9E B9 02 00 F4 03 04 00 07 CC C7 66 B6 04 01 00 00 D1 C5 90 E4 59 09 00 2D [05:38:41]CommunicateWithHost err = 0 [05:38:41]CheckOFDResponse [05:38:41]1017 (14) - 77093643461234 [05:38:41]1041 (16) - 0000000000871778 [05:38:41]1040 (4) - 178590 [05:38:41]1012 (4) - 22.08.2024 23:38 [05:38:41]1206 (1) - 0 [05:38:41]OFD Sender: Remove packet 178590 [05:38:41]ProducePacketName [05:38:41]name=ofd_packets/00178590 [05:38:41]NVStorageDeleteData [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:17]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:38]recv_with_timeout no data received [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44: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:21]recv_with_timeout no data received [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:21]accept exits with 7 [05:50:21]New connection [05:50:21]New thread 3067530596 created [05:50:21]Thread 3067387236 joined [05:50:21]Waiting for new connection... [05:50:21] Sock 7.Parse request [05:50:21]Sock 7.Check first char [05:50:21]Sock 7.First char is OK [05:50:21]request: POST /json_proto HTTP/1.0 [05:50:21]Method: POST [05:50:21]URL: /json_proto [05:50:21]Method is POST - this is cgi request [05:50:21]url: /json_proto [05:50:21]query_string will be loaded in cgi processing [05:50:21]execute_cgi json_proto POST (null) [05:50:21]execute_cgi path=json_proto method=POST [05:50:21]POST find Content-Length [05:50:21]Host: 172.17.44.131:8080 [05:50:21]Content-Length: 803 [05:50:21]Content-Type: application/json [05:50:21] [05:50:21]POST finish read [05:50:21]Found Content-Length = 803 [05:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 47.170, "sum" : 3500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:21]execute_script... [05:50: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)293990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 47.170, "sum" : 3500.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:21]POST & json_proto [05:50:21]process_json_proto [05:50:21]json parsed OK: [05:50:21]protocol is kg_v1.0 [05:50:21]action value=close_receipt [05:50:21]process_action close_receipt [05:50:21]cmd_close_receipt [05:50:21]MH_GetDate [05:50:21]Write to MH i2c: F0 00 00 05 03 F7 [05:50:21]Write i2c OK [05:50:21]MH_I2C_Read... [05:50:21]Read from MH i2c: F0 [05:50:21]MH_I2C_Read... [05:50:21]Read from MH i2c: F0 09 00 [05:50:21]MH_I2C_Read... [05:50:21]Read from MH i2c: F0 09 00 05 03 00 1E 23 C8 66 4F 53 BE 66 35 [05:50:21]GetLastDocTimeStamp 1724391514 [05:50:21]current date 1724392222 [05:50:21]FM_GetShiftState [05:50:21]SAM_PROTO_GetShiftState [05:50:21]wFMCommunicate request_size=4 [05:50:21]MH_SAM_APDU [05:50:21]CAPDU: 80 13 01 00 [05:50:21]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [05:50:21]Write i2c OK [05:50:21]MH_I2C_Read... [05:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:21]Read from MH i2c: E2 [05:50:21]MH_I2C_Read... [05:50:21]Read from MH i2c: E2 0E 00 [05:50:21]MH_I2C_Read... [05:50:21]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5D [05:50:21]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:50:21]wFMCommunicate OK [05:50:21]SAM_PROTO_GetShiftState done [05:50:21]FM_GetShiftState done [05:50:21]opened in 1724371660 [05:50:21]opened+sec_in_day 1724458060 [05:50:21]quantity*price = 350001 [05:50:21]sum+1 = 350002 [05:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.01 НСП 1% : 30.97 НДС 12% : 371.68 Наличными: 0.00 Безнал.: 3500.01 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 51 23.08.2024 05:50 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178591 ФПД: 225638246709255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T055022&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178591&fm=225638246709255&tin=02508201610067®Number=0000000000092561&sum=350001 [05:50:22]StoreToDocumentArchive [05:50:22]shift 470 fd 178591 [05:50:22]save to /storage/0470/doc_00178591 [05:50:22]save last doc name /storage/0470/doc_00178591 to /storage/kkm_last_doc_name [05:50:22]save OK [05:50:22]Clear old archive folders... [05:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:50:22]tlvbuf is 0016A290 [05:50:22]SAM_PROTO_ClearQueue [05:50:22]wFMCommunicate request_size=4 [05:50:22]MH_SAM_APDU [05:50:22]CAPDU: 80 09 00 00 [05:50:22]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [05:50:22]Write i2c OK [05:50:22]MH_I2C_Read... [05:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:22]Read from MH i2c: E2 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [05:50:22]RAPDU: 90 00 [05:50:22]wFMCommunicate OK [05:50:22]SAM_PROTO_ClearQueue done [05:50:22]KKMCreateOFDPacket [05:50:22]OFDProtocolAddRootSTLVToBuf [05:50:22]FM_MakeSignedData [05:50:22]FM_MakeSignedData [05:50:22]SAM_PROTO_SignData [05:50:22]wFMCommunicate request_size=4 [05:50:22]MH_SAM_APDU [05:50:22]CAPDU: 80 0D 01 02 [05:50:22]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [05:50:22]Write i2c OK [05:50:22]MH_I2C_Read... [05:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:22]Read from MH i2c: E2 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [05:50:22]RAPDU: 90 00 [05:50:22]wFMCommunicate OK [05:50:22]wFMCommunicate request_size=255 [05:50:22]MH_SAM_APDU [05:50: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 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 31 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F B9 02 00 35 04 06 00 CD [05:50:22]Write to MH i2c: E2 02 01 15 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 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 31 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F B9 02 00 35 04 06 00 CD 00 00 E1 [05:50:22]Write i2c OK [05:50:22]MH_I2C_Read... [05:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:22]Read from MH i2c: E2 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [05:50:22]RAPDU: 90 00 [05:50:22]wFMCommunicate OK [05:50:22]wFMCommunicate request_size=10 [05:50:22]MH_SAM_APDU [05:50:22]CAPDU: 80 0D 02 02 05 37 7F 8A F8 07 [05:50:22]Write to MH i2c: E2 0D 00 16 03 80 0D 02 02 05 00 37 7F 8A F8 07 00 00 DC [05:50:22]Write i2c OK [05:50:22]MH_I2C_Read... [05:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:22]Read from MH i2c: E2 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 [05:50:22]MH_I2C_Read... [05:50:22]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [05:50:22]RAPDU: 90 00 [05:50:22]wFMCommunicate OK [05:50:22]wFMCommunicate request_size=4 [05:50:22]MH_SAM_APDU [05:50:22]CAPDU: 80 0D 03 02 [05:50:22]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [05:50:22]Write i2c OK [05:50:22]MH_I2C_Read... [05:50:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:23]Read from MH i2c: E2 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: E2 0B 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: E2 0B 00 17 03 00 F6 EE 8C E4 B1 21 72 51 90 00 7F [05:50:23]RAPDU: F6 EE 8C E4 B1 21 72 51 90 00 [05:50:23]wFMCommunicate OK [05:50:23]SAM_PROTO_SignData done [05:50:23]FM_MakeSignedData done [05:50:23]CreateOFDProtocolMessage [05:50:23]wFMCommunicate request_size=4 [05:50:23]MH_SAM_APDU [05:50:23]CAPDU: 80 11 00 00 [05:50:23]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:23]Read from MH i2c: E2 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: E2 17 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 EE [05:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:50:23]wFMCommunicate OK [05:50:23]CreateOFDProtocolMessage done [05:50:23]OFDSenderStorePacket 178591 [05:50:23]StoreOFDPacket docnum=178591 [05:50:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 69 E8 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 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 31 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F B9 02 00 35 04 06 00 CD 37 7F 8A F8 07 F6 EE 8C E4 B1 21 72 51 [05:50:23]CheckFolder [05:50:23]dirname=/storage/ofd_packets [05:50:23]CheckFolder done [05:50:23]ProducePacketName [05:50:23]name=ofd_packets/00178591 [05:50:23]NVStorageSaveData ofd_packets/00178591 [05:50:23]File name is /storage/ofd_packets/00178591 [05:50:23]Write 301 bytes [05:50:23]NVStorageSaveData done [05:50:23]OFDSenderStorePacket done [05:50:23]KKMCreateOFDPacket done [05:50:23]NVStorageSaveData kkm_last_timestamp [05:50:23]File name is /storage/kkm_last_timestamp [05:50:23]Write 4 bytes [05:50:23]NVStorageSaveData done [05:50:23]ExternCall_PrintAddStr [05:50:23]wPrintStart [05:50:23]Write to MH i2c: 01 00 00 19 03 1C [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: 01 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: 01 07 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [05:50:23]RasterBufferAndPrint [05:50:23]line Счет N : (1)293990 [05:50:23]line ИНН: 02508201610067 [05:50:23]line Контрольно-Кассовый Чек [05:50:23]line ПРОДАЖА [05:50:23]line ТРК (МРК, ГНК) : 33 [05:50:23]line Товар: 2710124500 [05:50:23]line Аи-95-К-5 [05:50:23]line 47.170 * 74.20 [05:50:23]line = 3500.01 [05:50:23]line НДС 12% НСП 1% [05:50:23]line > о реализуемом товаре [05:50:23]line ИТОГО: 3500.01 [05:50:23]line НСП 1% : 30.97 [05:50:23]line НДС 12% : 371.68 [05:50:23]line Наличными: 0.00 [05:50:23]line Безнал.: 3500.01 [05:50:23]line Место: АЗС № 130 "Партнер Нефть" [05:50:23]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:50:23]line СНО: Общий режим [05:50:23]line Чек 51 23.08.2024 05:50 [05:50:23]line Смена: 470 ФФД: 1.0 [05:50:23]line ЗНМ: 0300000071 [05:50:23]line РНМ: 0000000000092561 [05:50:23]line Версия ККМ: 001 [05:50:23]line Платежная система: O! деньги [05:50:23]line ФМ: 0000000000871778 [05:50:23]line ФД: 178591 [05:50:23]line ФПД: 225638246709255 [05:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T055022&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178591&fm=225638246709255&tin=02508201610067®Number=0000000000092561&sum=350001 [05:50:23]written 0, free lines is 4095 [05:50:23]OFD Sender: Processing packet 178591 [packets to send 497, broken 496] [05:50:23]ProducePacketName [05:50:23]name=ofd_packets/00178591 [05:50:23]OFD Sender: To server: pG, [05:50:23]CommunicateWithHost lk.salyk.kg:30040 [05:50:23]ConnectInit lk.salyk.kg [05:50:23]Write to MH i2c: 01 00 00 43 03 46 [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: 01 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: 01 07 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 C7 0C 20 [05:50:23]RasterBufferAndPrint [05:50:23]line [05:50:23]line [05:50:23]line [05:50:23]line [05:50:23]line [05:50:23]written 0, free lines is 3277 [05:50:23]MH_Cut [05:50:23]Write to MH i2c: D1 01 00 4A 03 01 1F [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: D1 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: D1 01 00 [05:50:23]MH_I2C_Read... [05:50:23]Read from MH i2c: D1 01 00 4A 03 00 1E [05:50:23]Write to MH i2c: 01 00 00 4B 03 4E [05:50:23]Write i2c OK [05:50:23]MH_I2C_Read... [05:50:24]*** Cut start [05:50:24]*** Partial cut [05:50:24]*** CUTSNS_PIN = 1 [05:50:24]*** CUTSNS_PIN = 0 [05:50:24]*** Brake cut motor [05:50:24]Read from MH i2c: 01 [05:50:24]MH_I2C_Read... [05:50:24]*** Stop cut motor [05:50:24]*** Cut end [05:50:24]Read from MH i2c: 01 07 00 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [05:50:24]process_action close_receipt done [05:50:24]requested_data is exist [05:50:24]produce_requested_data [05:50:24]requested_item fm.sn is exist - process it [05:50:24]wFMCommunicate request_size=4 [05:50:24]MH_SAM_APDU [05:50:24]CAPDU: 80 11 00 00 [05:50:24]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [05:50:24]Write i2c OK [05:50:24]MH_I2C_Read... [05:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:24]Read from MH i2c: E2 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: E2 17 00 [05:50:24]MH_I2C_Read... [05:50:24]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 22 [05:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:50:24]wFMCommunicate OK [05:50:24]requested_item fd.num is exist - process it [05:50:24]SAM_PROTO_GetFieldsCounters [05:50:24]wFMCommunicate request_size=4 [05:50:24]MH_SAM_APDU [05:50:24]CAPDU: 80 13 00 00 [05:50:24]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [05:50:24]Write i2c OK [05:50:24]MH_I2C_Read... [05:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:25]Read from MH i2c: E2 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 62 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 62 00 4D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9F B9 02 00 0E 04 04 00 D6 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 BB [05:50: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 9F B9 02 00 0E 04 04 00 D6 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 [05:50:25]wFMCommunicate OK [05:50:25]SAM_PROTO_GetFieldsCounters done [05:50:25]requested_item shift.num is exist - process it [05:50:25]requested_item shift.opened is exist - process it [05:50:25]req_shift_opened [05:50:25]FM_GetShiftState [05:50:25]SAM_PROTO_GetShiftState [05:50:25]wFMCommunicate request_size=4 [05:50:25]MH_SAM_APDU [05:50:25]CAPDU: 80 13 01 00 [05:50:25]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [05:50:25]Write i2c OK [05:50:25]MH_I2C_Read... [05:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:25]Read from MH i2c: E2 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 0E 00 [05:50:25]MH_I2C_Read... [05:50:25]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A5 [05:50:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:50:25]wFMCommunicate OK [05:50:25]SAM_PROTO_GetShiftState done [05:50:25]FM_GetShiftState done [05:50:25]req_shift_opened done [05:50:25]requested_item shift.open_date is exist - process it [05:50:25]req_shift_open_date [05:50:25]req_shift_open_date done [05:50:25]produce_requested_data done [05:50:25]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178591,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [05:50:25]process_action_free close_receipt [05:50:25]json_value_free [05:50:25]json_value_free done [05:50:25]process_json_proto returns [05:50:25]Send response to host [05:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178591,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [05:50:25]free response buf [05:50:25]execute_script done [05:50:25]execute_script returns [05:50:25]free content buf [05:50:25]Sock 7.Close socket [05:50:25]Sock 7.Thread stoped [05:50:26]Connected sock=10 [05:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 69 E8 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 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 31 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F B9 02 00 35 04 06 00 CD 37 7F 8A F8 07 F6 EE 8C E4 B1 21 72 51 [05:50:31]recv_with_timeout no data received [05:50:31]CommunicateWithHost answer receiving error [05:50:31]CommunicateWithHost err = -3 [05:50:31]OFD Sender: Server communicate error [05:50:33]recv_with_timeout no data received [05:50:36]OFD Sender: Processing packet 178591 [packets to send 497, broken 496] [05:50:36]ProducePacketName [05:50:36]name=ofd_packets/00178591 [05:50:36]OFD Sender: To server: pG, [05:50:36]CommunicateWithHost lk.salyk.kg:30040 [05:50:36]ConnectInit lk.salyk.kg [05:50:38]Connected sock=7 [05:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 69 E8 07 01 1E 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 42 B8 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 31 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 31 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 31 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 1E 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 9F B9 02 00 35 04 06 00 CD 37 7F 8A F8 07 F6 EE 8C E4 B1 21 72 51 [05:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D5 D3 47 00 3D 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 31 37 37 38 10 04 04 00 9F B9 02 00 F4 03 04 00 D4 CE C7 66 B6 04 01 00 00 9E 19 4D EC 32 97 5C 38 [05:50:38]CommunicateWithHost err = 0 [05:50:38]CheckOFDResponse [05:50:38]1017 (14) - 77093643461234 [05:50:38]1041 (16) - 0000000000871778 [05:50:38]1040 (4) - 178591 [05:50:38]1012 (4) - 22.08.2024 23:50 [05:50:38]1206 (1) - 0 [05:50:38]OFD Sender: Remove packet 178591 [05:50:38]ProducePacketName [05:50:38]name=ofd_packets/00178591 [05:50:38]NVStorageDeleteData [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:21]accept exits with 9 [05:51:21]New connection [05:51:21]New thread 3067387236 created [05:51:21]Thread 3067530596 joined [05:51:21]Waiting for new connection... [05:51:21] Sock 9.Parse request [05:51:21]Sock 9.Check first char [05:51:21]Sock 9.First char is OK [05:51:21]request: POST /json_proto HTTP/1.0 [05:51:21]Method: POST [05:51:21]URL: /json_proto [05:51:21]Method is POST - this is cgi request [05:51:21]url: /json_proto [05:51:21]query_string will be loaded in cgi processing [05:51:21]execute_cgi json_proto POST (null) [05:51:21]execute_cgi path=json_proto method=POST [05:51:21]POST find Content-Length [05:51:21]Host: 172.17.44.131:8080 [05:51:21]Content-Length: 679 [05:51:21]Content-Type: application/json [05:51:21] [05:51:21]POST finish read [05:51:21]Found Content-Length = 679 [05:51:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.230, "sum" : 1160.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1160.00, "total" : 1160.00, "payments": [ { "type": 0, "sum" : 1160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:51:21]execute_script... [05:51: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)293991", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.230, "sum" : 1160.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1160.00, "total" : 1160.00, "payments": [ { "type": 0, "sum" : 1160.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:51:21]POST & json_proto [05:51:21]process_json_proto [05:51:21]json parsed OK: [05:51:21]protocol is kg_v1.0 [05:51:21]action value=close_receipt [05:51:21]process_action close_receipt [05:51:21]cmd_close_receipt [05:51:21]MH_GetDate [05:51:21]Write to MH i2c: F0 00 00 4F 03 41 [05:51:21]Write i2c OK [05:51:21]MH_I2C_Read... [05:51:21]Read from MH i2c: F0 [05:51:21]MH_I2C_Read... [05:51:21]Read from MH i2c: F0 09 00 [05:51:21]MH_I2C_Read... [05:51:21]Read from MH i2c: F0 09 00 4F 03 00 59 23 C8 66 4F 53 BE 66 BA [05:51:21]GetLastDocTimeStamp 1724392222 [05:51:21]current date 1724392281 [05:51:21]FM_GetShiftState [05:51:21]SAM_PROTO_GetShiftState [05:51:21]wFMCommunicate request_size=4 [05:51:21]MH_SAM_APDU [05:51:21]CAPDU: 80 13 01 00 [05:51:21]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [05:51:21]Write i2c OK [05:51:21]MH_I2C_Read... [05:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:51:21]Read from MH i2c: E2 [05:51:21]MH_I2C_Read... [05:51:21]Read from MH i2c: E2 0E 00 [05:51:21]MH_I2C_Read... [05:51:21]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A7 [05:51:21]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:51:21]wFMCommunicate OK [05:51:21]SAM_PROTO_GetShiftState done [05:51:21]FM_GetShiftState done [05:51:21]opened in 1724371660 [05:51:21]opened+sec_in_day 1724458060 [05:51:21]quantity*price = 116052 [05:51:21]sum+1 = 116054 [05:51:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1160.00 Внесено: 1160.00 СДАЧА: 0.00 НСП 1% : 10.27 НДС 12% : 123.24 Наличными: 1160.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 52 23.08.2024 05:51 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178592 ФПД: 111411517584711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T055121&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178592&fm=111411517584711&tin=02508201610067®Number=0000000000092561&sum=116000 [05:51:22]StoreToDocumentArchive [05:51:22]shift 470 fd 178592 [05:51:22]save to /storage/0470/doc_00178592 [05:51:22]save last doc name /storage/0470/doc_00178592 to /storage/kkm_last_doc_name [05:51:22]save OK [05:51:22]Clear old archive folders... [05:51:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:51:22]tlvbuf is 001EBE70 [05:51:22]SAM_PROTO_ClearQueue [05:51:22]wFMCommunicate request_size=4 [05:51:22]MH_SAM_APDU [05:51:22]CAPDU: 80 09 00 00 [05:51:22]Write to MH i2c: E2 08 00 5D 03 80 09 00 00 00 00 00 00 D2 [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:51:22]Read from MH i2c: E2 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [05:51:22]RAPDU: 90 00 [05:51:22]wFMCommunicate OK [05:51:22]SAM_PROTO_ClearQueue done [05:51:22]KKMCreateOFDPacket [05:51:22]OFDProtocolAddRootSTLVToBuf [05:51:22]FM_MakeSignedData [05:51:22]FM_MakeSignedData [05:51:22]SAM_PROTO_SignData [05:51:22]wFMCommunicate request_size=4 [05:51:22]MH_SAM_APDU [05:51:22]CAPDU: 80 0D 01 02 [05:51:22]Write to MH i2c: E2 08 00 5E 03 80 0D 01 02 00 00 00 00 DA [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:51:22]Read from MH i2c: E2 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [05:51:22]RAPDU: 90 00 [05:51:22]wFMCommunicate OK [05:51:22]wFMCommunicate request_size=255 [05:51:22]MH_SAM_APDU [05:51:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 30 00 00 00 00 07 04 06 00 20 C5 01 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 59 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 B9 02 00 35 04 06 00 65 54 03 ED [05:51:22]Write to MH i2c: E2 02 01 5F 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 30 00 00 00 00 07 04 06 00 20 C5 01 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 59 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 B9 02 00 35 04 06 00 65 54 03 ED 00 00 D5 [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:51:22]Read from MH i2c: E2 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [05:51:22]RAPDU: 90 00 [05:51:22]wFMCommunicate OK [05:51:22]wFMCommunicate request_size=7 [05:51:22]MH_SAM_APDU [05:51:22]CAPDU: 80 0D 02 02 02 F5 47 [05:51:22]Write to MH i2c: E2 0A 00 60 03 80 0D 02 02 02 00 F5 47 00 00 1D [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:51:22]Read from MH i2c: E2 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [05:51:22]RAPDU: 90 00 [05:51:22]wFMCommunicate OK [05:51:22]wFMCommunicate request_size=4 [05:51:22]MH_SAM_APDU [05:51:22]CAPDU: 80 0D 03 02 [05:51:22]Write to MH i2c: E2 08 00 61 03 80 0D 03 02 00 00 00 00 DF [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:51:22]Read from MH i2c: E2 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 0B 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 0B 00 61 03 00 B7 8B CC B6 25 8C 25 48 90 00 C2 [05:51:22]RAPDU: B7 8B CC B6 25 8C 25 48 90 00 [05:51:22]wFMCommunicate OK [05:51:22]SAM_PROTO_SignData done [05:51:22]FM_MakeSignedData done [05:51:22]CreateOFDProtocolMessage [05:51:22]wFMCommunicate request_size=4 [05:51:22]MH_SAM_APDU [05:51:22]CAPDU: 80 11 00 00 [05:51:22]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:51:22]Read from MH i2c: E2 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 17 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [05:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:51:22]wFMCommunicate OK [05:51:22]CreateOFDProtocolMessage done [05:51:22]OFDSenderStorePacket 178592 [05:51:22]StoreOFDPacket docnum=178592 [05:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 41 6C 04 01 AF 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 30 00 00 00 00 07 04 06 00 20 C5 01 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 59 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 B9 02 00 35 04 06 00 65 54 03 ED F5 47 B7 8B CC B6 25 8C 25 48 [05:51:22]CheckFolder [05:51:22]dirname=/storage/ofd_packets [05:51:22]CheckFolder done [05:51:22]ProducePacketName [05:51:22]name=ofd_packets/00178592 [05:51:22]NVStorageSaveData ofd_packets/00178592 [05:51:22]File name is /storage/ofd_packets/00178592 [05:51:22]Write 298 bytes [05:51:22]NVStorageSaveData done [05:51:22]OFDSenderStorePacket done [05:51:22]KKMCreateOFDPacket done [05:51:22]NVStorageSaveData kkm_last_timestamp [05:51:22]File name is /storage/kkm_last_timestamp [05:51:22]Write 4 bytes [05:51:22]NVStorageSaveData done [05:51:22]ExternCall_PrintAddStr [05:51:22]wPrintStart [05:51:22]Write to MH i2c: 01 00 00 63 03 66 [05:51:22]Write i2c OK [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: 01 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: 01 07 00 [05:51:22]MH_I2C_Read... [05:51:22]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [05:51:22]RasterBufferAndPrint [05:51:22]line Счет N : (1)293991 [05:51:22]line ИНН: 02508201610067 [05:51:22]line Контрольно-Кассовый Чек [05:51:22]line ПРОДАЖА [05:51:22]line ТРК (МРК, ГНК) : 11 [05:51:22]line Товар: 2710194800 [05:51:22]line ДТ-К-5 [05:51:22]line 15.230 * 76.20 [05:51:22]line = 1160.53 [05:51:22]line НДС 12% НСП 1% [05:51:22]line > о реализуемом товаре [05:51:22]line ОКРУГЛЕНИЕ: -0.53 [05:51:22]line ИТОГО: 1160.00 [05:51:22]line Внесено: 1160.00 [05:51:22]line СДАЧА: 0.00 [05:51:22]line НСП 1% : 10.27 [05:51:22]line НДС 12% : 123.24 [05:51:22]line Наличными: 1160.00 [05:51:22]line Безнал.: 0.00 [05:51:22]line Место: АЗС № 130 "Партнер Нефть" [05:51:22]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [05:51:22]line СНО: Общий режим [05:51:22]line Чек 52 23.08.2024 05:51 [05:51:22]line Смена: 470 ФФД: 1.0 [05:51:22]line ЗНМ: 0300000071 [05:51:22]line РНМ: 0000000000092561 [05:51:22]line Версия ККМ: 001 [05:51:22]line ФМ: 0000000000871778 [05:51:22]line ФД: 178592 [05:51:22]line ФПД: 111411517584711 [05:51:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T055121&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178592&fm=111411517584711&tin=02508201610067®Number=0000000000092561&sum=116000 [05:51:23]OFD Sender: Processing packet 178592 [packets to send 497, broken 496] [05:51:23]ProducePacketName [05:51:23]name=ofd_packets/00178592 [05:51:23]OFD Sender: To server: pG, [05:51:23]CommunicateWithHost lk.salyk.kg:30040 [05:51:23]ConnectInit lk.salyk.kg [05:51:23]written 0, free lines is 4095 [05:51:23]Write to MH i2c: 01 00 00 8E 03 91 [05:51:23]Write i2c OK [05:51:23]MH_I2C_Read... [05:51:23]Read from MH i2c: 01 [05:51:23]MH_I2C_Read... [05:51:23]Read from MH i2c: 01 07 00 [05:51:23]MH_I2C_Read... [05:51:23]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 BE 0C 62 [05:51:23]RasterBufferAndPrint [05:51:23]line [05:51:23]line [05:51:23]line [05:51:23]line [05:51:23]line [05:51:23]written 0, free lines is 3268 [05:51:23]MH_Cut [05:51:23]Write to MH i2c: D1 01 00 95 03 01 6A [05:51:23]Write i2c OK [05:51:23]MH_I2C_Read... [05:51:23]Read from MH i2c: D1 [05:51:23]MH_I2C_Read... [05:51:23]Read from MH i2c: D1 01 00 [05:51:23]MH_I2C_Read... [05:51:23]Read from MH i2c: D1 01 00 95 03 00 69 [05:51:23]Write to MH i2c: 01 00 00 96 03 99 [05:51:23]Write i2c OK [05:51:23]MH_I2C_Read... [05:51:23]Connected sock=10 [05:51:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 41 6C 04 01 AF 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 3B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 55 C5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 C5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 30 00 00 00 00 07 04 06 00 20 C5 01 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 59 23 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A0 B9 02 00 35 04 06 00 65 54 03 ED F5 47 B7 8B CC B6 25 8C 25 48 [05:51:24]*** Cut start [05:51:24]*** Partial cut [05:51:24]*** CUTSNS_PIN = 1 [05:51:24]*** CUTSNS_PIN = 0 [05:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F1 DF 47 00 46 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 31 37 37 38 10 04 04 00 A0 B9 02 00 F4 03 04 00 02 CF C7 66 B6 04 01 00 00 D1 9C 2F 76 A2 46 E5 5D [05:51:24]CommunicateWithHost err = 0 [05:51:24]CheckOFDResponse [05:51:24]1017 (14) - 77093643461234 [05:51:24]1041 (16) - 0000000000871778 [05:51:24]1040 (4) - 178592 [05:51:24]1012 (4) - 22.08.2024 23:51 [05:51:24]1206 (1) - 0 [05:51:24]OFD Sender: Remove packet 178592 [05:51:24]ProducePacketName [05:51:24]name=ofd_packets/00178592 [05:51:24]NVStorageDeleteData [05:51:24]*** Brake cut motor [05:51:25]Read from MH i2c: 01 [05:51:25]MH_I2C_Read... [05:51:25]OFD Sender: No OFD packet to send [05:51:25]*** Stop cut motor [05:51:25]*** Cut end [05:51:25]Read from MH i2c: 01 07 00 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 FF 0F AE [05:51:25]process_action close_receipt done [05:51:25]requested_data is exist [05:51:25]produce_requested_data [05:51:25]requested_item fm.sn is exist - process it [05:51:25]wFMCommunicate request_size=4 [05:51:25]MH_SAM_APDU [05:51:25]CAPDU: 80 11 00 00 [05:51:25]Write to MH i2c: E2 08 00 97 03 80 11 00 00 00 00 00 00 14 [05:51:25]Write i2c OK [05:51:25]MH_I2C_Read... [05:51:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:51:25]Read from MH i2c: E2 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: E2 17 00 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: E2 17 00 97 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6D [05:51:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [05:51:25]wFMCommunicate OK [05:51:25]requested_item fd.num is exist - process it [05:51:25]SAM_PROTO_GetFieldsCounters [05:51:25]wFMCommunicate request_size=4 [05:51:25]MH_SAM_APDU [05:51:25]CAPDU: 80 13 00 00 [05:51:25]Write to MH i2c: E2 08 00 98 03 80 13 00 00 00 00 00 00 17 [05:51:25]Write i2c OK [05:51:25]MH_I2C_Read... [05:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:51:25]Read from MH i2c: E2 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: E2 62 00 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: E2 62 00 98 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A0 B9 02 00 0E 04 04 00 D6 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 0A [05:51: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A0 B9 02 00 0E 04 04 00 D6 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 [05:51:25]wFMCommunicate OK [05:51:25]SAM_PROTO_GetFieldsCounters done [05:51:25]requested_item shift.num is exist - process it [05:51:25]requested_item shift.opened is exist - process it [05:51:25]req_shift_opened [05:51:25]FM_GetShiftState [05:51:25]SAM_PROTO_GetShiftState [05:51:25]wFMCommunicate request_size=4 [05:51:25]MH_SAM_APDU [05:51:25]CAPDU: 80 13 01 00 [05:51:25]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [05:51:25]Write i2c OK [05:51:25]MH_I2C_Read... [05:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:51:25]Read from MH i2c: E2 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: E2 0E 00 [05:51:25]MH_I2C_Read... [05:51:25]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F0 [05:51:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [05:51:25]wFMCommunicate OK [05:51:25]SAM_PROTO_GetShiftState done [05:51:25]FM_GetShiftState done [05:51:25]req_shift_opened done [05:51:25]requested_item shift.open_date is exist - process it [05:51:25]req_shift_open_date [05:51:25]req_shift_open_date done [05:51:25]produce_requested_data done [05:51:25]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178592,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [05:51:25]process_action_free close_receipt [05:51:25]json_value_free [05:51:25]json_value_free done [05:51:25]process_json_proto returns [05:51:25]Send response to host [05:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178592,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [05:51:25]free response buf [05:51:25]execute_script done [05:51:25]execute_script returns [05:51:25]free content buf [05:51:25]Sock 9.Close socket [05:51:25]Sock 9.Thread stoped [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:37]recv_with_timeout no data received [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:49]recv_with_timeout no data received [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:00]recv_with_timeout no data received [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]recv_with_timeout no data received [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:45]recv_with_timeout no data received [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]accept exits with 7 [06:01:56]New connection [06:01:56]New thread 3067530596 created [06:01:56]Thread 3067387236 joined [06:01:56]Waiting for new connection... [06:01:56] Sock 7.Parse request [06:01:56]Sock 7.Check first char [06:01:56]Sock 7.First char is OK [06:01:56]request: POST /json_proto HTTP/1.0 [06:01:56]Method: POST [06:01:56]URL: /json_proto [06:01:56]Method is POST - this is cgi request [06:01:56]url: /json_proto [06:01:56]query_string will be loaded in cgi processing [06:01:56]execute_cgi json_proto POST (null) [06:01:56]execute_cgi path=json_proto method=POST [06:01:56]POST find Content-Length [06:01:56]Host: 172.17.44.131:8080 [06:01:56]Content-Length: 679 [06:01:56]Content-Type: application/json [06:01:56] [06:01:56]POST finish read [06:01:56]Found Content-Length = 679 [06:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:56]execute_script... [06:01: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)293993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:01:56]POST & json_proto [06:01:56]process_json_proto [06:01:56]json parsed OK: [06:01:56]protocol is kg_v1.0 [06:01:56]action value=close_receipt [06:01:56]process_action close_receipt [06:01:56]cmd_close_receipt [06:01:56]MH_GetDate [06:01:56]Write to MH i2c: F0 00 00 9A 03 8C [06:01:56]Write i2c OK [06:01:56]MH_I2C_Read... [06:01:56]Read from MH i2c: F0 [06:01:56]MH_I2C_Read... [06:01:56]Read from MH i2c: F0 09 00 [06:01:56]MH_I2C_Read... [06:01:56]Read from MH i2c: F0 09 00 9A 03 00 D5 25 C8 66 4F 53 BE 66 83 [06:01:56]GetLastDocTimeStamp 1724392281 [06:01:56]current date 1724392917 [06:01:56]FM_GetShiftState [06:01:56]SAM_PROTO_GetShiftState [06:01:56]wFMCommunicate request_size=4 [06:01:56]MH_SAM_APDU [06:01:56]CAPDU: 80 13 01 00 [06:01:56]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [06:01:56]Write i2c OK [06:01:56]MH_I2C_Read... [06:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:01:56]Read from MH i2c: E2 [06:01:56]MH_I2C_Read... [06:01:56]Read from MH i2c: E2 0E 00 [06:01:56]MH_I2C_Read... [06:01:56]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F2 [06:01:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:01:56]wFMCommunicate OK [06:01:56]SAM_PROTO_GetShiftState done [06:01:56]FM_GetShiftState done [06:01:56]opened in 1724371660 [06:01:56]opened+sec_in_day 1724458060 [06:01:56]quantity*price = 100050 [06:01:56]sum+1 = 100052 [06:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 53 23.08.2024 06:01 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178593 ФПД: 3966110045305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T060157&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178593&fm=3966110045305&tin=02508201610067®Number=0000000000092561&sum=100000 [06:01:57]StoreToDocumentArchive [06:01:57]shift 470 fd 178593 [06:01:57]save to /storage/0470/doc_00178593 [06:01:57]save last doc name /storage/0470/doc_00178593 to /storage/kkm_last_doc_name [06:01:57]save OK [06:01:57]Clear old archive folders... [06:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:01:57]tlvbuf is 001611B0 [06:01:57]SAM_PROTO_ClearQueue [06:01:57]wFMCommunicate request_size=4 [06:01:57]MH_SAM_APDU [06:01:57]CAPDU: 80 09 00 00 [06:01:57]Write to MH i2c: E2 08 00 A8 03 80 09 00 00 00 00 00 00 1D [06:01:57]Write i2c OK [06:01:57]MH_I2C_Read... [06:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:01:57]Read from MH i2c: E2 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [06:01:57]RAPDU: 90 00 [06:01:57]wFMCommunicate OK [06:01:57]SAM_PROTO_ClearQueue done [06:01:57]KKMCreateOFDPacket [06:01:57]OFDProtocolAddRootSTLVToBuf [06:01:57]FM_MakeSignedData [06:01:57]FM_MakeSignedData [06:01:57]SAM_PROTO_SignData [06:01:57]wFMCommunicate request_size=4 [06:01:57]MH_SAM_APDU [06:01:57]CAPDU: 80 0D 01 02 [06:01:57]Write to MH i2c: E2 08 00 A9 03 80 0D 01 02 00 00 00 00 25 [06:01:57]Write i2c OK [06:01:57]MH_I2C_Read... [06:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:01:57]Read from MH i2c: E2 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [06:01:57]RAPDU: 90 00 [06:01:57]wFMCommunicate OK [06:01:57]wFMCommunicate request_size=255 [06:01:57]MH_SAM_APDU [06:01:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 25 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A1 B9 02 00 35 04 06 00 03 9B 6E 94 [06:01:57]Write to MH i2c: E2 02 01 AA 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 D5 25 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A1 B9 02 00 35 04 06 00 03 9B 6E 94 00 00 E3 [06:01:57]Write i2c OK [06:01:57]MH_I2C_Read... [06:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:57]Read from MH i2c: E2 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [06:01:57]RAPDU: 90 00 [06:01:57]wFMCommunicate OK [06:01:57]wFMCommunicate request_size=7 [06:01:57]MH_SAM_APDU [06:01:57]CAPDU: 80 0D 02 02 02 94 79 [06:01:57]Write to MH i2c: E2 0A 00 AB 03 80 0D 02 02 02 00 94 79 00 00 39 [06:01:57]Write i2c OK [06:01:57]MH_I2C_Read... [06:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:01:57]Read from MH i2c: E2 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 [06:01:57]MH_I2C_Read... [06:01:57]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [06:01:57]RAPDU: 90 00 [06:01:57]wFMCommunicate OK [06:01:57]wFMCommunicate request_size=4 [06:01:57]MH_SAM_APDU [06:01:57]CAPDU: 80 0D 03 02 [06:01:57]Write to MH i2c: E2 08 00 AC 03 80 0D 03 02 00 00 00 00 2A [06:01:57]Write i2c OK [06:01:57]MH_I2C_Read... [06:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:01:58]Read from MH i2c: E2 [06:01:58]MH_I2C_Read... [06:01:58]Read from MH i2c: E2 0B 00 [06:01:58]MH_I2C_Read... [06:01:58]Read from MH i2c: E2 0B 00 AC 03 00 F5 E4 4A 92 66 B9 DB BA 90 00 94 [06:01:58]RAPDU: F5 E4 4A 92 66 B9 DB BA 90 00 [06:01:58]wFMCommunicate OK [06:01:58]SAM_PROTO_SignData done [06:01:58]FM_MakeSignedData done [06:01:58]CreateOFDProtocolMessage [06:01:58]wFMCommunicate request_size=4 [06:01:58]MH_SAM_APDU [06:01:58]CAPDU: 80 11 00 00 [06:01:58]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [06:01:58]Write i2c OK [06:01:58]MH_I2C_Read... [06:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:01:58]Read from MH i2c: E2 [06:01:58]MH_I2C_Read... [06:01:58]Read from MH i2c: E2 17 00 [06:01:58]MH_I2C_Read... [06:01:58]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [06:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:01:58]wFMCommunicate OK [06:01:58]CreateOFDProtocolMessage done [06:01:58]OFDSenderStorePacket 178593 [06:01:58]StoreOFDPacket docnum=178593 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 644212+1723749199=1724393411 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 C3 27 C8 66 4F 53 BE 66 DD [06:10:11]Current date/time: 23.08.2024 06:10 [06:10:11]FM_Init [06:10:11]wFMConnect [06:10:11]MH_SAM_On [06:10:11]Write to MH i2c: E0 00 00 08 00 E7 [06:10:11]Write i2c OK [06:10:11]MH_I2C_Read... [06:10:11]*** iso7816_init finished! [06:10:11]*** atr: [06:10:11]*** 0F 3B D5 18 FF 81 91 FE [06:10:11]*** 1F C3 80 73 C8 21 10 0A [06:10:11]*** 00 00 00 00 00 00 00 00 [06:10:11]*** 00 00 00 00 00 00 00 00 [06:10:11]*** 00 00 00 00 00 00 00 00 [06:10:11]*** 00 00 00 00 00 00 00 00 [06:10:11]*** 00 00 00 00 00 00 00 00 [06:10:11]*** 00 00 00 00 00 00 00 00 [06:10:11]Read from MH i2c: E0 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E0 10 00 [06:10:11]MH_I2C_Read... [06:10:11]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [06:10:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [06:10:11]wFMCommunicate request_size=10 [06:10:11]MH_SAM_APDU [06:10:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [06:10:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 644242+1723749199=1724393441 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 E1 27 C8 66 4F 53 BE 66 FB [06:10:41]Current date/time: 23.08.2024 06:10 [06:10:41]FM_Init [06:10:41]wFMConnect [06:10:41]MH_SAM_On [06:10:41]Write to MH i2c: E0 00 00 08 00 E7 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_init finished! [06:10:41]*** atr: [06:10:41]*** 0F 3B D5 18 FF 81 91 FE [06:10:41]*** 1F C3 80 73 C8 21 10 0A [06:10:41]*** 00 00 00 00 00 00 00 00 [06:10:41]*** 00 00 00 00 00 00 00 00 [06:10:41]*** 00 00 00 00 00 00 00 00 [06:10:41]*** 00 00 00 00 00 00 00 00 [06:10:41]*** 00 00 00 00 00 00 00 00 [06:10:41]*** 00 00 00 00 00 00 00 00 [06:10:41]Read from MH i2c: E0 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E0 10 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [06:10:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [06:10:41]wFMCommunicate request_size=10 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [06:10:41]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [06:10:41]RAPDU: 90 00 [06:10:41]wFMCommunicate OK [06:10:41]wFMCommunicate request_size=4 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 80 11 00 00 [06:10:41]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 17 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [06:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:10:41]wFMCommunicate OK [06:10:41]Detected FM SN is 0000000000871778 [06:10:41]Stored FM SN is 0000000000871778 [06:10:41]wFMCommunicate request_size=9 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 80 16 00 00 04 D9 BA 00 00 [06:10:41]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [06:10:41]RAPDU: 90 00 [06:10:41]wFMCommunicate OK [06:10:41]FM PIN OK [06:10:41]wFMCommunicate request_size=8 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 80 14 04 00 03 02 00 01 [06:10:41]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [06:10:41]RAPDU: 90 00 [06:10:41]wFMCommunicate OK [06:10:41]wFMCommunicate request_size=13 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [06:10:41]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [06:10:41]RAPDU: 90 00 [06:10:41]wFMCommunicate OK [06:10:41]wFMCommunicate request_size=4 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 80 11 00 00 [06:10:41]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 17 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [06:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:10:41]wFMCommunicate OK [06:10:41]DocumentArchiveInit [06:10:41]Start Httpd... [06:10:41]Httpd thread 3067034980 created [06:10:41]Write to MH i2c: 01 00 00 0F 00 0F [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: 01 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: 01 07 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [06:10:41]MH Int Process started [06:10:41]Allocated Socket 8 [06:10:41]Bind OK [06:10:41]Listen OK [06:10:41]httpd running on port 8080 [06:10:41]Waiting for new connection... [06:10:42]OFD Sender: No OFD packet to send [06:10:47]OFD Sender: No OFD packet to send [06:10:48]accept exits with 6 [06:10:48]New connection [06:10:48]New thread 3066748260 created [06:10:48]Waiting for new connection... [06:10:48] Sock 6.Parse request [06:10:48]Sock 6.Check first char [06:10:48]Sock 6.First char is OK [06:10:48]request: POST /json_proto HTTP/1.0 [06:10:48]Method: POST [06:10:48]URL: /json_proto [06:10:48]Method is POST - this is cgi request [06:10:48]url: /json_proto [06:10:48]query_string will be loaded in cgi processing [06:10:48]execute_cgi json_proto POST (null) [06:10:48]execute_cgi path=json_proto method=POST [06:10:48]POST find Content-Length [06:10:48]Host: 172.17.44.131:8080 [06:10:48]Content-Length: 215 [06:10:48]Content-Type: application/json [06:10:48] [06:10:48]POST finish read [06:10:48]Found Content-Length = 215 [06:10:48]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" ] } } [06:10:48]execute_script... [06:10:48]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" ] } } [06:10:48]POST & json_proto [06:10:48]process_json_proto [06:10:48]json parsed OK: [06:10:48]protocol is kg_v1.0 [06:10:48]action value=get_value [06:10:48]process_action get_value [06:10:48]cmd_get_value [06:10:48]process_action get_value done [06:10:48]requested_data is exist [06:10:48]produce_requested_data [06:10:48]requested_item kkm.sn is exist - process it [06:10:48]requested_item kkm.ver is exist - process it [06:10:48]requested_item fm.sn is exist - process it [06:10:48]wFMCommunicate request_size=4 [06:10:48]MH_SAM_APDU [06:10:48]CAPDU: 80 11 00 00 [06:10:48]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [06:10:48]Write i2c OK [06:10:48]MH_I2C_Read... [06:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:48]Read from MH i2c: E2 [06:10:48]MH_I2C_Read... [06:10:48]Read from MH i2c: E2 17 00 [06:10:48]MH_I2C_Read... [06:10:48]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [06:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:10:48]wFMCommunicate OK [06:10:48]requested_item fd.num is exist - process it [06:10:48]SAM_PROTO_GetFieldsCounters [06:10:48]wFMCommunicate request_size=4 [06:10:48]MH_SAM_APDU [06:10:48]CAPDU: 80 13 00 00 [06:10:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [06:10:48]Write i2c OK [06:10:48]MH_I2C_Read... [06:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:48]Read from MH i2c: E2 [06:10:48]MH_I2C_Read... [06:10:48]Read from MH i2c: E2 62 00 [06:10:48]MH_I2C_Read... [06:10:48]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A1 B9 02 00 0E 04 04 00 D6 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 84 [06:10: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A1 B9 02 00 0E 04 04 00 D6 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 [06:10:48]wFMCommunicate OK [06:10:48]SAM_PROTO_GetFieldsCounters done [06:10:48]requested_item shift.num is exist - process it [06:10:48]requested_item shift.opened is exist - process it [06:10:48]req_shift_opened [06:10:48]FM_GetShiftState [06:10:48]SAM_PROTO_GetShiftState [06:10:48]wFMCommunicate request_size=4 [06:10:48]MH_SAM_APDU [06:10:48]CAPDU: 80 13 01 00 [06:10:48]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [06:10:48]Write i2c OK [06:10:48]MH_I2C_Read... [06:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:48]Read from MH i2c: E2 [06:10:48]MH_I2C_Read... [06:10:48]Read from MH i2c: E2 0E 00 [06:10:48]MH_I2C_Read... [06:10:48]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [06:10:48]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:10:48]wFMCommunicate OK [06:10:48]SAM_PROTO_GetShiftState done [06:10:48]FM_GetShiftState done [06:10:48]req_shift_opened done [06:10:48]requested_item shift.open_date is exist - process it [06:10:48]req_shift_open_date [06:10:48]req_shift_open_date done [06:10:48]produce_requested_data done [06:10:48]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178593,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:10:48]process_action_free get_value [06:10:48]json_value_free [06:10:48]json_value_free done [06:10:48]process_json_proto returns [06:10:48]Send response to host [06:10:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178593,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:10:48]free response buf [06:10:48]execute_script done [06:10:48]execute_script returns [06:10:48]free content buf [06:10:48]Sock 6.Close socket [06:10:48]Sock 6.Thread stoped [06:10:48]accept exits with 10 [06:10:48]New connection [06:10:48]New thread 3066604900 created [06:10:48]Thread 3066748260 joined [06:10:48]Waiting for new connection... [06:10:48] Sock 10.Parse request [06:10:48]Sock 10.Check first char [06:10:48]Sock 10.First char is OK [06:10:48]request: POST /json_proto HTTP/1.0 [06:10:48]Method: POST [06:10:48]URL: /json_proto [06:10:48]Method is POST - this is cgi request [06:10:48]url: /json_proto [06:10:48]query_string will be loaded in cgi processing [06:10:48]execute_cgi json_proto POST (null) [06:10:48]execute_cgi path=json_proto method=POST [06:10:48]POST find Content-Length [06:10:48]Host: 172.17.44.131:8080 [06:10:48]Content-Length: 331 [06:10:48]Content-Type: application/json [06:10:48] [06:10:48]POST finish read [06:10:48]Found Content-Length = 331 [06:10:48]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" ] } } [06:10:48]execute_script... [06:10:48]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" ] } } [06:10:48]POST & json_proto [06:10:48]process_json_proto [06:10:48]json parsed OK: [06:10:48]protocol is kg_v1.0 [06:10:48]action value=get_value [06:10:48]process_action get_value [06:10:48]cmd_get_value [06:10:48]process_action get_value done [06:10:48]requested_data is exist [06:10:48]produce_requested_data [06:10:48]requested_item fm.sale.total is exist - process it [06:10:48]SAM_PROTO_GetFMData [06:10:48]wFMCommunicate request_size=4 [06:10:48]MH_SAM_APDU [06:10:48]CAPDU: 80 13 03 00 [06:10:48]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [06:10:48]Write i2c OK [06:10:48]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 [06:10:49]MH_I2C_Read... [06:10:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [06:10:49]Read from MH i2c: E2 FD 00 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 F5 B5 02 00 69 04 A4 00 6F 04 04 00 5F B4 02 00 B1 04 05 00 69 EA 63 2A 05 70 04 05 00 A3 BC 22 14 04 72 04 05 00 C6 2D 41 16 01 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 AC B4 76 8C 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 BF 5C B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 22 [06:10:49]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 F5 B5 02 00 69 04 A4 00 6F 04 04 00 5F B4 02 00 B1 04 05 00 69 EA 63 2A 05 70 04 05 00 A3 BC 22 14 04 72 04 05 00 C6 2D 41 16 01 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 AC B4 76 8C 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 BF 5C B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 [06:10:49]wFMCommunicate OK [06:10:49]wFMCommunicate request_size=4 [06:10:49]MH_SAM_APDU [06:10:49]CAPDU: 80 17 00 00 [06:10:49]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [06:10:49]Write i2c OK [06:10:49]MH_I2C_Read... [06:10:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:10:49]Read from MH i2c: E2 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 FD 00 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [06:10:49]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:10:49]wFMCommunicate OK [06:10:49]wFMCommunicate request_size=4 [06:10:49]MH_SAM_APDU [06:10:49]CAPDU: 80 17 00 00 [06:10:49]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [06:10:49]Write i2c OK [06:10:49]MH_I2C_Read... [06:10:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:10:49]Read from MH i2c: E2 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 FD 00 [06:10:49]MH_I2C_Read... [06:10:49]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [06:10:49]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:10:49]wFMCommunicate OK [06:10:49]wFMCommunicate request_size=4 [06:10:49]MH_SAM_APDU [06:10:49]CAPDU: 80 17 00 00 [06:10:49]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [06:10:49]Write i2c OK [06:10:49]MH_I2C_Read... [06:10:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:10:50]Read from MH i2c: E2 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 FD 00 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [06:10:50]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [06:10:50]wFMCommunicate OK [06:10:50]wFMCommunicate request_size=4 [06:10:50]MH_SAM_APDU [06:10:50]CAPDU: 80 17 00 00 [06:10:50]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [06:10:50]Write i2c OK [06:10:50]MH_I2C_Read... [06:10:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [06:10:50]Read from MH i2c: E2 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 E3 00 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 E3 00 17 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 76 [06:10:50]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [06:10:50]wFMCommunicate OK [06:10:50]SAM_PROTO_GetFMData done [06:10:50]requested_item fm.sale_refund.total is exist - process it [06:10:50]requested_item fm.buy.total is exist - process it [06:10:50]requested_item shift.sale.total is exist - process it [06:10:50]SAM_PROTO_GetShiftData [06:10:50]wFMCommunicate request_size=4 [06:10:50]MH_SAM_APDU [06:10:50]CAPDU: 80 13 02 00 [06:10:50]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [06:10:50]Write i2c OK [06:10:50]MH_I2C_Read... [06:10:50]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [06:10:50]Read from MH i2c: E2 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 FD 00 [06:10:50]MH_I2C_Read... [06:10:50]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 35 00 00 00 69 04 9B 00 6F 04 04 00 35 00 00 00 B1 04 03 00 D8 2D 6F 70 04 03 00 C0 84 38 72 04 03 00 18 A9 36 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 10 CF 0B 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 EA FB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 77 [06:10:50]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 35 00 00 00 69 04 9B 00 6F 04 04 00 35 00 00 00 B1 04 03 00 D8 2D 6F 70 04 03 00 C0 84 38 72 04 03 00 18 A9 36 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 10 CF 0B 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 EA FB EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [06:10:50]wFMCommunicate OK [06:10:50]wFMCommunicate request_size=4 [06:10:50]MH_SAM_APDU [06:10:50]CAPDU: 80 17 00 00 [06:10:50]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [06:10:50]Write i2c OK [06:10:50]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 FD 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 FD 00 19 00 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 BB [06:10:51]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 [06:10:51]wFMCommunicate OK [06:10:51]wFMCommunicate request_size=4 [06:10:51]MH_SAM_APDU [06:10:51]CAPDU: 80 17 00 00 [06:10:51]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 FD 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [06:10:51]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 [06:10:51]wFMCommunicate OK [06:10:51]wFMCommunicate request_size=4 [06:10:51]MH_SAM_APDU [06:10:51]CAPDU: 80 17 00 00 [06:10:51]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [06:10:51]Read from MH i2c: E2 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 FD 00 [06:10:51]MH_I2C_Read... [06:10:51]Read from MH i2c: E2 FD 00 1B 00 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 0D [06:10:51]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 [06:10:51]wFMCommunicate OK [06:10:51]wFMCommunicate request_size=4 [06:10:51]MH_SAM_APDU [06:10:51]CAPDU: 80 17 00 00 [06:10:51]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [06:10:51]Write i2c OK [06:10:51]MH_I2C_Read... [06:10:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [06:10:52]Read from MH i2c: E2 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: E2 CB 00 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: E2 CB 00 1C 00 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 85 [06:10:52]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 [06:10:52]wFMCommunicate OK [06:10:52]SAM_PROTO_GetShiftData done [06:10:52]requested_item shift.sale.total_cash is exist - process it [06:10:52]requested_item shift.sale_refund.total is exist - process it [06:10:52]requested_item shift.sale_refund.total_cash is exist - process it [06:10:52]requested_item shift.buy.total is exist - process it [06:10:52]requested_item shift.buy.total_cash is exist - process it [06:10:52]produce_requested_data done [06:10:52]produce_requested_data return {"fm.sale.total":221860276.25,"fm.sale_refund.total":18116550.00,"fm.buy.total":0.00,"shift.sale.total":72862.32,"shift.sale.total_cash":37040.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} [06:10:52]process_action_free get_value [06:10:52]json_value_free [06:10:52]json_value_free done [06:10:52]process_json_proto returns [06:10:52]Send response to host [06:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":221860276.25,"fm.sale_refund.total":18116550.00,"fm.buy.total":0.00,"shift.sale.total":72862.32,"shift.sale.total_cash":37040.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}}} [06:10:52]free response buf [06:10:52]execute_script done [06:10:52]execute_script returns [06:10:52]free content buf [06:10:52]Sock 10.Close socket [06:10:52]Sock 10.Thread stoped [06:10:52]OFD Sender: No OFD packet to send [06:10:52]accept exits with 6 [06:10:52]New connection [06:10:52]New thread 3066748260 created [06:10:52]Thread 3066604900 joined [06:10:52]Waiting for new connection... [06:10:52] Sock 6.Parse request [06:10:52]Sock 6.Check first char [06:10:52]Sock 6.First char is OK [06:10:52]request: POST /json_proto HTTP/1.0 [06:10:52]Method: POST [06:10:52]URL: /json_proto [06:10:52]Method is POST - this is cgi request [06:10:52]url: /json_proto [06:10:52]query_string will be loaded in cgi processing [06:10:52]execute_cgi json_proto POST (null) [06:10:52]execute_cgi path=json_proto method=POST [06:10:52]POST find Content-Length [06:10:52]Host: 172.17.44.131:8080 [06:10:52]Content-Length: 685 [06:10:52]Content-Type: application/json [06:10:52] [06:10:52]POST finish read [06:10:52]Found Content-Length = 685 [06:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 32.090, "sum" : 1200.17, "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" ] } } [06:10:52]execute_script... [06:10: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)293992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 32.090, "sum" : 1200.17, "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" ] } } [06:10:52]POST & json_proto [06:10:52]process_json_proto [06:10:52]json parsed OK: [06:10:52]protocol is kg_v1.0 [06:10:52]action value=close_receipt [06:10:52]process_action close_receipt [06:10:52]cmd_close_receipt [06:10:52]MH_GetDate [06:10:52]Write to MH i2c: F0 00 00 1D 00 0C [06:10:52]Write i2c OK [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: F0 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: F0 09 00 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: F0 09 00 1D 00 00 ED 27 C8 66 4F 53 BE 66 1D [06:10:52]GetLastDocTimeStamp 1724392917 [06:10:52]current date 1724393453 [06:10:52]FM_GetShiftState [06:10:52]SAM_PROTO_GetShiftState [06:10:52]wFMCommunicate request_size=4 [06:10:52]MH_SAM_APDU [06:10:52]CAPDU: 80 13 01 00 [06:10:52]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [06:10:52]Write i2c OK [06:10:52]MH_I2C_Read... [06:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:52]Read from MH i2c: E2 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: E2 0E 00 [06:10:52]MH_I2C_Read... [06:10:52]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [06:10:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:10:52]wFMCommunicate OK [06:10:52]SAM_PROTO_GetShiftState done [06:10:52]FM_GetShiftState done [06:10:52]opened in 1724371660 [06:10:52]opened+sec_in_day 1724458060 [06:10:52]quantity*price = 120016 [06:10:52]sum+1 = 120018 [06:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 54 23.08.2024 06:10 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178594 ФПД: 488643494593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T061053&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178594&fm=488643494593&tin=02508201610067®Number=0000000000092561&sum=120000 [06:10:53]StoreToDocumentArchive [06:10:53]shift 470 fd 178594 [06:10:53]save to /storage/0470/doc_00178594 [06:10:53]save last doc name /storage/0470/doc_00178594 to /storage/kkm_last_doc_name [06:10:53]save OK [06:10:53]Clear old archive folders... [06:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:10:53]tlvbuf is 01D662A0 [06:10:53]SAM_PROTO_ClearQueue [06:10:53]wFMCommunicate request_size=4 [06:10:53]MH_SAM_APDU [06:10:53]CAPDU: 80 09 00 00 [06:10:53]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [06:10:53]Write i2c OK [06:10:53]MH_I2C_Read... [06:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:53]Read from MH i2c: E2 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 03 00 [06:10:53]MH_I2C_Read... [06:10:53]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [06:10:53]RAPDU: 90 00 [06:10:53]wFMCommunicate OK [06:10:53]SAM_PROTO_ClearQueue done [06:10:53]KKMCreateOFDPacket [06:10:53]OFDProtocolAddRootSTLVToBuf [06:10:53]FM_MakeSignedData [06:10:53]FM_MakeSignedData [06:10:53]SAM_PROTO_SignData [06:10:53]wFMCommunicate request_size=4 [06:10:53]MH_SAM_APDU [06:10:53]CAPDU: 80 0D 01 02 [06:10:53]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [06:10:53]Write i2c OK [06:10:53]MH_I2C_Read... [06:10:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:54]Read from MH i2c: E2 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 03 00 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [06:10:54]RAPDU: 90 00 [06:10:54]wFMCommunicate OK [06:10:54]wFMCommunicate request_size=255 [06:10:54]MH_SAM_APDU [06:10:54]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 ED 27 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 B9 02 00 35 04 06 00 00 71 [06:10:54]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 ED 27 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 B9 02 00 35 04 06 00 00 71 00 00 F5 [06:10:54]Write i2c OK [06:10:54]MH_I2C_Read... [06:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:54]Read from MH i2c: E2 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 03 00 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [06:10:54]RAPDU: 90 00 [06:10:54]wFMCommunicate OK [06:10:54]wFMCommunicate request_size=9 [06:10:54]MH_SAM_APDU [06:10:54]CAPDU: 80 0D 02 02 04 C5 6C 02 C1 [06:10:54]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 C5 6C 02 C1 00 00 A4 [06:10:54]Write i2c OK [06:10:54]MH_I2C_Read... [06:10:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:54]Read from MH i2c: E2 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 03 00 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [06:10:54]RAPDU: 90 00 [06:10:54]wFMCommunicate OK [06:10:54]wFMCommunicate request_size=4 [06:10:54]MH_SAM_APDU [06:10:54]CAPDU: 80 0D 03 02 [06:10:54]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [06:10:54]Write i2c OK [06:10:54]MH_I2C_Read... [06:10:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:54]Read from MH i2c: E2 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 0B 00 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 0B 00 2F 00 00 1B 66 E9 30 43 3E 82 C1 90 00 09 [06:10:54]RAPDU: 1B 66 E9 30 43 3E 82 C1 90 00 [06:10:54]wFMCommunicate OK [06:10:54]SAM_PROTO_SignData done [06:10:54]FM_MakeSignedData done [06:10:54]CreateOFDProtocolMessage [06:10:54]wFMCommunicate request_size=4 [06:10:54]MH_SAM_APDU [06:10:54]CAPDU: 80 11 00 00 [06:10:54]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [06:10:54]Write i2c OK [06:10:54]MH_I2C_Read... [06:10:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:54]Read from MH i2c: E2 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 17 00 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [06:10:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:10:54]wFMCommunicate OK [06:10:54]CreateOFDProtocolMessage done [06:10:54]OFDSenderStorePacket 178594 [06:10:54]StoreOFDPacket docnum=178594 [06:10:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 2F 3A 06 01 EA 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 ED 27 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 B9 02 00 35 04 06 00 00 71 C5 6C 02 C1 1B 66 E9 30 43 3E 82 C1 [06:10:54]CheckFolder [06:10:54]dirname=/storage/ofd_packets [06:10:54]CheckFolder done [06:10:54]ProducePacketName [06:10:54]name=ofd_packets/00178594 [06:10:54]NVStorageSaveData ofd_packets/00178594 [06:10:54]File name is /storage/ofd_packets/00178594 [06:10:54]Write 300 bytes [06:10:54]NVStorageSaveData done [06:10:54]OFDSenderStorePacket done [06:10:54]KKMCreateOFDPacket done [06:10:54]NVStorageSaveData kkm_last_timestamp [06:10:54]File name is /storage/kkm_last_timestamp [06:10:54]Write 4 bytes [06:10:54]NVStorageSaveData done [06:10:54]ExternCall_PrintAddStr [06:10:54]wPrintStart [06:10:54]Write to MH i2c: 01 00 00 31 00 31 [06:10:54]Write i2c OK [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: 01 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: 01 07 00 [06:10:54]MH_I2C_Read... [06:10:54]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [06:10:54]RasterBufferAndPrint [06:10:54]line Счет N : (1)293992 [06:10:54]line ИНН: 02508201610067 [06:10:54]line Контрольно-Кассовый Чек [06:10:54]line ПРОДАЖА [06:10:54]line ТРК (МРК, ГНК) : 81 [06:10:54]line Товар: 2711129700 [06:10:54]line ГАЗ-К-5 [06:10:54]line 32.090 * 37.40 [06:10:54]line = 1200.17 [06:10:54]line НДС 12% НСП 1% [06:10:54]line > о реализуемом товаре [06:10:54]line ОКРУГЛЕНИЕ: -0.17 [06:10:54]line ИТОГО: 1200.00 [06:10:54]line Внесено: 1200.00 [06:10:54]line СДАЧА: 0.00 [06:10:54]line НСП 1% : 10.62 [06:10:54]line НДС 12% : 127.45 [06:10:54]line Наличными: 1200.00 [06:10:54]line Безнал.: 0.00 [06:10:54]line Место: АЗС № 130 "Партнер Нефть" [06:10:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:10:54]line СНО: Общий режим [06:10:54]line Чек 54 23.08.2024 06:10 [06:10:54]line Смена: 470 ФФД: 1.0 [06:10:54]line ЗНМ: 0300000071 [06:10:54]line РНМ: 0000000000092561 [06:10:54]line Версия ККМ: 001 [06:10:54]line ФМ: 0000000000871778 [06:10:54]line ФД: 178594 [06:10:54]line ФПД: 488643494593 [06:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T061053&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178594&fm=488643494593&tin=02508201610067®Number=0000000000092561&sum=120000 [06:10:54]written 0, free lines is 4095 [06:10:54]OFD Sender: Processing packet 178594 [packets to send 497, broken 496] [06:10:54]ProducePacketName [06:10:54]name=ofd_packets/00178594 [06:10:54]OFD Sender: To server: pG, [06:10:54]CommunicateWithHost lk.salyk.kg:30040 [06:10:54]ConnectInit lk.salyk.kg [06:10:55]Write to MH i2c: 01 00 00 5C 00 5C [06:10:55]Write i2c OK [06:10:55]MH_I2C_Read... [06:10:55]Read from MH i2c: 01 [06:10:55]MH_I2C_Read... [06:10:55]Read from MH i2c: 01 07 00 [06:10:55]MH_I2C_Read... [06:10:55]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 CA 0C 39 [06:10:55]RasterBufferAndPrint [06:10:55]line [06:10:55]line [06:10:55]line [06:10:55]line [06:10:55]line [06:10:55]written 0, free lines is 3295 [06:10:55]MH_Cut [06:10:55]Write to MH i2c: D1 01 00 63 00 01 35 [06:10:55]Write i2c OK [06:10:55]MH_I2C_Read... [06:10:55]Read from MH i2c: D1 [06:10:55]MH_I2C_Read... [06:10:55]Read from MH i2c: D1 01 00 [06:10:55]MH_I2C_Read... [06:10:55]Read from MH i2c: D1 01 00 63 00 00 34 [06:10:55]Write to MH i2c: 01 00 00 64 00 64 [06:10:55]Write i2c OK [06:10:55]MH_I2C_Read... [06:10:55]*** Cut start [06:10:55]*** Partial cut [06:10:55]*** CUTSNS_PIN = 1 [06:10:56]*** CUTSNS_PIN = 0 [06:10:56]*** Brake cut motor [06:10:56]Read from MH i2c: 01 [06:10:56]MH_I2C_Read... [06:10:56]*** Stop cut motor [06:10:56]*** Cut end [06:10:56]Read from MH i2c: 01 07 00 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [06:10:56]process_action close_receipt done [06:10:56]requested_data is exist [06:10:56]produce_requested_data [06:10:56]requested_item fm.sn is exist - process it [06:10:56]wFMCommunicate request_size=4 [06:10:56]MH_SAM_APDU [06:10:56]CAPDU: 80 11 00 00 [06:10:56]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [06:10:56]Write i2c OK [06:10:56]MH_I2C_Read... [06:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:56]Read from MH i2c: E2 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 17 00 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [06:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:10:56]wFMCommunicate OK [06:10:56]requested_item fd.num is exist - process it [06:10:56]SAM_PROTO_GetFieldsCounters [06:10:56]wFMCommunicate request_size=4 [06:10:56]MH_SAM_APDU [06:10:56]CAPDU: 80 13 00 00 [06:10:56]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [06:10:56]Write i2c OK [06:10:56]MH_I2C_Read... [06:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:56]Read from MH i2c: E2 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 62 00 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A2 B9 02 00 0E 04 04 00 D6 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 DD [06:10: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A2 B9 02 00 0E 04 04 00 D6 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 [06:10:56]wFMCommunicate OK [06:10:56]SAM_PROTO_GetFieldsCounters done [06:10:56]requested_item shift.num is exist - process it [06:10:56]requested_item shift.opened is exist - process it [06:10:56]req_shift_opened [06:10:56]FM_GetShiftState [06:10:56]SAM_PROTO_GetShiftState [06:10:56]wFMCommunicate request_size=4 [06:10:56]MH_SAM_APDU [06:10:56]CAPDU: 80 13 01 00 [06:10:56]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [06:10:56]Write i2c OK [06:10:56]MH_I2C_Read... [06:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:56]Read from MH i2c: E2 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 0E 00 [06:10:56]MH_I2C_Read... [06:10:56]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BB [06:10:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:10:56]wFMCommunicate OK [06:10:56]SAM_PROTO_GetShiftState done [06:10:56]FM_GetShiftState done [06:10:56]req_shift_opened done [06:10:56]requested_item shift.open_date is exist - process it [06:10:56]req_shift_open_date [06:10:56]req_shift_open_date done [06:10:56]produce_requested_data done [06:10:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178594,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:10:56]process_action_free close_receipt [06:10:56]json_value_free [06:10:56]json_value_free done [06:10:56]process_json_proto returns [06:10:56]Send response to host [06:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178594,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:10:56]free response buf [06:10:56]execute_script done [06:10:56]execute_script returns [06:10:56]free content buf [06:10:56]Sock 6.Close socket [06:10:56]Sock 6.Thread stoped [06:10:57]Connected sock=11 [06:10:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 2F 3A 06 01 EA 7C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 ED 27 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A2 B9 02 00 35 04 06 00 00 71 C5 6C 02 C1 1B 66 E9 30 43 3E 82 C1 [06:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9A 12 47 00 9A 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 31 37 37 38 10 04 04 00 A2 B9 02 00 F4 03 04 00 9A D3 C7 66 B6 04 01 00 00 AB 5F 54 AB AE 76 73 56 [06:11:00]CommunicateWithHost err = 0 [06:11:00]CheckOFDResponse [06:11:00]1017 (14) - 77093643461234 [06:11:00]1041 (16) - 0000000000871778 [06:11:00]1040 (4) - 178594 [06:11:00]1012 (4) - 23.08.2024 00:11 [06:11:00]1206 (1) - 0 [06:11:00]OFD Sender: Remove packet 178594 [06:11:00]ProducePacketName [06:11:00]name=ofd_packets/00178594 [06:11:00]NVStorageDeleteData [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:14]recv_with_timeout no data received [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12: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:15]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:07]OFD Sender: No OFD packet to send [06:19:12]OFD Sender: No OFD packet to send [06:19:17]OFD Sender: No OFD packet to send [06:19:22]OFD Sender: No OFD packet to send [06:19:27]OFD Sender: No OFD packet to send [06:19:32]OFD Sender: No OFD packet to send [06:19:37]OFD Sender: No OFD packet to send [06:19:42]OFD Sender: No OFD packet to send [06:19:47]OFD Sender: No OFD packet to send [06:19:52]OFD Sender: No OFD packet to send [06:20:07]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:19]recv_with_timeout no data received [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:48]recv_with_timeout no data received [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:38]accept exits with 9 [06:23:38]New connection [06:23:38]New thread 3066604900 created [06:23:38]Thread 3066748260 joined [06:23:38]Waiting for new connection... [06:23:38] Sock 9.Parse request [06:23:38]Sock 9.Check first char [06:23:38]Sock 9.First char is OK [06:23:38]request: POST /json_proto HTTP/1.0 [06:23:38]Method: POST [06:23:38]URL: /json_proto [06:23:38]Method is POST - this is cgi request [06:23:38]url: /json_proto [06:23:38]query_string will be loaded in cgi processing [06:23:38]execute_cgi json_proto POST (null) [06:23:38]execute_cgi path=json_proto method=POST [06:23:38]POST find Content-Length [06:23:38]Host: 172.17.44.131:8080 [06:23:38]Content-Length: 679 [06:23:38]Content-Type: application/json [06:23:38] [06:23:38]POST finish read [06:23:38]Found Content-Length = 679 [06:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:38]execute_script... [06:23: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)293997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:38]POST & json_proto [06:23:38]process_json_proto [06:23:38]json parsed OK: [06:23:38]protocol is kg_v1.0 [06:23:38]action value=close_receipt [06:23:38]process_action close_receipt [06:23:38]cmd_close_receipt [06:23:38]MH_GetDate [06:23:38]Write to MH i2c: F0 00 00 68 00 57 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: F0 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: F0 09 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: F0 09 00 68 00 00 EB 2A C8 66 4F 53 BE 66 69 [06:23:38]GetLastDocTimeStamp 1724393453 [06:23:38]current date 1724394219 [06:23:38]FM_GetShiftState [06:23:38]SAM_PROTO_GetShiftState [06:23:38]wFMCommunicate request_size=4 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 13 01 00 [06:23:38]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:38]Read from MH i2c: E2 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 0E 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BD [06:23:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:23:38]wFMCommunicate OK [06:23:38]SAM_PROTO_GetShiftState done [06:23:38]FM_GetShiftState done [06:23:38]opened in 1724371660 [06:23:38]opened+sec_in_day 1724458060 [06:23:38]quantity*price = 400050 [06:23:38]sum+1 = 400051 [06:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 55 23.08.2024 06:23 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178595 ФПД: 193329659370442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T062339&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178595&fm=193329659370442&tin=02508201610067®Number=0000000000092561&sum=400000 [06:23:39]StoreToDocumentArchive [06:23:39]shift 470 fd 178595 [06:23:39]save to /storage/0470/doc_00178595 [06:23:39]save last doc name /storage/0470/doc_00178595 to /storage/kkm_last_doc_name [06:23:39]save OK [06:23:39]Clear old archive folders... [06:23:39]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:23:39]tlvbuf is 01D5B090 [06:23:39]SAM_PROTO_ClearQueue [06:23:39]wFMCommunicate request_size=4 [06:23:39]MH_SAM_APDU [06:23:39]CAPDU: 80 09 00 00 [06:23:39]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:39]Read from MH i2c: E2 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 03 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [06:23:39]RAPDU: 90 00 [06:23:39]wFMCommunicate OK [06:23:39]SAM_PROTO_ClearQueue done [06:23:39]KKMCreateOFDPacket [06:23:39]OFDProtocolAddRootSTLVToBuf [06:23:39]FM_MakeSignedData [06:23:39]FM_MakeSignedData [06:23:39]SAM_PROTO_SignData [06:23:39]wFMCommunicate request_size=4 [06:23:39]MH_SAM_APDU [06:23:39]CAPDU: 80 0D 01 02 [06:23:39]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:39]Read from MH i2c: E2 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 03 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [06:23:39]RAPDU: 90 00 [06:23:39]wFMCommunicate OK [06:23:39]wFMCommunicate request_size=255 [06:23:39]MH_SAM_APDU [06:23:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EB 2A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 B9 02 00 35 04 06 00 AF D5 11 AB [06:23:39]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EB 2A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 B9 02 00 35 04 06 00 AF D5 11 AB 00 00 92 [06:23:39]Write i2c OK [06:23:39]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=7 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 02 02 02 DB CA [06:23:40]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 DB CA 00 00 9C [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 03 02 [06:23:40]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0B 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0B 00 7A 00 00 2F E8 8C 17 F5 80 A0 B5 90 00 7A [06:23:40]RAPDU: 2F E8 8C 17 F5 80 A0 B5 90 00 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_SignData done [06:23:40]FM_MakeSignedData done [06:23:40]CreateOFDProtocolMessage [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 11 00 00 [06:23:40]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4E [06:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:23:40]wFMCommunicate OK [06:23:40]CreateOFDProtocolMessage done [06:23:40]OFDSenderStorePacket 178595 [06:23:40]StoreOFDPacket docnum=178595 [06:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 4E 60 04 01 C5 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EB 2A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 B9 02 00 35 04 06 00 AF D5 11 AB DB CA 2F E8 8C 17 F5 80 A0 B5 [06:23:40]CheckFolder [06:23:40]dirname=/storage/ofd_packets [06:23:40]CheckFolder done [06:23:40]ProducePacketName [06:23:40]name=ofd_packets/00178595 [06:23:40]NVStorageSaveData ofd_packets/00178595 [06:23:40]File name is /storage/ofd_packets/00178595 [06:23:40]Write 298 bytes [06:23:40]NVStorageSaveData done [06:23:40]OFDSenderStorePacket done [06:23:40]KKMCreateOFDPacket done [06:23:40]NVStorageSaveData kkm_last_timestamp [06:23:40]File name is /storage/kkm_last_timestamp [06:23:40]Write 4 bytes [06:23:40]NVStorageSaveData done [06:23:40]ExternCall_PrintAddStr [06:23:40]wPrintStart [06:23:40]Write to MH i2c: 01 00 00 7C 00 7C [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [06:23:40]RasterBufferAndPrint [06:23:40]line Счет N : (1)293997 [06:23:40]line ИНН: 02508201610067 [06:23:40]line Контрольно-Кассовый Чек [06:23:40]line ПРОДАЖА [06:23:40]line ТРК (МРК, ГНК) : 21 [06:23:40]line Товар: 2710194800 [06:23:40]line ДТ-К-5 [06:23:40]line 52.500 * 76.20 [06:23:40]line = 4000.50 [06:23:40]line НДС 12% НСП 1% [06:23:40]line > о реализуемом товаре [06:23:40]line ОКРУГЛЕНИЕ: -0.50 [06:23:40]line ИТОГО: 4000.00 [06:23:40]line Внесено: 4000.00 [06:23:40]line СДАЧА: 0.00 [06:23:40]line НСП 1% : 35.40 [06:23:40]line НДС 12% : 424.83 [06:23:40]line Наличными: 4000.00 [06:23:40]line Безнал.: 0.00 [06:23:40]line Место: АЗС № 130 "Партнер Нефть" [06:23:40]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:23:40]line СНО: Общий режим [06:23:40]line Чек 55 23.08.2024 06:23 [06:23:40]line Смена: 470 ФФД: 1.0 [06:23:40]line ЗНМ: 0300000071 [06:23:40]line РНМ: 0000000000092561 [06:23:40]line Версия ККМ: 001 [06:23:40]line ФМ: 0000000000871778 [06:23:40]line ФД: 178595 [06:23:40]line ФПД: 193329659370442 [06:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T062339&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178595&fm=193329659370442&tin=02508201610067®Number=0000000000092561&sum=400000 [06:23:40]written 0, free lines is 4095 [06:23:40]OFD Sender: Processing packet 178595 [packets to send 497, broken 496] [06:23:40]ProducePacketName [06:23:40]name=ofd_packets/00178595 [06:23:40]OFD Sender: To server: pG, [06:23:40]CommunicateWithHost lk.salyk.kg:30040 [06:23:40]ConnectInit lk.salyk.kg [06:23:40]Write to MH i2c: 01 00 00 A7 00 A7 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 E2 0C 9C [06:23:40]RasterBufferAndPrint [06:23:40]line [06:23:40]line [06:23:40]line [06:23:40]line [06:23:40]line [06:23:40]written 0, free lines is 3304 [06:23:40]MH_Cut [06:23:40]Write to MH i2c: D1 01 00 AE 00 01 80 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: D1 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: D1 01 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: D1 01 00 AE 00 00 7F [06:23:40]Write to MH i2c: 01 00 00 AF 00 AF [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]Connected sock=7 [06:23:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 4E 60 04 01 C5 CA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 EB 2A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A3 B9 02 00 35 04 06 00 AF D5 11 AB DB CA 2F E8 8C 17 F5 80 A0 B5 [06:23:41]*** Cut start [06:23:41]*** Partial cut [06:23:41]*** CUTSNS_PIN = 1 [06:23:41]*** CUTSNS_PIN = 0 [06:23:41]*** Brake cut motor [06:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 2C B9 47 00 6D 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 31 37 37 38 10 04 04 00 A3 B9 02 00 F4 03 04 00 93 D6 C7 66 B6 04 01 00 00 ED 9B 66 78 73 2E 90 29 [06:23:41]CommunicateWithHost err = 0 [06:23:41]CheckOFDResponse [06:23:41]1017 (14) - 77093643461234 [06:23:41]1041 (16) - 0000000000871778 [06:23:41]1040 (4) - 178595 [06:23:41]1012 (4) - 23.08.2024 00:23 [06:23:41]1206 (1) - 0 [06:23:41]OFD Sender: Remove packet 178595 [06:23:41]ProducePacketName [06:23:41]name=ofd_packets/00178595 [06:23:41]NVStorageDeleteData [06:23:42]Read from MH i2c: 01 [06:23:42]MH_I2C_Read... [06:23:42]*** Stop cut motor [06:23:42]*** Cut end [06:23:42]Read from MH i2c: 01 07 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [06:23:42]process_action close_receipt done [06:23:42]requested_data is exist [06:23:42]produce_requested_data [06:23:42]requested_item fm.sn is exist - process it [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 11 00 00 [06:23:42]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 17 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [06:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:23:42]wFMCommunicate OK [06:23:42]requested_item fd.num is exist - process it [06:23:42]SAM_PROTO_GetFieldsCounters [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 13 00 00 [06:23:42]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 62 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A3 B9 02 00 0E 04 04 00 D6 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 2C [06:23: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A3 B9 02 00 0E 04 04 00 D6 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 [06:23:42]wFMCommunicate OK [06:23:42]SAM_PROTO_GetFieldsCounters done [06:23:42]requested_item shift.num is exist - process it [06:23:42]requested_item shift.opened is exist - process it [06:23:42]req_shift_opened [06:23:42]FM_GetShiftState [06:23:42]SAM_PROTO_GetShiftState [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 13 01 00 [06:23:42]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 06 [06:23:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:23:42]wFMCommunicate OK [06:23:42]SAM_PROTO_GetShiftState done [06:23:42]FM_GetShiftState done [06:23:42]req_shift_opened done [06:23:42]requested_item shift.open_date is exist - process it [06:23:42]req_shift_open_date [06:23:42]req_shift_open_date done [06:23:42]produce_requested_data done [06:23:42]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178595,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:23:42]process_action_free close_receipt [06:23:42]json_value_free [06:23:42]json_value_free done [06:23:42]process_json_proto returns [06:23:42]Send response to host [06:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178595,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:23:42]free response buf [06:23:42]execute_script done [06:23:42]execute_script returns [06:23:42]free content buf [06:23:42]Sock 9.Close socket [06:23:42]Sock 9.Thread stoped [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:23:58]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:01]recv_with_timeout no data received [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:08]OFD Sender: No OFD packet to send [06:29:13]OFD Sender: No OFD packet to send [06:29:18]OFD Sender: No OFD packet to send [06:29:23]OFD Sender: No OFD packet to send [06:29:28]OFD Sender: No OFD packet to send [06:29:33]OFD Sender: No OFD packet to send [06:29:38]OFD Sender: No OFD packet to send [06:29:43]OFD Sender: No OFD packet to send [06:29:48]OFD Sender: No OFD packet to send [06:29:53]OFD Sender: No OFD packet to send [06:29:58]OFD Sender: No OFD packet to send [06:30:03]OFD Sender: No OFD packet to send [06:30:07]recv_with_timeout no data received [06:30:08]OFD Sender: No OFD packet to send [06:30:13]OFD Sender: No OFD packet to send [06:30:18]OFD Sender: No OFD packet to send [06:30:23]OFD Sender: No OFD packet to send [06:30:28]OFD Sender: No OFD packet to send [06:30:33]OFD Sender: No OFD packet to send [06:30:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]recv_with_timeout no data received [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]accept exits with 10 [06:32:18]New connection [06:32:18]New thread 3066748260 created [06:32:18]Thread 3066604900 joined [06:32:18]Waiting for new connection... [06:32:18] Sock 10.Parse request [06:32:18]Sock 10.Check first char [06:32:18]Sock 10.First char is OK [06:32:18]request: POST /json_proto HTTP/1.0 [06:32:18]Method: POST [06:32:18]URL: /json_proto [06:32:18]Method is POST - this is cgi request [06:32:18]url: /json_proto [06:32:18]query_string will be loaded in cgi processing [06:32:18]execute_cgi json_proto POST (null) [06:32:18]execute_cgi path=json_proto method=POST [06:32:18]POST find Content-Length [06:32:18]Host: 172.17.44.131:8080 [06:32:18]Content-Length: 682 [06:32:18]Content-Type: application/json [06:32:18] [06:32:18]POST finish read [06:32:18]Found Content-Length = 682 [06:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 34.070, "sum" : 2527.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2527.00, "payments": [ { "type": 0, "sum" : 2527.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:18]execute_script... [06:32: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)293998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 34.070, "sum" : 2527.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2527.00, "payments": [ { "type": 0, "sum" : 2527.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:32:18]POST & json_proto [06:32:18]process_json_proto [06:32:18]json parsed OK: [06:32:18]protocol is kg_v1.0 [06:32:18]action value=close_receipt [06:32:18]process_action close_receipt [06:32:18]cmd_close_receipt [06:32:18]MH_GetDate [06:32:18]Write to MH i2c: F0 00 00 B3 00 A2 [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: F0 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: F0 09 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: F0 09 00 B3 00 00 F3 2C C8 66 4F 53 BE 66 BE [06:32:18]GetLastDocTimeStamp 1724394219 [06:32:18]current date 1724394739 [06:32:18]FM_GetShiftState [06:32:18]SAM_PROTO_GetShiftState [06:32:18]wFMCommunicate request_size=4 [06:32:18]MH_SAM_APDU [06:32:18]CAPDU: 80 13 01 00 [06:32:18]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [06:32:18]Write i2c OK [06:32:18]MH_I2C_Read... [06:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:18]Read from MH i2c: E2 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 0E 00 [06:32:18]MH_I2C_Read... [06:32:18]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 08 [06:32:18]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:32:18]wFMCommunicate OK [06:32:18]SAM_PROTO_GetShiftState done [06:32:18]FM_GetShiftState done [06:32:18]opened in 1724371660 [06:32:18]opened+sec_in_day 1724458060 [06:32:18]quantity*price = 252799 [06:32:18]sum+1 = 252800 [06:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 2527.00 Внесено: 3000.00 СДАЧА: 473.00 НСП 1% : 22.37 НДС 12% : 268.46 Наличными: 2527.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 56 23.08.2024 06:32 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178596 ФПД: 161963749526516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T063219&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178596&fm=161963749526516&tin=02508201610067®Number=0000000000092561&sum=252700 [06:32:19]StoreToDocumentArchive [06:32:19]shift 470 fd 178596 [06:32:19]save to /storage/0470/doc_00178596 [06:32:19]save last doc name /storage/0470/doc_00178596 to /storage/kkm_last_doc_name [06:32:19]save OK [06:32:19]Clear old archive folders... [06:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:32:19]tlvbuf is 01D5AC60 [06:32:19]SAM_PROTO_ClearQueue [06:32:19]wFMCommunicate request_size=4 [06:32:19]MH_SAM_APDU [06:32:19]CAPDU: 80 09 00 00 [06:32:19]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [06:32:19]RAPDU: 90 00 [06:32:19]wFMCommunicate OK [06:32:19]SAM_PROTO_ClearQueue done [06:32:19]KKMCreateOFDPacket [06:32:19]OFDProtocolAddRootSTLVToBuf [06:32:19]FM_MakeSignedData [06:32:19]FM_MakeSignedData [06:32:19]SAM_PROTO_SignData [06:32:19]wFMCommunicate request_size=4 [06:32:19]MH_SAM_APDU [06:32:19]CAPDU: 80 0D 01 02 [06:32:19]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [06:32:19]RAPDU: 90 00 [06:32:19]wFMCommunicate OK [06:32:19]wFMCommunicate request_size=255 [06:32:19]MH_SAM_APDU [06:32: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 16 85 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F DB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 68 00 00 00 00 07 04 06 00 1C DB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F3 2C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 B9 02 00 35 04 06 00 93 [06:32:19]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 85 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F DB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 68 00 00 00 00 07 04 06 00 1C DB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F3 2C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 B9 02 00 35 04 06 00 93 00 00 AA [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [06:32:19]RAPDU: 90 00 [06:32:19]wFMCommunicate OK [06:32:19]wFMCommunicate request_size=10 [06:32:19]MH_SAM_APDU [06:32:19]CAPDU: 80 0D 02 02 05 4E 1F C1 CB F4 [06:32:19]Write to MH i2c: E2 0D 00 C4 00 80 0D 02 02 05 00 4E 1F C1 CB F4 00 00 35 [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [06:32:19]RAPDU: 90 00 [06:32:19]wFMCommunicate OK [06:32:19]wFMCommunicate request_size=4 [06:32:19]MH_SAM_APDU [06:32:19]CAPDU: 80 0D 03 02 [06:32:19]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 0B 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 0B 00 C5 00 00 54 3F 7E 51 8E EB C3 AC 90 00 8B [06:32:19]RAPDU: 54 3F 7E 51 8E EB C3 AC 90 00 [06:32:19]wFMCommunicate OK [06:32:19]SAM_PROTO_SignData done [06:32:19]FM_MakeSignedData done [06:32:19]CreateOFDProtocolMessage [06:32:19]wFMCommunicate request_size=4 [06:32:19]MH_SAM_APDU [06:32:19]CAPDU: 80 11 00 00 [06:32:19]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:19]Read from MH i2c: E2 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 17 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 99 [06:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:32:19]wFMCommunicate OK [06:32:19]CreateOFDProtocolMessage done [06:32:19]OFDSenderStorePacket 178596 [06:32:19]StoreOFDPacket docnum=178596 [06:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A2 E9 07 01 70 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 85 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F DB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 68 00 00 00 00 07 04 06 00 1C DB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F3 2C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 B9 02 00 35 04 06 00 93 4E 1F C1 CB F4 54 3F 7E 51 8E EB C3 AC [06:32:19]CheckFolder [06:32:19]dirname=/storage/ofd_packets [06:32:19]CheckFolder done [06:32:19]ProducePacketName [06:32:19]name=ofd_packets/00178596 [06:32:19]NVStorageSaveData ofd_packets/00178596 [06:32:19]File name is /storage/ofd_packets/00178596 [06:32:19]Write 301 bytes [06:32:19]NVStorageSaveData done [06:32:19]OFDSenderStorePacket done [06:32:19]KKMCreateOFDPacket done [06:32:19]NVStorageSaveData kkm_last_timestamp [06:32:19]File name is /storage/kkm_last_timestamp [06:32:19]Write 4 bytes [06:32:19]NVStorageSaveData done [06:32:19]ExternCall_PrintAddStr [06:32:19]wPrintStart [06:32:19]Write to MH i2c: 01 00 00 C7 00 C7 [06:32:19]Write i2c OK [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: 01 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: 01 07 00 [06:32:19]MH_I2C_Read... [06:32:19]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [06:32:19]RasterBufferAndPrint [06:32:19]line Счет N : (1)293998 [06:32:19]line ИНН: 02508201610067 [06:32:19]line Контрольно-Кассовый Чек [06:32:19]line ПРОДАЖА [06:32:19]line ТРК (МРК, ГНК) : 43 [06:32:19]line Товар: 2710124500 [06:32:19]line Аи-95-К-5 [06:32:19]line 34.070 * 74.20 [06:32:19]line = 2527.99 [06:32:19]line НДС 12% НСП 1% [06:32:19]line > о реализуемом товаре [06:32:19]line ОКРУГЛЕНИЕ: -0.99 [06:32:19]line ИТОГО: 2527.00 [06:32:19]line Внесено: 3000.00 [06:32:19]line СДАЧА: 473.00 [06:32:19]line НСП 1% : 22.37 [06:32:19]line НДС 12% : 268.46 [06:32:19]line Наличными: 2527.00 [06:32:19]line Безнал.: 0.00 [06:32:19]line Место: АЗС № 130 "Партнер Нефть" [06:32:19]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:32:19]line СНО: Общий режим [06:32:19]line Чек 56 23.08.2024 06:32 [06:32:19]line Смена: 470 ФФД: 1.0 [06:32:19]line ЗНМ: 0300000071 [06:32:19]line РНМ: 0000000000092561 [06:32:19]line Версия ККМ: 001 [06:32:19]line ФМ: 0000000000871778 [06:32:19]line ФД: 178596 [06:32:19]line ФПД: 161963749526516 [06:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T063219&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178596&fm=161963749526516&tin=02508201610067®Number=0000000000092561&sum=252700 [06:32:20]OFD Sender: Processing packet 178596 [packets to send 497, broken 496] [06:32:20]ProducePacketName [06:32:20]name=ofd_packets/00178596 [06:32:20]OFD Sender: To server: pG, [06:32:20]CommunicateWithHost lk.salyk.kg:30040 [06:32:20]ConnectInit lk.salyk.kg [06:32:20]written 0, free lines is 4095 [06:32:20]Write to MH i2c: 01 00 00 F2 00 F2 [06:32:20]Write i2c OK [06:32:20]MH_I2C_Read... [06:32:20]Read from MH i2c: 01 [06:32:20]MH_I2C_Read... [06:32:20]Read from MH i2c: 01 07 00 [06:32:20]MH_I2C_Read... [06:32:20]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 CF 0C D4 [06:32:20]RasterBufferAndPrint [06:32:20]line [06:32:20]line [06:32:20]line [06:32:20]line [06:32:20]line [06:32:20]written 0, free lines is 3286 [06:32:20]MH_Cut [06:32:20]Write to MH i2c: D1 01 00 F9 00 01 CB [06:32:20]Write i2c OK [06:32:20]MH_I2C_Read... [06:32:20]Read from MH i2c: D1 [06:32:20]MH_I2C_Read... [06:32:20]Read from MH i2c: D1 01 00 [06:32:20]MH_I2C_Read... [06:32:20]Read from MH i2c: D1 01 00 F9 00 00 CA [06:32:20]Write to MH i2c: 01 00 00 FA 00 FA [06:32:20]Write i2c OK [06:32:20]MH_I2C_Read... [06:32:21]*** Cut start [06:32:21]*** Partial cut [06:32:21]*** CUTSNS_PIN = 1 [06:32:21]*** CUTSNS_PIN = 0 [06:32:21]*** Brake cut motor [06:32:22]Read from MH i2c: 01 [06:32:22]MH_I2C_Read... [06:32:22]*** Stop cut motor [06:32:22]*** Cut end [06:32:22]Read from MH i2c: 01 07 00 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [06:32:22]process_action close_receipt done [06:32:22]requested_data is exist [06:32:22]produce_requested_data [06:32:22]requested_item fm.sn is exist - process it [06:32:22]wFMCommunicate request_size=4 [06:32:22]MH_SAM_APDU [06:32:22]CAPDU: 80 11 00 00 [06:32:22]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [06:32:22]Write i2c OK [06:32:22]MH_I2C_Read... [06:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:32:22]Read from MH i2c: E2 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: E2 17 00 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CE [06:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:32:22]wFMCommunicate OK [06:32:22]requested_item fd.num is exist - process it [06:32:22]SAM_PROTO_GetFieldsCounters [06:32:22]wFMCommunicate request_size=4 [06:32:22]MH_SAM_APDU [06:32:22]CAPDU: 80 13 00 00 [06:32:22]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [06:32:22]Write i2c OK [06:32:22]MH_I2C_Read... [06:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:32:22]Read from MH i2c: E2 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: E2 62 00 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A4 B9 02 00 0E 04 04 00 D6 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 7B [06:32: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A4 B9 02 00 0E 04 04 00 D6 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:32:22]wFMCommunicate OK [06:32:22]SAM_PROTO_GetFieldsCounters done [06:32:22]requested_item shift.num is exist - process it [06:32:22]requested_item shift.opened is exist - process it [06:32:22]req_shift_opened [06:32:22]FM_GetShiftState [06:32:22]SAM_PROTO_GetShiftState [06:32:22]wFMCommunicate request_size=4 [06:32:22]MH_SAM_APDU [06:32:22]CAPDU: 80 13 01 00 [06:32:22]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [06:32:22]Write i2c OK [06:32:22]MH_I2C_Read... [06:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:32:22]Read from MH i2c: E2 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: E2 0E 00 [06:32:22]MH_I2C_Read... [06:32:22]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 51 [06:32:22]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:32:22]wFMCommunicate OK [06:32:22]SAM_PROTO_GetShiftState done [06:32:22]FM_GetShiftState done [06:32:22]req_shift_opened done [06:32:22]requested_item shift.open_date is exist - process it [06:32:22]req_shift_open_date [06:32:22]req_shift_open_date done [06:32:22]produce_requested_data done [06:32:22]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178596,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:32:22]process_action_free close_receipt [06:32:22]json_value_free [06:32:22]json_value_free done [06:32:22]process_json_proto returns [06:32:22]Send response to host [06:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178596,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:32:22]free response buf [06:32:22]execute_script done [06:32:22]execute_script returns [06:32:22]free content buf [06:32:22]Sock 10.Close socket [06:32:22]Sock 10.Thread stoped [06:32:25]Connected sock=7 [06:32:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A2 E9 07 01 70 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 16 85 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7F DB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C DB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 68 00 00 00 00 07 04 06 00 1C DB 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 F3 2C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A4 B9 02 00 35 04 06 00 93 4E 1F C1 CB F4 54 3F 7E 51 8E EB C3 AC [06:32:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 26 CD 47 00 62 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 31 37 37 38 10 04 04 00 A4 B9 02 00 F4 03 04 00 A2 D8 C7 66 B6 04 01 00 00 2A 22 0F CF 2B F2 24 FC [06:32:29]CommunicateWithHost err = 0 [06:32:29]CheckOFDResponse [06:32:29]1017 (14) - 77093643461234 [06:32:29]1041 (16) - 0000000000871778 [06:32:29]1040 (4) - 178596 [06:32:29]1012 (4) - 23.08.2024 00:32 [06:32:29]1206 (1) - 0 [06:32:29]OFD Sender: Remove packet 178596 [06:32:29]ProducePacketName [06:32:29]name=ofd_packets/00178596 [06:32:29]NVStorageDeleteData [06:32:29]OFD Sender: No OFD packet to send [06:32:30]recv_with_timeout no data received [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:56]recv_with_timeout no data received [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:20]recv_with_timeout no data received [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:40]recv_with_timeout no data received [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:53]recv_with_timeout no data received [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]recv_with_timeout no data received [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]recv_with_timeout no data received [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:50]accept exits with 9 [06:44:50]New connection [06:44:50]New thread 3066604900 created [06:44:50]Thread 3066748260 joined [06:44:50]Waiting for new connection... [06:44:50] Sock 9.Parse request [06:44:50]Sock 9.Check first char [06:44:50]Sock 9.First char is OK [06:44:50]request: POST /json_proto HTTP/1.0 [06:44:50]Method: POST [06:44:50]URL: /json_proto [06:44:50]Method is POST - this is cgi request [06:44:50]url: /json_proto [06:44:50]query_string will be loaded in cgi processing [06:44:50]execute_cgi json_proto POST (null) [06:44:50]execute_cgi path=json_proto method=POST [06:44:50]POST find Content-Length [06:44:50]Host: 172.17.44.131:8080 [06:44:50]Content-Length: 679 [06:44:50]Content-Type: application/json [06:44:50] [06:44:50]POST finish read [06:44:50]Found Content-Length = 679 [06:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)293999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:50]execute_script... [06:44: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)293999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:50]POST & json_proto [06:44:50]process_json_proto [06:44:50]json parsed OK: [06:44:50]protocol is kg_v1.0 [06:44:50]action value=close_receipt [06:44:50]process_action close_receipt [06:44:50]cmd_close_receipt [06:44:50]MH_GetDate [06:44:50]Write to MH i2c: F0 00 00 FE 00 ED [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: F0 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: F0 09 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: F0 09 00 FE 00 00 E3 2F C8 66 4F 53 BE 66 FC [06:44:50]GetLastDocTimeStamp 1724394739 [06:44:50]current date 1724395491 [06:44:50]FM_GetShiftState [06:44:50]SAM_PROTO_GetShiftState [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 13 01 00 [06:44:50]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 0E 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 53 [06:44:50]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:44:50]wFMCommunicate OK [06:44:50]SAM_PROTO_GetShiftState done [06:44:50]FM_GetShiftState done [06:44:50]opened in 1724371660 [06:44:50]opened+sec_in_day 1724458060 [06:44:50]quantity*price = 200025 [06:44:50]sum+1 = 200026 [06:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 57 23.08.2024 06:44 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178597 ФПД: 199776521044072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T064451&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178597&fm=199776521044072&tin=02508201610067®Number=0000000000092561&sum=200000 [06:44:51]StoreToDocumentArchive [06:44:51]shift 470 fd 178597 [06:44:51]save to /storage/0470/doc_00178597 [06:44:51]save last doc name /storage/0470/doc_00178597 to /storage/kkm_last_doc_name [06:44:51]save OK [06:44:51]Clear old archive folders... [06:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:44:51]tlvbuf is 01D5FCA0 [06:44:51]SAM_PROTO_ClearQueue [06:44:51]wFMCommunicate request_size=4 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 09 00 00 [06:44:51]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [06:44:51]RAPDU: 90 00 [06:44:51]wFMCommunicate OK [06:44:51]SAM_PROTO_ClearQueue done [06:44:51]KKMCreateOFDPacket [06:44:51]OFDProtocolAddRootSTLVToBuf [06:44:51]FM_MakeSignedData [06:44:51]FM_MakeSignedData [06:44:51]SAM_PROTO_SignData [06:44:51]wFMCommunicate request_size=4 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 0D 01 02 [06:44:51]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [06:44:51]RAPDU: 90 00 [06:44:51]wFMCommunicate OK [06:44:51]wFMCommunicate request_size=255 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E3 2F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 B9 02 00 35 04 06 00 B5 B2 18 92 [06:44:51]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E3 2F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 B9 02 00 35 04 06 00 B5 B2 18 92 00 00 C4 [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [06:44:51]RAPDU: 90 00 [06:44:51]wFMCommunicate OK [06:44:51]wFMCommunicate request_size=7 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 0D 02 02 02 40 68 [06:44:51]Write to MH i2c: E2 0A 00 0F 01 80 0D 02 02 02 00 40 68 00 00 36 [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [06:44:51]RAPDU: 90 00 [06:44:51]wFMCommunicate OK [06:44:51]wFMCommunicate request_size=4 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 0D 03 02 [06:44:51]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 0B 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 0B 00 10 01 00 22 15 1B C4 45 78 DC E6 90 00 22 [06:44:51]RAPDU: 22 15 1B C4 45 78 DC E6 90 00 [06:44:51]wFMCommunicate OK [06:44:51]SAM_PROTO_SignData done [06:44:51]FM_MakeSignedData done [06:44:51]CreateOFDProtocolMessage [06:44:51]wFMCommunicate request_size=4 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 11 00 00 [06:44:52]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [06:44:52]Write i2c OK [06:44:52]MH_I2C_Read... [06:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:52]Read from MH i2c: E2 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: E2 17 00 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E5 [06:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:44:52]wFMCommunicate OK [06:44:52]CreateOFDProtocolMessage done [06:44:52]OFDSenderStorePacket 178597 [06:44:52]StoreOFDPacket docnum=178597 [06:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 B8 82 04 01 4D 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E3 2F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 B9 02 00 35 04 06 00 B5 B2 18 92 40 68 22 15 1B C4 45 78 DC E6 [06:44:52]CheckFolder [06:44:52]dirname=/storage/ofd_packets [06:44:52]CheckFolder done [06:44:52]ProducePacketName [06:44:52]name=ofd_packets/00178597 [06:44:52]NVStorageSaveData ofd_packets/00178597 [06:44:52]File name is /storage/ofd_packets/00178597 [06:44:52]Write 298 bytes [06:44:52]NVStorageSaveData done [06:44:52]OFDSenderStorePacket done [06:44:52]KKMCreateOFDPacket done [06:44:52]NVStorageSaveData kkm_last_timestamp [06:44:52]File name is /storage/kkm_last_timestamp [06:44:52]Write 4 bytes [06:44:52]NVStorageSaveData done [06:44:52]ExternCall_PrintAddStr [06:44:52]wPrintStart [06:44:52]Write to MH i2c: 01 00 00 12 01 13 [06:44:52]Write i2c OK [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: 01 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: 01 07 00 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [06:44:52]RasterBufferAndPrint [06:44:52]line Счет N : (1)293999 [06:44:52]line ИНН: 02508201610067 [06:44:52]line Контрольно-Кассовый Чек [06:44:52]line ПРОДАЖА [06:44:52]line ТРК (МРК, ГНК) : 11 [06:44:52]line Товар: 2710194800 [06:44:52]line ДТ-К-5 [06:44:52]line 26.250 * 76.20 [06:44:52]line = 2000.25 [06:44:52]line НДС 12% НСП 1% [06:44:52]line > о реализуемом товаре [06:44:52]line ОКРУГЛЕНИЕ: -0.25 [06:44:52]line ИТОГО: 2000.00 [06:44:52]line Внесено: 2000.00 [06:44:52]line СДАЧА: 0.00 [06:44:52]line НСП 1% : 17.70 [06:44:52]line НДС 12% : 212.42 [06:44:52]line Наличными: 2000.00 [06:44:52]line Безнал.: 0.00 [06:44:52]line Место: АЗС № 130 "Партнер Нефть" [06:44:52]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:44:52]line СНО: Общий режим [06:44:52]line Чек 57 23.08.2024 06:44 [06:44:52]line Смена: 470 ФФД: 1.0 [06:44:52]line ЗНМ: 0300000071 [06:44:52]line РНМ: 0000000000092561 [06:44:52]line Версия ККМ: 001 [06:44:52]line ФМ: 0000000000871778 [06:44:52]line ФД: 178597 [06:44:52]line ФПД: 199776521044072 [06:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T064451&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178597&fm=199776521044072&tin=02508201610067®Number=0000000000092561&sum=200000 [06:44:52]OFD Sender: Processing packet 178597 [packets to send 497, broken 496] [06:44:52]ProducePacketName [06:44:52]name=ofd_packets/00178597 [06:44:52]OFD Sender: To server: pG, [06:44:52]CommunicateWithHost lk.salyk.kg:30040 [06:44:52]ConnectInit lk.salyk.kg [06:44:52]written 0, free lines is 4095 [06:44:52]Write to MH i2c: 01 00 00 3D 01 3E [06:44:52]Write i2c OK [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: 01 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: 01 07 00 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 CB 0C 1C [06:44:52]RasterBufferAndPrint [06:44:52]line [06:44:52]line [06:44:52]line [06:44:52]line [06:44:52]line [06:44:52]written 0, free lines is 3282 [06:44:52]MH_Cut [06:44:52]Write to MH i2c: D1 01 00 44 01 01 17 [06:44:52]Write i2c OK [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: D1 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: D1 01 00 [06:44:52]MH_I2C_Read... [06:44:52]Read from MH i2c: D1 01 00 44 01 00 16 [06:44:52]Write to MH i2c: 01 00 00 45 01 46 [06:44:52]Write i2c OK [06:44:52]MH_I2C_Read... [06:44:53]*** Cut start [06:44:53]*** Partial cut [06:44:53]*** CUTSNS_PIN = 1 [06:44:53]*** CUTSNS_PIN = 0 [06:44:53]*** Brake cut motor [06:44:54]Read from MH i2c: 01 [06:44:54]MH_I2C_Read... [06:44:54]*** Stop cut motor [06:44:54]*** Cut end [06:44:54]Read from MH i2c: 01 07 00 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [06:44:54]process_action close_receipt done [06:44:54]requested_data is exist [06:44:54]produce_requested_data [06:44:54]requested_item fm.sn is exist - process it [06:44:54]wFMCommunicate request_size=4 [06:44:54]MH_SAM_APDU [06:44:54]CAPDU: 80 11 00 00 [06:44:54]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [06:44:54]Write i2c OK [06:44:54]MH_I2C_Read... [06:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:54]Read from MH i2c: E2 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: E2 17 00 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1A [06:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:44:54]wFMCommunicate OK [06:44:54]requested_item fd.num is exist - process it [06:44:54]SAM_PROTO_GetFieldsCounters [06:44:54]wFMCommunicate request_size=4 [06:44:54]MH_SAM_APDU [06:44:54]CAPDU: 80 13 00 00 [06:44:54]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [06:44:54]Write i2c OK [06:44:54]MH_I2C_Read... [06:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:54]Read from MH i2c: E2 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: E2 62 00 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A5 B9 02 00 0E 04 04 00 D6 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 CB [06:44: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A5 B9 02 00 0E 04 04 00 D6 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 [06:44:54]wFMCommunicate OK [06:44:54]SAM_PROTO_GetFieldsCounters done [06:44:54]requested_item shift.num is exist - process it [06:44:54]requested_item shift.opened is exist - process it [06:44:54]req_shift_opened [06:44:54]FM_GetShiftState [06:44:54]SAM_PROTO_GetShiftState [06:44:54]wFMCommunicate request_size=4 [06:44:54]MH_SAM_APDU [06:44:54]CAPDU: 80 13 01 00 [06:44:54]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [06:44:54]Write i2c OK [06:44:54]MH_I2C_Read... [06:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:54]Read from MH i2c: E2 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: E2 0E 00 [06:44:54]MH_I2C_Read... [06:44:54]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9D [06:44:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:44:54]wFMCommunicate OK [06:44:54]SAM_PROTO_GetShiftState done [06:44:54]FM_GetShiftState done [06:44:54]req_shift_opened done [06:44:54]requested_item shift.open_date is exist - process it [06:44:54]req_shift_open_date [06:44:54]req_shift_open_date done [06:44:54]produce_requested_data done [06:44:54]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178597,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:44:54]process_action_free close_receipt [06:44:54]json_value_free [06:44:54]json_value_free done [06:44:54]process_json_proto returns [06:44:54]Send response to host [06:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178597,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:44:54]free response buf [06:44:54]execute_script done [06:44:54]execute_script returns [06:44:54]free content buf [06:44:54]Sock 9.Close socket [06:44:54]Sock 9.Thread stoped [06:44:56]recv_with_timeout no data received [06:44:57]Connected sock=11 [06:44:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 B8 82 04 01 4D 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 E3 2F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A5 B9 02 00 35 04 06 00 B5 B2 18 92 40 68 22 15 1B C4 45 78 DC E6 [06:44:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D6 2A 47 00 42 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 31 37 37 38 10 04 04 00 A5 B9 02 00 F4 03 04 00 8F DB C7 66 B6 04 01 00 00 8A 90 58 8D 2C FE 98 97 [06:44:57]CommunicateWithHost err = 0 [06:44:57]CheckOFDResponse [06:44:57]1017 (14) - 77093643461234 [06:44:57]1041 (16) - 0000000000871778 [06:44:57]1040 (4) - 178597 [06:44:57]1012 (4) - 23.08.2024 00:45 [06:44:57]1206 (1) - 0 [06:44:57]OFD Sender: Remove packet 178597 [06:44:57]ProducePacketName [06:44:57]name=ofd_packets/00178597 [06:44:57]NVStorageDeleteData [06:44:58]OFD Sender: No OFD packet to send [06:45:03]OFD Sender: No OFD packet to send [06:45:08]OFD Sender: No OFD packet to send [06:45:13]OFD Sender: No OFD packet to send [06:45:17]recv_with_timeout no data received [06:45:18]OFD Sender: No OFD packet to send [06:45:23]OFD Sender: No OFD packet to send [06:45:28]OFD Sender: No OFD packet to send [06:45:33]OFD Sender: No OFD packet to send [06:45:38]OFD Sender: No OFD packet to send [06:45:43]OFD Sender: No OFD packet to send [06:45:48]OFD Sender: No OFD packet to send [06:45:53]OFD Sender: No OFD packet to send [06:45:56]recv_with_timeout no data received [06:45:58]OFD Sender: No OFD packet to send [06:46:03]OFD Sender: No OFD packet to send [06:46:08]OFD Sender: No OFD packet to send [06:46:13]OFD Sender: No OFD packet to send [06:46:18]OFD Sender: No OFD packet to send [06:46:23]OFD Sender: No OFD packet to send [06:46:28]OFD Sender: No OFD packet to send [06:46:33]OFD Sender: No OFD packet to send [06:46:38]OFD Sender: No OFD packet to send [06:46:41]recv_with_timeout no data received [06:46:43]OFD Sender: No OFD packet to send [06:46:48]OFD Sender: No OFD packet to send [06:46:53]OFD Sender: No OFD packet to send [06:46:58]OFD Sender: No OFD packet to send [06:47:03]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]accept exits with 7 [06:48:08]New connection [06:48:08]New thread 3066748260 created [06:48:08]Thread 3066604900 joined [06:48:08]Waiting for new connection... [06:48:08] Sock 7.Parse request [06:48:08]Sock 7.Check first char [06:48:08]Sock 7.First char is OK [06:48:08]request: POST /json_proto HTTP/1.0 [06:48:08]Method: POST [06:48:08]URL: /json_proto [06:48:08]Method is POST - this is cgi request [06:48:08]url: /json_proto [06:48:08]query_string will be loaded in cgi processing [06:48:08]execute_cgi json_proto POST (null) [06:48:08]execute_cgi path=json_proto method=POST [06:48:08]POST find Content-Length [06:48:08]Host: 172.17.44.131:8080 [06:48:08]Content-Length: 806 [06:48:08]Content-Type: application/json [06:48:08] [06:48:08]POST finish read [06:48:08]Found Content-Length = 806 [06:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:08]execute_script... [06:48: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)294000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.18 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:48:08]POST & json_proto [06:48:08]process_json_proto [06:48:08]json parsed OK: [06:48:08]protocol is kg_v1.0 [06:48:08]action value=close_receipt [06:48:08]process_action close_receipt [06:48:08]cmd_close_receipt [06:48:08]MH_GetDate [06:48:08]Write to MH i2c: F0 00 00 49 01 39 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: F0 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: F0 09 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: F0 09 00 49 01 00 A9 30 C8 66 4F 53 BE 66 0F [06:48:08]GetLastDocTimeStamp 1724395491 [06:48:08]current date 1724395689 [06:48:08]FM_GetShiftState [06:48:08]SAM_PROTO_GetShiftState [06:48:08]wFMCommunicate request_size=4 [06:48:08]MH_SAM_APDU [06:48:08]CAPDU: 80 13 01 00 [06:48:08]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [06:48:08]Write i2c OK [06:48:08]MH_I2C_Read... [06:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:08]Read from MH i2c: E2 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 0E 00 [06:48:08]MH_I2C_Read... [06:48:08]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9F [06:48:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:48:08]wFMCommunicate OK [06:48:08]SAM_PROTO_GetShiftState done [06:48:08]FM_GetShiftState done [06:48:08]opened in 1724371660 [06:48:08]opened+sec_in_day 1724458060 [06:48:08]quantity*price = 50017 [06:48:08]sum+1 = 50019 [06:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.18 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.18 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 58 23.08.2024 06:48 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178598 ФПД: 22364831414780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T064809&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178598&fm=22364831414780&tin=02508201610067®Number=0000000000092561&sum=50018 [06:48:09]StoreToDocumentArchive [06:48:09]shift 470 fd 178598 [06:48:09]save to /storage/0470/doc_00178598 [06:48:09]save last doc name /storage/0470/doc_00178598 to /storage/kkm_last_doc_name [06:48:09]save OK [06:48:09]Clear old archive folders... [06:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=249 [06:48:09]tlvbuf is 01CFF3D0 [06:48:09]SAM_PROTO_ClearQueue [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 09 00 00 [06:48:09]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [06:48:09]RAPDU: 90 00 [06:48:09]wFMCommunicate OK [06:48:09]SAM_PROTO_ClearQueue done [06:48:09]KKMCreateOFDPacket [06:48:09]OFDProtocolAddRootSTLVToBuf [06:48:09]FM_MakeSignedData [06:48:09]FM_MakeSignedData [06:48:09]SAM_PROTO_SignData [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 0D 01 02 [06:48:09]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [06:48:09]RAPDU: 90 00 [06:48:09]wFMCommunicate OK [06:48:09]wFMCommunicate request_size=255 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 B9 02 00 35 04 06 00 14 57 37 [06:48:09]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 B9 02 00 35 04 06 00 14 57 37 00 00 30 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [06:48:09]RAPDU: 90 00 [06:48:09]wFMCommunicate OK [06:48:09]wFMCommunicate request_size=8 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 0D 02 02 03 D4 F9 FC [06:48:09]Write to MH i2c: E2 0B 00 5A 01 80 0D 02 02 03 00 D4 F9 FC 00 00 A4 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [06:48:09]RAPDU: 90 00 [06:48:09]wFMCommunicate OK [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 0D 03 02 [06:48:09]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 0B 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 0B 00 5B 01 00 B2 9A AD 8C 60 CE 5D E9 90 00 D1 [06:48:09]RAPDU: B2 9A AD 8C 60 CE 5D E9 90 00 [06:48:09]wFMCommunicate OK [06:48:09]SAM_PROTO_SignData done [06:48:09]FM_MakeSignedData done [06:48:09]CreateOFDProtocolMessage [06:48:09]wFMCommunicate request_size=4 [06:48:09]MH_SAM_APDU [06:48:09]CAPDU: 80 11 00 00 [06:48:09]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:09]Read from MH i2c: E2 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 17 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 30 [06:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:48:09]wFMCommunicate OK [06:48:09]CreateOFDProtocolMessage done [06:48:09]OFDSenderStorePacket 178598 [06:48:09]StoreOFDPacket docnum=178598 [06:48:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 FD 65 05 01 96 BA 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 B9 02 00 35 04 06 00 14 57 37 D4 F9 FC B2 9A AD 8C 60 CE 5D E9 [06:48:09]CheckFolder [06:48:09]dirname=/storage/ofd_packets [06:48:09]CheckFolder done [06:48:09]ProducePacketName [06:48:09]name=ofd_packets/00178598 [06:48:09]NVStorageSaveData ofd_packets/00178598 [06:48:09]File name is /storage/ofd_packets/00178598 [06:48:09]Write 299 bytes [06:48:09]NVStorageSaveData done [06:48:09]OFDSenderStorePacket done [06:48:09]KKMCreateOFDPacket done [06:48:09]NVStorageSaveData kkm_last_timestamp [06:48:09]File name is /storage/kkm_last_timestamp [06:48:09]Write 4 bytes [06:48:09]NVStorageSaveData done [06:48:09]ExternCall_PrintAddStr [06:48:09]wPrintStart [06:48:09]Write to MH i2c: 01 00 00 5D 01 5E [06:48:09]Write i2c OK [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 07 00 [06:48:09]MH_I2C_Read... [06:48:09]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [06:48:09]RasterBufferAndPrint [06:48:09]line Счет N : (1)294000 [06:48:09]line ИНН: 02508201610067 [06:48:09]line Контрольно-Кассовый Чек [06:48:09]line ПРОДАЖА [06:48:09]line ТРК (МРК, ГНК) : 41 [06:48:09]line Товар: 2710124130 [06:48:09]line SU-92-К-5 [06:48:09]line 7.270 * 68.80 [06:48:09]line = 500.18 [06:48:09]line НДС 12% НСП 1% [06:48:09]line > о реализуемом товаре [06:48:09]line ИТОГО: 500.18 [06:48:09]line НСП 1% : 4.43 [06:48:09]line НДС 12% : 53.12 [06:48:09]line Наличными: 0.00 [06:48:09]line Безнал.: 500.18 [06:48:09]line Место: АЗС № 130 "Партнер Нефть" [06:48:09]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:48:09]line СНО: Общий режим [06:48:09]line Чек 58 23.08.2024 06:48 [06:48:09]line Смена: 470 ФФД: 1.0 [06:48:09]line ЗНМ: 0300000071 [06:48:09]line РНМ: 0000000000092561 [06:48:09]line Версия ККМ: 001 [06:48:09]line Платежная система: Бакай Банк [06:48:09]line ФМ: 0000000000871778 [06:48:09]line ФД: 178598 [06:48:09]line ФПД: 22364831414780 [06:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T064809&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178598&fm=22364831414780&tin=02508201610067®Number=0000000000092561&sum=50018 [06:48:09]written 0, free lines is 4095 [06:48:09]OFD Sender: Processing packet 178598 [packets to send 497, broken 496] [06:48:09]ProducePacketName [06:48:09]name=ofd_packets/00178598 [06:48:09]OFD Sender: To server: pG, [06:48:09]CommunicateWithHost lk.salyk.kg:30040 [06:48:09]ConnectInit lk.salyk.kg [06:48:10]Write to MH i2c: 01 00 00 87 01 88 [06:48:10]Write i2c OK [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: 01 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: 01 07 00 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 D5 0C 70 [06:48:10]RasterBufferAndPrint [06:48:10]line [06:48:10]line [06:48:10]line [06:48:10]line [06:48:10]line [06:48:10]written 0, free lines is 3292 [06:48:10]MH_Cut [06:48:10]Write to MH i2c: D1 01 00 8E 01 01 61 [06:48:10]Write i2c OK [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: D1 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: D1 01 00 [06:48:10]MH_I2C_Read... [06:48:10]Read from MH i2c: D1 01 00 8E 01 00 60 [06:48:10]Write to MH i2c: 01 00 00 8F 01 90 [06:48:10]Write i2c OK [06:48:10]MH_I2C_Read... [06:48:11]*** Cut start [06:48:11]*** Partial cut [06:48:11]*** CUTSNS_PIN = 1 [06:48:11]*** CUTSNS_PIN = 0 [06:48:11]*** Brake cut motor [06:48:11]Read from MH i2c: 01 [06:48:11]MH_I2C_Read... [06:48:11]*** Stop cut motor [06:48:11]*** Cut end [06:48:11]Read from MH i2c: 01 07 00 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [06:48:11]process_action close_receipt done [06:48:11]requested_data is exist [06:48:11]produce_requested_data [06:48:11]requested_item fm.sn is exist - process it [06:48:11]wFMCommunicate request_size=4 [06:48:11]MH_SAM_APDU [06:48:11]CAPDU: 80 11 00 00 [06:48:11]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [06:48:11]Write i2c OK [06:48:11]MH_I2C_Read... [06:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:48:11]Read from MH i2c: E2 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 17 00 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [06:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:48:11]wFMCommunicate OK [06:48:11]requested_item fd.num is exist - process it [06:48:11]SAM_PROTO_GetFieldsCounters [06:48:11]wFMCommunicate request_size=4 [06:48:11]MH_SAM_APDU [06:48:11]CAPDU: 80 13 00 00 [06:48:11]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [06:48:11]Write i2c OK [06:48:11]MH_I2C_Read... [06:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:48:11]Read from MH i2c: E2 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 62 00 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A6 B9 02 00 0E 04 04 00 D6 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 19 [06:48: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A6 B9 02 00 0E 04 04 00 D6 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 [06:48:11]wFMCommunicate OK [06:48:11]SAM_PROTO_GetFieldsCounters done [06:48:11]requested_item shift.num is exist - process it [06:48:11]requested_item shift.opened is exist - process it [06:48:11]req_shift_opened [06:48:11]FM_GetShiftState [06:48:11]SAM_PROTO_GetShiftState [06:48:11]wFMCommunicate request_size=4 [06:48:11]MH_SAM_APDU [06:48:11]CAPDU: 80 13 01 00 [06:48:11]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [06:48:11]Write i2c OK [06:48:11]MH_I2C_Read... [06:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:48:11]Read from MH i2c: E2 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 0E 00 [06:48:11]MH_I2C_Read... [06:48:11]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E7 [06:48:12]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:48:12]wFMCommunicate OK [06:48:12]SAM_PROTO_GetShiftState done [06:48:12]FM_GetShiftState done [06:48:12]req_shift_opened done [06:48:12]requested_item shift.open_date is exist - process it [06:48:12]req_shift_open_date [06:48:12]req_shift_open_date done [06:48:12]produce_requested_data done [06:48:12]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178598,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:48:12]process_action_free close_receipt [06:48:12]json_value_free [06:48:12]json_value_free done [06:48:12]process_json_proto returns [06:48:12]Send response to host [06:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178598,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:48:12]free response buf [06:48:12]execute_script done [06:48:12]execute_script returns [06:48:12]free content buf [06:48:12]Sock 7.Close socket [06:48:12]Sock 7.Thread stoped [06:48:14]ConnectInit Can't take IP for lk.salyk.kg [06:48:14]CommunicateWithHost connect error [06:48:14]CommunicateWithHost err = -1 [06:48:14]OFD Sender: Server communicate error [06:48:19]OFD Sender: Processing packet 178598 [packets to send 497, broken 496] [06:48:19]ProducePacketName [06:48:19]name=ofd_packets/00178598 [06:48:19]OFD Sender: To server: pG, [06:48:19]CommunicateWithHost lk.salyk.kg:30040 [06:48:19]ConnectInit lk.salyk.kg [06:48:23]recv_with_timeout no data received [06:48:24]ConnectInit Can't take IP for lk.salyk.kg [06:48:24]CommunicateWithHost connect error [06:48:24]CommunicateWithHost err = -1 [06:48:24]OFD Sender: Server communicate error [06:48:29]OFD Sender: Processing packet 178598 [packets to send 497, broken 496] [06:48:29]ProducePacketName [06:48:29]name=ofd_packets/00178598 [06:48:29]OFD Sender: To server: pG, [06:48:29]CommunicateWithHost lk.salyk.kg:30040 [06:48:29]ConnectInit lk.salyk.kg [06:48:35]Connected sock=9 [06:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 FD 65 05 01 96 BA 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A9 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 B9 02 00 35 04 06 00 14 57 37 D4 F9 FC B2 9A AD 8C 60 CE 5D E9 [06:48:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 43 40 47 00 78 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A6 B9 02 00 F4 03 04 00 6A DC C7 66 B6 04 01 00 00 C9 D1 0C 82 17 DE 12 40 [06:48:36]CommunicateWithHost err = 0 [06:48:36]CheckOFDResponse [06:48:36]1017 (14) - 77093643461234 [06:48:36]1041 (16) - 0000000000871778 [06:48:36]1040 (4) - 178598 [06:48:36]1012 (4) - 23.08.2024 00:48 [06:48:36]1206 (1) - 0 [06:48:36]OFD Sender: Remove packet 178598 [06:48:36]ProducePacketName [06:48:36]name=ofd_packets/00178598 [06:48:36]NVStorageDeleteData [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:07]accept exits with 10 [06:49:07]New connection [06:49:07]New thread 3066604900 created [06:49:07]Thread 3066748260 joined [06:49:07]Waiting for new connection... [06:49:07] Sock 10.Parse request [06:49:07]Sock 10.Check first char [06:49:07]Sock 10.First char is OK [06:49:07]request: POST /json_proto HTTP/1.0 [06:49:07]Method: POST [06:49:07]URL: /json_proto [06:49:07]Method is POST - this is cgi request [06:49:07]url: /json_proto [06:49:07]query_string will be loaded in cgi processing [06:49:07]execute_cgi json_proto POST (null) [06:49:07]execute_cgi path=json_proto method=POST [06:49:07]POST find Content-Length [06:49:07]Host: 172.17.44.131:8080 [06:49:07]Content-Length: 819 [06:49:07]Content-Type: application/json [06:49:07] [06:49:07]POST finish read [06:49:07]Found Content-Length = 819 [06:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294001", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:07]execute_script... [06:49: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)294001", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:07]POST & json_proto [06:49:07]process_json_proto [06:49:07]json parsed OK: [06:49:07]protocol is kg_v1.0 [06:49:07]action value=close_receipt [06:49:07]process_action close_receipt [06:49:07]cmd_close_receipt [06:49:07]MH_GetDate [06:49:07]Write to MH i2c: F0 00 00 93 01 83 [06:49:07]Write i2c OK [06:49:07]MH_I2C_Read... [06:49:07]Read from MH i2c: F0 [06:49:07]MH_I2C_Read... [06:49:07]Read from MH i2c: F0 09 00 [06:49:07]MH_I2C_Read... [06:49:07]Read from MH i2c: F0 09 00 93 01 00 E4 30 C8 66 4F 53 BE 66 94 [06:49:07]GetLastDocTimeStamp 1724395689 [06:49:07]current date 1724395748 [06:49:07]FM_GetShiftState [06:49:07]SAM_PROTO_GetShiftState [06:49:07]wFMCommunicate request_size=4 [06:49:07]MH_SAM_APDU [06:49:07]CAPDU: 80 13 01 00 [06:49:07]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [06:49:07]Write i2c OK [06:49:07]MH_I2C_Read... [06:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:07]Read from MH i2c: E2 [06:49:07]MH_I2C_Read... [06:49:07]Read from MH i2c: E2 0E 00 [06:49:07]MH_I2C_Read... [06:49:07]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E9 [06:49:07]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:49:07]wFMCommunicate OK [06:49:07]SAM_PROTO_GetShiftState done [06:49:07]FM_GetShiftState done [06:49:07]opened in 1724371660 [06:49:07]opened+sec_in_day 1724458060 [06:49:07]quantity*price = 100005 [06:49:07]sum+1 = 100006 [06:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 59 23.08.2024 06:49 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178599 ФПД: 27045232538985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T064908&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178599&fm=27045232538985&tin=02508201610067®Number=0000000000092561&sum=100005 [06:49:08]StoreToDocumentArchive [06:49:08]shift 470 fd 178599 [06:49:08]save to /storage/0470/doc_00178599 [06:49:08]save last doc name /storage/0470/doc_00178599 to /storage/kkm_last_doc_name [06:49:08]save OK [06:49:08]Clear old archive folders... [06:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:08]tlvbuf is 01D6A570 [06:49:08]SAM_PROTO_ClearQueue [06:49:08]wFMCommunicate request_size=4 [06:49:08]MH_SAM_APDU [06:49:08]CAPDU: 80 09 00 00 [06:49:08]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:08]Read from MH i2c: E2 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [06:49:08]RAPDU: 90 00 [06:49:08]wFMCommunicate OK [06:49:08]SAM_PROTO_ClearQueue done [06:49:08]KKMCreateOFDPacket [06:49:08]OFDProtocolAddRootSTLVToBuf [06:49:08]FM_MakeSignedData [06:49:08]FM_MakeSignedData [06:49:08]SAM_PROTO_SignData [06:49:08]wFMCommunicate request_size=4 [06:49:08]MH_SAM_APDU [06:49:08]CAPDU: 80 0D 01 02 [06:49:08]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:08]Read from MH i2c: E2 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [06:49:08]RAPDU: 90 00 [06:49:08]wFMCommunicate OK [06:49:08]wFMCommunicate request_size=255 [06:49:08]MH_SAM_APDU [06:49: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E4 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 B9 02 00 35 04 06 00 18 [06:49:08]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E4 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 B9 02 00 35 04 06 00 18 00 00 06 [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:08]Read from MH i2c: E2 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [06:49:08]RAPDU: 90 00 [06:49:08]wFMCommunicate OK [06:49:08]wFMCommunicate request_size=10 [06:49:08]MH_SAM_APDU [06:49:08]CAPDU: 80 0D 02 02 05 98 F5 7A 75 69 [06:49:08]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 98 F5 7A 75 69 00 00 0E [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:08]Read from MH i2c: E2 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [06:49:08]RAPDU: 90 00 [06:49:08]wFMCommunicate OK [06:49:08]wFMCommunicate request_size=4 [06:49:08]MH_SAM_APDU [06:49:08]CAPDU: 80 0D 03 02 [06:49:08]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:08]Read from MH i2c: E2 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 0B 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 0B 00 A5 01 00 54 C8 10 93 8B B7 DF 30 90 00 32 [06:49:08]RAPDU: 54 C8 10 93 8B B7 DF 30 90 00 [06:49:08]wFMCommunicate OK [06:49:08]SAM_PROTO_SignData done [06:49:08]FM_MakeSignedData done [06:49:08]CreateOFDProtocolMessage [06:49:08]wFMCommunicate request_size=4 [06:49:08]MH_SAM_APDU [06:49:08]CAPDU: 80 11 00 00 [06:49:08]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:08]Read from MH i2c: E2 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 17 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [06:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:49:08]wFMCommunicate OK [06:49:08]CreateOFDProtocolMessage done [06:49:08]OFDSenderStorePacket 178599 [06:49:08]StoreOFDPacket docnum=178599 [06:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 51 AB 07 01 E2 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E4 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 B9 02 00 35 04 06 00 18 98 F5 7A 75 69 54 C8 10 93 8B B7 DF 30 [06:49:08]CheckFolder [06:49:08]dirname=/storage/ofd_packets [06:49:08]CheckFolder done [06:49:08]ProducePacketName [06:49:08]name=ofd_packets/00178599 [06:49:08]NVStorageSaveData ofd_packets/00178599 [06:49:08]File name is /storage/ofd_packets/00178599 [06:49:08]Write 301 bytes [06:49:08]NVStorageSaveData done [06:49:08]OFDSenderStorePacket done [06:49:08]KKMCreateOFDPacket done [06:49:08]NVStorageSaveData kkm_last_timestamp [06:49:08]File name is /storage/kkm_last_timestamp [06:49:08]Write 4 bytes [06:49:08]NVStorageSaveData done [06:49:08]ExternCall_PrintAddStr [06:49:08]wPrintStart [06:49:08]Write to MH i2c: 01 00 00 A7 01 A8 [06:49:08]Write i2c OK [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: 01 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: 01 07 00 [06:49:08]MH_I2C_Read... [06:49:08]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [06:49:08]RasterBufferAndPrint [06:49:08]line Счет N : (1)294001 [06:49:08]line ИНН: 02508201610067 [06:49:08]line Контрольно-Кассовый Чек [06:49:08]line ПРОДАЖА [06:49:08]line ТРК (МРК, ГНК) : 32 [06:49:08]line Товар: 2710124130 [06:49:08]line Аи-92-К-5 [06:49:08]line 14.750 * 67.80 [06:49:08]line = 1000.05 [06:49:08]line НДС 12% НСП 1% [06:49:08]line > о реализуемом товаре [06:49:08]line ИТОГО: 1000.05 [06:49:08]line НСП 1% : 8.85 [06:49:08]line НДС 12% : 106.20 [06:49:08]line Наличными: 0.00 [06:49:08]line Безнал.: 1000.05 [06:49:08]line Место: АЗС № 130 "Партнер Нефть" [06:49:08]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:49:08]line СНО: Общий режим [06:49:08]line Чек 59 23.08.2024 06:49 [06:49:08]line Смена: 470 ФФД: 1.0 [06:49:08]line ЗНМ: 0300000071 [06:49:08]line РНМ: 0000000000092561 [06:49:08]line Версия ККМ: 001 [06:49:08]line Платежная система: Бакай Банк [06:49:08]line ФМ: 0000000000871778 [06:49:08]line ФД: 178599 [06:49:08]line ФПД: 27045232538985 [06:49:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T064908&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178599&fm=27045232538985&tin=02508201610067®Number=0000000000092561&sum=100005 [06:49:08]written 0, free lines is 4095 [06:49:08]OFD Sender: Processing packet 178599 [packets to send 497, broken 496] [06:49:08]ProducePacketName [06:49:08]name=ofd_packets/00178599 [06:49:08]OFD Sender: To server: pG, [06:49:08]CommunicateWithHost lk.salyk.kg:30040 [06:49:08]ConnectInit lk.salyk.kg [06:49:09]Write to MH i2c: 01 00 00 D1 01 D2 [06:49:09]Write i2c OK [06:49:09]MH_I2C_Read... [06:49:09]Read from MH i2c: 01 [06:49:09]MH_I2C_Read... [06:49:09]Read from MH i2c: 01 07 00 [06:49:09]MH_I2C_Read... [06:49:09]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 D1 0C B6 [06:49:09]RasterBufferAndPrint [06:49:09]line [06:49:09]line [06:49:09]line [06:49:09]line [06:49:09]line [06:49:09]written 0, free lines is 3288 [06:49:09]MH_Cut [06:49:09]Write to MH i2c: D1 01 00 D8 01 01 AB [06:49:09]Write i2c OK [06:49:09]MH_I2C_Read... [06:49:09]Read from MH i2c: D1 [06:49:09]MH_I2C_Read... [06:49:09]Read from MH i2c: D1 01 00 [06:49:09]MH_I2C_Read... [06:49:09]Read from MH i2c: D1 01 00 D8 01 00 AA [06:49:09]Write to MH i2c: 01 00 00 D9 01 DA [06:49:09]Write i2c OK [06:49:09]MH_I2C_Read... [06:49:10]*** Cut start [06:49:10]*** Partial cut [06:49:10]*** CUTSNS_PIN = 1 [06:49:10]*** CUTSNS_PIN = 0 [06:49:10]*** Brake cut motor [06:49:10]Read from MH i2c: 01 [06:49:10]MH_I2C_Read... [06:49:10]*** Stop cut motor [06:49:10]*** Cut end [06:49:10]Read from MH i2c: 01 07 00 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [06:49:10]process_action close_receipt done [06:49:10]requested_data is exist [06:49:10]produce_requested_data [06:49:10]requested_item fm.sn is exist - process it [06:49:10]wFMCommunicate request_size=4 [06:49:10]MH_SAM_APDU [06:49:10]CAPDU: 80 11 00 00 [06:49:10]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [06:49:10]Write i2c OK [06:49:10]MH_I2C_Read... [06:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:10]Read from MH i2c: E2 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: E2 17 00 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AE [06:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:49:10]wFMCommunicate OK [06:49:10]requested_item fd.num is exist - process it [06:49:10]SAM_PROTO_GetFieldsCounters [06:49:10]wFMCommunicate request_size=4 [06:49:10]MH_SAM_APDU [06:49:10]CAPDU: 80 13 00 00 [06:49:10]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [06:49:10]Write i2c OK [06:49:10]MH_I2C_Read... [06:49:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:10]Read from MH i2c: E2 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: E2 62 00 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A7 B9 02 00 0E 04 04 00 D6 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 67 [06:49: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A7 B9 02 00 0E 04 04 00 D6 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 [06:49:10]wFMCommunicate OK [06:49:10]SAM_PROTO_GetFieldsCounters done [06:49:10]requested_item shift.num is exist - process it [06:49:10]requested_item shift.opened is exist - process it [06:49:10]req_shift_opened [06:49:10]FM_GetShiftState [06:49:10]SAM_PROTO_GetShiftState [06:49:10]wFMCommunicate request_size=4 [06:49:10]MH_SAM_APDU [06:49:10]CAPDU: 80 13 01 00 [06:49:10]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [06:49:10]Write i2c OK [06:49:10]MH_I2C_Read... [06:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:11]Read from MH i2c: E2 [06:49:11]MH_I2C_Read... [06:49:11]Read from MH i2c: E2 0E 00 [06:49:11]MH_I2C_Read... [06:49:11]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 31 [06:49:11]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:49:11]wFMCommunicate OK [06:49:11]SAM_PROTO_GetShiftState done [06:49:11]FM_GetShiftState done [06:49:11]req_shift_opened done [06:49:11]requested_item shift.open_date is exist - process it [06:49:11]req_shift_open_date [06:49:11]req_shift_open_date done [06:49:11]produce_requested_data done [06:49:11]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178599,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:49:11]process_action_free close_receipt [06:49:11]json_value_free [06:49:11]json_value_free done [06:49:11]process_json_proto returns [06:49:11]Send response to host [06:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178599,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:49:11]free response buf [06:49:11]execute_script done [06:49:11]execute_script returns [06:49:11]free content buf [06:49:11]Sock 10.Close socket [06:49:11]Sock 10.Thread stoped [06:49:11]Connected sock=7 [06:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 51 AB 07 01 E2 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 E4 30 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A7 B9 02 00 35 04 06 00 18 98 F5 7A 75 69 54 C8 10 93 8B B7 DF 30 [06:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 07 94 47 00 5D 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 31 37 37 38 10 04 04 00 A7 B9 02 00 F4 03 04 00 8D DC C7 66 B6 04 01 00 00 6C 48 93 FF D7 87 0D 23 [06:49:12]CommunicateWithHost err = 0 [06:49:12]CheckOFDResponse [06:49:12]1017 (14) - 77093643461234 [06:49:12]1041 (16) - 0000000000871778 [06:49:12]1040 (4) - 178599 [06:49:12]1012 (4) - 23.08.2024 00:49 [06:49:12]1206 (1) - 0 [06:49:12]OFD Sender: Remove packet 178599 [06:49:12]ProducePacketName [06:49:12]name=ofd_packets/00178599 [06:49:12]NVStorageDeleteData [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:29]recv_with_timeout no data received [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:20]accept exits with 9 [06:51:20]New connection [06:51:20]New thread 3066748260 created [06:51:20]Thread 3066604900 joined [06:51:20]Waiting for new connection... [06:51:20] Sock 9.Parse request [06:51:20]Sock 9.Check first char [06:51:20]Sock 9.First char is OK [06:51:20]request: POST /json_proto HTTP/1.0 [06:51:20]Method: POST [06:51:20]URL: /json_proto [06:51:20]Method is POST - this is cgi request [06:51:20]url: /json_proto [06:51:20]query_string will be loaded in cgi processing [06:51:20]execute_cgi json_proto POST (null) [06:51:20]execute_cgi path=json_proto method=POST [06:51:20]POST find Content-Length [06:51:20]Host: 172.17.44.131:8080 [06:51:20]Content-Length: 679 [06:51:20]Content-Type: application/json [06:51:20] [06:51:20]POST finish read [06:51:20]Found Content-Length = 679 [06:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.190, "sum" : 978.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 978.00, "payments": [ { "type": 0, "sum" : 978.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:20]execute_script... [06:51:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.190, "sum" : 978.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 978.00, "payments": [ { "type": 0, "sum" : 978.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:20]POST & json_proto [06:51:20]process_json_proto [06:51:20]json parsed OK: [06:51:20]protocol is kg_v1.0 [06:51:20]action value=close_receipt [06:51:20]process_action close_receipt [06:51:20]cmd_close_receipt [06:51:20]MH_GetDate [06:51:20]Write to MH i2c: F0 00 00 DD 01 CD [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: F0 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: F0 09 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: F0 09 00 DD 01 00 68 31 C8 66 4F 53 BE 66 63 [06:51:20]GetLastDocTimeStamp 1724395748 [06:51:20]current date 1724395880 [06:51:20]FM_GetShiftState [06:51:20]SAM_PROTO_GetShiftState [06:51:20]wFMCommunicate request_size=4 [06:51:20]MH_SAM_APDU [06:51:20]CAPDU: 80 13 01 00 [06:51:20]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [06:51:20]Write i2c OK [06:51:20]MH_I2C_Read... [06:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:20]Read from MH i2c: E2 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 0E 00 [06:51:20]MH_I2C_Read... [06:51:20]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 33 [06:51:20]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:51:20]wFMCommunicate OK [06:51:20]SAM_PROTO_GetShiftState done [06:51:20]FM_GetShiftState done [06:51:20]opened in 1724371660 [06:51:20]opened+sec_in_day 1724458060 [06:51:20]quantity*price = 97869 [06:51:20]sum+1 = 97871 [06:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 978.00 Внесено: 1000.00 СДАЧА: 22.00 НСП 1% : 8.66 НДС 12% : 103.93 Наличными: 978.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 60 23.08.2024 06:51 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178600 ФПД: 229948444214540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T065121&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178600&fm=229948444214540&tin=02508201610067®Number=0000000000092561&sum=97800 [06:51:21]StoreToDocumentArchive [06:51:21]shift 470 fd 178600 [06:51:21]save to /storage/0470/doc_00178600 [06:51:21]save last doc name /storage/0470/doc_00178600 to /storage/kkm_last_doc_name [06:51:21]save OK [06:51:21]Clear old archive folders... [06:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:51:21]tlvbuf is 01D02F30 [06:51:21]SAM_PROTO_ClearQueue [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 09 00 00 [06:51:21]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]SAM_PROTO_ClearQueue done [06:51:21]KKMCreateOFDPacket [06:51:21]OFDProtocolAddRootSTLVToBuf [06:51:21]FM_MakeSignedData [06:51:21]FM_MakeSignedData [06:51:21]SAM_PROTO_SignData [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 01 02 [06:51:21]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]wFMCommunicate request_size=255 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 31 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 B9 02 00 35 04 06 00 D1 [06:51:21]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 31 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 B9 02 00 35 04 06 00 D1 00 00 59 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]wFMCommunicate request_size=10 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 02 02 05 23 0B 55 85 0C [06:51:21]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 23 0B 55 85 0C 00 00 87 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [06:51:21]RAPDU: 90 00 [06:51:21]wFMCommunicate OK [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 0D 03 02 [06:51:21]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 0B 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 0B 00 EF 01 00 C8 E5 8E 1C 49 ED 3F F3 90 00 2B [06:51:21]RAPDU: C8 E5 8E 1C 49 ED 3F F3 90 00 [06:51:21]wFMCommunicate OK [06:51:21]SAM_PROTO_SignData done [06:51:21]FM_MakeSignedData done [06:51:21]CreateOFDProtocolMessage [06:51:21]wFMCommunicate request_size=4 [06:51:21]MH_SAM_APDU [06:51:21]CAPDU: 80 11 00 00 [06:51:21]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:21]Read from MH i2c: E2 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 17 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C4 [06:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:51:21]wFMCommunicate OK [06:51:21]CreateOFDProtocolMessage done [06:51:21]OFDSenderStorePacket 178600 [06:51:21]StoreOFDPacket docnum=178600 [06:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 48 0C 07 01 EB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 31 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 B9 02 00 35 04 06 00 D1 23 0B 55 85 0C C8 E5 8E 1C 49 ED 3F F3 [06:51:21]CheckFolder [06:51:21]dirname=/storage/ofd_packets [06:51:21]CheckFolder done [06:51:21]ProducePacketName [06:51:21]name=ofd_packets/00178600 [06:51:21]NVStorageSaveData ofd_packets/00178600 [06:51:21]File name is /storage/ofd_packets/00178600 [06:51:21]Write 301 bytes [06:51:21]NVStorageSaveData done [06:51:21]OFDSenderStorePacket done [06:51:21]KKMCreateOFDPacket done [06:51:21]NVStorageSaveData kkm_last_timestamp [06:51:21]File name is /storage/kkm_last_timestamp [06:51:21]Write 4 bytes [06:51:21]NVStorageSaveData done [06:51:21]ExternCall_PrintAddStr [06:51:21]wPrintStart [06:51:21]Write to MH i2c: 01 00 00 F1 01 F2 [06:51:21]Write i2c OK [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 07 00 [06:51:21]MH_I2C_Read... [06:51:21]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [06:51:21]RasterBufferAndPrint [06:51:21]line Счет N : (1)294003 [06:51:21]line ИНН: 02508201610067 [06:51:21]line Контрольно-Кассовый Чек [06:51:21]line ПРОДАЖА [06:51:21]line ТРК (МРК, ГНК) : 33 [06:51:21]line Товар: 2710124500 [06:51:21]line Аи-95-К-5 [06:51:21]line 13.190 * 74.20 [06:51:21]line = 978.70 [06:51:21]line НДС 12% НСП 1% [06:51:21]line > о реализуемом товаре [06:51:21]line ОКРУГЛЕНИЕ: -0.70 [06:51:21]line ИТОГО: 978.00 [06:51:21]line Внесено: 1000.00 [06:51:21]line СДАЧА: 22.00 [06:51:21]line НСП 1% : 8.66 [06:51:21]line НДС 12% : 103.93 [06:51:21]line Наличными: 978.00 [06:51:21]line Безнал.: 0.00 [06:51:21]line Место: АЗС № 130 "Партнер Нефть" [06:51:21]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:51:21]line СНО: Общий режим [06:51:21]line Чек 60 23.08.2024 06:51 [06:51:21]line Смена: 470 ФФД: 1.0 [06:51:21]line ЗНМ: 0300000071 [06:51:21]line РНМ: 0000000000092561 [06:51:21]line Версия ККМ: 001 [06:51:21]line ФМ: 0000000000871778 [06:51:21]line ФД: 178600 [06:51:21]line ФПД: 229948444214540 [06:51:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T065121&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178600&fm=229948444214540&tin=02508201610067®Number=0000000000092561&sum=97800 [06:51:21]written 0, free lines is 4095 [06:51:21]OFD Sender: Processing packet 178600 [packets to send 497, broken 496] [06:51:21]ProducePacketName [06:51:21]name=ofd_packets/00178600 [06:51:21]OFD Sender: To server: pG, [06:51:21]CommunicateWithHost lk.salyk.kg:30040 [06:51:21]ConnectInit lk.salyk.kg [06:51:22]Write to MH i2c: 01 00 00 1C 02 1E [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 07 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 C5 0C F6 [06:51:22]RasterBufferAndPrint [06:51:22]line [06:51:22]line [06:51:22]line [06:51:22]line [06:51:22]line [06:51:22]written 0, free lines is 3275 [06:51:22]MH_Cut [06:51:22]Write to MH i2c: D1 01 00 23 02 01 F7 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: D1 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: D1 01 00 [06:51:22]MH_I2C_Read... [06:51:22]Read from MH i2c: D1 01 00 23 02 00 F6 [06:51:22]Write to MH i2c: 01 00 00 24 02 26 [06:51:22]Write i2c OK [06:51:22]MH_I2C_Read... [06:51:23]*** Cut start [06:51:23]*** Partial cut [06:51:23]*** CUTSNS_PIN = 1 [06:51:23]*** CUTSNS_PIN = 0 [06:51:23]*** Brake cut motor [06:51:23]Read from MH i2c: 01 [06:51:23]MH_I2C_Read... [06:51:23]*** Stop cut motor [06:51:23]*** Cut end [06:51:23]Read from MH i2c: 01 07 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [06:51:23]process_action close_receipt done [06:51:23]requested_data is exist [06:51:23]produce_requested_data [06:51:23]requested_item fm.sn is exist - process it [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 11 00 00 [06:51:23]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 17 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FA [06:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:51:23]wFMCommunicate OK [06:51:23]requested_item fd.num is exist - process it [06:51:23]SAM_PROTO_GetFieldsCounters [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 13 00 00 [06:51:23]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 62 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A8 B9 02 00 0E 04 04 00 D6 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 B7 [06: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A8 B9 02 00 0E 04 04 00 D6 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 [06:51:23]wFMCommunicate OK [06:51:23]SAM_PROTO_GetFieldsCounters done [06:51:23]requested_item shift.num is exist - process it [06:51:23]requested_item shift.opened is exist - process it [06:51:23]req_shift_opened [06:51:23]FM_GetShiftState [06:51:23]SAM_PROTO_GetShiftState [06:51:23]wFMCommunicate request_size=4 [06:51:23]MH_SAM_APDU [06:51:23]CAPDU: 80 13 01 00 [06:51:23]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [06:51:23]Write i2c OK [06:51:23]MH_I2C_Read... [06:51:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:23]Read from MH i2c: E2 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 0E 00 [06:51:23]MH_I2C_Read... [06:51:23]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7D [06:51:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:51:23]wFMCommunicate OK [06:51:23]SAM_PROTO_GetShiftState done [06:51:23]FM_GetShiftState done [06:51:23]req_shift_opened done [06:51:23]requested_item shift.open_date is exist - process it [06:51:23]req_shift_open_date [06:51:23]req_shift_open_date done [06:51:23]produce_requested_data done [06:51:23]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178600,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:51:23]process_action_free close_receipt [06:51:23]json_value_free [06:51:23]json_value_free done [06:51:23]process_json_proto returns [06:51:23]Send response to host [06:51:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178600,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:51:23]free response buf [06:51:23]execute_script done [06:51:23]execute_script returns [06:51:23]free content buf [06:51:23]Sock 9.Close socket [06:51:23]Sock 9.Thread stoped [06:51:26]ConnectInit Can't take IP for lk.salyk.kg [06:51:26]CommunicateWithHost connect error [06:51:26]CommunicateWithHost err = -1 [06:51:26]OFD Sender: Server communicate error [06:51:31]OFD Sender: Processing packet 178600 [packets to send 497, broken 496] [06:51:31]ProducePacketName [06:51:31]name=ofd_packets/00178600 [06:51:31]OFD Sender: To server: pG, [06:51:31]CommunicateWithHost lk.salyk.kg:30040 [06:51:31]ConnectInit lk.salyk.kg [06:51:32]recv_with_timeout no data received [06:51:36]ConnectInit Can't take IP for lk.salyk.kg [06:51:36]CommunicateWithHost connect error [06:51:36]CommunicateWithHost err = -1 [06:51:36]OFD Sender: Server communicate error [06:51:41]OFD Sender: Processing packet 178600 [packets to send 497, broken 496] [06:51:41]ProducePacketName [06:51:41]name=ofd_packets/00178600 [06:51:41]OFD Sender: To server: pG, [06:51:41]CommunicateWithHost lk.salyk.kg:30040 [06:51:41]ConnectInit lk.salyk.kg [06:51:46]ConnectInit Can't take IP for lk.salyk.kg [06:51:46]CommunicateWithHost connect error [06:51:46]CommunicateWithHost err = -1 [06:51:46]OFD Sender: Server communicate error [06:51:51]OFD Sender: Processing packet 178600 [packets to send 497, broken 496] [06:51:51]ProducePacketName [06:51:51]name=ofd_packets/00178600 [06:51:51]OFD Sender: To server: pG, [06:51:51]CommunicateWithHost lk.salyk.kg:30040 [06:51:51]ConnectInit lk.salyk.kg [06:51:56]ConnectInit Can't take IP for lk.salyk.kg [06:51:56]CommunicateWithHost connect error [06:51:56]CommunicateWithHost err = -1 [06:51:56]OFD Sender: Server communicate error [06:52:01]OFD Sender: Processing packet 178600 [packets to send 497, broken 496] [06:52:01]ProducePacketName [06:52:01]name=ofd_packets/00178600 [06:52:01]OFD Sender: To server: pG, [06:52:01]CommunicateWithHost lk.salyk.kg:30040 [06:52:01]ConnectInit lk.salyk.kg [06:52:02]recv_with_timeout no data received [06:52:06]Connected sock=9 [06:52:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 48 0C 07 01 EB 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 86 33 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 4E 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 28 00 00 00 00 07 04 06 00 08 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 69 31 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A8 B9 02 00 35 04 06 00 D1 23 0B 55 85 0C C8 E5 8E 1C 49 ED 3F F3 [06:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D1 7D 47 00 45 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 31 37 37 38 10 04 04 00 A8 B9 02 00 F4 03 04 00 3D DD C7 66 B6 04 01 00 00 68 70 DA BA 2E 27 FB B3 [06:52:08]CommunicateWithHost err = 0 [06:52:08]CheckOFDResponse [06:52:08]1017 (14) - 77093643461234 [06:52:08]1041 (16) - 0000000000871778 [06:52:08]1040 (4) - 178600 [06:52:08]1012 (4) - 23.08.2024 00:52 [06:52:08]1206 (1) - 0 [06:52:08]OFD Sender: Remove packet 178600 [06:52:08]ProducePacketName [06:52:08]name=ofd_packets/00178600 [06:52:08]NVStorageDeleteData [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:24]recv_with_timeout no data received [06:52:29]OFD Sender: No OFD packet to send [06:52:34]OFD Sender: No OFD packet to send [06:52:39]OFD Sender: No OFD packet to send [06:52:44]OFD Sender: No OFD packet to send [06:52:49]OFD Sender: No OFD packet to send [06:52:49]recv_with_timeout no data received [06:52:54]OFD Sender: No OFD packet to send [06:52:59]OFD Sender: No OFD packet to send [06:53:04]OFD Sender: No OFD packet to send [06:53:08]recv_with_timeout no data received [06:53:09]OFD Sender: No OFD packet to send [06:53:14]OFD Sender: No OFD packet to send [06:53:19]OFD Sender: No OFD packet to send [06:53:24]OFD Sender: No OFD packet to send [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:53]recv_with_timeout no data received [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:58]recv_with_timeout no data received [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:15]recv_with_timeout no data received [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]recv_with_timeout no data received [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:51]recv_with_timeout no data received [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:11]recv_with_timeout no data received [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:34]accept exits with 10 [06:59:34]New connection [06:59:34]New thread 3066604900 created [06:59:34]Thread 3066748260 joined [06:59:34]Waiting for new connection... [06:59:34] Sock 10.Parse request [06:59:34]Sock 10.Check first char [06:59:34]Sock 10.First char is OK [06:59:34]request: POST /json_proto HTTP/1.0 [06:59:34]Method: POST [06:59:34]URL: /json_proto [06:59:34]Method is POST - this is cgi request [06:59:34]url: /json_proto [06:59:34]query_string will be loaded in cgi processing [06:59:34]execute_cgi json_proto POST (null) [06:59:34]execute_cgi path=json_proto method=POST [06:59:34]POST find Content-Length [06:59:34]Host: 172.17.44.131:8080 [06:59:34]Content-Length: 685 [06:59:34]Content-Type: application/json [06:59:34] [06:59:34]POST finish read [06:59:34]Found Content-Length = 685 [06:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 44.930, "sum" : 1680.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1680.00, "payments": [ { "type": 0, "sum" : 1680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:34]execute_script... [06:59: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)294002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 44.930, "sum" : 1680.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1680.00, "payments": [ { "type": 0, "sum" : 1680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:34]POST & json_proto [06:59:34]process_json_proto [06:59:34]json parsed OK: [06:59:34]protocol is kg_v1.0 [06:59:34]action value=close_receipt [06:59:34]process_action close_receipt [06:59:34]cmd_close_receipt [06:59:34]MH_GetDate [06:59:34]Write to MH i2c: F0 00 00 28 02 19 [06:59:34]Write i2c OK [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: F0 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: F0 09 00 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: F0 09 00 28 02 00 57 33 C8 66 4F 53 BE 66 A0 [06:59:34]GetLastDocTimeStamp 1724395881 [06:59:34]current date 1724396375 [06:59:34]FM_GetShiftState [06:59:34]SAM_PROTO_GetShiftState [06:59:34]wFMCommunicate request_size=4 [06:59:34]MH_SAM_APDU [06:59:34]CAPDU: 80 13 01 00 [06:59:34]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [06:59:34]Write i2c OK [06:59:34]MH_I2C_Read... [06:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:34]Read from MH i2c: E2 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: E2 0E 00 [06:59:34]MH_I2C_Read... [06:59:34]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7F [06:59:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:59:34]wFMCommunicate OK [06:59:34]SAM_PROTO_GetShiftState done [06:59:34]FM_GetShiftState done [06:59:34]opened in 1724371660 [06:59:34]opened+sec_in_day 1724458060 [06:59:34]quantity*price = 168038 [06:59:34]sum+1 = 168039 [06:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1680.00 Внесено: 2000.00 СДАЧА: 320.00 НСП 1% : 14.87 НДС 12% : 178.45 Наличными: 1680.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 61 23.08.2024 06:59 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178601 ФПД: 6450304238268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T065935&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178601&fm=6450304238268&tin=02508201610067®Number=0000000000092561&sum=168000 [06:59:35]StoreToDocumentArchive [06:59:35]shift 470 fd 178601 [06:59:35]save to /storage/0470/doc_00178601 [06:59:35]save last doc name /storage/0470/doc_00178601 to /storage/kkm_last_doc_name [06:59:35]save OK [06:59:35]Clear old archive folders... [06:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [06:59:35]tlvbuf is B6D768A0 [06:59:35]SAM_PROTO_ClearQueue [06:59:35]wFMCommunicate request_size=4 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 09 00 00 [06:59:35]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [06:59:35]RAPDU: 90 00 [06:59:35]wFMCommunicate OK [06:59:35]SAM_PROTO_ClearQueue done [06:59:35]KKMCreateOFDPacket [06:59:35]OFDProtocolAddRootSTLVToBuf [06:59:35]FM_MakeSignedData [06:59:35]FM_MakeSignedData [06:59:35]SAM_PROTO_SignData [06:59:35]wFMCommunicate request_size=4 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 0D 01 02 [06:59:35]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:35]Read from MH i2c: E2 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 [06:59:35]MH_I2C_Read... [06:59:35]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [06:59:35]RAPDU: 90 00 [06:59:35]wFMCommunicate OK [06:59:35]wFMCommunicate request_size=255 [06:59:35]MH_SAM_APDU [06:59:35]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 82 AF 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 66 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 57 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 B9 02 00 35 04 06 00 05 DD [06:59:35]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 82 AF 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 66 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 57 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 B9 02 00 35 04 06 00 05 DD 00 00 C7 [06:59:35]Write i2c OK [06:59:35]MH_I2C_Read... [06:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:36]Read from MH i2c: E2 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 03 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [06:59:36]RAPDU: 90 00 [06:59:36]wFMCommunicate OK [06:59:36]wFMCommunicate request_size=9 [06:59:36]MH_SAM_APDU [06:59:36]CAPDU: 80 0D 02 02 04 D4 17 C2 BC [06:59:36]Write to MH i2c: E2 0C 00 39 02 80 0D 02 02 04 00 D4 17 C2 BC 00 00 26 [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:36]Read from MH i2c: E2 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 03 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [06:59:36]RAPDU: 90 00 [06:59:36]wFMCommunicate OK [06:59:36]wFMCommunicate request_size=4 [06:59:36]MH_SAM_APDU [06:59:36]CAPDU: 80 0D 03 02 [06:59:36]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:36]Read from MH i2c: E2 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 0B 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 0B 00 3A 02 00 22 37 8D 7A 35 51 FF 90 90 00 2D [06:59:36]RAPDU: 22 37 8D 7A 35 51 FF 90 90 00 [06:59:36]wFMCommunicate OK [06:59:36]SAM_PROTO_SignData done [06:59:36]FM_MakeSignedData done [06:59:36]CreateOFDProtocolMessage [06:59:36]wFMCommunicate request_size=4 [06:59:36]MH_SAM_APDU [06:59:36]CAPDU: 80 11 00 00 [06:59:36]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:36]Read from MH i2c: E2 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 17 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 10 [06:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:59:36]wFMCommunicate OK [06:59:36]CreateOFDProtocolMessage done [06:59:36]OFDSenderStorePacket 178601 [06:59:36]StoreOFDPacket docnum=178601 [06:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 D2 1C 06 01 85 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 82 AF 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 66 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 57 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 B9 02 00 35 04 06 00 05 DD D4 17 C2 BC 22 37 8D 7A 35 51 FF 90 [06:59:36]CheckFolder [06:59:36]dirname=/storage/ofd_packets [06:59:36]CheckFolder done [06:59:36]ProducePacketName [06:59:36]name=ofd_packets/00178601 [06:59:36]NVStorageSaveData ofd_packets/00178601 [06:59:36]File name is /storage/ofd_packets/00178601 [06:59:36]Write 300 bytes [06:59:36]NVStorageSaveData done [06:59:36]OFDSenderStorePacket done [06:59:36]KKMCreateOFDPacket done [06:59:36]NVStorageSaveData kkm_last_timestamp [06:59:36]File name is /storage/kkm_last_timestamp [06:59:36]Write 4 bytes [06:59:36]NVStorageSaveData done [06:59:36]ExternCall_PrintAddStr [06:59:36]wPrintStart [06:59:36]Write to MH i2c: 01 00 00 3C 02 3E [06:59:36]Write i2c OK [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: 01 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: 01 07 00 [06:59:36]MH_I2C_Read... [06:59:36]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [06:59:36]RasterBufferAndPrint [06:59:36]line Счет N : (1)294002 [06:59:36]line ИНН: 02508201610067 [06:59:36]line Контрольно-Кассовый Чек [06:59:36]line ПРОДАЖА [06:59:36]line ТРК (МРК, ГНК) : 71 [06:59:36]line Товар: 2711129700 [06:59:36]line ГАЗ-К-5 [06:59:36]line 44.930 * 37.40 [06:59:36]line = 1680.38 [06:59:36]line НДС 12% НСП 1% [06:59:36]line > о реализуемом товаре [06:59:36]line ОКРУГЛЕНИЕ: -0.38 [06:59:36]line ИТОГО: 1680.00 [06:59:36]line Внесено: 2000.00 [06:59:36]line СДАЧА: 320.00 [06:59:36]line НСП 1% : 14.87 [06:59:36]line НДС 12% : 178.45 [06:59:36]line Наличными: 1680.00 [06:59:36]line Безнал.: 0.00 [06:59:36]line Место: АЗС № 130 "Партнер Нефть" [06:59:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [06:59:36]line СНО: Общий режим [06:59:36]line Чек 61 23.08.2024 06:59 [06:59:36]line Смена: 470 ФФД: 1.0 [06:59:36]line ЗНМ: 0300000071 [06:59:36]line РНМ: 0000000000092561 [06:59:36]line Версия ККМ: 001 [06:59:36]line ФМ: 0000000000871778 [06:59:36]line ФД: 178601 [06:59:36]line ФПД: 6450304238268 [06:59:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T065935&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178601&fm=6450304238268&tin=02508201610067®Number=0000000000092561&sum=168000 [06:59:36]OFD Sender: Processing packet 178601 [packets to send 497, broken 496] [06:59:36]ProducePacketName [06:59:36]name=ofd_packets/00178601 [06:59:36]OFD Sender: To server: pG, [06:59:36]CommunicateWithHost lk.salyk.kg:30040 [06:59:36]ConnectInit lk.salyk.kg [06:59:36]written 0, free lines is 4095 [06:59:37]Write to MH i2c: 01 00 00 67 02 69 [06:59:37]Write i2c OK [06:59:37]MH_I2C_Read... [06:59:37]Read from MH i2c: 01 [06:59:37]MH_I2C_Read... [06:59:37]Read from MH i2c: 01 07 00 [06:59:37]MH_I2C_Read... [06:59:37]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 C5 0C 41 [06:59:37]RasterBufferAndPrint [06:59:37]line [06:59:37]line [06:59:37]line [06:59:37]line [06:59:37]line [06:59:37]written 0, free lines is 3275 [06:59:37]MH_Cut [06:59:37]Write to MH i2c: D1 01 00 6E 02 01 42 [06:59:37]Write i2c OK [06:59:37]MH_I2C_Read... [06:59:37]Read from MH i2c: D1 [06:59:37]MH_I2C_Read... [06:59:37]Read from MH i2c: D1 01 00 [06:59:37]MH_I2C_Read... [06:59:37]Read from MH i2c: D1 01 00 6E 02 00 41 [06:59:37]Write to MH i2c: 01 00 00 6F 02 71 [06:59:37]Write i2c OK [06:59:37]MH_I2C_Read... [06:59:37]*** Cut start [06:59:37]*** Partial cut [06:59:37]*** CUTSNS_PIN = 1 [06:59:37]*** CUTSNS_PIN = 0 [06:59:38]*** Brake cut motor [06:59:38]Read from MH i2c: 01 [06:59:38]MH_I2C_Read... [06:59:38]*** Stop cut motor [06:59:38]*** Cut end [06:59:38]Read from MH i2c: 01 07 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [06:59:38]process_action close_receipt done [06:59:38]requested_data is exist [06:59:38]produce_requested_data [06:59:38]requested_item fm.sn is exist - process it [06:59:38]wFMCommunicate request_size=4 [06:59:38]MH_SAM_APDU [06:59:38]CAPDU: 80 11 00 00 [06:59:38]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:38]Read from MH i2c: E2 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 17 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 45 [06:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [06:59:38]wFMCommunicate OK [06:59:38]requested_item fd.num is exist - process it [06:59:38]SAM_PROTO_GetFieldsCounters [06:59:38]wFMCommunicate request_size=4 [06:59:38]MH_SAM_APDU [06:59:38]CAPDU: 80 13 00 00 [06:59:38]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:38]Read from MH i2c: E2 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 62 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A9 B9 02 00 0E 04 04 00 D6 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 06 [06:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 A9 B9 02 00 0E 04 04 00 D6 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 [06:59:38]wFMCommunicate OK [06:59:38]SAM_PROTO_GetFieldsCounters done [06:59:38]requested_item shift.num is exist - process it [06:59:38]requested_item shift.opened is exist - process it [06:59:38]req_shift_opened [06:59:38]FM_GetShiftState [06:59:38]SAM_PROTO_GetShiftState [06:59:38]wFMCommunicate request_size=4 [06:59:38]MH_SAM_APDU [06:59:38]CAPDU: 80 13 01 00 [06:59:38]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [06:59:38]Write i2c OK [06:59:38]MH_I2C_Read... [06:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:38]Read from MH i2c: E2 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 0E 00 [06:59:38]MH_I2C_Read... [06:59:38]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C8 [06:59:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [06:59:38]wFMCommunicate OK [06:59:38]SAM_PROTO_GetShiftState done [06:59:38]FM_GetShiftState done [06:59:38]req_shift_opened done [06:59:38]requested_item shift.open_date is exist - process it [06:59:38]req_shift_open_date [06:59:38]req_shift_open_date done [06:59:38]produce_requested_data done [06:59:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178601,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [06:59:38]process_action_free close_receipt [06:59:38]json_value_free [06:59:38]json_value_free done [06:59:38]process_json_proto returns [06:59:38]Send response to host [06:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178601,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [06:59:38]free response buf [06:59:38]execute_script done [06:59:38]execute_script returns [06:59:38]free content buf [06:59:38]Sock 10.Close socket [06:59:38]Sock 10.Thread stoped [06:59:40]recv_with_timeout no data received [06:59:41]ConnectInit Can't take IP for lk.salyk.kg [06:59:41]CommunicateWithHost connect error [06:59:41]CommunicateWithHost err = -1 [06:59:41]OFD Sender: Server communicate error [06:59:46]OFD Sender: Processing packet 178601 [packets to send 497, broken 496] [06:59:46]ProducePacketName [06:59:46]name=ofd_packets/00178601 [06:59:46]OFD Sender: To server: pG, [06:59:46]CommunicateWithHost lk.salyk.kg:30040 [06:59:46]ConnectInit lk.salyk.kg [06:59:52]Connected sock=10 [06:59:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 D2 1C 06 01 85 90 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 82 AF 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 66 90 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 90 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CF 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 45 00 00 00 00 07 04 06 00 40 90 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 57 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 A9 B9 02 00 35 04 06 00 05 DD D4 17 C2 BC 22 37 8D 7A 35 51 FF 90 [06:59:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F0 7B 47 00 02 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 31 37 37 38 10 04 04 00 A9 B9 02 00 F4 03 04 00 0E DF C7 66 B6 04 01 00 00 0C 81 22 05 07 F1 B0 09 [06:59:52]CommunicateWithHost err = 0 [06:59:52]CheckOFDResponse [06:59:52]1017 (14) - 77093643461234 [06:59:52]1041 (16) - 0000000000871778 [06:59:52]1040 (4) - 178601 [06:59:52]1012 (4) - 23.08.2024 00:59 [06:59:52]1206 (1) - 0 [06:59:52]OFD Sender: Remove packet 178601 [06:59:52]ProducePacketName [06:59:52]name=ofd_packets/00178601 [06:59:52]NVStorageDeleteData [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:02]accept exits with 7 [07:02:02]New connection [07:02:02]New thread 3066748260 created [07:02:02]Thread 3066604900 joined [07:02:02]Waiting for new connection... [07:02:02] Sock 7.Parse request [07:02:02]Sock 7.Check first char [07:02:02]Sock 7.First char is OK [07:02:02]request: POST /json_proto HTTP/1.0 [07:02:02]Method: POST [07:02:02]URL: /json_proto [07:02:02]Method is POST - this is cgi request [07:02:02]url: /json_proto [07:02:02]query_string will be loaded in cgi processing [07:02:02]execute_cgi json_proto POST (null) [07:02:02]execute_cgi path=json_proto method=POST [07:02:02]POST find Content-Length [07:02:02]Host: 172.17.44.131:8080 [07:02:02]Content-Length: 679 [07:02:02]Content-Type: application/json [07:02:02] [07:02:02]POST finish read [07:02:02]Found Content-Length = 679 [07:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:02]execute_script... [07:02: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)294004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:02:02]POST & json_proto [07:02:02]process_json_proto [07:02:02]json parsed OK: [07:02:02]protocol is kg_v1.0 [07:02:02]action value=close_receipt [07:02:02]process_action close_receipt [07:02:02]cmd_close_receipt [07:02:02]MH_GetDate [07:02:02]Write to MH i2c: F0 00 00 73 02 64 [07:02:02]Write i2c OK [07:02:02]MH_I2C_Read... [07:02:02]Read from MH i2c: F0 [07:02:02]MH_I2C_Read... [07:02:02]Read from MH i2c: F0 09 00 [07:02:02]MH_I2C_Read... [07:02:02]Read from MH i2c: F0 09 00 73 02 00 EB 33 C8 66 4F 53 BE 66 7F [07:02:02]GetLastDocTimeStamp 1724396375 [07:02:02]current date 1724396523 [07:02:02]FM_GetShiftState [07:02:02]SAM_PROTO_GetShiftState [07:02:02]wFMCommunicate request_size=4 [07:02:02]MH_SAM_APDU [07:02:02]CAPDU: 80 13 01 00 [07:02:02]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [07:02:02]Write i2c OK [07:02:02]MH_I2C_Read... [07:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:02]Read from MH i2c: E2 [07:02:02]MH_I2C_Read... [07:02:02]Read from MH i2c: E2 0E 00 [07:02:02]MH_I2C_Read... [07:02:02]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CA [07:02:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:02:02]wFMCommunicate OK [07:02:02]SAM_PROTO_GetShiftState done [07:02:02]FM_GetShiftState done [07:02:02]opened in 1724371660 [07:02:02]opened+sec_in_day 1724458060 [07:02:02]quantity*price = 100050 [07:02:02]sum+1 = 100052 [07:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 62 23.08.2024 07:02 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178602 ФПД: 220059400280536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070203&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178602&fm=220059400280536&tin=02508201610067®Number=0000000000092561&sum=100000 [07:02:03]StoreToDocumentArchive [07:02:03]shift 470 fd 178602 [07:02:03]save to /storage/0470/doc_00178602 [07:02:03]save last doc name /storage/0470/doc_00178602 to /storage/kkm_last_doc_name [07:02:03]save OK [07:02:03]Clear old archive folders... [07:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:02:03]tlvbuf is 01D67A00 [07:02:03]SAM_PROTO_ClearQueue [07:02:03]wFMCommunicate request_size=4 [07:02:03]MH_SAM_APDU [07:02:03]CAPDU: 80 09 00 00 [07:02:03]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 [07:02:04]MH_I2C_Read... [07:02:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:04]Read from MH i2c: E2 03 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [07:02:04]RAPDU: 90 00 [07:02:04]wFMCommunicate OK [07:02:04]SAM_PROTO_ClearQueue done [07:02:04]KKMCreateOFDPacket [07:02:04]OFDProtocolAddRootSTLVToBuf [07:02:04]FM_MakeSignedData [07:02:04]FM_MakeSignedData [07:02:04]SAM_PROTO_SignData [07:02:04]wFMCommunicate request_size=4 [07:02:04]MH_SAM_APDU [07:02:04]CAPDU: 80 0D 01 02 [07:02:04]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:04]Read from MH i2c: E2 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [07:02:04]RAPDU: 90 00 [07:02:04]wFMCommunicate OK [07:02:04]wFMCommunicate request_size=255 [07:02:04]MH_SAM_APDU [07:02:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA B9 02 00 35 04 06 00 C8 24 92 62 [07:02:04]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA B9 02 00 35 04 06 00 C8 24 92 62 00 00 31 [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:04]Read from MH i2c: E2 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [07:02:04]RAPDU: 90 00 [07:02:04]wFMCommunicate OK [07:02:04]wFMCommunicate request_size=7 [07:02:04]MH_SAM_APDU [07:02:04]CAPDU: 80 0D 02 02 02 19 D8 [07:02:04]Write to MH i2c: E2 0A 00 84 02 80 0D 02 02 02 00 19 D8 00 00 F5 [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:04]Read from MH i2c: E2 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [07:02:04]RAPDU: 90 00 [07:02:04]wFMCommunicate OK [07:02:04]wFMCommunicate request_size=4 [07:02:04]MH_SAM_APDU [07:02:04]CAPDU: 80 0D 03 02 [07:02:04]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:04]Read from MH i2c: E2 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 0B 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 0B 00 85 02 00 37 BC 24 23 0F 97 99 8F 90 00 0B [07:02:04]RAPDU: 37 BC 24 23 0F 97 99 8F 90 00 [07:02:04]wFMCommunicate OK [07:02:04]SAM_PROTO_SignData done [07:02:04]FM_MakeSignedData done [07:02:04]CreateOFDProtocolMessage [07:02:04]wFMCommunicate request_size=4 [07:02:04]MH_SAM_APDU [07:02:04]CAPDU: 80 11 00 00 [07:02:04]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:04]Read from MH i2c: E2 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 17 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5B [07:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:02:04]wFMCommunicate OK [07:02:04]CreateOFDProtocolMessage done [07:02:04]OFDSenderStorePacket 178602 [07:02:04]StoreOFDPacket docnum=178602 [07:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 63 C3 04 01 81 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA B9 02 00 35 04 06 00 C8 24 92 62 19 D8 37 BC 24 23 0F 97 99 8F [07:02:04]CheckFolder [07:02:04]dirname=/storage/ofd_packets [07:02:04]CheckFolder done [07:02:04]ProducePacketName [07:02:04]name=ofd_packets/00178602 [07:02:04]NVStorageSaveData ofd_packets/00178602 [07:02:04]File name is /storage/ofd_packets/00178602 [07:02:04]Write 298 bytes [07:02:04]NVStorageSaveData done [07:02:04]OFDSenderStorePacket done [07:02:04]KKMCreateOFDPacket done [07:02:04]NVStorageSaveData kkm_last_timestamp [07:02:04]File name is /storage/kkm_last_timestamp [07:02:04]Write 4 bytes [07:02:04]NVStorageSaveData done [07:02:04]ExternCall_PrintAddStr [07:02:04]wPrintStart [07:02:04]Write to MH i2c: 01 00 00 87 02 89 [07:02:04]Write i2c OK [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: 01 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: 01 07 00 [07:02:04]MH_I2C_Read... [07:02:04]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [07:02:04]RasterBufferAndPrint [07:02:04]line Счет N : (1)294004 [07:02:04]line ИНН: 02508201610067 [07:02:04]line Контрольно-Кассовый Чек [07:02:04]line ПРОДАЖА [07:02:04]line ТРК (МРК, ГНК) : 21 [07:02:04]line Товар: 2710194800 [07:02:04]line ДТ-К-5 [07:02:04]line 13.130 * 76.20 [07:02:04]line = 1000.51 [07:02:04]line НДС 12% НСП 1% [07:02:04]line > о реализуемом товаре [07:02:04]line ОКРУГЛЕНИЕ: -0.51 [07:02:04]line ИТОГО: 1000.00 [07:02:04]line Внесено: 1000.00 [07:02:04]line СДАЧА: 0.00 [07:02:04]line НСП 1% : 8.85 [07:02:04]line НДС 12% : 106.25 [07:02:04]line Наличными: 1000.00 [07:02:04]line Безнал.: 0.00 [07:02:04]line Место: АЗС № 130 "Партнер Нефть" [07:02:04]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:02:04]line СНО: Общий режим [07:02:04]line Чек 62 23.08.2024 07:02 [07:02:04]line Смена: 470 ФФД: 1.0 [07:02:04]line ЗНМ: 0300000071 [07:02:04]line РНМ: 0000000000092561 [07:02:04]line Версия ККМ: 001 [07:02:04]line ФМ: 0000000000871778 [07:02:04]line ФД: 178602 [07:02:04]line ФПД: 220059400280536 [07:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070203&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178602&fm=220059400280536&tin=02508201610067®Number=0000000000092561&sum=100000 [07:02:04]OFD Sender: Processing packet 178602 [packets to send 497, broken 496] [07:02:04]ProducePacketName [07:02:04]name=ofd_packets/00178602 [07:02:04]OFD Sender: To server: pG, [07:02:04]CommunicateWithHost lk.salyk.kg:30040 [07:02:04]ConnectInit lk.salyk.kg [07:02:04]written 0, free lines is 4095 [07:02:05]Write to MH i2c: 01 00 00 B2 02 B4 [07:02:05]Write i2c OK [07:02:05]MH_I2C_Read... [07:02:05]Read from MH i2c: 01 [07:02:05]MH_I2C_Read... [07:02:05]Read from MH i2c: 01 07 00 [07:02:05]MH_I2C_Read... [07:02:05]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 CA 0C 91 [07:02:05]RasterBufferAndPrint [07:02:05]line [07:02:05]line [07:02:05]line [07:02:05]line [07:02:05]line [07:02:05]written 0, free lines is 3281 [07:02:05]MH_Cut [07:02:05]Write to MH i2c: D1 01 00 B9 02 01 8D [07:02:05]Write i2c OK [07:02:05]MH_I2C_Read... [07:02:05]Read from MH i2c: D1 [07:02:05]MH_I2C_Read... [07:02:05]Read from MH i2c: D1 01 00 [07:02:05]MH_I2C_Read... [07:02:05]Read from MH i2c: D1 01 00 B9 02 00 8C [07:02:05]Write to MH i2c: 01 00 00 BA 02 BC [07:02:05]Write i2c OK [07:02:05]MH_I2C_Read... [07:02:06]*** Cut start [07:02:06]*** Partial cut [07:02:06]*** CUTSNS_PIN = 1 [07:02:06]*** CUTSNS_PIN = 0 [07:02:06]*** Brake cut motor [07:02:06]Connected sock=11 [07:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 63 C3 04 01 81 3D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 EB 33 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AA B9 02 00 35 04 06 00 C8 24 92 62 19 D8 37 BC 24 23 0F 97 99 8F [07:02:06]Read from MH i2c: 01 [07:02:06]MH_I2C_Read... [07:02:06]*** Stop cut motor [07:02:06]*** Cut end [07:02:06]Read from MH i2c: 01 07 00 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [07:02:06]process_action close_receipt done [07:02:06]requested_data is exist [07:02:06]produce_requested_data [07:02:06]requested_item fm.sn is exist - process it [07:02:06]wFMCommunicate request_size=4 [07:02:06]MH_SAM_APDU [07:02:06]CAPDU: 80 11 00 00 [07:02:06]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [07:02:06]Write i2c OK [07:02:06]MH_I2C_Read... [07:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:06]Read from MH i2c: E2 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: E2 17 00 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 90 [07:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:02:06]wFMCommunicate OK [07:02:06]requested_item fd.num is exist - process it [07:02:06]SAM_PROTO_GetFieldsCounters [07:02:06]wFMCommunicate request_size=4 [07:02:06]MH_SAM_APDU [07:02:06]CAPDU: 80 13 00 00 [07:02:06]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [07:02:06]Write i2c OK [07:02:06]MH_I2C_Read... [07:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:06]Read from MH i2c: E2 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: E2 62 00 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AA B9 02 00 0E 04 04 00 D6 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 55 [07:02: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AA B9 02 00 0E 04 04 00 D6 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 [07:02:06]wFMCommunicate OK [07:02:06]SAM_PROTO_GetFieldsCounters done [07:02:06]requested_item shift.num is exist - process it [07:02:06]requested_item shift.opened is exist - process it [07:02:06]req_shift_opened [07:02:06]FM_GetShiftState [07:02:06]SAM_PROTO_GetShiftState [07:02:06]wFMCommunicate request_size=4 [07:02:06]MH_SAM_APDU [07:02:06]CAPDU: 80 13 01 00 [07:02:06]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [07:02:06]Write i2c OK [07:02:06]MH_I2C_Read... [07:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:06]Read from MH i2c: E2 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: E2 0E 00 [07:02:06]MH_I2C_Read... [07:02:06]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 13 [07:02:06]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:02:06]wFMCommunicate OK [07:02:06]SAM_PROTO_GetShiftState done [07:02:06]FM_GetShiftState done [07:02:06]req_shift_opened done [07:02:06]requested_item shift.open_date is exist - process it [07:02:06]req_shift_open_date [07:02:06]req_shift_open_date done [07:02:06]produce_requested_data done [07:02:06]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178602,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:02:06]process_action_free close_receipt [07:02:06]json_value_free [07:02:06]json_value_free done [07:02:06]process_json_proto returns [07:02:06]Send response to host [07:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178602,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:02:06]free response buf [07:02:06]execute_script done [07:02:06]execute_script returns [07:02:06]free content buf [07:02:06]Sock 7.Close socket [07:02:06]Sock 7.Thread stoped [07:02:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 63 0F 47 00 8D 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 31 37 37 38 10 04 04 00 AA B9 02 00 F4 03 04 00 95 DF C7 66 B6 04 01 00 00 12 F0 65 4B 20 96 BC 04 [07:02:06]CommunicateWithHost err = 0 [07:02:06]CheckOFDResponse [07:02:06]1017 (14) - 77093643461234 [07:02:06]1041 (16) - 0000000000871778 [07:02:06]1040 (4) - 178602 [07:02:06]1012 (4) - 23.08.2024 01:02 [07:02:06]1206 (1) - 0 [07:02:06]OFD Sender: Remove packet 178602 [07:02:06]ProducePacketName [07:02:06]name=ofd_packets/00178602 [07:02:06]NVStorageDeleteData [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:26]recv_with_timeout no data received [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:46]accept exits with 9 [07:02:46]New connection [07:02:46]New thread 3066604900 created [07:02:46]Thread 3066748260 joined [07:02:46]Waiting for new connection... [07:02:46] Sock 9.Parse request [07:02:46]Sock 9.Check first char [07:02:46]Sock 9.First char is OK [07:02:46]request: POST /json_proto HTTP/1.0 [07:02:46]Method: POST [07:02:46]URL: /json_proto [07:02:46]Method is POST - this is cgi request [07:02:46]url: /json_proto [07:02:46]query_string will be loaded in cgi processing [07:02:46]execute_cgi json_proto POST (null) [07:02:46]execute_cgi path=json_proto method=POST [07:02:46]POST find Content-Length [07:02:46]Host: 172.17.44.131:8080 [07:02:46]Content-Length: 682 [07:02:46]Content-Type: application/json [07:02:46] [07:02:46]POST finish read [07:02:46]Found Content-Length = 682 [07:02:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294006", "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" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [07:02:46]execute_script... [07:02: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)294006", "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" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [07:02:46]POST & json_proto [07:02:46]process_json_proto [07:02:46]json parsed OK: [07:02:46]protocol is kg_v1.0 [07:02:46]action value=close_receipt [07:02:46]process_action close_receipt [07:02:46]cmd_close_receipt [07:02:46]MH_GetDate [07:02:46]Write to MH i2c: F0 00 00 BE 02 AF [07:02:46]Write i2c OK [07:02:46]MH_I2C_Read... [07:02:46]Read from MH i2c: F0 [07:02:46]MH_I2C_Read... [07:02:46]Read from MH i2c: F0 09 00 [07:02:46]MH_I2C_Read... [07:02:46]Read from MH i2c: F0 09 00 BE 02 00 17 34 C8 66 4F 53 BE 66 F7 [07:02:46]GetLastDocTimeStamp 1724396523 [07:02:46]current date 1724396567 [07:02:46]FM_GetShiftState [07:02:46]SAM_PROTO_GetShiftState [07:02:46]wFMCommunicate request_size=4 [07:02:46]MH_SAM_APDU [07:02:46]CAPDU: 80 13 01 00 [07:02:46]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [07:02:46]Write i2c OK [07:02:46]MH_I2C_Read... [07:02:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:46]Read from MH i2c: E2 [07:02:46]MH_I2C_Read... [07:02:46]Read from MH i2c: E2 0E 00 [07:02:46]MH_I2C_Read... [07:02:46]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 15 [07:02:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:02:46]wFMCommunicate OK [07:02:46]SAM_PROTO_GetShiftState done [07:02:46]FM_GetShiftState done [07:02:46]opened in 1724371660 [07:02:46]opened+sec_in_day 1724458060 [07:02:46]quantity*price = 120055 [07:02:46]sum+1 = 120057 [07:02:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 63 23.08.2024 07:02 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178603 ФПД: 140562059660260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070247&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178603&fm=140562059660260&tin=02508201610067®Number=0000000000092561&sum=120000 [07:02:47]StoreToDocumentArchive [07:02:47]shift 470 fd 178603 [07:02:47]save to /storage/0470/doc_00178603 [07:02:47]save last doc name /storage/0470/doc_00178603 to /storage/kkm_last_doc_name [07:02:47]save OK [07:02:47]Clear old archive folders... [07:02:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:02:47]tlvbuf is 01D86E40 [07:02:47]SAM_PROTO_ClearQueue [07:02:47]wFMCommunicate request_size=4 [07:02:47]MH_SAM_APDU [07:02:47]CAPDU: 80 09 00 00 [07:02:47]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:02:47]Read from MH i2c: E2 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [07:02:47]RAPDU: 90 00 [07:02:47]wFMCommunicate OK [07:02:47]SAM_PROTO_ClearQueue done [07:02:47]KKMCreateOFDPacket [07:02:47]OFDProtocolAddRootSTLVToBuf [07:02:47]FM_MakeSignedData [07:02:47]FM_MakeSignedData [07:02:47]SAM_PROTO_SignData [07:02:47]wFMCommunicate request_size=4 [07:02:47]MH_SAM_APDU [07:02:47]CAPDU: 80 0D 01 02 [07:02:47]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:02:47]Read from MH i2c: E2 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [07:02:47]RAPDU: 90 00 [07:02:47]wFMCommunicate OK [07:02:47]wFMCommunicate request_size=255 [07:02:47]MH_SAM_APDU [07:02: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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 3F 00 00 00 F4 03 04 00 17 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB B9 02 00 35 04 06 00 7F [07:02:47]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 3F 00 00 00 F4 03 04 00 17 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB B9 02 00 35 04 06 00 7F 00 00 78 [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]OFD Sender: No OFD packet to send [07:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:47]Read from MH i2c: E2 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [07:02:47]RAPDU: 90 00 [07:02:47]wFMCommunicate OK [07:02:47]wFMCommunicate request_size=10 [07:02:47]MH_SAM_APDU [07:02:47]CAPDU: 80 0D 02 02 05 D7 27 A2 8B E4 [07:02:47]Write to MH i2c: E2 0D 00 CF 02 80 0D 02 02 05 00 D7 27 A2 8B E4 00 00 64 [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:02:47]Read from MH i2c: E2 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [07:02:47]RAPDU: 90 00 [07:02:47]wFMCommunicate OK [07:02:47]wFMCommunicate request_size=4 [07:02:47]MH_SAM_APDU [07:02:47]CAPDU: 80 0D 03 02 [07:02:47]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:02:47]Read from MH i2c: E2 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 0B 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 0B 00 D0 02 00 10 66 14 A4 E1 0D 0D 9A 90 00 11 [07:02:47]RAPDU: 10 66 14 A4 E1 0D 0D 9A 90 00 [07:02:47]wFMCommunicate OK [07:02:47]SAM_PROTO_SignData done [07:02:47]FM_MakeSignedData done [07:02:47]CreateOFDProtocolMessage [07:02:47]wFMCommunicate request_size=4 [07:02:47]MH_SAM_APDU [07:02:47]CAPDU: 80 11 00 00 [07:02:47]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:47]Read from MH i2c: E2 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 17 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A6 [07:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:02:47]wFMCommunicate OK [07:02:47]CreateOFDProtocolMessage done [07:02:47]OFDSenderStorePacket 178603 [07:02:47]StoreOFDPacket docnum=178603 [07:02:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 CD 49 07 01 26 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 3F 00 00 00 F4 03 04 00 17 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB B9 02 00 35 04 06 00 7F D7 27 A2 8B E4 10 66 14 A4 E1 0D 0D 9A [07:02:47]CheckFolder [07:02:47]dirname=/storage/ofd_packets [07:02:47]CheckFolder done [07:02:47]ProducePacketName [07:02:47]name=ofd_packets/00178603 [07:02:47]NVStorageSaveData ofd_packets/00178603 [07:02:47]File name is /storage/ofd_packets/00178603 [07:02:47]Write 301 bytes [07:02:47]NVStorageSaveData done [07:02:47]OFDSenderStorePacket done [07:02:47]KKMCreateOFDPacket done [07:02:47]NVStorageSaveData kkm_last_timestamp [07:02:47]File name is /storage/kkm_last_timestamp [07:02:47]Write 4 bytes [07:02:47]NVStorageSaveData done [07:02:47]ExternCall_PrintAddStr [07:02:47]wPrintStart [07:02:47]Write to MH i2c: 01 00 00 D2 02 D4 [07:02:47]Write i2c OK [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: 01 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: 01 07 00 [07:02:47]MH_I2C_Read... [07:02:47]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [07:02:47]RasterBufferAndPrint [07:02:47]line Счет N : (1)294006 [07:02:47]line ИНН: 02508201610067 [07:02:47]line Контрольно-Кассовый Чек [07:02:47]line ПРОДАЖА [07:02:47]line ТРК (МРК, ГНК) : 63 [07:02:47]line Товар: 2710124500 [07:02:47]line Аи-95-К-5 [07:02:47]line 16.180 * 74.20 [07:02:47]line = 1200.56 [07:02:47]line НДС 12% НСП 1% [07:02:47]line > о реализуемом товаре [07:02:47]line ОКРУГЛЕНИЕ: -0.56 [07:02:47]line ИТОГО: 1200.00 [07:02:47]line Внесено: 1200.00 [07:02:47]line СДАЧА: 0.00 [07:02:47]line НСП 1% : 10.62 [07:02:47]line НДС 12% : 127.49 [07:02:47]line Наличными: 1200.00 [07:02:47]line Безнал.: 0.00 [07:02:47]line Место: АЗС № 130 "Партнер Нефть" [07:02:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:02:47]line СНО: Общий режим [07:02:47]line Чек 63 23.08.2024 07:02 [07:02:47]line Смена: 470 ФФД: 1.0 [07:02:47]line ЗНМ: 0300000071 [07:02:47]line РНМ: 0000000000092561 [07:02:47]line Версия ККМ: 001 [07:02:47]line ФМ: 0000000000871778 [07:02:47]line ФД: 178603 [07:02:47]line ФПД: 140562059660260 [07:02:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070247&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178603&fm=140562059660260&tin=02508201610067®Number=0000000000092561&sum=120000 [07:02:47]written 0, free lines is 4095 [07:02:47]OFD Sender: Processing packet 178603 [packets to send 497, broken 496] [07:02:47]ProducePacketName [07:02:47]name=ofd_packets/00178603 [07:02:47]OFD Sender: To server: pG, [07:02:47]CommunicateWithHost lk.salyk.kg:30040 [07:02:47]ConnectInit lk.salyk.kg [07:02:48]Write to MH i2c: 01 00 00 FD 02 FF [07:02:48]Write i2c OK [07:02:48]MH_I2C_Read... [07:02:48]Read from MH i2c: 01 [07:02:48]MH_I2C_Read... [07:02:48]Read from MH i2c: 01 07 00 [07:02:48]MH_I2C_Read... [07:02:48]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 CB 0C DD [07:02:48]RasterBufferAndPrint [07:02:48]line [07:02:48]line [07:02:48]line [07:02:48]line [07:02:48]line [07:02:48]written 0, free lines is 3282 [07:02:48]MH_Cut [07:02:48]Write to MH i2c: D1 01 00 04 03 01 D9 [07:02:48]Write i2c OK [07:02:48]MH_I2C_Read... [07:02:48]Read from MH i2c: D1 [07:02:48]MH_I2C_Read... [07:02:48]Read from MH i2c: D1 01 00 [07:02:48]MH_I2C_Read... [07:02:48]Read from MH i2c: D1 01 00 04 03 00 D8 [07:02:48]Write to MH i2c: 01 00 00 05 03 08 [07:02:48]Write i2c OK [07:02:48]MH_I2C_Read... [07:02:49]*** Cut start [07:02:49]*** Partial cut [07:02:49]*** CUTSNS_PIN = 1 [07:02:49]*** CUTSNS_PIN = 0 [07:02:49]*** Brake cut motor [07:02:49]Read from MH i2c: 01 [07:02:49]MH_I2C_Read... [07:02:49]*** Stop cut motor [07:02:49]*** Cut end [07:02:49]Read from MH i2c: 01 07 00 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [07:02:49]process_action close_receipt done [07:02:49]requested_data is exist [07:02:49]produce_requested_data [07:02:49]requested_item fm.sn is exist - process it [07:02:49]wFMCommunicate request_size=4 [07:02:49]MH_SAM_APDU [07:02:49]CAPDU: 80 11 00 00 [07:02:49]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [07:02:49]Write i2c OK [07:02:49]MH_I2C_Read... [07:02:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:49]Read from MH i2c: E2 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 17 00 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DC [07:02:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:02:49]wFMCommunicate OK [07:02:49]requested_item fd.num is exist - process it [07:02:49]SAM_PROTO_GetFieldsCounters [07:02:49]wFMCommunicate request_size=4 [07:02:49]MH_SAM_APDU [07:02:49]CAPDU: 80 13 00 00 [07:02:49]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [07:02:49]Write i2c OK [07:02:49]MH_I2C_Read... [07:02:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:49]Read from MH i2c: E2 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 62 00 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AB B9 02 00 0E 04 04 00 D6 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 A5 [07:02: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AB B9 02 00 0E 04 04 00 D6 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 [07:02:49]wFMCommunicate OK [07:02:49]SAM_PROTO_GetFieldsCounters done [07:02:49]requested_item shift.num is exist - process it [07:02:49]requested_item shift.opened is exist - process it [07:02:49]req_shift_opened [07:02:49]FM_GetShiftState [07:02:49]SAM_PROTO_GetShiftState [07:02:49]wFMCommunicate request_size=4 [07:02:49]MH_SAM_APDU [07:02:49]CAPDU: 80 13 01 00 [07:02:49]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [07:02:49]Write i2c OK [07:02:49]MH_I2C_Read... [07:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:49]Read from MH i2c: E2 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 0E 00 [07:02:49]MH_I2C_Read... [07:02:49]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5F [07:02:49]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:02:49]wFMCommunicate OK [07:02:49]SAM_PROTO_GetShiftState done [07:02:49]FM_GetShiftState done [07:02:49]req_shift_opened done [07:02:49]requested_item shift.open_date is exist - process it [07:02:49]req_shift_open_date [07:02:49]req_shift_open_date done [07:02:49]produce_requested_data done [07:02:49]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178603,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:02:49]process_action_free close_receipt [07:02:49]json_value_free [07:02:49]json_value_free done [07:02:49]process_json_proto returns [07:02:49]Send response to host [07:02:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178603,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:02:49]free response buf [07:02:49]execute_script done [07:02:49]execute_script returns [07:02:49]free content buf [07:02:49]Sock 9.Close socket [07:02:49]Sock 9.Thread stoped [07:02:52]recv_with_timeout no data received [07:02:52]ConnectInit Can't take IP for lk.salyk.kg [07:02:52]CommunicateWithHost connect error [07:02:52]CommunicateWithHost err = -1 [07:02:52]OFD Sender: Server communicate error [07:02:57]OFD Sender: Processing packet 178603 [packets to send 497, broken 496] [07:02:57]ProducePacketName [07:02:57]name=ofd_packets/00178603 [07:02:57]OFD Sender: To server: pG, [07:02:57]CommunicateWithHost lk.salyk.kg:30040 [07:02:57]ConnectInit lk.salyk.kg [07:03:02]ConnectInit Can't take IP for lk.salyk.kg [07:03:02]CommunicateWithHost connect error [07:03:02]CommunicateWithHost err = -1 [07:03:02]OFD Sender: Server communicate error [07:03:02]recv_with_timeout no data received [07:03:07]OFD Sender: Processing packet 178603 [packets to send 497, broken 496] [07:03:07]ProducePacketName [07:03:07]name=ofd_packets/00178603 [07:03:07]OFD Sender: To server: pG, [07:03:07]CommunicateWithHost lk.salyk.kg:30040 [07:03:07]ConnectInit lk.salyk.kg [07:03:20]accept exits with 7 [07:03:20]New connection [07:03:20]New thread 3066748260 created [07:03:20]Thread 3066604900 joined [07:03:20]Waiting for new connection... [07:03:20] Sock 7.Parse request [07:03:20]Sock 7.Check first char [07:03:20]Sock 7.First char is OK [07:03:20]request: POST /json_proto HTTP/1.0 [07:03:20]Method: POST [07:03:20]URL: /json_proto [07:03:20]Method is POST - this is cgi request [07:03:20]url: /json_proto [07:03:20]query_string will be loaded in cgi processing [07:03:20]execute_cgi json_proto POST (null) [07:03:20]execute_cgi path=json_proto method=POST [07:03:20]POST find Content-Length [07:03:20]Host: 172.17.44.131:8080 [07:03:20]Content-Length: 678 [07:03:20]Content-Type: application/json [07:03:20] [07:03:20]POST finish read [07:03:20]Found Content-Length = 678 [07:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294007", "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" : 74.20, "quantity" : 11.600, "sum" : 860.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:20]execute_script... [07:03: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)294007", "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" : 74.20, "quantity" : 11.600, "sum" : 860.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 860.00, "total" : 860.00, "payments": [ { "type": 0, "sum" : 860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:20]POST & json_proto [07:03:20]process_json_proto [07:03:20]json parsed OK: [07:03:20]protocol is kg_v1.0 [07:03:20]action value=close_receipt [07:03:20]process_action close_receipt [07:03:20]cmd_close_receipt [07:03:20]MH_GetDate [07:03:20]Write to MH i2c: F0 00 00 09 03 FB [07:03:20]Write i2c OK [07:03:20]MH_I2C_Read... [07:03:20]Read from MH i2c: F0 [07:03:20]MH_I2C_Read... [07:03:20]Read from MH i2c: F0 09 00 [07:03:20]MH_I2C_Read... [07:03:20]Read from MH i2c: F0 09 00 09 03 00 39 34 C8 66 4F 53 BE 66 65 [07:03:20]GetLastDocTimeStamp 1724396567 [07:03:20]current date 1724396601 [07:03:20]FM_GetShiftState [07:03:20]SAM_PROTO_GetShiftState [07:03:20]wFMCommunicate request_size=4 [07:03:20]MH_SAM_APDU [07:03:20]CAPDU: 80 13 01 00 [07:03:20]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [07:03:20]Write i2c OK [07:03:20]MH_I2C_Read... [07:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:20]Read from MH i2c: E2 [07:03:20]MH_I2C_Read... [07:03:20]Read from MH i2c: E2 0E 00 [07:03:20]MH_I2C_Read... [07:03:20]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 61 [07:03:20]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:03:20]wFMCommunicate OK [07:03:20]SAM_PROTO_GetShiftState done [07:03:20]FM_GetShiftState done [07:03:20]opened in 1724371660 [07:03:20]opened+sec_in_day 1724458060 [07:03:20]quantity*price = 86072 [07:03:20]sum+1 = 86073 [07:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 860.00 Внесено: 860.00 СДАЧА: 0.00 НСП 1% : 7.62 НДС 12% : 91.40 Наличными: 860.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 64 23.08.2024 07:03 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178604 ФПД: 278105917370064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070321&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178604&fm=278105917370064&tin=02508201610067®Number=0000000000092561&sum=86000 [07:03:22]StoreToDocumentArchive [07:03:22]shift 470 fd 178604 [07:03:22]save to /storage/0470/doc_00178604 [07:03:22]save last doc name /storage/0470/doc_00178604 to /storage/kkm_last_doc_name [07:03:22]save OK [07:03:22]Clear old archive folders... [07:03:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:03:22]tlvbuf is 01D01AF0 [07:03:22]SAM_PROTO_ClearQueue [07:03:22]wFMCommunicate request_size=4 [07:03:22]MH_SAM_APDU [07:03:22]CAPDU: 80 09 00 00 [07:03:22]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:22]Read from MH i2c: E2 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [07:03:22]RAPDU: 90 00 [07:03:22]wFMCommunicate OK [07:03:22]SAM_PROTO_ClearQueue done [07:03:22]KKMCreateOFDPacket [07:03:22]OFDProtocolAddRootSTLVToBuf [07:03:22]FM_MakeSignedData [07:03:22]FM_MakeSignedData [07:03:22]SAM_PROTO_SignData [07:03:22]wFMCommunicate request_size=4 [07:03:22]MH_SAM_APDU [07:03:22]CAPDU: 80 0D 01 02 [07:03:22]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:22]Read from MH i2c: E2 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [07:03:22]RAPDU: 90 00 [07:03:22]wFMCommunicate OK [07:03:22]wFMCommunicate request_size=255 [07:03:22]MH_SAM_APDU [07:03: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 39 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC B9 02 00 35 04 06 00 FC [07:03:22]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 39 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC B9 02 00 35 04 06 00 FC 00 00 2C [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:22]Read from MH i2c: E2 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [07:03:22]RAPDU: 90 00 [07:03:22]wFMCommunicate OK [07:03:22]wFMCommunicate request_size=10 [07:03:22]MH_SAM_APDU [07:03:22]CAPDU: 80 0D 02 02 05 EF 94 6A 2E D0 [07:03:22]Write to MH i2c: E2 0D 00 1A 03 80 0D 02 02 05 00 EF 94 6A 2E D0 00 00 8C [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:22]Read from MH i2c: E2 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [07:03:22]RAPDU: 90 00 [07:03:22]wFMCommunicate OK [07:03:22]wFMCommunicate request_size=4 [07:03:22]MH_SAM_APDU [07:03:22]CAPDU: 80 0D 03 02 [07:03:22]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:22]Read from MH i2c: E2 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 0B 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 0B 00 1B 03 00 25 8B 00 5F B3 D8 0D 87 90 00 C8 [07:03:22]RAPDU: 25 8B 00 5F B3 D8 0D 87 90 00 [07:03:22]wFMCommunicate OK [07:03:22]SAM_PROTO_SignData done [07:03:22]FM_MakeSignedData done [07:03:22]CreateOFDProtocolMessage [07:03:22]wFMCommunicate request_size=4 [07:03:22]MH_SAM_APDU [07:03:22]CAPDU: 80 11 00 00 [07:03:22]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:22]Read from MH i2c: E2 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 17 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F2 [07:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:03:22]wFMCommunicate OK [07:03:22]CreateOFDProtocolMessage done [07:03:22]OFDSenderStorePacket 178604 [07:03:22]StoreOFDPacket docnum=178604 [07:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 CD 15 07 01 C8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 39 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC B9 02 00 35 04 06 00 FC EF 94 6A 2E D0 25 8B 00 5F B3 D8 0D 87 [07:03:22]CheckFolder [07:03:22]dirname=/storage/ofd_packets [07:03:22]CheckFolder done [07:03:22]ProducePacketName [07:03:22]name=ofd_packets/00178604 [07:03:22]NVStorageSaveData ofd_packets/00178604 [07:03:22]File name is /storage/ofd_packets/00178604 [07:03:22]Write 301 bytes [07:03:22]NVStorageSaveData done [07:03:22]OFDSenderStorePacket done [07:03:22]KKMCreateOFDPacket done [07:03:22]NVStorageSaveData kkm_last_timestamp [07:03:22]File name is /storage/kkm_last_timestamp [07:03:22]Write 4 bytes [07:03:22]NVStorageSaveData done [07:03:22]ExternCall_PrintAddStr [07:03:22]wPrintStart [07:03:22]Write to MH i2c: 01 00 00 1D 03 20 [07:03:22]Write i2c OK [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: 01 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: 01 07 00 [07:03:22]MH_I2C_Read... [07:03:22]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [07:03:22]RasterBufferAndPrint [07:03:22]line Счет N : (1)294007 [07:03:22]line ИНН: 02508201610067 [07:03:22]line Контрольно-Кассовый Чек [07:03:22]line ПРОДАЖА [07:03:22]line ТРК (МРК, ГНК) : 53 [07:03:22]line Товар: 2710124500 [07:03:22]line Аи-95-К-5 [07:03:22]line 11.600 * 74.20 [07:03:22]line = 860.72 [07:03:22]line НДС 12% НСП 1% [07:03:22]line > о реализуемом товаре [07:03:22]line ОКРУГЛЕНИЕ: -0.72 [07:03:22]line ИТОГО: 860.00 [07:03:22]line Внесено: 860.00 [07:03:22]line СДАЧА: 0.00 [07:03:22]line НСП 1% : 7.62 [07:03:22]line НДС 12% : 91.40 [07:03:22]line Наличными: 860.00 [07:03:22]line Безнал.: 0.00 [07:03:22]line Место: АЗС № 130 "Партнер Нефть" [07:03:22]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:03:22]line СНО: Общий режим [07:03:22]line Чек 64 23.08.2024 07:03 [07:03:22]line Смена: 470 ФФД: 1.0 [07:03:22]line ЗНМ: 0300000071 [07:03:22]line РНМ: 0000000000092561 [07:03:22]line Версия ККМ: 001 [07:03:22]line ФМ: 0000000000871778 [07:03:22]line ФД: 178604 [07:03:22]line ФПД: 278105917370064 [07:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070321&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178604&fm=278105917370064&tin=02508201610067®Number=0000000000092561&sum=86000 [07:03:22]written 0, free lines is 4095 [07:03:23]Write to MH i2c: 01 00 00 48 03 4B [07:03:23]Write i2c OK [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: 01 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: 01 07 00 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 C7 0C 25 [07:03:23]RasterBufferAndPrint [07:03:23]line [07:03:23]line [07:03:23]line [07:03:23]line [07:03:23]line [07:03:23]written 0, free lines is 3277 [07:03:23]MH_Cut [07:03:23]Write to MH i2c: D1 01 00 4F 03 01 24 [07:03:23]Write i2c OK [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: D1 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: D1 01 00 [07:03:23]MH_I2C_Read... [07:03:23]Read from MH i2c: D1 01 00 4F 03 00 23 [07:03:23]Write to MH i2c: 01 00 00 50 03 53 [07:03:23]Write i2c OK [07:03:23]MH_I2C_Read... [07:03:23]*** Cut start [07:03:23]*** Partial cut [07:03:23]*** CUTSNS_PIN = 1 [07:03:23]recv_with_timeout no data received [07:03:23]*** CUTSNS_PIN = 0 [07:03:24]*** Brake cut motor [07:03:24]Read from MH i2c: 01 [07:03:24]MH_I2C_Read... [07:03:24]*** Stop cut motor [07:03:24]*** Cut end [07:03:24]Read from MH i2c: 01 07 00 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [07:03:24]process_action close_receipt done [07:03:24]requested_data is exist [07:03:24]produce_requested_data [07:03:24]requested_item fm.sn is exist - process it [07:03:24]wFMCommunicate request_size=4 [07:03:24]MH_SAM_APDU [07:03:24]CAPDU: 80 11 00 00 [07:03:24]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [07:03:24]Write i2c OK [07:03:24]MH_I2C_Read... [07:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:24]Read from MH i2c: E2 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: E2 17 00 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 27 [07:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:03:24]wFMCommunicate OK [07:03:24]requested_item fd.num is exist - process it [07:03:24]SAM_PROTO_GetFieldsCounters [07:03:24]wFMCommunicate request_size=4 [07:03:24]MH_SAM_APDU [07:03:24]CAPDU: 80 13 00 00 [07:03:24]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [07:03:24]Write i2c OK [07:03:24]MH_I2C_Read... [07:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:24]Read from MH i2c: E2 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: E2 62 00 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AC B9 02 00 0E 04 04 00 D6 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 F4 [07:03: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AC B9 02 00 0E 04 04 00 D6 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 [07:03:24]wFMCommunicate OK [07:03:24]SAM_PROTO_GetFieldsCounters done [07:03:24]requested_item shift.num is exist - process it [07:03:24]requested_item shift.opened is exist - process it [07:03:24]req_shift_opened [07:03:24]FM_GetShiftState [07:03:24]SAM_PROTO_GetShiftState [07:03:24]wFMCommunicate request_size=4 [07:03:24]MH_SAM_APDU [07:03:24]CAPDU: 80 13 01 00 [07:03:24]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [07:03:24]Write i2c OK [07:03:24]MH_I2C_Read... [07:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:24]Read from MH i2c: E2 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: E2 0E 00 [07:03:24]MH_I2C_Read... [07:03:24]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AA [07:03:24]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:03:24]wFMCommunicate OK [07:03:24]SAM_PROTO_GetShiftState done [07:03:24]FM_GetShiftState done [07:03:24]req_shift_opened done [07:03:24]requested_item shift.open_date is exist - process it [07:03:24]req_shift_open_date [07:03:24]req_shift_open_date done [07:03:24]produce_requested_data done [07:03:24]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178604,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:03:24]process_action_free close_receipt [07:03:24]json_value_free [07:03:24]json_value_free done [07:03:24]process_json_proto returns [07:03:24]Send response to host [07:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178604,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:03:24]free response buf [07:03:24]execute_script done [07:03:24]execute_script returns [07:03:24]free content buf [07:03:24]Sock 7.Close socket [07:03:24]Sock 7.Thread stoped [07:03:32]accept exits with 11 [07:03:32]New connection [07:03:32]New thread 3066604900 created [07:03:32]Thread 3066748260 joined [07:03:32]Waiting for new connection... [07:03:32] Sock 11.Parse request [07:03:32]Sock 11.Check first char [07:03:32]Sock 11.First char is OK [07:03:32]request: POST /json_proto HTTP/1.0 [07:03:32]Method: POST [07:03:32]URL: /json_proto [07:03:32]Method is POST - this is cgi request [07:03:32]url: /json_proto [07:03:32]query_string will be loaded in cgi processing [07:03:32]execute_cgi json_proto POST (null) [07:03:32]execute_cgi path=json_proto method=POST [07:03:32]POST find Content-Length [07:03:32]Host: 172.17.44.131:8080 [07:03:32]Content-Length: 679 [07:03:32]Content-Type: application/json [07:03:32] [07:03:32]POST finish read [07:03:32]Found Content-Length = 679 [07:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294005", "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" : 67.80, "quantity" : 13.720, "sum" : 930.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:32]execute_script... [07:03: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)294005", "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" : 67.80, "quantity" : 13.720, "sum" : 930.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 930.00, "payments": [ { "type": 0, "sum" : 930.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:03:32]POST & json_proto [07:03:32]process_json_proto [07:03:32]json parsed OK: [07:03:32]protocol is kg_v1.0 [07:03:32]action value=close_receipt [07:03:32]process_action close_receipt [07:03:32]cmd_close_receipt [07:03:32]MH_GetDate [07:03:32]Write to MH i2c: F0 00 00 54 03 46 [07:03:32]Write i2c OK [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: F0 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: F0 09 00 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: F0 09 00 54 03 00 45 34 C8 66 4F 53 BE 66 BC [07:03:32]GetLastDocTimeStamp 1724396601 [07:03:32]current date 1724396613 [07:03:32]FM_GetShiftState [07:03:32]SAM_PROTO_GetShiftState [07:03:32]wFMCommunicate request_size=4 [07:03:32]MH_SAM_APDU [07:03:32]CAPDU: 80 13 01 00 [07:03:32]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [07:03:32]Write i2c OK [07:03:32]MH_I2C_Read... [07:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:32]Read from MH i2c: E2 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: E2 0E 00 [07:03:32]MH_I2C_Read... [07:03:32]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AC [07:03:32]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:03:32]wFMCommunicate OK [07:03:32]SAM_PROTO_GetShiftState done [07:03:32]FM_GetShiftState done [07:03:32]opened in 1724371660 [07:03:32]opened+sec_in_day 1724458060 [07:03:32]quantity*price = 93021 [07:03:32]sum+1 = 93023 [07:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 930.00 Внесено: 1000.00 СДАЧА: 70.00 НСП 1% : 8.23 НДС 12% : 98.78 Наличными: 930.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 65 23.08.2024 07:03 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178605 ФПД: 48874031452949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070333&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178605&fm=48874031452949&tin=02508201610067®Number=0000000000092561&sum=93000 [07:03:33]StoreToDocumentArchive [07:03:33]shift 470 fd 178605 [07:03:33]save to /storage/0470/doc_00178605 [07:03:33]save last doc name /storage/0470/doc_00178605 to /storage/kkm_last_doc_name [07:03:33]save OK [07:03:33]Clear old archive folders... [07:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:03:33]tlvbuf is 01D1B510 [07:03:33]SAM_PROTO_ClearQueue [07:03:33]wFMCommunicate request_size=4 [07:03:33]MH_SAM_APDU [07:03:33]CAPDU: 80 09 00 00 [07:03:33]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [07:03:33]Write i2c OK [07:03:33]MH_I2C_Read... [07:03:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:03:33]Read from MH i2c: E2 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [07:03:33]RAPDU: 90 00 [07:03:33]wFMCommunicate OK [07:03:33]SAM_PROTO_ClearQueue done [07:03:33]KKMCreateOFDPacket [07:03:33]OFDProtocolAddRootSTLVToBuf [07:03:33]FM_MakeSignedData [07:03:33]FM_MakeSignedData [07:03:33]SAM_PROTO_SignData [07:03:33]wFMCommunicate request_size=4 [07:03:33]MH_SAM_APDU [07:03:33]CAPDU: 80 0D 01 02 [07:03:33]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [07:03:33]Write i2c OK [07:03:33]MH_I2C_Read... [07:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:03:33]Read from MH i2c: E2 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 [07:03:33]MH_I2C_Read... [07:03:33]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [07:03:33]RAPDU: 90 00 [07:03:33]wFMCommunicate OK [07:03:33]wFMCommunicate request_size=255 [07:03:33]MH_SAM_APDU [07:03: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 98 35 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 26 00 00 00 00 07 04 06 00 48 6B 01 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 45 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD B9 02 00 35 04 06 00 2C [07:03:33]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 26 00 00 00 00 07 04 06 00 48 6B 01 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 45 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD B9 02 00 35 04 06 00 2C 00 00 CB [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 03 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [07:03:34]RAPDU: 90 00 [07:03:34]wFMCommunicate OK [07:03:34]wFMCommunicate request_size=10 [07:03:34]MH_SAM_APDU [07:03:34]CAPDU: 80 0D 02 02 05 73 5F 48 93 15 [07:03:34]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 73 5F 48 93 15 00 00 AE [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 03 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [07:03:34]RAPDU: 90 00 [07:03:34]wFMCommunicate OK [07:03:34]wFMCommunicate request_size=4 [07:03:34]MH_SAM_APDU [07:03:34]CAPDU: 80 0D 03 02 [07:03:34]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 0B 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 0B 00 66 03 00 9E AA D8 F9 85 A8 6C 40 90 00 D7 [07:03:34]RAPDU: 9E AA D8 F9 85 A8 6C 40 90 00 [07:03:34]wFMCommunicate OK [07:03:34]SAM_PROTO_SignData done [07:03:34]FM_MakeSignedData done [07:03:34]CreateOFDProtocolMessage [07:03:34]wFMCommunicate request_size=4 [07:03:34]MH_SAM_APDU [07:03:34]CAPDU: 80 11 00 00 [07:03:34]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 [07:03:34]MH_I2C_Read... [07:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:34]Read from MH i2c: E2 17 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3D [07:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:03:34]wFMCommunicate OK [07:03:34]CreateOFDProtocolMessage done [07:03:34]OFDSenderStorePacket 178605 [07:03:34]StoreOFDPacket docnum=178605 [07:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9B BA 07 01 68 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 26 00 00 00 00 07 04 06 00 48 6B 01 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 45 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD B9 02 00 35 04 06 00 2C 73 5F 48 93 15 9E AA D8 F9 85 A8 6C 40 [07:03:34]CheckFolder [07:03:34]dirname=/storage/ofd_packets [07:03:34]CheckFolder done [07:03:34]ProducePacketName [07:03:34]name=ofd_packets/00178605 [07:03:34]NVStorageSaveData ofd_packets/00178605 [07:03:34]File name is /storage/ofd_packets/00178605 [07:03:34]Write 301 bytes [07:03:34]NVStorageSaveData done [07:03:34]OFDSenderStorePacket done [07:03:34]KKMCreateOFDPacket done [07:03:34]NVStorageSaveData kkm_last_timestamp [07:03:34]File name is /storage/kkm_last_timestamp [07:03:34]Write 4 bytes [07:03:34]NVStorageSaveData done [07:03:34]ExternCall_PrintAddStr [07:03:34]wPrintStart [07:03:34]Write to MH i2c: 01 00 00 68 03 6B [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [07:03:34]RasterBufferAndPrint [07:03:34]line Счет N : (1)294005 [07:03:34]line ИНН: 02508201610067 [07:03:34]line Контрольно-Кассовый Чек [07:03:34]line ПРОДАЖА [07:03:34]line ТРК (МРК, ГНК) : 42 [07:03:34]line Товар: 2710124130 [07:03:34]line Аи-92-К-5 [07:03:34]line 13.720 * 67.80 [07:03:34]line = 930.22 [07:03:34]line НДС 12% НСП 1% [07:03:34]line > о реализуемом товаре [07:03:34]line ОКРУГЛЕНИЕ: -0.22 [07:03:34]line ИТОГО: 930.00 [07:03:34]line Внесено: 1000.00 [07:03:34]line СДАЧА: 70.00 [07:03:34]line НСП 1% : 8.23 [07:03:34]line НДС 12% : 98.78 [07:03:34]line Наличными: 930.00 [07:03:34]line Безнал.: 0.00 [07:03:34]line Место: АЗС № 130 "Партнер Нефть" [07:03:34]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:03:34]line СНО: Общий режим [07:03:34]line Чек 65 23.08.2024 07:03 [07:03:34]line Смена: 470 ФФД: 1.0 [07:03:34]line ЗНМ: 0300000071 [07:03:34]line РНМ: 0000000000092561 [07:03:34]line Версия ККМ: 001 [07:03:34]line ФМ: 0000000000871778 [07:03:34]line ФД: 178605 [07:03:34]line ФПД: 48874031452949 [07:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070333&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178605&fm=48874031452949&tin=02508201610067®Number=0000000000092561&sum=93000 [07:03:34]written 0, free lines is 4095 [07:03:34]Write to MH i2c: 01 00 00 93 03 96 [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 CB 0C 74 [07:03:34]RasterBufferAndPrint [07:03:34]line [07:03:34]line [07:03:34]line [07:03:34]line [07:03:34]line [07:03:34]written 0, free lines is 3288 [07:03:34]MH_Cut [07:03:34]Write to MH i2c: D1 01 00 9A 03 01 6F [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: D1 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: D1 01 00 [07:03:34]MH_I2C_Read... [07:03:34]Read from MH i2c: D1 01 00 9A 03 00 6E [07:03:34]Write to MH i2c: 01 00 00 9B 03 9E [07:03:34]Write i2c OK [07:03:34]MH_I2C_Read... [07:03:35]*** Cut start [07:03:35]*** Partial cut [07:03:35]*** CUTSNS_PIN = 1 [07:03:35]*** CUTSNS_PIN = 0 [07:03:35]*** Brake cut motor [07:03:36]Read from MH i2c: 01 [07:03:36]MH_I2C_Read... [07:03:36]*** Stop cut motor [07:03:36]*** Cut end [07:03:36]Read from MH i2c: 01 07 00 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [07:03:36]process_action close_receipt done [07:03:36]requested_data is exist [07:03:36]produce_requested_data [07:03:36]requested_item fm.sn is exist - process it [07:03:36]wFMCommunicate request_size=4 [07:03:36]MH_SAM_APDU [07:03:36]CAPDU: 80 11 00 00 [07:03:36]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [07:03:36]Write i2c OK [07:03:36]MH_I2C_Read... [07:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:03:36]Read from MH i2c: E2 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: E2 17 00 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 72 [07:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:03:36]wFMCommunicate OK [07:03:36]requested_item fd.num is exist - process it [07:03:36]SAM_PROTO_GetFieldsCounters [07:03:36]wFMCommunicate request_size=4 [07:03:36]MH_SAM_APDU [07:03:36]CAPDU: 80 13 00 00 [07:03:36]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [07:03:36]Write i2c OK [07:03:36]MH_I2C_Read... [07:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:03:36]Read from MH i2c: E2 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: E2 62 00 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AD B9 02 00 0E 04 04 00 D6 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 43 [07:03: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AD B9 02 00 0E 04 04 00 D6 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 [07:03:36]wFMCommunicate OK [07:03:36]SAM_PROTO_GetFieldsCounters done [07:03:36]requested_item shift.num is exist - process it [07:03:36]requested_item shift.opened is exist - process it [07:03:36]req_shift_opened [07:03:36]FM_GetShiftState [07:03:36]SAM_PROTO_GetShiftState [07:03:36]wFMCommunicate request_size=4 [07:03:36]MH_SAM_APDU [07:03:36]CAPDU: 80 13 01 00 [07:03:36]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [07:03:36]recv_with_timeout no data received [07:03:36]Write i2c OK [07:03:36]MH_I2C_Read... [07:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:03:36]Read from MH i2c: E2 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: E2 0E 00 [07:03:36]MH_I2C_Read... [07:03:36]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F5 [07:03:36]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:03:36]wFMCommunicate OK [07:03:36]SAM_PROTO_GetShiftState done [07:03:36]FM_GetShiftState done [07:03:36]req_shift_opened done [07:03:36]requested_item shift.open_date is exist - process it [07:03:36]req_shift_open_date [07:03:36]req_shift_open_date done [07:03:36]produce_requested_data done [07:03:36]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178605,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:03:36]process_action_free close_receipt [07:03:36]json_value_free [07:03:36]json_value_free done [07:03:36]process_json_proto returns [07:03:36]Send response to host [07:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178605,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:03:36]free response buf [07:03:36]execute_script done [07:03:36]execute_script returns [07:03:36]free content buf [07:03:36]Sock 11.Close socket [07:03:36]Sock 11.Thread stoped [07:04:09]recv_with_timeout no data received [07:04:30]recv_with_timeout no data received [07:05:22]ConnectInit Can't connect to host [07:05:22]CommunicateWithHost connect error [07:05:22]CommunicateWithHost err = -1 [07:05:22]OFD Sender: Server communicate error [07:05:22]OFD Sender: Processing packet 178603 [packets to send 499, broken 496] [07:05:22]ProducePacketName [07:05:22]name=ofd_packets/00178603 [07:05:22]OFD Sender: To server: pG, [07:05:22]CommunicateWithHost lk.salyk.kg:30040 [07:05:22]ConnectInit lk.salyk.kg [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]/dev/ttyS4 opened [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 647667+1723749199=1724396866 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 42 35 C8 66 4F 53 BE 66 6A [07:07:46]Current date/time: 23.08.2024 07:07 [07:07:46]FM_Init [07:07:46]wFMConnect [07:07:46]MH_SAM_On [07:07:46]Write to MH i2c: E0 00 00 08 00 E7 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_init finished! [07:07:46]*** atr: [07:07:46]*** 0F 3B D5 18 FF 81 91 FE [07:07:46]*** 1F C3 80 73 C8 21 10 0A [07:07:46]*** 00 00 00 00 00 00 00 00 [07:07:46]*** 00 00 00 00 00 00 00 00 [07:07:46]*** 00 00 00 00 00 00 00 00 [07:07:46]*** 00 00 00 00 00 00 00 00 [07:07:46]*** 00 00 00 00 00 00 00 00 [07:07:46]*** 00 00 00 00 00 00 00 00 [07:07:46]Read from MH i2c: E0 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E0 10 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:07:46]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:07:46]wFMCommunicate request_size=10 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:07:46]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:07:46]Read from MH i2c: E2 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:07:46]RAPDU: 90 00 [07:07:46]wFMCommunicate OK [07:07:46]wFMCommunicate request_size=4 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 80 11 00 00 [07:07:46]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:46]Read from MH i2c: E2 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 17 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [07:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:07:46]wFMCommunicate OK [07:07:46]Detected FM SN is 0000000000871778 [07:07:46]Stored FM SN is 0000000000871778 [07:07:46]wFMCommunicate request_size=9 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 80 16 00 00 04 D9 BA 00 00 [07:07:46]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:07:46]Read from MH i2c: E2 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:07:46]RAPDU: 90 00 [07:07:46]wFMCommunicate OK [07:07:46]FM PIN OK [07:07:46]wFMCommunicate request_size=8 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 80 14 04 00 03 02 00 01 [07:07:46]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:07:46]Read from MH i2c: E2 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:07:46]RAPDU: 90 00 [07:07:46]wFMCommunicate OK [07:07:46]wFMCommunicate request_size=13 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:07:46]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:07:46]Read from MH i2c: E2 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:07:46]RAPDU: 90 00 [07:07:46]wFMCommunicate OK [07:07:46]wFMCommunicate request_size=4 [07:07:46]MH_SAM_APDU [07:07:46]CAPDU: 80 11 00 00 [07:07:46]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:46]Read from MH i2c: E2 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 17 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [07:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:07:46]wFMCommunicate OK [07:07:46]DocumentArchiveInit [07:07:46]Start Httpd... [07:07:46]Httpd thread 3066961252 created [07:07:46]Write to MH i2c: 01 00 00 0F 00 0F [07:07:46]Write i2c OK [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: 01 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: 01 07 00 [07:07:46]MH_I2C_Read... [07:07:46]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:07:46]MH Int Process started [07:07:46]Allocated Socket 7 [07:07:46]Bind OK [07:07:46]Listen OK [07:07:46]httpd running on port 8080 [07:07:46]Waiting for new connection... [07:07:47]OFD Sender: Processing packet 178603 [packets to send 499, broken 496] [07:07:47]ProducePacketName [07:07:47]name=ofd_packets/00178603 [07:07:47]OFD Sender: To server: pG, [07:07:47]CommunicateWithHost lk.salyk.kg:30040 [07:07:47]ConnectInit lk.salyk.kg [07:07:48]Connected sock=9 [07: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 31 37 37 38 0F 01 00 00 CD 49 07 01 26 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 3F 00 00 00 F4 03 04 00 17 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB B9 02 00 35 04 06 00 7F D7 27 A2 8B E4 10 66 14 A4 E1 0D 0D 9A [07:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C1 CE 47 00 6F 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AB B9 02 00 F4 03 04 00 EB E0 C7 66 B6 04 01 00 00 FD 94 CD 2F 73 E9 8A 16 [07:07:49]CommunicateWithHost err = 0 [07:07:49]CheckOFDResponse [07:07:49]1017 (14) - 77093643461234 [07:07:49]1041 (16) - 0000000000871778 [07:07:49]1040 (4) - 178603 [07:07:49]1012 (4) - 23.08.2024 01:07 [07:07:49]1206 (1) - 0 [07:07:49]OFD Sender: Remove packet 178603 [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00178603 [07:07:49]NVStorageDeleteData [07:07:50]OFD Sender: Processing packet 178604 [packets to send 498, broken 496] [07:07:50]ProducePacketName [07:07:50]name=ofd_packets/00178604 [07:07:50]OFD Sender: To server: pG, [07:07:50]CommunicateWithHost lk.salyk.kg:30040 [07:07:50]ConnectInit lk.salyk.kg [07:07:55]recv_with_timeout no data received [07:07:55]Connected sock=10 [07:07:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 CD 15 07 01 C8 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 2D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 38 50 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 4F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 23 00 00 00 00 07 04 06 00 F0 4F 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 39 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AC B9 02 00 35 04 06 00 FC EF 94 6A 2E D0 25 8B 00 5F B3 D8 0D 87 [07:07:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 66 C0 47 00 1D 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 31 37 37 38 10 04 04 00 AC B9 02 00 F4 03 04 00 F2 E0 C7 66 B6 04 01 00 00 4D 83 B8 A5 37 EC 83 3C [07:07:57]CommunicateWithHost err = 0 [07:07:57]CheckOFDResponse [07:07:57]1017 (14) - 77093643461234 [07:07:57]1041 (16) - 0000000000871778 [07:07:57]1040 (4) - 178604 [07:07:57]1012 (4) - 23.08.2024 01:08 [07:07:57]1206 (1) - 0 [07:07:57]OFD Sender: Remove packet 178604 [07:07:57]ProducePacketName [07:07:57]name=ofd_packets/00178604 [07:07:57]NVStorageDeleteData [07:07:58]OFD Sender: Processing packet 178605 [packets to send 497, broken 496] [07:07:58]ProducePacketName [07:07:58]name=ofd_packets/00178605 [07:07:58]OFD Sender: To server: pG, [07:07:58]CommunicateWithHost lk.salyk.kg:30040 [07:07:58]ConnectInit lk.salyk.kg [07:08:00]Connected sock=9 [07: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 31 37 37 38 0F 01 00 00 9B BA 07 01 68 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 5E 6B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 6B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 26 00 00 00 00 07 04 06 00 48 6B 01 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 45 34 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AD B9 02 00 35 04 06 00 2C 73 5F 48 93 15 9E AA D8 F9 85 A8 6C 40 [07:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A6 7D 47 00 24 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 31 37 37 38 10 04 04 00 AD B9 02 00 F4 03 04 00 F6 E0 C7 66 B6 04 01 00 00 7F CF D8 9B 26 89 EB 31 [07:08:00]CommunicateWithHost err = 0 [07:08:00]CheckOFDResponse [07:08:00]1017 (14) - 77093643461234 [07:08:00]1041 (16) - 0000000000871778 [07:08:00]1040 (4) - 178605 [07:08:00]1012 (4) - 23.08.2024 01:08 [07:08:00]1206 (1) - 0 [07:08:00]OFD Sender: Remove packet 178605 [07:08:00]ProducePacketName [07:08:00]name=ofd_packets/00178605 [07:08:00]NVStorageDeleteData [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:25]accept exits with 8 [07:08:25]New connection [07:08:25]New thread 3066674532 created [07:08:25]Waiting for new connection... [07:08:25] Sock 8.Parse request [07:08:25]Sock 8.Check first char [07:08:25]Sock 8.First char is OK [07:08:25]request: POST /json_proto HTTP/1.0 [07:08:25]Method: POST [07:08:25]URL: /json_proto [07:08:25]Method is POST - this is cgi request [07:08:25]url: /json_proto [07:08:25]query_string will be loaded in cgi processing [07:08:25]execute_cgi json_proto POST (null) [07:08:25]execute_cgi path=json_proto method=POST [07:08:25]POST find Content-Length [07:08:25]Host: 172.17.44.131:8080 [07:08:25]Content-Length: 215 [07:08:25]Content-Type: application/json [07:08:25] [07:08:25]POST finish read [07:08:25]Found Content-Length = 215 [07:08: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" ] } } [07:08:25]execute_script... [07:08: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" ] } } [07:08:25]POST & json_proto [07:08:25]process_json_proto [07:08:25]json parsed OK: [07:08:25]protocol is kg_v1.0 [07:08:25]action value=get_value [07:08:25]process_action get_value [07:08:25]cmd_get_value [07:08:25]process_action get_value done [07:08:25]requested_data is exist [07:08:25]produce_requested_data [07:08:25]requested_item kkm.sn is exist - process it [07:08:25]requested_item kkm.ver is exist - process it [07:08:25]requested_item fm.sn is exist - process it [07:08:25]wFMCommunicate request_size=4 [07:08:25]MH_SAM_APDU [07:08:25]CAPDU: 80 11 00 00 [07:08:25]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:08:25]Write i2c OK [07:08:25]MH_I2C_Read... [07:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:25]Read from MH i2c: E2 [07:08:25]MH_I2C_Read... [07:08:25]Read from MH i2c: E2 17 00 [07:08:25]MH_I2C_Read... [07:08:25]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [07:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:08:25]wFMCommunicate OK [07:08:25]requested_item fd.num is exist - process it [07:08:25]SAM_PROTO_GetFieldsCounters [07:08:25]wFMCommunicate request_size=4 [07:08:25]MH_SAM_APDU [07:08:25]CAPDU: 80 13 00 00 [07:08:25]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:08:25]Write i2c OK [07:08:25]MH_I2C_Read... [07:08:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:25]Read from MH i2c: E2 [07:08:25]MH_I2C_Read... [07:08:25]Read from MH i2c: E2 62 00 [07:08:25]MH_I2C_Read... [07:08:25]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AD B9 02 00 0E 04 04 00 D6 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 B4 [07:08: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AD B9 02 00 0E 04 04 00 D6 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 [07:08:25]wFMCommunicate OK [07:08:25]SAM_PROTO_GetFieldsCounters done [07:08:25]requested_item shift.num is exist - process it [07:08:25]requested_item shift.opened is exist - process it [07:08:25]req_shift_opened [07:08:25]FM_GetShiftState [07:08:25]SAM_PROTO_GetShiftState [07:08:25]wFMCommunicate request_size=4 [07:08:25]MH_SAM_APDU [07:08:25]CAPDU: 80 13 01 00 [07:08:25]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:08:25]Write i2c OK [07:08:25]MH_I2C_Read... [07:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:25]Read from MH i2c: E2 [07:08:25]MH_I2C_Read... [07:08:25]Read from MH i2c: E2 0E 00 [07:08:25]MH_I2C_Read... [07:08:25]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [07:08:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:08:25]wFMCommunicate OK [07:08:25]SAM_PROTO_GetShiftState done [07:08:25]FM_GetShiftState done [07:08:25]req_shift_opened done [07:08:25]requested_item shift.open_date is exist - process it [07:08:25]req_shift_open_date [07:08:25]req_shift_open_date done [07:08:25]produce_requested_data done [07:08:25]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178605,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:08:25]process_action_free get_value [07:08:25]json_value_free [07:08:25]json_value_free done [07:08:25]process_json_proto returns [07:08:25]Send response to host [07:08:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178605,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:08:25]free response buf [07:08:25]execute_script done [07:08:25]execute_script returns [07:08:25]free content buf [07:08:25]Sock 8.Close socket [07:08:25]Sock 8.Thread stoped [07:08:25]accept exits with 9 [07:08:25]New connection [07:08:25]New thread 3066531172 created [07:08:25]Thread 3066674532 joined [07:08:25]Waiting for new connection... [07:08:25] Sock 9.Parse request [07:08:25]Sock 9.Check first char [07:08:25]Sock 9.First char is OK [07:08:25]request: POST /json_proto HTTP/1.0 [07:08:25]Method: POST [07:08:25]URL: /json_proto [07:08:25]Method is POST - this is cgi request [07:08:25]url: /json_proto [07:08:25]query_string will be loaded in cgi processing [07:08:25]execute_cgi json_proto POST (null) [07:08:25]execute_cgi path=json_proto method=POST [07:08:25]POST find Content-Length [07:08:25]Host: 172.17.44.131:8080 [07:08:25]Content-Length: 331 [07:08:25]Content-Type: application/json [07:08:25] [07:08:25]POST finish read [07:08:25]Found Content-Length = 331 [07:08:25]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" ] } } [07:08:25]execute_script... [07:08:25]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" ] } } [07:08:25]POST & json_proto [07:08:25]process_json_proto [07:08:25]json parsed OK: [07:08:25]protocol is kg_v1.0 [07:08:25]action value=get_value [07:08:25]process_action get_value [07:08:25]cmd_get_value [07:08:25]process_action get_value done [07:08:25]requested_data is exist [07:08:25]produce_requested_data [07:08:25]requested_item fm.sale.total is exist - process it [07:08:25]SAM_PROTO_GetFMData [07:08:25]wFMCommunicate request_size=4 [07:08:25]MH_SAM_APDU [07:08:25]CAPDU: 80 13 03 00 [07:08:25]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:08:25]Write i2c OK [07:08:25]MH_I2C_Read... [07:08:26]OFD Sender: No OFD packet to send [07:08:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 FD 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 01 B6 02 00 69 04 A4 00 6F 04 04 00 6B B4 02 00 B1 04 05 00 EC 30 7F 2A 05 70 04 05 00 1F B9 3B 14 04 72 04 05 00 CD 77 43 16 01 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 9A 79 8C 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 8D 9A B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 B0 [07:08:26]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 01 B6 02 00 69 04 A4 00 6F 04 04 00 6B B4 02 00 B1 04 05 00 EC 30 7F 2A 05 70 04 05 00 1F B9 3B 14 04 72 04 05 00 CD 77 43 16 01 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 9A 79 8C 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 8D 9A B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 [07:08:26]wFMCommunicate OK [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 17 00 00 [07:08:26]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 FD 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [07:08:26]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:08:26]wFMCommunicate OK [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 17 00 00 [07:08:26]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:08:26]Read from MH i2c: E2 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 FD 00 [07:08:26]MH_I2C_Read... [07:08:26]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [07:08:26]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:08:26]wFMCommunicate OK [07:08:26]wFMCommunicate request_size=4 [07:08:26]MH_SAM_APDU [07:08:26]CAPDU: 80 17 00 00 [07:08:26]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:08:26]Write i2c OK [07:08:26]MH_I2C_Read... [07:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:08:27]Read from MH i2c: E2 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: E2 FD 00 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [07:08:27]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:08:27]wFMCommunicate OK [07:08:27]wFMCommunicate request_size=4 [07:08:27]MH_SAM_APDU [07:08:27]CAPDU: 80 17 00 00 [07:08:27]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [07:08:27]Write i2c OK [07:08:27]MH_I2C_Read... [07:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [07:08:27]Read from MH i2c: E2 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: E2 E3 00 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: E2 E3 00 17 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 76 [07:08:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:08:27]wFMCommunicate OK [07:08:27]SAM_PROTO_GetFMData done [07:08:27]requested_item fm.sale_refund.total is exist - process it [07:08:27]requested_item fm.buy.total is exist - process it [07:08:27]requested_item shift.sale.total is exist - process it [07:08:27]SAM_PROTO_GetShiftData [07:08:27]wFMCommunicate request_size=4 [07:08:27]MH_SAM_APDU [07:08:27]CAPDU: 80 13 02 00 [07:08:27]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [07:08:27]Write i2c OK [07:08:27]MH_I2C_Read... [07:08:27]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:08:27]Read from MH i2c: E2 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: E2 FD 00 [07:08:27]MH_I2C_Read... [07:08:27]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 5B 74 8A 70 04 03 00 3C 81 51 72 04 03 00 1F F3 38 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 C6 B4 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 39 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 13 [07:08:27]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 41 00 00 00 69 04 9C 00 6F 04 04 00 41 00 00 00 B1 04 03 00 5B 74 8A 70 04 03 00 3C 81 51 72 04 03 00 1F F3 38 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 C6 B4 0E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 B8 39 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [07:08:27]wFMCommunicate OK [07:08:27]wFMCommunicate request_size=4 [07:08:27]MH_SAM_APDU [07:08:27]CAPDU: 80 17 00 00 [07:08:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [07:08:27]Write i2c OK [07:08:27]MH_I2C_Read... [07:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:08:28]Read from MH i2c: E2 [07:08:28]MH_I2C_Read... [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 647806+1723749199=1724397005 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 CD 35 C8 66 4F 53 BE 66 F5 [07:10:05]Current date/time: 23.08.2024 07:10 [07:10:05]FM_Init [07:10:05]wFMConnect [07:10:05]MH_SAM_On [07:10:05]Write to MH i2c: E0 00 00 08 00 E7 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_init finished! [07:10:05]*** atr: [07:10:05]*** 0F 3B D5 18 FF 81 91 FE [07:10:05]*** 1F C3 80 73 C8 21 10 0A [07:10:05]*** 00 00 00 00 00 00 00 00 [07:10:05]*** 00 00 00 00 00 00 00 00 [07:10:05]*** 00 00 00 00 00 00 00 00 [07:10:05]*** 00 00 00 00 00 00 00 00 [07:10:05]*** 00 00 00 00 00 00 00 00 [07:10:05]*** 00 00 00 00 00 00 00 00 [07:10:05]Read from MH i2c: E0 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E0 10 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [07:10:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [07:10:05]wFMCommunicate request_size=10 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [07:10:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [07:10:05]RAPDU: 90 00 [07:10:05]wFMCommunicate OK [07:10:05]wFMCommunicate request_size=4 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 11 00 00 [07:10:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 17 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [07:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:05]wFMCommunicate OK [07:10:05]Detected FM SN is 0000000000871778 [07:10:05]Stored FM SN is 0000000000871778 [07:10:05]wFMCommunicate request_size=9 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 16 00 00 04 D9 BA 00 00 [07:10:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [07:10:05]RAPDU: 90 00 [07:10:05]wFMCommunicate OK [07:10:05]FM PIN OK [07:10:05]wFMCommunicate request_size=8 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 14 04 00 03 02 00 01 [07:10:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [07:10:05]RAPDU: 90 00 [07:10:05]wFMCommunicate OK [07:10:05]wFMCommunicate request_size=13 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [07:10:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [07:10:05]RAPDU: 90 00 [07:10:05]wFMCommunicate OK [07:10:05]wFMCommunicate request_size=4 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 11 00 00 [07:10:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 17 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [07:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:05]wFMCommunicate OK [07:10:05]DocumentArchiveInit [07:10:05]Start Httpd... [07:10:05]Httpd thread 3067682148 created [07:10:05]Write to MH i2c: 01 00 00 0F 00 0F [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: 01 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: 01 07 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [07:10:05]MH Int Process started [07:10:05]Allocated Socket 8 [07:10:05]Bind OK [07:10:05]Listen OK [07:10:05]httpd running on port 8080 [07:10:05]Waiting for new connection... [07:10:06]OFD Sender: Processing packet 178607 [packets to send 497, broken 496] [07:10:06]ProducePacketName [07:10:06]name=ofd_packets/00178607 [07:10:06]OFD Sender: To server: pG, [07:10:06]CommunicateWithHost lk.salyk.kg:30040 [07:10:06]ConnectInit lk.salyk.kg [07:10:09]accept exits with 9 [07:10:09]New connection [07:10:09]New thread 3067395428 created [07:10:09]Waiting for new connection... [07:10:09] Sock 9.Parse request [07:10:09]Sock 9.Check first char [07:10:09]Sock 9.First char is OK [07:10:09]request: POST /json_proto HTTP/1.0 [07:10:09]Method: POST [07:10:09]URL: /json_proto [07:10:09]Method is POST - this is cgi request [07:10:09]url: /json_proto [07:10:09]query_string will be loaded in cgi processing [07:10:09]execute_cgi json_proto POST (null) [07:10:09]execute_cgi path=json_proto method=POST [07:10:09]POST find Content-Length [07:10:09]Host: 172.17.44.131:8080 [07:10:09]Content-Length: 215 [07:10:09]Content-Type: application/json [07:10:09] [07:10:09]POST finish read [07:10:09]Found Content-Length = 215 [07:10:09]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" ] } } [07:10:09]execute_script... [07:10:09]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" ] } } [07:10:09]POST & json_proto [07:10:09]process_json_proto [07:10:09]json parsed OK: [07:10:09]protocol is kg_v1.0 [07:10:09]action value=get_value [07:10:09]process_action get_value [07:10:09]cmd_get_value [07:10:09]process_action get_value done [07:10:09]requested_data is exist [07:10:09]produce_requested_data [07:10:09]requested_item kkm.sn is exist - process it [07:10:09]requested_item kkm.ver is exist - process it [07:10:09]requested_item fm.sn is exist - process it [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 11 00 00 [07:10:09]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [07:10:09]Write i2c OK [07:10:09]MH_I2C_Read... [07:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:09]Read from MH i2c: E2 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 17 00 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [07:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:10:09]wFMCommunicate OK [07:10:09]requested_item fd.num is exist - process it [07:10:09]SAM_PROTO_GetFieldsCounters [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 13 00 00 [07:10:09]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [07:10:09]Write i2c OK [07:10:09]MH_I2C_Read... [07:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:09]Read from MH i2c: E2 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 62 00 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AF B9 02 00 0E 04 04 00 D6 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 BC [07:10: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 AF B9 02 00 0E 04 04 00 D6 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 [07:10:09]wFMCommunicate OK [07:10:09]SAM_PROTO_GetFieldsCounters done [07:10:09]requested_item shift.num is exist - process it [07:10:09]requested_item shift.opened is exist - process it [07:10:09]req_shift_opened [07:10:09]FM_GetShiftState [07:10:09]SAM_PROTO_GetShiftState [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 13 01 00 [07:10:09]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [07:10:09]Write i2c OK [07:10:09]MH_I2C_Read... [07:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:09]Read from MH i2c: E2 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 0E 00 [07:10:09]MH_I2C_Read... [07:10:09]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [07:10:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:10:09]wFMCommunicate OK [07:10:09]SAM_PROTO_GetShiftState done [07:10:09]FM_GetShiftState done [07:10:09]req_shift_opened done [07:10:09]requested_item shift.open_date is exist - process it [07:10:09]req_shift_open_date [07:10:09]req_shift_open_date done [07:10:09]produce_requested_data done [07:10:09]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178607,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:10:09]process_action_free get_value [07:10:09]json_value_free [07:10:09]json_value_free done [07:10:09]process_json_proto returns [07:10:09]Send response to host [07:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178607,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:10:09]free response buf [07:10:09]execute_script done [07:10:09]execute_script returns [07:10:09]free content buf [07:10:09]Sock 9.Close socket [07:10:09]Sock 9.Thread stoped [07:10:09]accept exits with 12 [07:10:09]New connection [07:10:09]New thread 3067252068 created [07:10:09]Thread 3067395428 joined [07:10:09]Waiting for new connection... [07:10:09] Sock 12.Parse request [07:10:09]Sock 12.Check first char [07:10:09]Sock 12.First char is OK [07:10:09]request: POST /json_proto HTTP/1.0 [07:10:09]Method: POST [07:10:09]URL: /json_proto [07:10:09]Method is POST - this is cgi request [07:10:09]url: /json_proto [07:10:09]query_string will be loaded in cgi processing [07:10:09]execute_cgi json_proto POST (null) [07:10:09]execute_cgi path=json_proto method=POST [07:10:09]POST find Content-Length [07:10:09]Host: 172.17.44.131:8080 [07:10:09]Content-Length: 331 [07:10:09]Content-Type: application/json [07:10:09] [07:10:09]POST finish read [07:10:09]Found Content-Length = 331 [07:10:09]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" ] } } [07:10:09]execute_script... [07:10:09]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" ] } } [07:10:09]POST & json_proto [07:10:09]process_json_proto [07:10:09]json parsed OK: [07:10:09]protocol is kg_v1.0 [07:10:09]action value=get_value [07:10:09]process_action get_value [07:10:09]cmd_get_value [07:10:09]process_action get_value done [07:10:09]requested_data is exist [07:10:09]produce_requested_data [07:10:09]requested_item fm.sale.total is exist - process it [07:10:09]SAM_PROTO_GetFMData [07:10:09]wFMCommunicate request_size=4 [07:10:09]MH_SAM_APDU [07:10:09]CAPDU: 80 13 03 00 [07:10:09]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:10:10]Read from MH i2c: E2 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 03 B6 02 00 69 04 A4 00 6F 04 04 00 6D B4 02 00 B1 04 05 00 8C 28 83 2A 05 70 04 05 00 BF B0 3F 14 04 72 04 05 00 CD 77 43 16 01 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 43 06 7A 8C 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 8A A3 B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 3F [07:10:10]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 03 B6 02 00 69 04 A4 00 6F 04 04 00 6D B4 02 00 B1 04 05 00 8C 28 83 2A 05 70 04 05 00 BF B0 3F 14 04 72 04 05 00 CD 77 43 16 01 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 43 06 7A 8C 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 8A A3 B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 [07:10:10]wFMCommunicate OK [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 17 00 00 [07:10:10]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:10]Read from MH i2c: E2 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 [07:10:10]MH_I2C_Read... [07:10:10]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [07:10:10]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:10]wFMCommunicate OK [07:10:10]wFMCommunicate request_size=4 [07:10:10]MH_SAM_APDU [07:10:10]CAPDU: 80 17 00 00 [07:10:10]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [07:10:10]Write i2c OK [07:10:10]MH_I2C_Read... [07:10:11]ConnectInit Can't take IP for lk.salyk.kg [07:10:11]CommunicateWithHost connect error [07:10:11]CommunicateWithHost err = -1 [07:10:11]OFD Sender: Server communicate error [07:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [07:10:11]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:11]wFMCommunicate OK [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 17 00 00 [07:10:11]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [07:10:11]Write i2c OK [07:10:11]MH_I2C_Read... [07:10:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:10:11]Read from MH i2c: E2 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 [07:10:11]MH_I2C_Read... [07:10:11]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [07:10:11]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:10:11]wFMCommunicate OK [07:10:11]wFMCommunicate request_size=4 [07:10:11]MH_SAM_APDU [07:10:11]CAPDU: 80 17 00 00 [07:10:11]Write to MH i2c: E2 08 00 17 00 80 17 00 00 [07:10:13]wFMCommunicate OK [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 17 00 00 [07:10:13]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 CC 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 CC 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7D [07:10:13]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [07:10:13]wFMCommunicate OK [07:10:13]SAM_PROTO_GetShiftData done [07:10:13]requested_item shift.sale.total_cash is exist - process it [07:10:13]requested_item shift.sale_refund.total is exist - process it [07:10:13]requested_item shift.sale_refund.total_cash is exist - process it [07:10:13]requested_item shift.buy.total is exist - process it [07:10:13]requested_item shift.buy.total_cash is exist - process it [07:10:13]produce_requested_data done [07:10:13]produce_requested_data return {"fm.sale.total":221880751.48,"fm.sale_refund.total":18116550.00,"fm.buy.total":0.00,"shift.sale.total":93337.55,"shift.sale.total_cash":56015.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} [07:10:13]process_action_free get_value [07:10:13]json_value_free [07:10:13]json_value_free done [07:10:13]process_json_proto returns [07:10:13]Send response to host [07:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":221880751.48,"fm.sale_refund.total":18116550.00,"fm.buy.total":0.00,"shift.sale.total":93337.55,"shift.sale.total_cash":56015.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}}} [07:10:13]free response buf [07:10:13]execute_script done [07:10:13]execute_script returns [07:10:13]free content buf [07:10:13]Sock 12.Close socket [07:10:13]Sock 12.Thread stoped [07:10:13]accept exits with 9 [07:10:13]New connection [07:10:13]New thread 3067395428 created [07:10:13]Thread 3067252068 joined [07:10:13]Waiting for new connection... [07:10:13] Sock 9.Parse request [07:10:13]Sock 9.Check first char [07:10:13]Sock 9.First char is OK [07:10:13]request: POST /json_proto HTTP/1.0 [07:10:13]Method: POST [07:10:13]URL: /json_proto [07:10:13]Method is POST - this is cgi request [07:10:13]url: /json_proto [07:10:13]query_string will be loaded in cgi processing [07:10:13]execute_cgi json_proto POST (null) [07:10:13]execute_cgi path=json_proto method=POST [07:10:13]POST find Content-Length [07:10:13]Host: 172.17.44.131:8080 [07:10:13]Content-Length: 144 [07:10:13]Content-Type: application/json [07:10:13] [07:10:13]POST finish read [07:10:13]Found Content-Length = 144 [07:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [07:10:13]execute_script... [07:10:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [07:10:13]POST & json_proto [07:10:13]process_json_proto [07:10:13]json parsed OK: [07:10:13]protocol is kg_v1.0 [07:10:13]action value=print_doc [07:10:13]process_action print_doc [07:10:13]ExternCall_PrintAddStr [07:10:13]wPrintStart [07:10:13]Write to MH i2c: 01 00 00 1D 00 1D [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [07:10:13]RasterBufferAndPrint [07:10:13]line Счет N : (1)294009 [07:10:13]line ИНН: 02508201610067 [07:10:13]line Контрольно-Кассовый Чек [07:10:13]line ПРОДАЖА [07:10:13]line ТРК (МРК, ГНК) : 43 [07:10:13]line Товар: 2710124500 [07:10:13]line Аи-95-К-5 [07:10:13]line 26.960 * 74.20 [07:10:13]line = 2000.43 [07:10:13]line НДС 12% НСП 1% [07:10:13]line > о реализуемом товаре [07:10:13]line ОКРУГЛЕНИЕ: -0.43 [07:10:13]line ИТОГО: 2000.00 [07:10:13]line Внесено: 2000.00 [07:10:13]line СДАЧА: 0.00 [07:10:13]line НСП 1% : 17.70 [07:10:13]line НДС 12% : 212.43 [07:10:13]line Наличными: 2000.00 [07:10:13]line Безнал.: 0.00 [07:10:13]line Место: АЗС № 130 "Партнер Нефть" [07:10:13]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:10:13]line СНО: Общий режим [07:10:13]line Чек 67 23.08.2024 07:08 [07:10:13]line Смена: 470 ФФД: 1.0 [07:10:13]line ЗНМ: 0300000071 [07:10:13]line РНМ: 0000000000092561 [07:10:13]line Версия ККМ: 001 [07:10:13]line ФМ: 0000000000871778 [07:10:13]line ФД: 178607 [07:10:13]line ФПД: 145887022608143 [07:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T070835&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178607&fm=145887022608143&tin=02508201610067®Number=0000000000092561&sum=200000 [07:10:13]written 0, free lines is 4095 [07:10:14]Write to MH i2c: 01 00 00 48 00 48 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D3 0C 2E [07:10:14]RasterBufferAndPrint [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]written 0, free lines is 3298 [07:10:14]MH_Cut [07:10:14]Write to MH i2c: D1 01 00 4F 00 01 21 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 01 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 01 00 4F 00 00 20 [07:10:14]Write to MH i2c: 01 00 00 50 00 50 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]*** Cut start [07:10:14]*** Partial cut [07:10:14]*** CUTSNS_PIN = 1 [07:10:14]*** CUTSNS_PIN = 0 [07:10:15]*** Brake cut motor [07:10:15]Read from MH i2c: 01 [07:10:15]MH_I2C_Read... [07:10:15]*** Stop cut motor [07:10:15]*** Cut end [07:10:15]Read from MH i2c: 01 07 00 [07:10:15]MH_I2C_Read... [07:10:15]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [07:10:15]process_action print_doc done [07:10:15]requested_data is exist [07:10:15]produce_requested_data [07:10:15]produce_requested_data return (null) [07:10:15]process_action_free print_doc [07:10:15]json_value_free [07:10:15]json_value_free done [07:10:15]process_json_proto returns [07:10:15]Send response to host [07:10:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [07:10:15]free response buf [07:10:15]execute_script done [07:10:15]execute_script returns [07:10:15]free content buf [07:10:15]Sock 9.Close socket [07:10:15]Sock 9.Thread stoped [07:10:16]OFD Sender: Processing packet 178607 [packets to send 497, broken 496] [07:10:16]ProducePacketName [07:10:16]name=ofd_packets/00178607 [07:10:16]OFD Sender: To server: pG, [07:10:16]CommunicateWithHost lk.salyk.kg:30040 [07:10:16]ConnectInit lk.salyk.kg [07:10:21]ConnectInit Can't take IP for lk.salyk.kg [07:10:21]CommunicateWithHost connect error [07:10:21]CommunicateWithHost err = -1 [07:10:21]OFD Sender: Server communicate error [07:10:26]OFD Sender: Processing packet 178607 [packets to send 497, broken 496] [07:10:26]ProducePacketName [07:10:26]name=ofd_packets/00178607 [07:10:26]OFD Sender: To server: pG, [07:10:26]CommunicateWithHost lk.salyk.kg:30040 [07:10:26]ConnectInit lk.salyk.kg [07:10:27]recv_with_timeout no data received [07:10:31]ConnectInit Can't take IP for lk.salyk.kg [07:10:31]CommunicateWithHost connect error [07:10:31]CommunicateWithHost err = -1 [07:10:31]OFD Sender: Server communicate error [07:10:36]OFD Sender: Processing packet 178607 [packets to send 497, broken 496] [07:10:36]ProducePacketName [07:10:36]name=ofd_packets/00178607 [07:10:36]OFD Sender: To server: pG, [07:10:36]CommunicateWithHost lk.salyk.kg:30040 [07:10:36]ConnectInit lk.salyk.kg [07:10:41]ConnectInit Can't take IP for lk.salyk.kg [07:10:41]CommunicateWithHost connect error [07:10:41]CommunicateWithHost err = -1 [07:10:41]OFD Sender: Server communicate error [07:10:46]OFD Sender: Processing packet 178607 [packets to send 497, broken 496] [07:10:46]ProducePacketName [07:10:46]name=ofd_packets/00178607 [07:10:46]OFD Sender: To server: pG, [07:10:46]CommunicateWithHost lk.salyk.kg:30040 [07:10:46]ConnectInit lk.salyk.kg [07:10:52]Connected sock=10 [07:10:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AF BB 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 73 35 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 AF B9 02 00 35 04 06 00 84 AE F8 28 EF 0F 39 AC AC 9E B1 C2 94 EC [07:10:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 ED 1E 47 00 85 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 31 37 37 38 10 04 04 00 AF B9 02 00 F4 03 04 00 A2 E1 C7 66 B6 04 01 00 00 2C FD 91 62 25 9E AE CF [07:10:52]CommunicateWithHost err = 0 [07:10:52]CheckOFDResponse [07:10:52]1017 (14) - 77093643461234 [07:10:52]1041 (16) - 0000000000871778 [07:10:52]1040 (4) - 178607 [07:10:52]1012 (4) - 23.08.2024 01:10 [07:10:52]1206 (1) - 0 [07:10:52]OFD Sender: Remove packet 178607 [07:10:52]ProducePacketName [07:10:52]name=ofd_packets/00178607 [07:10:52]NVStorageDeleteData [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:05]accept exits with 6 [07:11:05]New connection [07:11:05]New thread 3067252068 created [07:11:05]Thread 3067395428 joined [07:11:05]Waiting for new connection... [07:11:05] Sock 6.Parse request [07:11:05]Sock 6.Check first char [07:11:05]Sock 6.First char is OK [07:11:05]request: POST /json_proto HTTP/1.0 [07:11:05]Method: POST [07:11:05]URL: /json_proto [07:11:05]Method is POST - this is cgi request [07:11:05]url: /json_proto [07:11:05]query_string will be loaded in cgi processing [07:11:05]execute_cgi json_proto POST (null) [07:11:05]execute_cgi path=json_proto method=POST [07:11:05]POST find Content-Length [07:11:05]Host: 172.17.44.131:8080 [07:11:05]Content-Length: 816 [07:11:05]Content-Type: application/json [07:11:05] [07:11:05]POST finish read [07:11:05]Found Content-Length = 816 [07:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:05]execute_script... [07:11: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)294012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:05]POST & json_proto [07:11:05]process_json_proto [07:11:05]json parsed OK: [07:11:05]protocol is kg_v1.0 [07:11:05]action value=close_receipt [07:11:05]process_action close_receipt [07:11:05]cmd_close_receipt [07:11:05]MH_GetDate [07:11:05]Write to MH i2c: F0 00 00 51 00 40 [07:11:05]Write i2c OK [07:11:05]MH_I2C_Read... [07:11:05]Read from MH i2c: F0 [07:11:05]MH_I2C_Read... [07:11:05]Read from MH i2c: F0 09 00 [07:11:05]MH_I2C_Read... [07:11:05]Read from MH i2c: F0 09 00 51 00 00 0A 36 C8 66 4F 53 BE 66 7D [07:11:05]GetLastDocTimeStamp 1724396915 [07:11:05]current date 1724397066 [07:11:05]FM_GetShiftState [07:11:05]SAM_PROTO_GetShiftState [07:11:05]wFMCommunicate request_size=4 [07:11:05]MH_SAM_APDU [07:11:05]CAPDU: 80 13 01 00 [07:11:05]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [07:11:05]Write i2c OK [07:11:05]MH_I2C_Read... [07:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:05]Read from MH i2c: E2 [07:11:05]MH_I2C_Read... [07:11:05]Read from MH i2c: E2 0E 00 [07:11:05]MH_I2C_Read... [07:11:05]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A6 [07:11:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:11:05]wFMCommunicate OK [07:11:05]SAM_PROTO_GetShiftState done [07:11:05]FM_GetShiftState done [07:11:05]opened in 1724371660 [07:11:05]opened+sec_in_day 1724458060 [07:11:05]quantity*price = 100050 [07:11:05]sum+1 = 100052 [07:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 68 23.08.2024 07:11 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178608 ФПД: 238395990145488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071106&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178608&fm=238395990145488&tin=02508201610067®Number=0000000000092561&sum=100051 [07:11:06]StoreToDocumentArchive [07:11:06]shift 470 fd 178608 [07:11:06]save to /storage/0470/doc_00178608 [07:11:06]save last doc name /storage/0470/doc_00178608 to /storage/kkm_last_doc_name [07:11:06]save OK [07:11:06]Clear old archive folders... [07:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:11:06]tlvbuf is 00A942F0 [07:11:06]SAM_PROTO_ClearQueue [07:11:06]wFMCommunicate request_size=4 [07:11:06]MH_SAM_APDU [07:11:06]CAPDU: 80 09 00 00 [07:11:06]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [07:11:06]Write i2c OK [07:11:06]MH_I2C_Read... [07:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:06]Read from MH i2c: E2 [07:11:06]MH_I2C_Read... [07:11:06]Read from MH i2c: E2 03 00 [07:11:06]MH_I2C_Read... [07:11:06]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [07:11:06]RAPDU: 90 00 [07:11:06]wFMCommunicate OK [07:11:06]SAM_PROTO_ClearQueue done [07:11:06]KKMCreateOFDPacket [07:11:06]OFDProtocolAddRootSTLVToBuf [07:11:06]FM_MakeSignedData [07:11:06]FM_MakeSignedData [07:11:06]SAM_PROTO_SignData [07:11:06]wFMCommunicate request_size=4 [07:11:06]MH_SAM_APDU [07:11:06]CAPDU: 80 0D 01 02 [07:11:06]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [07:11:06]Write i2c OK [07:11:06]MH_I2C_Read... [07:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:06]Read from MH i2c: E2 [07:11:06]MH_I2C_Read... [07:11:06]Read from MH i2c: E2 03 00 [07:11:06]MH_I2C_Read... [07:11:06]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [07:11:06]RAPDU: 90 00 [07:11:06]wFMCommunicate OK [07:11:06]wFMCommunicate request_size=255 [07:11:06]MH_SAM_APDU [07:11:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 B9 02 00 35 04 06 00 D8 D1 E4 4E [07:11:06]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 B9 02 00 35 04 06 00 D8 D1 E4 4E 00 00 9C [07:11:06]Write i2c OK [07:11:06]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 [07:11:07]MH_I2C_Read... [07:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:07]Read from MH i2c: E2 03 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [07:11:07]RAPDU: 90 00 [07:11:07]wFMCommunicate OK [07:11:07]wFMCommunicate request_size=7 [07:11:07]MH_SAM_APDU [07:11:07]CAPDU: 80 0D 02 02 02 F9 D0 [07:11:07]Write to MH i2c: E2 0A 00 62 00 80 0D 02 02 02 00 F9 D0 00 00 A9 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:07]Read from MH i2c: E2 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 03 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [07:11:07]RAPDU: 90 00 [07:11:07]wFMCommunicate OK [07:11:07]wFMCommunicate request_size=4 [07:11:07]MH_SAM_APDU [07:11:07]CAPDU: 80 0D 03 02 [07:11:07]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:07]Read from MH i2c: E2 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 0B 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 0B 00 63 00 00 C2 98 E8 2F 93 06 20 2B 90 00 34 [07:11:07]RAPDU: C2 98 E8 2F 93 06 20 2B 90 00 [07:11:07]wFMCommunicate OK [07:11:07]SAM_PROTO_SignData done [07:11:07]FM_MakeSignedData done [07:11:07]CreateOFDProtocolMessage [07:11:07]wFMCommunicate request_size=4 [07:11:07]MH_SAM_APDU [07:11:07]CAPDU: 80 11 00 00 [07:11:07]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:07]Read from MH i2c: E2 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 17 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [07:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:07]wFMCommunicate OK [07:11:07]CreateOFDProtocolMessage done [07:11:07]OFDSenderStorePacket 178608 [07:11:07]StoreOFDPacket docnum=178608 [07:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 DA 3B 04 01 B9 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 B9 02 00 35 04 06 00 D8 D1 E4 4E F9 D0 C2 98 E8 2F 93 06 20 2B [07:11:07]CheckFolder [07:11:07]dirname=/storage/ofd_packets [07:11:07]CheckFolder done [07:11:07]ProducePacketName [07:11:07]name=ofd_packets/00178608 [07:11:07]NVStorageSaveData ofd_packets/00178608 [07:11:07]File name is /storage/ofd_packets/00178608 [07:11:07]Write 298 bytes [07:11:07]NVStorageSaveData done [07:11:07]OFDSenderStorePacket done [07:11:07]KKMCreateOFDPacket done [07:11:07]NVStorageSaveData kkm_last_timestamp [07:11:07]File name is /storage/kkm_last_timestamp [07:11:07]Write 4 bytes [07:11:07]NVStorageSaveData done [07:11:07]ExternCall_PrintAddStr [07:11:07]wPrintStart [07:11:07]Write to MH i2c: 01 00 00 65 00 65 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [07:11:07]RasterBufferAndPrint [07:11:07]line Счет N : (1)294012 [07:11:07]line ИНН: 02508201610067 [07:11:07]line Контрольно-Кассовый Чек [07:11:07]line ПРОДАЖА [07:11:07]line ТРК (МРК, ГНК) : 64 [07:11:07]line Товар: 2710194800 [07:11:07]line ДТ-К-5 [07:11:07]line 13.130 * 76.20 [07:11:07]line = 1000.51 [07:11:07]line НДС 12% НСП 1% [07:11:07]line > о реализуемом товаре [07:11:07]line ИТОГО: 1000.51 [07:11:07]line НСП 1% : 8.85 [07:11:07]line НДС 12% : 106.25 [07:11:07]line Наличными: 0.00 [07:11:07]line Безнал.: 1000.51 [07:11:07]line Место: АЗС № 130 "Партнер Нефть" [07:11:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:11:07]line СНО: Общий режим [07:11:07]line Чек 68 23.08.2024 07:11 [07:11:07]line Смена: 470 ФФД: 1.0 [07:11:07]line ЗНМ: 0300000071 [07:11:07]line РНМ: 0000000000092561 [07:11:07]line Версия ККМ: 001 [07:11:07]line Платежная система: Бакай Банк [07:11:07]line ФМ: 0000000000871778 [07:11:07]line ФД: 178608 [07:11:07]line ФПД: 238395990145488 [07:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071106&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178608&fm=238395990145488&tin=02508201610067®Number=0000000000092561&sum=100051 [07:11:07]written 0, free lines is 4095 [07:11:07]OFD Sender: Processing packet 178608 [packets to send 497, broken 496] [07:11:07]ProducePacketName [07:11:07]name=ofd_packets/00178608 [07:11:07]OFD Sender: To server: pG, [07:11:07]CommunicateWithHost lk.salyk.kg:30040 [07:11:07]ConnectInit lk.salyk.kg [07:11:07]Write to MH i2c: 01 00 00 8F 00 8F [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 E1 0C 83 [07:11:07]RasterBufferAndPrint [07:11:07]line [07:11:07]line [07:11:07]line [07:11:07]line [07:11:07]line [07:11:07]written 0, free lines is 3312 [07:11:07]MH_Cut [07:11:07]Write to MH i2c: D1 01 00 96 00 01 68 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: D1 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: D1 01 00 [07:11:07]MH_I2C_Read... [07:11:07]Read from MH i2c: D1 01 00 96 00 00 67 [07:11:07]Write to MH i2c: 01 00 00 97 00 97 [07:11:07]Write i2c OK [07:11:07]MH_I2C_Read... [07:11:08]*** Cut start [07:11:08]*** Partial cut [07:11:08]*** CUTSNS_PIN = 1 [07:11:08]*** CUTSNS_PIN = 0 [07:11:08]*** Brake cut motor [07:11:09]recv_with_timeout no data received [07:11:09]Read from MH i2c: 01 [07:11:09]MH_I2C_Read... [07:11:09]*** Stop cut motor [07:11:09]*** Cut end [07:11:09]Read from MH i2c: 01 07 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [07:11:09]process_action close_receipt done [07:11:09]requested_data is exist [07:11:09]produce_requested_data [07:11:09]requested_item fm.sn is exist - process it [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 11 00 00 [07:11:09]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 17 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6B [07:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:09]wFMCommunicate OK [07:11:09]requested_item fd.num is exist - process it [07:11:09]SAM_PROTO_GetFieldsCounters [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 13 00 00 [07:11:09]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 62 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B0 B9 02 00 0E 04 04 00 D6 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 48 [07:11: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B0 B9 02 00 0E 04 04 00 D6 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 [07:11:09]wFMCommunicate OK [07:11:09]SAM_PROTO_GetFieldsCounters done [07:11:09]requested_item shift.num is exist - process it [07:11:09]requested_item shift.opened is exist - process it [07:11:09]req_shift_opened [07:11:09]FM_GetShiftState [07:11:09]SAM_PROTO_GetShiftState [07:11:09]wFMCommunicate request_size=4 [07:11:09]MH_SAM_APDU [07:11:09]CAPDU: 80 13 01 00 [07:11:09]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [07:11:09]Write i2c OK [07:11:09]MH_I2C_Read... [07:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:09]Read from MH i2c: E2 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 [07:11:09]MH_I2C_Read... [07:11:09]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 EE [07:11:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:11:09]wFMCommunicate OK [07:11:09]SAM_PROTO_GetShiftState done [07:11:09]FM_GetShiftState done [07:11:09]req_shift_opened done [07:11:09]requested_item shift.open_date is exist - process it [07:11:09]req_shift_open_date [07:11:09]req_shift_open_date done [07:11:09]produce_requested_data done [07:11:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178608,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:11:09]process_action_free close_receipt [07:11:09]json_value_free [07:11:09]json_value_free done [07:11:09]process_json_proto returns [07:11:09]Send response to host [07:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178608,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:11:09]free response buf [07:11:09]execute_script done [07:11:09]execute_script returns [07:11:09]free content buf [07:11:09]Sock 6.Close socket [07:11:09]Sock 6.Thread stoped [07:11:12]ConnectInit Can't take IP for lk.salyk.kg [07:11:12]CommunicateWithHost connect error [07:11:12]CommunicateWithHost err = -1 [07:11:12]OFD Sender: Server communicate error [07:11:17]OFD Sender: Processing packet 178608 [packets to send 497, broken 496] [07:11:17]ProducePacketName [07:11:17]name=ofd_packets/00178608 [07:11:17]OFD Sender: To server: pG, [07:11:17]CommunicateWithHost lk.salyk.kg:30040 [07:11:17]ConnectInit lk.salyk.kg [07:11:17]accept exits with 10 [07:11:17]New connection [07:11:17]New thread 3067395428 created [07:11:17]Thread 3067252068 joined [07:11:17]Waiting for new connection... [07:11:17] Sock 10.Parse request [07:11:17]Sock 10.Check first char [07:11:17]Sock 10.First char is OK [07:11:17]request: POST /json_proto HTTP/1.0 [07:11:17]Method: POST [07:11:17]URL: /json_proto [07:11:17]Method is POST - this is cgi request [07:11:17]url: /json_proto [07:11:17]query_string will be loaded in cgi processing [07:11:17]execute_cgi json_proto POST (null) [07:11:17]execute_cgi path=json_proto method=POST [07:11:17]POST find Content-Length [07:11:17]Host: 172.17.44.131:8080 [07:11:17]Content-Length: 675 [07:11:17]Content-Type: application/json [07:11:17] [07:11:17]POST finish read [07:11:17]Found Content-Length = 675 [07:11:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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:11:17]execute_script... [07:11: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)294015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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:11:17]POST & json_proto [07:11:17]process_json_proto [07:11:17]json parsed OK: [07:11:17]protocol is kg_v1.0 [07:11:17]action value=close_receipt [07:11:17]process_action close_receipt [07:11:17]cmd_close_receipt [07:11:17]MH_GetDate [07:11:17]Write to MH i2c: F0 00 00 9B 00 8A [07:11:17]Write i2c OK [07:11:17]MH_I2C_Read... [07:11:17]Read from MH i2c: F0 [07:11:17]MH_I2C_Read... [07:11:17]Read from MH i2c: F0 09 00 [07:11:17]MH_I2C_Read... [07:11:17]Read from MH i2c: F0 09 00 9B 00 00 16 36 C8 66 4F 53 BE 66 D3 [07:11:17]GetLastDocTimeStamp 1724397066 [07:11:17]current date 1724397078 [07:11:17]FM_GetShiftState [07:11:17]SAM_PROTO_GetShiftState [07:11:17]wFMCommunicate request_size=4 [07:11:17]MH_SAM_APDU [07:11:17]CAPDU: 80 13 01 00 [07:11:17]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [07:11:17]Write i2c OK [07:11:17]MH_I2C_Read... [07:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:17]Read from MH i2c: E2 [07:11:17]MH_I2C_Read... [07:11:17]Read from MH i2c: E2 0E 00 [07:11:17]MH_I2C_Read... [07:11:17]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F0 [07:11:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:11:17]wFMCommunicate OK [07:11:17]SAM_PROTO_GetShiftState done [07:11:17]FM_GetShiftState done [07:11:17]opened in 1724371660 [07:11:17]opened+sec_in_day 1724458060 [07:11:17]quantity*price = 80010 [07:11:17]sum+1 = 80011 [07:11:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 69 23.08.2024 07:11 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178609 ФПД: 155165154691562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071118&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178609&fm=155165154691562&tin=02508201610067®Number=0000000000092561&sum=80000 [07:11:18]StoreToDocumentArchive [07:11:18]shift 470 fd 178609 [07:11:18]save to /storage/0470/doc_00178609 [07:11:18]save last doc name /storage/0470/doc_00178609 to /storage/kkm_last_doc_name [07:11:18]save OK [07:11:18]Clear old archive folders... [07:11:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:11:18]tlvbuf is 00A59FD0 [07:11:18]SAM_PROTO_ClearQueue [07:11:18]wFMCommunicate request_size=4 [07:11:18]MH_SAM_APDU [07:11:18]CAPDU: 80 09 00 00 [07:11:18]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [07:11:18]Write i2c OK [07:11:18]MH_I2C_Read... [07:11:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:18]Read from MH i2c: E2 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: E2 03 00 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [07:11:18]RAPDU: 90 00 [07:11:18]wFMCommunicate OK [07:11:18]SAM_PROTO_ClearQueue done [07:11:18]KKMCreateOFDPacket [07:11:18]OFDProtocolAddRootSTLVToBuf [07:11:18]FM_MakeSignedData [07:11:18]FM_MakeSignedData [07:11:18]SAM_PROTO_SignData [07:11:18]wFMCommunicate request_size=4 [07:11:18]MH_SAM_APDU [07:11:18]CAPDU: 80 0D 01 02 [07:11:18]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [07:11:18]Write i2c OK [07:11:18]MH_I2C_Read... [07:11:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:18]Read from MH i2c: E2 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: E2 03 00 [07:11:18]MH_I2C_Read... [07:11:18]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [07:11:18]RAPDU: 90 00 [07:11:18]wFMCommunicate OK [07:11:18]wFMCommunicate request_size=255 [07:11:18]MH_SAM_APDU [07:11:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 16 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 B9 02 00 35 04 06 00 8D 1F 33 ED [07:11:19]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 16 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 B9 02 00 35 04 06 00 8D 1F 33 ED 00 00 B2 [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:19]Read from MH i2c: E2 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [07:11:19]RAPDU: 90 00 [07:11:19]wFMCommunicate OK [07:11:19]wFMCommunicate request_size=7 [07:11:19]MH_SAM_APDU [07:11:19]CAPDU: 80 0D 02 02 02 49 EA [07:11:19]Write to MH i2c: E2 0A 00 AC 00 80 0D 02 02 02 00 49 EA 00 00 5D [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:19]Read from MH i2c: E2 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [07:11:19]RAPDU: 90 00 [07:11:19]wFMCommunicate OK [07:11:19]wFMCommunicate request_size=4 [07:11:19]MH_SAM_APDU [07:11:19]CAPDU: 80 0D 03 02 [07:11:19]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:19]Read from MH i2c: E2 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 0B 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 0B 00 AD 00 00 60 59 19 A5 3A A1 6B 0A 90 00 F0 [07:11:19]RAPDU: 60 59 19 A5 3A A1 6B 0A 90 00 [07:11:19]wFMCommunicate OK [07:11:19]SAM_PROTO_SignData done [07:11:19]FM_MakeSignedData done [07:11:19]CreateOFDProtocolMessage [07:11:19]wFMCommunicate request_size=4 [07:11:19]MH_SAM_APDU [07:11:19]CAPDU: 80 11 00 00 [07:11:19]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:19]Read from MH i2c: E2 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 17 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 81 [07:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:19]wFMCommunicate OK [07:11:19]CreateOFDProtocolMessage done [07:11:19]OFDSenderStorePacket 178609 [07:11:19]StoreOFDPacket docnum=178609 [07:11:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D2 8D 04 01 A2 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 16 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 B9 02 00 35 04 06 00 8D 1F 33 ED 49 EA 60 59 19 A5 3A A1 6B 0A [07:11:19]CheckFolder [07:11:19]dirname=/storage/ofd_packets [07:11:19]CheckFolder done [07:11:19]ProducePacketName [07:11:19]name=ofd_packets/00178609 [07:11:19]NVStorageSaveData ofd_packets/00178609 [07:11:19]File name is /storage/ofd_packets/00178609 [07:11:19]Write 298 bytes [07:11:19]NVStorageSaveData done [07:11:19]OFDSenderStorePacket done [07:11:19]KKMCreateOFDPacket done [07:11:19]NVStorageSaveData kkm_last_timestamp [07:11:19]File name is /storage/kkm_last_timestamp [07:11:19]Write 4 bytes [07:11:19]NVStorageSaveData done [07:11:19]ExternCall_PrintAddStr [07:11:19]wPrintStart [07:11:19]Write to MH i2c: 01 00 00 AF 00 AF [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: 01 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: 01 07 00 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [07:11:19]RasterBufferAndPrint [07:11:19]line Счет N : (1)294015 [07:11:19]line ИНН: 02508201610067 [07:11:19]line Контрольно-Кассовый Чек [07:11:19]line ПРОДАЖА [07:11:19]line ТРК (МРК, ГНК) : 11 [07:11:19]line Товар: 2710194800 [07:11:19]line ДТ-К-5 [07:11:19]line 10.500 * 76.20 [07:11:19]line = 800.10 [07:11:19]line НДС 12% НСП 1% [07:11:19]line > о реализуемом товаре [07:11:19]line ОКРУГЛЕНИЕ: -0.10 [07:11:19]line ИТОГО: 800.00 [07:11:19]line Внесено: 800.00 [07:11:19]line СДАЧА: 0.00 [07:11:19]line НСП 1% : 7.08 [07:11:19]line НДС 12% : 84.97 [07:11:19]line Наличными: 800.00 [07:11:19]line Безнал.: 0.00 [07:11:19]line Место: АЗС № 130 "Партнер Нефть" [07:11:19]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:11:19]line СНО: Общий режим [07:11:19]line Чек 69 23.08.2024 07:11 [07:11:19]line Смена: 470 ФФД: 1.0 [07:11:19]line ЗНМ: 0300000071 [07:11:19]line РНМ: 0000000000092561 [07:11:19]line Версия ККМ: 001 [07:11:19]line ФМ: 0000000000871778 [07:11:19]line ФД: 178609 [07:11:19]line ФПД: 155165154691562 [07:11:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071118&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178609&fm=155165154691562&tin=02508201610067®Number=0000000000092561&sum=80000 [07:11:19]written 0, free lines is 4095 [07:11:19]Write to MH i2c: 01 00 00 DA 00 DA [07:11:19]Write i2c OK [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: 01 [07:11:19]MH_I2C_Read... [07:11:19]Read from MH i2c: 01 07 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 CA 0C B7 [07:11:20]RasterBufferAndPrint [07:11:20]line [07:11:20]line [07:11:20]line [07:11:20]line [07:11:20]line [07:11:20]written 0, free lines is 3292 [07:11:20]MH_Cut [07:11:20]Write to MH i2c: D1 01 00 E1 00 01 B3 [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: D1 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: D1 01 00 [07:11:20]MH_I2C_Read... [07:11:20]Read from MH i2c: D1 01 00 E1 00 00 B2 [07:11:20]Write to MH i2c: 01 00 00 E2 00 E2 [07:11:20]Write i2c OK [07:11:20]MH_I2C_Read... [07:11:20]*** Cut start [07:11:20]*** Partial cut [07:11:20]*** CUTSNS_PIN = 1 [07:11:20]*** CUTSNS_PIN = 0 [07:11:21]*** Brake cut motor [07:11:21]Read from MH i2c: 01 [07:11:21]MH_I2C_Read... [07:11:21]*** Stop cut motor [07:11:21]*** Cut end [07:11:21]Read from MH i2c: 01 07 00 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [07:11:21]process_action close_receipt done [07:11:21]requested_data is exist [07:11:21]produce_requested_data [07:11:21]requested_item fm.sn is exist - process it [07:11:21]wFMCommunicate request_size=4 [07:11:21]MH_SAM_APDU [07:11:21]CAPDU: 80 11 00 00 [07:11:21]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [07:11:21]Write i2c OK [07:11:21]MH_I2C_Read... [07:11:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:21]Read from MH i2c: E2 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: E2 17 00 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B6 [07:11:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:21]wFMCommunicate OK [07:11:21]requested_item fd.num is exist - process it [07:11:21]SAM_PROTO_GetFieldsCounters [07:11:21]wFMCommunicate request_size=4 [07:11:21]MH_SAM_APDU [07:11:21]CAPDU: 80 13 00 00 [07:11:21]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [07:11:21]Write i2c OK [07:11:21]MH_I2C_Read... [07:11:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:21]Read from MH i2c: E2 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: E2 62 00 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B1 B9 02 00 0E 04 04 00 D6 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 97 [07:11:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B1 B9 02 00 0E 04 04 00 D6 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 [07:11:21]wFMCommunicate OK [07:11:21]SAM_PROTO_GetFieldsCounters done [07:11:21]requested_item shift.num is exist - process it [07:11:21]requested_item shift.opened is exist - process it [07:11:21]req_shift_opened [07:11:21]FM_GetShiftState [07:11:21]SAM_PROTO_GetShiftState [07:11:21]wFMCommunicate request_size=4 [07:11:21]MH_SAM_APDU [07:11:21]CAPDU: 80 13 01 00 [07:11:21]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [07:11:21]Write i2c OK [07:11:21]MH_I2C_Read... [07:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:21]Read from MH i2c: E2 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: E2 0E 00 [07:11:21]MH_I2C_Read... [07:11:21]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 39 [07:11:21]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:11:21]wFMCommunicate OK [07:11:21]SAM_PROTO_GetShiftState done [07:11:21]FM_GetShiftState done [07:11:21]req_shift_opened done [07:11:21]requested_item shift.open_date is exist - process it [07:11:21]req_shift_open_date [07:11:21]req_shift_open_date done [07:11:21]produce_requested_data done [07:11:21]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178609,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:11:21]process_action_free close_receipt [07:11:21]json_value_free [07:11:21]json_value_free done [07:11:21]process_json_proto returns [07:11:21]Send response to host [07:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178609,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:11:21]free response buf [07:11:21]execute_script done [07:11:21]execute_script returns [07:11:21]free content buf [07:11:21]Sock 10.Close socket [07:11:21]Sock 10.Thread stoped [07:11:22]ConnectInit Can't take IP for lk.salyk.kg [07:11:22]CommunicateWithHost connect error [07:11:22]CommunicateWithHost err = -1 [07:11:22]OFD Sender: Server communicate error [07:11:22]OFD Sender: Processing packet 178608 [packets to send 498, broken 496] [07:11:22]ProducePacketName [07:11:22]name=ofd_packets/00178608 [07:11:22]OFD Sender: To server: pG, [07:11:22]CommunicateWithHost lk.salyk.kg:30040 [07:11:22]ConnectInit lk.salyk.kg [07:11:27]ConnectInit Can't take IP for lk.salyk.kg [07:11:27]CommunicateWithHost connect error [07:11:27]CommunicateWithHost err = -1 [07:11:27]OFD Sender: Server communicate error [07:11:32]OFD Sender: Processing packet 178608 [packets to send 498, broken 496] [07:11:32]ProducePacketName [07:11:32]name=ofd_packets/00178608 [07:11:32]OFD Sender: To server: pG, [07:11:32]CommunicateWithHost lk.salyk.kg:30040 [07:11:32]ConnectInit lk.salyk.kg [07:11:37]ConnectInit Can't take IP for lk.salyk.kg [07:11:37]CommunicateWithHost connect error [07:11:37]CommunicateWithHost err = -1 [07:11:37]OFD Sender: Server communicate error [07:11:42]OFD Sender: Processing packet 178608 [packets to send 498, broken 496] [07:11:42]ProducePacketName [07:11:42]name=ofd_packets/00178608 [07:11:42]OFD Sender: To server: pG, [07:11:42]CommunicateWithHost lk.salyk.kg:30040 [07:11:42]ConnectInit lk.salyk.kg [07:11:47]ConnectInit Can't take IP for lk.salyk.kg [07:11:47]CommunicateWithHost connect error [07:11:47]CommunicateWithHost err = -1 [07:11:47]OFD Sender: Server communicate error [07:11:52]OFD Sender: Processing packet 178608 [packets to send 498, broken 496] [07:11:52]ProducePacketName [07:11:52]name=ofd_packets/00178608 [07:11:52]OFD Sender: To server: pG, [07:11:52]CommunicateWithHost lk.salyk.kg:30040 [07:11:52]ConnectInit lk.salyk.kg [07:11:55]accept exits with 12 [07:11:55]New connection [07:11:55]New thread 3067252068 created [07:11:55]Thread 3067395428 joined [07:11:55]Waiting for new connection... [07:11:55] Sock 12.Parse request [07:11:55]Sock 12.Check first char [07:11:55]Sock 12.First char is OK [07:11:55]request: POST /json_proto HTTP/1.0 [07:11:55]Method: POST [07:11:55]URL: /json_proto [07:11:55]Method is POST - this is cgi request [07:11:55]url: /json_proto [07:11:55]query_string will be loaded in cgi processing [07:11:55]execute_cgi json_proto POST (null) [07:11:55]execute_cgi path=json_proto method=POST [07:11:55]POST find Content-Length [07:11:55]Host: 172.17.44.131:8080 [07:11:55]Content-Length: 678 [07:11:55]Content-Type: application/json [07:11:55] [07:11:55]POST finish read [07:11:55]Found Content-Length = 678 [07:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294013", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [07:11:55]execute_script... [07:11: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)294013", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [07:11:55]POST & json_proto [07:11:55]process_json_proto [07:11:55]json parsed OK: [07:11:55]protocol is kg_v1.0 [07:11:55]action value=close_receipt [07:11:55]process_action close_receipt [07:11:55]cmd_close_receipt [07:11:55]MH_GetDate [07:11:55]Write to MH i2c: F0 00 00 E6 00 D5 [07:11:55]Write i2c OK [07:11:55]MH_I2C_Read... [07:11:55]Read from MH i2c: F0 [07:11:55]MH_I2C_Read... [07:11:55]Read from MH i2c: F0 09 00 [07:11:55]MH_I2C_Read... [07:11:55]Read from MH i2c: F0 09 00 E6 00 00 3C 36 C8 66 4F 53 BE 66 44 [07:11:55]GetLastDocTimeStamp 1724397078 [07:11:55]current date 1724397116 [07:11:55]FM_GetShiftState [07:11:55]SAM_PROTO_GetShiftState [07:11:55]wFMCommunicate request_size=4 [07:11:55]MH_SAM_APDU [07:11:55]CAPDU: 80 13 01 00 [07:11:55]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [07:11:55]Write i2c OK [07:11:55]MH_I2C_Read... [07:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:55]Read from MH i2c: E2 [07:11:55]MH_I2C_Read... [07:11:55]Read from MH i2c: E2 0E 00 [07:11:55]MH_I2C_Read... [07:11:55]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3B [07:11:55]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:11:55]wFMCommunicate OK [07:11:55]SAM_PROTO_GetShiftState done [07:11:55]FM_GetShiftState done [07:11:55]opened in 1724371660 [07:11:55]opened+sec_in_day 1724458060 [07:11:55]quantity*price = 70037 [07:11:55]sum+1 = 70038 [07:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 70 23.08.2024 07:11 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178610 ФПД: 196330400808527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071156&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178610&fm=196330400808527&tin=02508201610067®Number=0000000000092561&sum=70000 [07:11:57]StoreToDocumentArchive [07:11:57]shift 470 fd 178610 [07:11:57]save to /storage/0470/doc_00178610 [07:11:57]save last doc name /storage/0470/doc_00178610 to /storage/kkm_last_doc_name [07:11:57]save OK [07:11:57]Clear old archive folders... [07:11:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:11:57]tlvbuf is 00AC3F00 [07:11:57]SAM_PROTO_ClearQueue [07:11:57]wFMCommunicate request_size=4 [07:11:57]MH_SAM_APDU [07:11:57]CAPDU: 80 09 00 00 [07:11:57]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:57]Read from MH i2c: E2 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [07:11:57]RAPDU: 90 00 [07:11:57]wFMCommunicate OK [07:11:57]SAM_PROTO_ClearQueue done [07:11:57]KKMCreateOFDPacket [07:11:57]OFDProtocolAddRootSTLVToBuf [07:11:57]FM_MakeSignedData [07:11:57]FM_MakeSignedData [07:11:57]SAM_PROTO_SignData [07:11:57]wFMCommunicate request_size=4 [07:11:57]MH_SAM_APDU [07:11:57]CAPDU: 80 0D 01 02 [07:11:57]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 [07:11:57]MH_I2C_Read... [07:11:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:57]Read from MH i2c: E2 03 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [07:11:57]RAPDU: 90 00 [07:11:57]wFMCommunicate OK [07:11:57]wFMCommunicate request_size=255 [07:11:57]MH_SAM_APDU [07:11: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 46 00 00 00 F4 03 04 00 3C 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 B9 02 00 35 04 06 00 B2 [07:11:57]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 46 00 00 00 F4 03 04 00 3C 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 B9 02 00 35 04 06 00 B2 00 00 B4 [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:57]ConnectInit Can't take IP for lk.salyk.kg [07:11:57]CommunicateWithHost connect error [07:11:57]CommunicateWithHost err = -1 [07:11:57]OFD Sender: Server communicate error [07:11:57]Read from MH i2c: E2 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [07:11:57]RAPDU: 90 00 [07:11:57]wFMCommunicate OK [07:11:57]wFMCommunicate request_size=10 [07:11:57]MH_SAM_APDU [07:11:57]CAPDU: 80 0D 02 02 05 8F BB CC 7E 4F [07:11:57]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 8F BB CC 7E 4F 00 00 5E [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:57]Read from MH i2c: E2 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [07:11:57]RAPDU: 90 00 [07:11:57]wFMCommunicate OK [07:11:57]wFMCommunicate request_size=4 [07:11:57]MH_SAM_APDU [07:11:57]CAPDU: 80 0D 03 02 [07:11:57]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:57]Read from MH i2c: E2 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 0B 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 0B 00 F8 00 00 D6 A1 22 94 0F 67 AE FE 90 00 C3 [07:11:57]RAPDU: D6 A1 22 94 0F 67 AE FE 90 00 [07:11:57]wFMCommunicate OK [07:11:57]SAM_PROTO_SignData done [07:11:57]FM_MakeSignedData done [07:11:57]CreateOFDProtocolMessage [07:11:57]wFMCommunicate request_size=4 [07:11:57]MH_SAM_APDU [07:11:57]CAPDU: 80 11 00 00 [07:11:57]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:57]Read from MH i2c: E2 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 17 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CC [07:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:57]wFMCommunicate OK [07:11:57]CreateOFDProtocolMessage done [07:11:57]OFDSenderStorePacket 178610 [07:11:57]StoreOFDPacket docnum=178610 [07:11:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 F1 40 07 01 EF 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 46 00 00 00 F4 03 04 00 3C 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 B9 02 00 35 04 06 00 B2 8F BB CC 7E 4F D6 A1 22 94 0F 67 AE FE [07:11:57]CheckFolder [07:11:57]dirname=/storage/ofd_packets [07:11:57]CheckFolder done [07:11:57]ProducePacketName [07:11:57]name=ofd_packets/00178610 [07:11:57]NVStorageSaveData ofd_packets/00178610 [07:11:57]File name is /storage/ofd_packets/00178610 [07:11:57]Write 301 bytes [07:11:57]NVStorageSaveData done [07:11:57]OFDSenderStorePacket done [07:11:57]KKMCreateOFDPacket done [07:11:57]NVStorageSaveData kkm_last_timestamp [07:11:57]File name is /storage/kkm_last_timestamp [07:11:57]Write 4 bytes [07:11:57]NVStorageSaveData done [07:11:57]ExternCall_PrintAddStr [07:11:57]wPrintStart [07:11:57]Write to MH i2c: 01 00 00 FA 00 FA [07:11:57]Write i2c OK [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: 01 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: 01 07 00 [07:11:57]MH_I2C_Read... [07:11:57]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [07:11:58]RasterBufferAndPrint [07:11:58]line Счет N : (1)294013 [07:11:58]line ИНН: 02508201610067 [07:11:58]line Контрольно-Кассовый Чек [07:11:58]line ПРОДАЖА [07:11:58]line ТРК (МРК, ГНК) : 42 [07:11:58]line Товар: 2710124130 [07:11:58]line Аи-92-К-5 [07:11:58]line 10.330 * 67.80 [07:11:58]line = 700.37 [07:11:58]line НДС 12% НСП 1% [07:11:58]line > о реализуемом товаре [07:11:58]line ОКРУГЛЕНИЕ: -0.37 [07:11:58]line ИТОГО: 700.00 [07:11:58]line Внесено: 700.00 [07:11:58]line СДАЧА: 0.00 [07:11:58]line НСП 1% : 6.20 [07:11:58]line НДС 12% : 74.38 [07:11:58]line Наличными: 700.00 [07:11:58]line Безнал.: 0.00 [07:11:58]line Место: АЗС № 130 "Партнер Нефть" [07:11:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:11:58]line СНО: Общий режим [07:11:58]line Чек 70 23.08.2024 07:11 [07:11:58]line Смена: 470 ФФД: 1.0 [07:11:58]line ЗНМ: 0300000071 [07:11:58]line РНМ: 0000000000092561 [07:11:58]line Версия ККМ: 001 [07:11:58]line ФМ: 0000000000871778 [07:11:58]line ФД: 178610 [07:11:58]line ФПД: 196330400808527 [07:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071156&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178610&fm=196330400808527&tin=02508201610067®Number=0000000000092561&sum=70000 [07:11:58]written 0, free lines is 4095 [07:11:58]OFD Sender: Processing packet 178608 [packets to send 499, broken 496] [07:11:58]ProducePacketName [07:11:58]name=ofd_packets/00178608 [07:11:58]OFD Sender: To server: pG, [07:11:58]CommunicateWithHost lk.salyk.kg:30040 [07:11:58]ConnectInit lk.salyk.kg [07:11:58]Write to MH i2c: 01 00 00 25 01 26 [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: 01 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: 01 07 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 C8 0C 01 [07:11:58]RasterBufferAndPrint [07:11:58]line [07:11:58]line [07:11:58]line [07:11:58]line [07:11:58]line [07:11:58]written 0, free lines is 3299 [07:11:58]MH_Cut [07:11:58]Write to MH i2c: D1 01 00 2C 01 01 FF [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: D1 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: D1 01 00 [07:11:58]MH_I2C_Read... [07:11:58]Read from MH i2c: D1 01 00 2C 01 00 FE [07:11:58]Write to MH i2c: 01 00 00 2D 01 2E [07:11:58]Write i2c OK [07:11:58]MH_I2C_Read... [07:11:59]*** Cut start [07:11:59]*** Partial cut [07:11:59]*** CUTSNS_PIN = 1 [07:11:59]*** CUTSNS_PIN = 0 [07:11:59]*** Brake cut motor [07:11:59]Read from MH i2c: 01 [07:11:59]MH_I2C_Read... [07:11:59]*** Stop cut motor [07:11:59]*** Cut end [07:11:59]Read from MH i2c: 01 07 00 [07:11:59]MH_I2C_Read... [07:11:59]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [07:11:59]process_action close_receipt done [07:11:59]requested_data is exist [07:11:59]produce_requested_data [07:11:59]requested_item fm.sn is exist - process it [07:11:59]wFMCommunicate request_size=4 [07:11:59]MH_SAM_APDU [07:11:59]CAPDU: 80 11 00 00 [07:11:59]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [07:11:59]Write i2c OK [07:11:59]MH_I2C_Read... [07:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:59]Read from MH i2c: E2 [07:11:59]MH_I2C_Read... [07:11:59]Read from MH i2c: E2 17 00 [07:11:59]MH_I2C_Read... [07:11:59]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 02 [07:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:11:59]wFMCommunicate OK [07:11:59]requested_item fd.num is exist - process it [07:11:59]SAM_PROTO_GetFieldsCounters [07:11:59]wFMCommunicate request_size=4 [07:11:59]MH_SAM_APDU [07:11:59]CAPDU: 80 13 00 00 [07:11:59]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [07:11:59]Write i2c OK [07:11:59]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 62 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B2 B9 02 00 0E 04 04 00 D6 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 E7 [07:12: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B2 B9 02 00 0E 04 04 00 D6 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 [07:12:00]wFMCommunicate OK [07:12:00]SAM_PROTO_GetFieldsCounters done [07:12:00]requested_item shift.num is exist - process it [07:12:00]requested_item shift.opened is exist - process it [07:12:00]req_shift_opened [07:12:00]FM_GetShiftState [07:12:00]SAM_PROTO_GetShiftState [07:12:00]wFMCommunicate request_size=4 [07:12:00]MH_SAM_APDU [07:12:00]CAPDU: 80 13 01 00 [07:12:00]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [07:12:00]Write i2c OK [07:12:00]MH_I2C_Read... [07:12:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:00]Read from MH i2c: E2 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 0E 00 [07:12:00]MH_I2C_Read... [07:12:00]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 85 [07:12:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:12:00]wFMCommunicate OK [07:12:00]SAM_PROTO_GetShiftState done [07:12:00]FM_GetShiftState done [07:12:00]req_shift_opened done [07:12:00]requested_item shift.open_date is exist - process it [07:12:00]req_shift_open_date [07:12:00]req_shift_open_date done [07:12:00]produce_requested_data done [07:12:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178610,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:12:00]process_action_free close_receipt [07:12:00]json_value_free [07:12:00]json_value_free done [07:12:00]process_json_proto returns [07:12:00]Send response to host [07:12:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178610,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:12:00]free response buf [07:12:00]execute_script done [07:12:00]execute_script returns [07:12:00]free content buf [07:12:00]Sock 12.Close socket [07:12:00]Sock 12.Thread stoped [07:12:03]ConnectInit Can't take IP for lk.salyk.kg [07:12:03]CommunicateWithHost connect error [07:12:03]CommunicateWithHost err = -1 [07:12:03]OFD Sender: Server communicate error [07:12:08]OFD Sender: Processing packet 178608 [packets to send 499, broken 496] [07:12:08]ProducePacketName [07:12:08]name=ofd_packets/00178608 [07:12:08]OFD Sender: To server: pG, [07:12:08]CommunicateWithHost lk.salyk.kg:30040 [07:12:08]ConnectInit lk.salyk.kg [07:12:13]ConnectInit Can't take IP for lk.salyk.kg [07:12:13]CommunicateWithHost connect error [07:12:13]CommunicateWithHost err = -1 [07:12:13]OFD Sender: Server communicate error [07:12:18]OFD Sender: Processing packet 178608 [packets to send 499, broken 496] [07:12:18]ProducePacketName [07:12:18]name=ofd_packets/00178608 [07:12:18]OFD Sender: To server: pG, [07:12:18]CommunicateWithHost lk.salyk.kg:30040 [07:12:18]ConnectInit lk.salyk.kg [07:12:23]ConnectInit Can't take IP for lk.salyk.kg [07:12:23]CommunicateWithHost connect error [07:12:23]CommunicateWithHost err = -1 [07:12:23]OFD Sender: Server communicate error [07:12:28]OFD Sender: Processing packet 178608 [packets to send 499, broken 496] [07:12:28]ProducePacketName [07:12:28]name=ofd_packets/00178608 [07:12:28]OFD Sender: To server: pG, [07:12:28]CommunicateWithHost lk.salyk.kg:30040 [07:12:28]ConnectInit lk.salyk.kg [07:12:33]ConnectInit Can't take IP for lk.salyk.kg [07:12:33]CommunicateWithHost connect error [07:12:33]CommunicateWithHost err = -1 [07:12:33]OFD Sender: Server communicate error [07:12:38]OFD Sender: Processing packet 178608 [packets to send 499, broken 496] [07:12:38]ProducePacketName [07:12:38]name=ofd_packets/00178608 [07:12:38]OFD Sender: To server: pG, [07:12:38]CommunicateWithHost lk.salyk.kg:30040 [07:12:38]ConnectInit lk.salyk.kg [07:12:43]ConnectInit Can't take IP for lk.salyk.kg [07:12:43]CommunicateWithHost connect error [07:12:43]CommunicateWithHost err = -1 [07:12:43]OFD Sender: Server communicate error [07:12:48]OFD Sender: Processing packet 178608 [packets to send 499, broken 496] [07:12:48]ProducePacketName [07:12:48]name=ofd_packets/00178608 [07:12:48]OFD Sender: To server: pG, [07:12:48]CommunicateWithHost lk.salyk.kg:30040 [07:12:48]ConnectInit lk.salyk.kg [07:12:49]Connected sock=9 [07:12:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 DA 3B 04 01 B9 36 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 0A 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 B9 02 00 35 04 06 00 D8 D1 E4 4E F9 D0 C2 98 E8 2F 93 06 20 2B [07:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 0E 01 47 00 38 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B0 B9 02 00 F4 03 04 00 18 E2 C7 66 B6 04 01 00 00 B0 6D 69 26 F2 06 46 F5 [07:12:50]CommunicateWithHost err = 0 [07:12:50]CheckOFDResponse [07:12:50]1017 (14) - 77093643461234 [07:12:50]1041 (16) - 0000000000871778 [07:12:50]1040 (4) - 178608 [07:12:50]1012 (4) - 23.08.2024 01:12 [07:12:50]1206 (1) - 0 [07:12:50]OFD Sender: Remove packet 178608 [07:12:50]ProducePacketName [07:12:50]name=ofd_packets/00178608 [07:12:50]NVStorageDeleteData [07:12:50]OFD Sender: Processing packet 178609 [packets to send 498, broken 496] [07:12:50]ProducePacketName [07:12:50]name=ofd_packets/00178609 [07:12:50]OFD Sender: To server: pG, [07:12:50]CommunicateWithHost lk.salyk.kg:30040 [07:12:50]ConnectInit lk.salyk.kg [07:12:51]Connected sock=9 [07:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D2 8D 04 01 A2 F9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 16 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B1 B9 02 00 35 04 06 00 8D 1F 33 ED 49 EA 60 59 19 A5 3A A1 6B 0A [07:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1A 92 47 00 F6 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 31 37 37 38 10 04 04 00 B1 B9 02 00 F4 03 04 00 19 E2 C7 66 B6 04 01 00 00 0F F1 A3 04 3E 13 EC CD [07:12:51]CommunicateWithHost err = 0 [07:12:51]CheckOFDResponse [07:12:51]1017 (14) - 77093643461234 [07:12:51]1041 (16) - 0000000000871778 [07:12:51]1040 (4) - 178609 [07:12:51]1012 (4) - 23.08.2024 01:12 [07:12:51]1206 (1) - 0 [07:12:51]OFD Sender: Remove packet 178609 [07:12:51]ProducePacketName [07:12:51]name=ofd_packets/00178609 [07:12:51]NVStorageDeleteData [07:12:52]OFD Sender: Processing packet 178610 [packets to send 497, broken 496] [07:12:52]ProducePacketName [07:12:52]name=ofd_packets/00178610 [07:12:52]OFD Sender: To server: pG, [07:12:52]CommunicateWithHost lk.salyk.kg:30040 [07:12:52]ConnectInit lk.salyk.kg [07:12:52]Connected sock=9 [07:12:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 F1 40 07 01 EF 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 46 00 00 00 F4 03 04 00 3C 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 B9 02 00 35 04 06 00 B2 8F BB CC 7E 4F D6 A1 22 94 0F 67 AE FE [07:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FC 42 47 00 BE 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B2 B9 02 00 F4 03 04 00 1B E2 C7 66 B6 04 01 00 00 1F CD 4A 2A 59 A5 6B C6 [07:12:52]CommunicateWithHost err = 0 [07:12:52]CheckOFDResponse [07:12:52]1017 (14) - 77093643461234 [07:12:52]1041 (16) - 0000000000871778 [07:12:52]1040 (4) - 178610 [07:12:52]1012 (4) - 23.08.2024 01:12 [07:12:52]1206 (1) - 0 [07:12:52]OFD Sender: Remove packet 178610 [07:12:52]ProducePacketName [07:12:52]name=ofd_packets/00178610 [07:12:52]NVStorageDeleteData [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:24]ConnectInit Can't connect to host [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:41]accept exits with 11 [07:13:41]New connection [07:13:41]New thread 3067395428 created [07:13:41]Thread 3067252068 joined [07:13:41]Waiting for new connection... [07:13:41] Sock 11.Parse request [07:13:41]Sock 11.Check first char [07:13:41]Sock 11.First char is OK [07:13:41]request: POST /json_proto HTTP/1.0 [07:13:41]Method: POST [07:13:41]URL: /json_proto [07:13:41]Method is POST - this is cgi request [07:13:41]url: /json_proto [07:13:41]query_string will be loaded in cgi processing [07:13:41]execute_cgi json_proto POST (null) [07:13:41]execute_cgi path=json_proto method=POST [07:13:41]POST find Content-Length [07:13:41]Host: 172.17.44.131:8080 [07:13:41]Content-Length: 668 [07:13:41]Content-Type: application/json [07:13:41] [07:13:41]POST finish read [07:13:41]Found Content-Length = 668 [07:13:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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" ] } } [07:13:41]execute_script... [07:13: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)294016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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" ] } } [07:13:41]POST & json_proto [07:13:41]process_json_proto [07:13:41]json parsed OK: [07:13:41]protocol is kg_v1.0 [07:13:41]action value=close_receipt [07:13:41]process_action close_receipt [07:13:41]cmd_close_receipt [07:13:41]MH_GetDate [07:13:41]Write to MH i2c: F0 00 00 31 01 21 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: F0 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: F0 09 00 [07:13:41]MH_I2C_Read... [07:13:41]Read from MH i2c: F0 09 00 31 01 00 A6 36 C8 66 4F 53 BE 66 FA [07:13:41]GetLastDocTimeStamp 1724397116 [07:13:41]current date 1724397222 [07:13:41]FM_GetShiftState [07:13:41]SAM_PROTO_GetShiftState [07:13:41]wFMCommunicate request_size=4 [07:13:41]MH_SAM_APDU [07:13:41]CAPDU: 80 13 01 00 [07:13:41]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [07:13:41]Write i2c OK [07:13:41]MH_I2C_Read... [07:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:42]Read from MH i2c: E2 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 0E 00 [07:13:42]MH_I2C_Read... [07:13:42]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 87 [07:13:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:13:42]wFMCommunicate OK [07:13:42]SAM_PROTO_GetShiftState done [07:13:42]FM_GetShiftState done [07:13:42]opened in 1724371660 [07:13:42]opened+sec_in_day 1724458060 [07:13:42]quantity*price = 70038 [07:13:42]sum+1 = 70039 [07:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 71 23.08.2024 07:13 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178611 ФПД: 275407149233982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071342&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178611&fm=275407149233982&tin=02508201610067®Number=0000000000092561&sum=70000 [07:13:43]StoreToDocumentArchive [07:13:43]shift 470 fd 178611 [07:13:43]save to /storage/0470/doc_00178611 [07:13:43]save last doc name /storage/0470/doc_00178611 to /storage/kkm_last_doc_name [07:13:43]save OK [07:13:43]Clear old archive folders... [07:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=249 [07:13:43]tlvbuf is 00A8E890 [07:13:43]SAM_PROTO_ClearQueue [07:13:43]wFMCommunicate request_size=4 [07:13:43]MH_SAM_APDU [07:13:43]CAPDU: 80 09 00 00 [07:13:43]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [07:13:43]Write i2c OK [07:13:43]MH_I2C_Read... [07:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:43]Read from MH i2c: E2 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: E2 03 00 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [07:13:43]RAPDU: 90 00 [07:13:43]wFMCommunicate OK [07:13:43]SAM_PROTO_ClearQueue done [07:13:43]KKMCreateOFDPacket [07:13:43]OFDProtocolAddRootSTLVToBuf [07:13:43]FM_MakeSignedData [07:13:43]FM_MakeSignedData [07:13:43]SAM_PROTO_SignData [07:13:43]wFMCommunicate request_size=4 [07:13:43]MH_SAM_APDU [07:13:43]CAPDU: 80 0D 01 02 [07:13:43]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [07:13:43]Write i2c OK [07:13:43]MH_I2C_Read... [07:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:43]Read from MH i2c: E2 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: E2 03 00 [07:13:43]MH_I2C_Read... [07:13:43]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [07:13:43]RAPDU: 90 00 [07:13:43]wFMCommunicate OK [07:13:43]wFMCommunicate request_size=255 [07:13:43]MH_SAM_APDU [07:13:43]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 47 00 00 00 F4 03 04 00 A6 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 B9 02 00 35 04 06 00 FA 7B 39 [07:13:43]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 OFD Sender: No OFD packet to send [07:13:43]00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 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 47 00 00 00 F4 03 04 00 A6 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 B9 02 00 35 04 06 00 FA 7B 39 00 00 F0 [07:13:43]Write i2c OK [07:13:43]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [07:13:44]RAPDU: 90 00 [07:13:44]wFMCommunicate OK [07:13:44]wFMCommunicate request_size=8 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 0D 02 02 03 4C 77 3E [07:13:44]Write to MH i2c: E2 0B 00 42 01 80 0D 02 02 03 00 4C 77 3E 00 00 C4 [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [07:13:44]RAPDU: 90 00 [07:13:44]wFMCommunicate OK [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 0D 03 02 [07:13:44]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 0B 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 0B 00 43 01 00 51 CC 24 DD 48 61 02 7D 90 00 06 [07:13:44]RAPDU: 51 CC 24 DD 48 61 02 7D 90 00 [07:13:44]wFMCommunicate OK [07:13:44]SAM_PROTO_SignData done [07:13:44]FM_MakeSignedData done [07:13:44]CreateOFDProtocolMessage [07:13:44]wFMCommunicate request_size=4 [07:13:44]MH_SAM_APDU [07:13:44]CAPDU: 80 11 00 00 [07:13:44]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:44]Read from MH i2c: E2 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 17 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 18 [07:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:13:44]wFMCommunicate OK [07:13:44]CreateOFDProtocolMessage done [07:13:44]OFDSenderStorePacket 178611 [07:13:44]StoreOFDPacket docnum=178611 [07:13:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 1C 4E 05 01 AB 96 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 47 00 00 00 F4 03 04 00 A6 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B3 B9 02 00 35 04 06 00 FA 7B 39 4C 77 3E 51 CC 24 DD 48 61 02 7D [07:13:44]CheckFolder [07:13:44]dirname=/storage/ofd_packets [07:13:44]CheckFolder done [07:13:44]ProducePacketName [07:13:44]name=ofd_packets/00178611 [07:13:44]NVStorageSaveData ofd_packets/00178611 [07:13:44]File name is /storage/ofd_packets/00178611 [07:13:44]Write 299 bytes [07:13:44]NVStorageSaveData done [07:13:44]OFDSenderStorePacket done [07:13:44]KKMCreateOFDPacket done [07:13:44]NVStorageSaveData kkm_last_timestamp [07:13:44]File name is /storage/kkm_last_timestamp [07:13:44]Write 4 bytes [07:13:44]NVStorageSaveData done [07:13:44]ExternCall_PrintAddStr [07:13:44]wPrintStart [07:13:44]Write to MH i2c: 01 00 00 45 01 46 [07:13:44]OFD Sender: Processing packet 178611 [packets to send 497, broken 496] [07:13:44]ProducePacketName [07:13:44]name=ofd_packets/00178611 [07:13:44]OFD Sender: To server: pG, [07:13:44]CommunicateWithHost lk.salyk.kg:30040 [07:13:44]ConnectInit lk.salyk.kg [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: 01 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: 01 07 00 [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [07:13:44]RasterBufferAndPrint [07:13:44]line Счет N : (1)294016 [07:13:44]line ИНН: 02508201610067 [07:13:44]line Контрольно-Кассовый Чек [07:13:44]line ПРОДАЖА [07:13:44]line ТРК (МРК, ГНК) : 31 [07:13:44]line Товар: 2710124130 [07:13:44]line SU-92-К-5 [07:13:44]line 10.180 * 68.80 [07:13:44]line = 700.38 [07:13:44]line НДС 12% НСП 1% [07:13:44]line > о реализуемом товаре [07:13:44]line ОКРУГЛЕНИЕ: -0.38 [07:13:44]line ИТОГО: 700.00 [07:13:44]line Внесено: 700.00 [07:13:44]line СДАЧА: 0.00 [07:13:44]line НСП 1% : 6.20 [07:13:44]line НДС 12% : 74.38 [07:13:44]line Наличными: 700.00 [07:13:44]line Безнал.: 0.00 [07:13:44]line Место: АЗС № 130 "Партнер Нефть" [07:13:44]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:13:44]line СНО: Общий режим [07:13:44]line Чек 71 23.08.2024 07:13 [07:13:44]line Смена: 470 ФФД: 1.0 [07:13:44]line ЗНМ: 0300000071 [07:13:44]line РНМ: 0000000000092561 [07:13:44]line Версия ККМ: 001 [07:13:44]line ФМ: 0000000000871778 [07:13:44]line ФД: 178611 [07:13:44]line ФПД: 275407149233982 [07:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071342&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178611&fm=275407149233982&tin=02508201610067®Number=0000000000092561&sum=70000 [07:13:44]written 0, free lines is 4095 [07:13:44]Write to MH i2c: 01 00 00 70 01 71 [07:13:44]Write i2c OK [07:13:44]MH_I2C_Read... [07:13:44]Read from MH i2c: 01 [07:13:44]MH_I2C_Read... [07:13:44]Connected sock=7 [07:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 1C 4E 05 01 AB 96 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 47 00 00 00 F4 03 04 00 A6 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 Read from MH i2c: 30 01 30 07 30 00 30 [07:13:45]30 MH_I2C_Read... [07:13:45]30 30 38 37 31 37 37 38 10 04 04 00 B3 B9 02 00 35 04 06 00 FA 7B 39 4C 77 3E 51 Read from MH i2c: CC 01 24 07 DD 00 48 70 61 01 02 00 7D 00 [07:13:45]00 00 00 C5 0C 49 [07:13:45]RasterBufferAndPrint [07:13:45]line [07:13:45]line [07:13:45]line [07:13:45]line [07:13:45]line [07:13:45]written 0, free lines is 3718 [07:13:45]MH_Cut [07:13:45]Write to MH i2c: D1 01 00 77 01 01 4A [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: D1 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: D1 01 00 [07:13:45]MH_I2C_Read... [07:13:45]Read from MH i2c: D1 01 00 77 01 00 49 [07:13:45]Write to MH i2c: 01 00 00 78 01 79 [07:13:45]Write i2c OK [07:13:45]MH_I2C_Read... [07:13:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 7B 99 47 00 ED 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 31 37 37 38 10 04 04 00 B3 B9 02 00 F4 03 04 00 4F E2 C7 66 B6 04 01 00 00 27 83 F7 26 16 73 64 F1 [07:13:45]CommunicateWithHost err = 0 [07:13:45]CheckOFDResponse [07:13:45]1017 (14) - 77093643461234 [07:13:45]1041 (16) - 0000000000871778 [07:13:45]1040 (4) - 178611 [07:13:45]1012 (4) - 23.08.2024 01:13 [07:13:45]1206 (1) - 0 [07:13:45]OFD Sender: Remove packet 178611 [07:13:45]ProducePacketName [07:13:45]name=ofd_packets/00178611 [07:13:45]NVStorageDeleteData [07:13:45]*** Cut start [07:13:45]*** Partial cut [07:13:45]*** CUTSNS_PIN = 1 [07:13:45]*** CUTSNS_PIN = 0 [07:13:45]*** Brake cut motor [07:13:46]OFD Sender: No OFD packet to send [07:13:46]Read from MH i2c: *** Stop cut motor [07:13:46]01 *** Cut end [07:13:46] [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: 01 07 00 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [07:13:46]process_action close_receipt done [07:13:46]requested_data is exist [07:13:46]produce_requested_data [07:13:46]requested_item fm.sn is exist - process it [07:13:46]wFMCommunicate request_size=4 [07:13:46]MH_SAM_APDU [07:13:46]CAPDU: 80 11 00 00 [07:13:46]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [07:13:46]Write i2c OK [07:13:46]MH_I2C_Read... [07:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:46]Read from MH i2c: E2 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: E2 17 00 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [07:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:13:46]wFMCommunicate OK [07:13:46]requested_item fd.num is exist - process it [07:13:46]SAM_PROTO_GetFieldsCounters [07:13:46]wFMCommunicate request_size=4 [07:13:46]MH_SAM_APDU [07:13:46]CAPDU: 80 13 00 00 [07:13:46]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [07:13:46]Write i2c OK [07:13:46]MH_I2C_Read... [07:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:46]Read from MH i2c: E2 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: E2 62 00 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B3 B9 02 00 0E 04 04 00 D6 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 36 [07:13: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B3 B9 02 00 0E 04 04 00 D6 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 [07:13:46]wFMCommunicate OK [07:13:46]SAM_PROTO_GetFieldsCounters done [07:13:46]requested_item shift.num is exist - process it [07:13:46]requested_item shift.opened is exist - process it [07:13:46]req_shift_opened [07:13:46]FM_GetShiftState [07:13:46]SAM_PROTO_GetShiftState [07:13:46]wFMCommunicate request_size=4 [07:13:46]MH_SAM_APDU [07:13:46]CAPDU: 80 13 01 00 [07:13:46]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [07:13:46]Write i2c OK [07:13:46]MH_I2C_Read... [07:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:46]Read from MH i2c: E2 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: E2 0E 00 [07:13:46]MH_I2C_Read... [07:13:46]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D0 [07:13:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:13:46]wFMCommunicate OK [07:13:46]SAM_PROTO_GetShiftState done [07:13:46]FM_GetShiftState done [07:13:46]req_shift_opened done [07:13:46]requested_item shift.open_date is exist - process it [07:13:46]req_shift_open_date [07:13:46]req_shift_open_date done [07:13:46]produce_requested_data done [07:13:46]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178611,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:13:46]process_action_free close_receipt [07:13:46]json_value_free [07:13:46]json_value_free done [07:13:46]process_json_proto returns [07:13:46]Send response to host [07:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178611,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:13:46]free response buf [07:13:46]execute_script done [07:13:46]execute_script returns [07:13:46]free content buf [07:13:46]Sock 11.Close socket [07:13:46]Sock 11.Thread stoped [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:29]recv_with_timeout no data received [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:14:58]accept exits with 9 [07:14:58]New connection [07:14:58]New thread 3067252068 created [07:14:58]Thread 3067395428 joined [07:14:58]Waiting for new connection... [07:14:58] Sock 9.Parse request [07:14:58]Sock 9.Check first char [07:14:58]Sock 9.First char is OK [07:14:58]request: POST /json_proto HTTP/1.0 [07:14:58]Method: POST [07:14:58]URL: /json_proto [07:14:58]Method is POST - this is cgi request [07:14:58]url: /json_proto [07:14:58]query_string will be loaded in cgi processing [07:14:58]execute_cgi json_proto POST (null) [07:14:58]execute_cgi path=json_proto method=POST [07:14:58]POST find Content-Length [07:14:58]Host: 172.17.44.131:8080 [07:14:58]Content-Length: 682 [07:14:58]Content-Type: application/json [07:14:58] [07:14:58]POST finish read [07:14:58]Found Content-Length = 682 [07:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294017", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:14:58]execute_script... [07:14: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)294017", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [07:14:58]POST & json_proto [07:14:58]process_json_proto [07:14:58]json parsed OK: [07:14:58]protocol is kg_v1.0 [07:14:58]action value=close_receipt [07:14:58]process_action close_receipt [07:14:58]cmd_close_receipt [07:14:58]MH_GetDate [07:14:58]Write to MH i2c: F0 00 00 7C 01 6C [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: F0 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: F0 09 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: F0 09 00 7C 01 00 F3 36 C8 66 4F 53 BE 66 92 [07:14:58]GetLastDocTimeStamp 1724397222 [07:14:58]current date 1724397299 [07:14:58]FM_GetShiftState [07:14:58]SAM_PROTO_GetShiftState [07:14:58]wFMCommunicate request_size=4 [07:14:58]MH_SAM_APDU [07:14:58]CAPDU: 80 13 01 00 [07:14:58]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [07:14:58]Write i2c OK [07:14:58]MH_I2C_Read... [07:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:58]Read from MH i2c: E2 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: E2 0E 00 [07:14:58]MH_I2C_Read... [07:14:58]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D2 [07:14:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:14:58]wFMCommunicate OK [07:14:58]SAM_PROTO_GetShiftState done [07:14:58]FM_GetShiftState done [07:14:58]opened in 1724371660 [07:14:58]opened+sec_in_day 1724458060 [07:14:58]quantity*price = 100005 [07:14:58]sum+1 = 100006 [07:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 72 23.08.2024 07:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178612 ФПД: 107319822347529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071459&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178612&fm=107319822347529&tin=02508201610067®Number=0000000000092561&sum=100000 [07:14:59]StoreToDocumentArchive [07:14:59]shift 470 fd 178612 [07:14:59]save to /storage/0470/doc_00178612 [07:14:59]save last doc name /storage/0470/doc_00178612 to /storage/kkm_last_doc_name [07:14:59]save OK [07:14:59]Clear old archive folders... [07:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:14:59]tlvbuf is 00A786A0 [07:14:59]SAM_PROTO_ClearQueue [07:14:59]wFMCommunicate request_size=4 [07:14:59]MH_SAM_APDU [07:14:59]CAPDU: 80 09 00 00 [07:14:59]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [07:14:59]Write i2c OK [07:14:59]MH_I2C_Read... [07:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:14:59]Read from MH i2c: E2 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 03 00 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [07:14:59]RAPDU: 90 00 [07:14:59]wFMCommunicate OK [07:14:59]SAM_PROTO_ClearQueue done [07:14:59]KKMCreateOFDPacket [07:14:59]OFDProtocolAddRootSTLVToBuf [07:14:59]FM_MakeSignedData [07:14:59]FM_MakeSignedData [07:14:59]SAM_PROTO_SignData [07:14:59]wFMCommunicate request_size=4 [07:14:59]MH_SAM_APDU [07:14:59]CAPDU: 80 0D 01 02 [07:14:59]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [07:14:59]Write i2c OK [07:14:59]MH_I2C_Read... [07:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:14:59]Read from MH i2c: E2 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 03 00 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [07:14:59]RAPDU: 90 00 [07:14:59]wFMCommunicate OK [07:14:59]wFMCommunicate request_size=255 [07:14:59]MH_SAM_APDU [07:14: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F3 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 B9 02 00 35 04 06 00 61 [07:14:59]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F3 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 B9 02 00 35 04 06 00 61 00 00 5D [07:14:59]Write i2c OK [07:14:59]MH_I2C_Read... [07:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:14:59]Read from MH i2c: E2 [07:14:59]MH_I2C_Read... [07:14:59]Read from MH i2c: E2 03 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [07:15:00]RAPDU: 90 00 [07:15:00]wFMCommunicate OK [07:15:00]wFMCommunicate request_size=10 [07:15:00]MH_SAM_APDU [07:15:00]CAPDU: 80 0D 02 02 05 9B 57 E3 6D 09 [07:15:00]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 9B 57 E3 6D 09 00 00 5D [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:00]Read from MH i2c: E2 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 03 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [07:15:00]RAPDU: 90 00 [07:15:00]wFMCommunicate OK [07:15:00]wFMCommunicate request_size=4 [07:15:00]MH_SAM_APDU [07:15:00]CAPDU: 80 0D 03 02 [07:15:00]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:00]Read from MH i2c: E2 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 0B 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 0B 00 8E 01 00 6F D0 AF C2 4F CD 3F A2 90 00 B8 [07:15:00]RAPDU: 6F D0 AF C2 4F CD 3F A2 90 00 [07:15:00]wFMCommunicate OK [07:15:00]SAM_PROTO_SignData done [07:15:00]FM_MakeSignedData done [07:15:00]CreateOFDProtocolMessage [07:15:00]wFMCommunicate request_size=4 [07:15:00]MH_SAM_APDU [07:15:00]CAPDU: 80 11 00 00 [07:15:00]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:00]Read from MH i2c: E2 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 17 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 63 [07:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:15:00]wFMCommunicate OK [07:15:00]CreateOFDProtocolMessage done [07:15:00]OFDSenderStorePacket 178612 [07:15:00]StoreOFDPacket docnum=178612 [07:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 52 5D 07 01 62 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F3 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 B9 02 00 35 04 06 00 61 9B 57 E3 6D 09 6F D0 AF C2 4F CD 3F A2 [07:15:00]CheckFolder [07:15:00]dirname=/storage/ofd_packets [07:15:00]CheckFolder done [07:15:00]ProducePacketName [07:15:00]name=ofd_packets/00178612 [07:15:00]NVStorageSaveData ofd_packets/00178612 [07:15:00]File name is /storage/ofd_packets/00178612 [07:15:00]Write 301 bytes [07:15:00]NVStorageSaveData done [07:15:00]OFDSenderStorePacket done [07:15:00]KKMCreateOFDPacket done [07:15:00]NVStorageSaveData kkm_last_timestamp [07:15:00]File name is /storage/kkm_last_timestamp [07:15:00]Write 4 bytes [07:15:00]NVStorageSaveData done [07:15:00]ExternCall_PrintAddStr [07:15:00]wPrintStart [07:15:00]Write to MH i2c: 01 00 00 90 01 91 [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: 01 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: 01 07 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [07:15:00]RasterBufferAndPrint [07:15:00]line Счет N : (1)294017 [07:15:00]line ИНН: 02508201610067 [07:15:00]line Контрольно-Кассовый Чек [07:15:00]line ПРОДАЖА [07:15:00]line ТРК (МРК, ГНК) : 52 [07:15:00]line Товар: 2710124130 [07:15:00]line Аи-92-К-5 [07:15:00]line 14.750 * 67.80 [07:15:00]line = 1000.05 [07:15:00]line НДС 12% НСП 1% [07:15:00]line > о реализуемом товаре [07:15:00]line ОКРУГЛЕНИЕ: -0.05 [07:15:00]line ИТОГО: 1000.00 [07:15:00]line Внесено: 1000.00 [07:15:00]line СДАЧА: 0.00 [07:15:00]line НСП 1% : 8.85 [07:15:00]line НДС 12% : 106.20 [07:15:00]line Наличными: 1000.00 [07:15:00]line Безнал.: 0.00 [07:15:00]line Место: АЗС № 130 "Партнер Нефть" [07:15:00]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:15:00]line СНО: Общий режим [07:15:00]line Чек 72 23.08.2024 07:14 [07:15:00]line Смена: 470 ФФД: 1.0 [07:15:00]line ЗНМ: 0300000071 [07:15:00]line РНМ: 0000000000092561 [07:15:00]line Версия ККМ: 001 [07:15:00]line ФМ: 0000000000871778 [07:15:00]line ФД: 178612 [07:15:00]line ФПД: 107319822347529 [07:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071459&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178612&fm=107319822347529&tin=02508201610067®Number=0000000000092561&sum=100000 [07:15:00]written 0, free lines is 4095 [07:15:00]OFD Sender: Processing packet 178612 [packets to send 497, broken 496] [07:15:00]ProducePacketName [07:15:00]name=ofd_packets/00178612 [07:15:00]OFD Sender: To server: pG, [07:15:00]CommunicateWithHost lk.salyk.kg:30040 [07:15:00]ConnectInit lk.salyk.kg [07:15:00]Write to MH i2c: 01 00 00 BB 01 BC [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: 01 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: 01 07 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 CD 0C 9C [07:15:00]RasterBufferAndPrint [07:15:00]line [07:15:00]line [07:15:00]line [07:15:00]line [07:15:00]line [07:15:00]written 0, free lines is 3301 [07:15:00]MH_Cut [07:15:00]Write to MH i2c: D1 01 00 C2 01 01 95 [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: D1 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: D1 01 00 [07:15:00]MH_I2C_Read... [07:15:00]Read from MH i2c: D1 01 00 C2 01 00 94 [07:15:00]Write to MH i2c: 01 00 00 C3 01 C4 [07:15:00]Write i2c OK [07:15:00]MH_I2C_Read... [07:15:01]*** Cut start [07:15:01]*** Partial cut [07:15:01]*** CUTSNS_PIN = 1 [07:15:01]*** CUTSNS_PIN = 0 [07:15:01]*** Brake cut motor [07:15:02]Read from MH i2c: 01 [07:15:02]MH_I2C_Read... [07:15:02]*** Stop cut motor [07:15:02]*** Cut end [07:15:02]Read from MH i2c: 01 07 00 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: 01 07 00 C3 01 00 00 00 00 00 FF 0F D9 [07:15:02]process_action close_receipt done [07:15:02]requested_data is exist [07:15:02]produce_requested_data [07:15:02]requested_item fm.sn is exist - process it [07:15:02]wFMCommunicate request_size=4 [07:15:02]MH_SAM_APDU [07:15:02]CAPDU: 80 11 00 00 [07:15:02]Write to MH i2c: E2 08 00 C4 01 80 11 00 00 00 00 00 00 3F [07:15:02]Write i2c OK [07:15:02]MH_I2C_Read... [07:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:02]Read from MH i2c: E2 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 17 00 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 17 00 C4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [07:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:15:02]wFMCommunicate OK [07:15:02]requested_item fd.num is exist - process it [07:15:02]SAM_PROTO_GetFieldsCounters [07:15:02]wFMCommunicate request_size=4 [07:15:02]MH_SAM_APDU [07:15:02]CAPDU: 80 13 00 00 [07:15:02]Write to MH i2c: E2 08 00 C5 01 80 13 00 00 00 00 00 00 42 [07:15:02]Write i2c OK [07:15:02]MH_I2C_Read... [07:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:15:02]Read from MH i2c: E2 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 62 00 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 62 00 C5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B4 B9 02 00 0E 04 04 00 D6 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 85 [07:15: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B4 B9 02 00 0E 04 04 00 D6 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 [07:15:02]wFMCommunicate OK [07:15:02]SAM_PROTO_GetFieldsCounters done [07:15:02]requested_item shift.num is exist - process it [07:15:02]requested_item shift.opened is exist - process it [07:15:02]req_shift_opened [07:15:02]FM_GetShiftState [07:15:02]SAM_PROTO_GetShiftState [07:15:02]wFMCommunicate request_size=4 [07:15:02]MH_SAM_APDU [07:15:02]CAPDU: 80 13 01 00 [07:15:02]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [07:15:02]Write i2c OK [07:15:02]MH_I2C_Read... [07:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:02]Read from MH i2c: E2 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 0E 00 [07:15:02]MH_I2C_Read... [07:15:02]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1B [07:15:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:15:02]wFMCommunicate OK [07:15:02]SAM_PROTO_GetShiftState done [07:15:02]FM_GetShiftState done [07:15:02]req_shift_opened done [07:15:02]requested_item shift.open_date is exist - process it [07:15:02]req_shift_open_date [07:15:02]req_shift_open_date done [07:15:02]produce_requested_data done [07:15:02]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178612,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:15:02]process_action_free close_receipt [07:15:02]json_value_free [07:15:02]json_value_free done [07:15:02]process_json_proto returns [07:15:02]Send response to host [07:15:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178612,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:15:02]free response buf [07:15:02]execute_script done [07:15:02]execute_script returns [07:15:02]free content buf [07:15:02]Sock 9.Close socket [07:15:02]Sock 9.Thread stoped [07:15:04]Connected sock=11 [07:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 52 5D 07 01 62 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 F3 36 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 B9 02 00 35 04 06 00 61 9B 57 E3 6D 09 6F D0 AF C2 4F CD 3F A2 [07:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D6 F8 47 00 52 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B4 B9 02 00 F4 03 04 00 9F E2 C7 66 B6 04 01 00 00 D1 14 E0 B6 AF A1 A4 6E [07:15:04]CommunicateWithHost err = 0 [07:15:04]CheckOFDResponse [07:15:04]1017 (14) - 77093643461234 [07:15:04]1041 (16) - 0000000000871778 [07:15:04]1040 (4) - 178612 [07:15:04]1012 (4) - 23.08.2024 01:15 [07:15:04]1206 (1) - 0 [07:15:04]OFD Sender: Remove packet 178612 [07:15:04]ProducePacketName [07:15:04]name=ofd_packets/00178612 [07:15:04]NVStorageDeleteData [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:46]recv_with_timeout no data received [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]accept exits with 10 [07:16:00]New connection [07:16:00]New thread 3067395428 created [07:16:00]Thread 3067252068 joined [07:16:00]Waiting for new connection... [07:16:00] Sock 10.Parse request [07:16:00]Sock 10.Check first char [07:16:00]Sock 10.First char is OK [07:16:00]request: POST /json_proto HTTP/1.0 [07:16:00]Method: POST [07:16:00]URL: /json_proto [07:16:00]Method is POST - this is cgi request [07:16:00]url: /json_proto [07:16:00]query_string will be loaded in cgi processing [07:16:00]execute_cgi json_proto POST (null) [07:16:00]execute_cgi path=json_proto method=POST [07:16:00]POST find Content-Length [07:16:00]Host: 172.17.44.131:8080 [07:16:00]Content-Length: 978 [07:16:00]Content-Type: application/json [07:16:00] [07:16:00]POST finish read [07:16:00]Found Content-Length = 978 [07:16:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 130\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "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" ] } } [07:16:00]execute_script... [07:16: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)294018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 130\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "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" ] } } [07:16:00]POST & json_proto [07:16:00]process_json_proto [07:16:00]json parsed OK: [07:16:00]protocol is kg_v1.0 [07:16:00]action value=close_receipt [07:16:00]process_action close_receipt [07:16:00]cmd_close_receipt [07:16:00]MH_GetDate [07:16:00]Write to MH i2c: F0 00 00 C7 01 B7 [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: F0 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: F0 09 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: F0 09 00 C7 01 00 31 37 C8 66 4F 53 BE 66 1C [07:16:00]GetLastDocTimeStamp 1724397299 [07:16:00]current date 1724397361 [07:16:00]FM_GetShiftState [07:16:00]SAM_PROTO_GetShiftState [07:16:00]wFMCommunicate request_size=4 [07:16:00]MH_SAM_APDU [07:16:00]CAPDU: 80 13 01 00 [07:16:00]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:00]Read from MH i2c: E2 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 0E 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1D [07:16:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:16:00]wFMCommunicate OK [07:16:00]SAM_PROTO_GetShiftState done [07:16:00]FM_GetShiftState done [07:16:00]opened in 1724371660 [07:16:00]opened+sec_in_day 1724458060 [07:16:00]quantity*price = 450072 [07:16:00]sum+1 = 450073 [07:16:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 73 23.08.2024 07:16 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Дисконтная программа ДТ номер 130 сэкономлено 59.85 сом ФМ: 0000000000871778 ФД: 178613 ФПД: 122488086585590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071601&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178613&fm=122488086585590&tin=02508201610067®Number=0000000000092561&sum=450000 [07:16:01]StoreToDocumentArchive [07:16:01]shift 470 fd 178613 [07:16:01]save to /storage/0470/doc_00178613 [07:16:01]save last doc name /storage/0470/doc_00178613 to /storage/kkm_last_doc_name [07:16:01]save OK [07:16:01]Clear old archive folders... [07:16:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:16:01]tlvbuf is 00A73E90 [07:16:01]SAM_PROTO_ClearQueue [07:16:01]wFMCommunicate request_size=4 [07:16:01]MH_SAM_APDU [07:16:01]CAPDU: 80 09 00 00 [07:16:01]Write to MH i2c: E2 08 00 D5 01 80 09 00 00 00 00 00 00 48 [07:16:01]Write i2c OK [07:16:01]MH_I2C_Read... [07:16:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:01]Read from MH i2c: E2 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [07:16:01]RAPDU: 90 00 [07:16:01]wFMCommunicate OK [07:16:01]SAM_PROTO_ClearQueue done [07:16:01]KKMCreateOFDPacket [07:16:01]OFDProtocolAddRootSTLVToBuf [07:16:01]FM_MakeSignedData [07:16:01]FM_MakeSignedData [07:16:01]SAM_PROTO_SignData [07:16:01]wFMCommunicate request_size=4 [07:16:01]MH_SAM_APDU [07:16:01]CAPDU: 80 0D 01 02 [07:16:01]Write to MH i2c: E2 08 00 D6 01 80 0D 01 02 00 00 00 00 50 [07:16:01]Write i2c OK [07:16:01]MH_I2C_Read... [07:16:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:01]Read from MH i2c: E2 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 [07:16:01]MH_I2C_Read... [07:16:01]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [07:16:01]RAPDU: 90 00 [07:16:01]wFMCommunicate OK [07:16:01]wFMCommunicate request_size=255 [07:16:01]MH_SAM_APDU [07:16:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 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 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 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 49 00 00 00 F4 03 04 00 31 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 B9 02 00 35 04 06 00 6F 66 FA E3 [07:16:01]Write to MH i2c: E2 02 01 D7 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 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 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 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 49 00 00 00 F4 03 04 00 31 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 B9 02 00 35 04 06 00 6F 66 FA E3 00 00 2B [07:16:01]Write i2c OK [07:16:01]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [07:16:02]RAPDU: 90 00 [07:16:02]wFMCommunicate OK [07:16:02]wFMCommunicate request_size=7 [07:16:02]MH_SAM_APDU [07:16:02]CAPDU: 80 0D 02 02 02 E0 F6 [07:16:02]Write to MH i2c: E2 0A 00 D8 01 80 0D 02 02 02 00 E0 F6 00 00 2D [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:02]Read from MH i2c: E2 03 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [07:16:02]RAPDU: 90 00 [07:16:02]wFMCommunicate OK [07:16:02]wFMCommunicate request_size=4 [07:16:02]MH_SAM_APDU [07:16:02]CAPDU: 80 0D 03 02 [07:16:02]Write to MH i2c: E2 08 00 D9 01 80 0D 03 02 00 00 00 00 55 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 0B 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 0B 00 D9 01 00 BB 79 A7 5A 71 C7 08 F8 90 00 C3 [07:16:02]RAPDU: BB 79 A7 5A 71 C7 08 F8 90 00 [07:16:02]wFMCommunicate OK [07:16:02]SAM_PROTO_SignData done [07:16:02]FM_MakeSignedData done [07:16:02]CreateOFDProtocolMessage [07:16:02]wFMCommunicate request_size=4 [07:16:02]MH_SAM_APDU [07:16:02]CAPDU: 80 11 00 00 [07:16:02]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:02]Read from MH i2c: E2 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 17 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AE [07:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:16:02]wFMCommunicate OK [07:16:02]CreateOFDProtocolMessage done [07:16:02]OFDSenderStorePacket 178613 [07:16:02]StoreOFDPacket docnum=178613 [07:16:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 CF 74 04 01 EE 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 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 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 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 49 00 00 00 F4 03 04 00 31 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 B9 02 00 35 04 06 00 6F 66 FA E3 E0 F6 BB 79 A7 5A 71 C7 08 F8 [07:16:02]CheckFolder [07:16:02]dirname=/storage/ofd_packets [07:16:02]CheckFolder done [07:16:02]ProducePacketName [07:16:02]name=ofd_packets/00178613 [07:16:02]NVStorageSaveData ofd_packets/00178613 [07:16:02]File name is /storage/ofd_packets/00178613 [07:16:02]Write 298 bytes [07:16:02]NVStorageSaveData done [07:16:02]OFDSenderStorePacket done [07:16:02]KKMCreateOFDPacket done [07:16:02]NVStorageSaveData kkm_last_timestamp [07:16:02]File name is /storage/kkm_last_timestamp [07:16:02]Write 4 bytes [07:16:02]NVStorageSaveData done [07:16:02]ExternCall_PrintAddStr [07:16:02]wPrintStart [07:16:02]Write to MH i2c: 01 00 00 DB 01 DC [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 07 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 FF 0F F1 [07:16:02]RasterBufferAndPrint [07:16:02]line Счет N : (1)294018 [07:16:02]line ИНН: 02508201610067 [07:16:02]line Контрольно-Кассовый Чек [07:16:02]line ПРОДАЖА [07:16:02]line ТРК (МРК, ГНК) : 11 [07:16:02]line Товар: 2710194800 [07:16:02]line ДТ-К-5 [07:16:02]line 59.850 * 75.20 [07:16:02]line = 4500.72 [07:16:02]line НДС 12% НСП 1% [07:16:02]line > о реализуемом товаре [07:16:02]line ОКРУГЛЕНИЕ: -0.72 [07:16:02]line ИТОГО: 4500.00 [07:16:02]line Внесено: 4500.00 [07:16:02]line СДАЧА: 0.00 [07:16:02]line НСП 1% : 39.83 [07:16:02]line НДС 12% : 477.95 [07:16:02]line Наличными: 4500.00 [07:16:02]line Безнал.: 0.00 [07:16:02]line Место: АЗС № 130 "Партнер Нефть" [07:16:02]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:16:02]line СНО: Общий режим [07:16:02]line Чек 73 23.08.2024 07:16 [07:16:02]line Смена: 470 ФФД: 1.0 [07:16:02]line ЗНМ: 0300000071 [07:16:02]line РНМ: 0000000000092561 [07:16:02]line Версия ККМ: 001 [07:16:02]line [07:16:02]line Дисконтная программа [07:16:02]line ДТ [07:16:02]line номер 130 [07:16:02]line сэкономлено 59.85 сом [07:16:02]line ФМ: 0000000000871778 [07:16:02]line ФД: 178613 [07:16:02]line ФПД: 122488086585590 [07:16:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071601&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178613&fm=122488086585590&tin=02508201610067®Number=0000000000092561&sum=450000 [07:16:02]OFD Sender: Processing packet 178613 [packets to send 497, broken 496] [07:16:02]ProducePacketName [07:16:02]name=ofd_packets/00178613 [07:16:02]OFD Sender: To server: pG, [07:16:02]CommunicateWithHost lk.salyk.kg:30040 [07:16:02]ConnectInit lk.salyk.kg [07:16:02]written 0, free lines is 4095 [07:16:02]Connected sock=7 [07:16:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 CF 74 04 01 EE 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 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 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 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 49 00 00 00 F4 03 04 00 31 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B5 B9 02 00 35 04 06 00 6F 66 FA E3 E0 F6 BB 79 A7 5A 71 C7 08 F8 [07:16:02]Write to MH i2c: 01 00 00 0B 02 0D [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 07 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 8E 0C AE [07:16:02]RasterBufferAndPrint [07:16:02]line [07:16:02]line [07:16:02]line [07:16:02]line [07:16:02]line [07:16:02]written 0, free lines is 3223 [07:16:02]MH_Cut [07:16:02]Write to MH i2c: D1 01 00 12 02 01 E6 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: D1 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: D1 01 00 [07:16:02]MH_I2C_Read... [07:16:02]Read from MH i2c: D1 01 00 12 02 00 E5 [07:16:02]Write to MH i2c: 01 00 00 13 02 15 [07:16:02]Write i2c OK [07:16:02]MH_I2C_Read... [07:16:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 7E 56 47 00 7D 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 31 37 37 38 10 04 04 00 B5 B9 02 00 F4 03 04 00 D8 E2 C7 66 B6 04 01 00 00 A1 81 4A 96 04 C2 E6 57 [07:16:02]CommunicateWithHost err = 0 [07:16:02]CheckOFDResponse [07:16:02]1017 (14) - 77093643461234 [07:16:02]1041 (16) - 0000000000871778 [07:16:02]1040 (4) - 178613 [07:16:02]1012 (4) - 23.08.2024 01:16 [07:16:02]1206 (1) - 0 [07:16:02]OFD Sender: Remove packet 178613 [07:16:02]ProducePacketName [07:16:02]name=ofd_packets/00178613 [07:16:02]NVStorageDeleteData [07:16:03]OFD Sender: No OFD packet to send [07:16:03]*** Cut start [07:16:03]*** Partial cut [07:16:03]*** CUTSNS_PIN = 1 [07:16:03]*** CUTSNS_PIN = 0 [07:16:03]*** Brake cut motor [07:16:04]Read from MH i2c: 01 [07:16:04]MH_I2C_Read... [07:16:04]*** Stop cut motor [07:16:04]*** Cut end [07:16:04]Read from MH i2c: 01 07 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: 01 07 00 13 02 00 00 00 00 00 FF 0F 2A [07:16:04]process_action close_receipt done [07:16:04]requested_data is exist [07:16:04]produce_requested_data [07:16:04]requested_item fm.sn is exist - process it [07:16:04]wFMCommunicate request_size=4 [07:16:04]MH_SAM_APDU [07:16:04]CAPDU: 80 11 00 00 [07:16:04]Write to MH i2c: E2 08 00 14 02 80 11 00 00 00 00 00 00 90 [07:16:04]Write i2c OK [07:16:04]MH_I2C_Read... [07:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:04]Read from MH i2c: E2 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 17 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 17 00 14 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E9 [07:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:16:04]wFMCommunicate OK [07:16:04]requested_item fd.num is exist - process it [07:16:04]SAM_PROTO_GetFieldsCounters [07:16:04]wFMCommunicate request_size=4 [07:16:04]MH_SAM_APDU [07:16:04]CAPDU: 80 13 00 00 [07:16:04]Write to MH i2c: E2 08 00 15 02 80 13 00 00 00 00 00 00 93 [07:16:04]Write i2c OK [07:16:04]MH_I2C_Read... [07:16:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:04]Read from MH i2c: E2 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 62 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 62 00 15 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B5 B9 02 00 0E 04 04 00 D6 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 DA [07:16: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B5 B9 02 00 0E 04 04 00 D6 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 [07:16:04]wFMCommunicate OK [07:16:04]SAM_PROTO_GetFieldsCounters done [07:16:04]requested_item shift.num is exist - process it [07:16:04]requested_item shift.opened is exist - process it [07:16:04]req_shift_opened [07:16:04]FM_GetShiftState [07:16:04]SAM_PROTO_GetShiftState [07:16:04]wFMCommunicate request_size=4 [07:16:04]MH_SAM_APDU [07:16:04]CAPDU: 80 13 01 00 [07:16:04]Write to MH i2c: E2 08 00 16 02 80 13 01 00 00 00 00 00 95 [07:16:04]Write i2c OK [07:16:04]MH_I2C_Read... [07:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:04]Read from MH i2c: E2 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 0E 00 [07:16:04]MH_I2C_Read... [07:16:04]Read from MH i2c: E2 0E 00 16 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 6C [07:16:04]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:16:04]wFMCommunicate OK [07:16:04]SAM_PROTO_GetShiftState done [07:16:04]FM_GetShiftState done [07:16:04]req_shift_opened done [07:16:04]requested_item shift.open_date is exist - process it [07:16:04]req_shift_open_date [07:16:04]req_shift_open_date done [07:16:04]produce_requested_data done [07:16:04]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178613,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:16:04]process_action_free close_receipt [07:16:04]json_value_free [07:16:04]json_value_free done [07:16:04]process_json_proto returns [07:16:04]Send response to host [07:16:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178613,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:16:04]free response buf [07:16:04]execute_script done [07:16:04]execute_script returns [07:16:04]free content buf [07:16:04]Sock 10.Close socket [07:16:04]Sock 10.Thread stoped [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:19]accept exits with 9 [07:17:19]New connection [07:17:19]New thread 3067252068 created [07:17:19]Thread 3067395428 joined [07:17:19]Waiting for new connection... [07:17:19] Sock 9.Parse request [07:17:19]Sock 9.Check first char [07:17:19]Sock 9.First char is OK [07:17:19]request: POST /json_proto HTTP/1.0 [07:17:19]Method: POST [07:17:19]URL: /json_proto [07:17:19]Method is POST - this is cgi request [07:17:19]url: /json_proto [07:17:19]query_string will be loaded in cgi processing [07:17:19]execute_cgi json_proto POST (null) [07:17:19]execute_cgi path=json_proto method=POST [07:17:19]POST find Content-Length [07:17:19]Host: 172.17.44.131:8080 [07:17:19]Content-Length: 677 [07:17:19]Content-Type: application/json [07:17:19] [07:17:19]POST finish read [07:17:19]Found Content-Length = 677 [07:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294019", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:17:19]execute_script... [07:17: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)294019", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:17:19]POST & json_proto [07:17:19]process_json_proto [07:17:19]json parsed OK: [07:17:19]protocol is kg_v1.0 [07:17:19]action value=close_receipt [07:17:19]process_action close_receipt [07:17:19]cmd_close_receipt [07:17:19]MH_GetDate [07:17:19]Write to MH i2c: F0 00 00 17 02 08 [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: F0 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: F0 09 00 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: F0 09 00 17 02 00 80 37 C8 66 4F 53 BE 66 BC [07:17:19]GetLastDocTimeStamp 1724397361 [07:17:19]current date 1724397440 [07:17:19]FM_GetShiftState [07:17:19]SAM_PROTO_GetShiftState [07:17:19]wFMCommunicate request_size=4 [07:17:19]MH_SAM_APDU [07:17:19]CAPDU: 80 13 01 00 [07:17:19]Write to MH i2c: E2 08 00 18 02 80 13 01 00 00 00 00 00 97 [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:19]Read from MH i2c: E2 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 0E 00 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 0E 00 18 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 6E [07:17:19]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:17:19]wFMCommunicate OK [07:17:19]SAM_PROTO_GetShiftState done [07:17:19]FM_GetShiftState done [07:17:19]opened in 1724371660 [07:17:19]opened+sec_in_day 1724458060 [07:17:19]quantity*price = 50036 [07:17:19]sum+1 = 50037 [07:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 74 23.08.2024 07:17 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178614 ФПД: 155416550355052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071720&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178614&fm=155416550355052&tin=02508201610067®Number=0000000000092561&sum=50000 [07:17:20]StoreToDocumentArchive [07:17:20]shift 470 fd 178614 [07:17:20]save to /storage/0470/doc_00178614 [07:17:20]save last doc name /storage/0470/doc_00178614 to /storage/kkm_last_doc_name [07:17:20]save OK [07:17:20]Clear old archive folders... [07:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:20]tlvbuf is 00A94EB0 [07:17:20]SAM_PROTO_ClearQueue [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 09 00 00 [07:17:20]Write to MH i2c: E2 08 00 25 02 80 09 00 00 00 00 00 00 99 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]SAM_PROTO_ClearQueue done [07:17:20]KKMCreateOFDPacket [07:17:20]OFDProtocolAddRootSTLVToBuf [07:17:20]FM_MakeSignedData [07:17:20]FM_MakeSignedData [07:17:20]SAM_PROTO_SignData [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 01 02 [07:17:20]Write to MH i2c: E2 08 00 26 02 80 0D 01 02 00 00 00 00 A1 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]wFMCommunicate request_size=255 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 4A 00 00 00 F4 03 04 00 80 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 B9 02 00 35 04 06 00 8D [07:17:20]Write to MH i2c: E2 02 01 27 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 4A 00 00 00 F4 03 04 00 80 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 B9 02 00 35 04 06 00 8D 00 00 28 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [07:17:21]RAPDU: 90 00 [07:17:21]wFMCommunicate OK [07:17:21]wFMCommunicate request_size=10 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 0D 02 02 05 59 BC 46 B0 6C [07:17:21]Write to MH i2c: E2 0D 00 28 02 80 0D 02 02 05 00 59 BC 46 B0 6C 00 00 25 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 03 00 28 02 00 90 00 9E [07:17:21]RAPDU: 90 00 [07:17:21]wFMCommunicate OK [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 0D 03 02 [07:17:21]Write to MH i2c: E2 08 00 29 02 80 0D 03 02 00 00 00 00 A6 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 0B 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 0B 00 29 02 00 2D 11 F1 DA F4 C7 26 8E 90 00 1F [07:17:21]RAPDU: 2D 11 F1 DA F4 C7 26 8E 90 00 [07:17:21]wFMCommunicate OK [07:17:21]SAM_PROTO_SignData done [07:17:21]FM_MakeSignedData done [07:17:21]CreateOFDProtocolMessage [07:17:21]wFMCommunicate request_size=4 [07:17:21]MH_SAM_APDU [07:17:21]CAPDU: 80 11 00 00 [07:17:21]Write to MH i2c: E2 08 00 2A 02 80 11 00 00 00 00 00 00 A6 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:21]Read from MH i2c: E2 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 17 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: E2 17 00 2A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FF [07:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:17:21]wFMCommunicate OK [07:17:21]CreateOFDProtocolMessage done [07:17:21]OFDSenderStorePacket 178614 [07:17:21]StoreOFDPacket docnum=178614 [07:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E0 73 07 01 8C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 4A 00 00 00 F4 03 04 00 80 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 B9 02 00 35 04 06 00 8D 59 BC 46 B0 6C 2D 11 F1 DA F4 C7 26 8E [07:17:21]CheckFolder [07:17:21]dirname=/storage/ofd_packets [07:17:21]CheckFolder done [07:17:21]ProducePacketName [07:17:21]name=ofd_packets/00178614 [07:17:21]NVStorageSaveData ofd_packets/00178614 [07:17:21]File name is /storage/ofd_packets/00178614 [07:17:21]Write 301 bytes [07:17:21]NVStorageSaveData done [07:17:21]OFDSenderStorePacket done [07:17:21]KKMCreateOFDPacket done [07:17:21]NVStorageSaveData kkm_last_timestamp [07:17:21]File name is /storage/kkm_last_timestamp [07:17:21]Write 4 bytes [07:17:21]NVStorageSaveData done [07:17:21]ExternCall_PrintAddStr [07:17:21]wPrintStart [07:17:21]Write to MH i2c: 01 00 00 2B 02 2D [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 2B 02 00 00 00 00 00 FF 0F 42 [07:17:21]RasterBufferAndPrint [07:17:21]line Счет N : (1)294019 [07:17:21]line ИНН: 02508201610067 [07:17:21]line Контрольно-Кассовый Чек [07:17:21]line ПРОДАЖА [07:17:21]line ТРК (МРК, ГНК) : 32 [07:17:21]line Товар: 2710124130 [07:17:21]line Аи-92-К-5 [07:17:21]line 7.380 * 67.80 [07:17:21]line = 500.36 [07:17:21]line НДС 12% НСП 1% [07:17:21]line > о реализуемом товаре [07:17:21]line ОКРУГЛЕНИЕ: -0.36 [07:17:21]line ИТОГО: 500.00 [07:17:21]line Внесено: 500.00 [07:17:21]line СДАЧА: 0.00 [07:17:21]line НСП 1% : 4.43 [07:17:21]line НДС 12% : 53.14 [07:17:21]line Наличными: 500.00 [07:17:21]line Безнал.: 0.00 [07:17:21]line Место: АЗС № 130 "Партнер Нефть" [07:17:21]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:17:21]line СНО: Общий режим [07:17:21]line Чек 74 23.08.2024 07:17 [07:17:21]line Смена: 470 ФФД: 1.0 [07:17:21]line ЗНМ: 0300000071 [07:17:21]line РНМ: 0000000000092561 [07:17:21]line Версия ККМ: 001 [07:17:21]line ФМ: 0000000000871778 [07:17:21]line ФД: 178614 [07:17:21]line ФПД: 155416550355052 [07:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T071720&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178614&fm=155416550355052&tin=02508201610067®Number=0000000000092561&sum=50000 [07:17:21]written 0, free lines is 4095 [07:17:21]OFD Sender: Processing packet 178614 [packets to send 497, broken 496] [07:17:21]ProducePacketName [07:17:21]name=ofd_packets/00178614 [07:17:21]OFD Sender: To server: pG, [07:17:21]CommunicateWithHost lk.salyk.kg:30040 [07:17:21]ConnectInit lk.salyk.kg [07:17:21]Write to MH i2c: 01 00 00 56 02 58 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 56 02 00 00 00 00 00 BF 0C 2A [07:17:21]RasterBufferAndPrint [07:17:21]line [07:17:21]line [07:17:21]line [07:17:21]line [07:17:21]line [07:17:21]written 0, free lines is 3269 [07:17:21]MH_Cut [07:17:21]Write to MH i2c: D1 01 00 5D 02 01 31 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: D1 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: D1 01 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: D1 01 00 5D 02 00 30 [07:17:21]Write to MH i2c: 01 00 00 5E 02 60 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Connected sock=10 [07:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E0 73 07 01 8C 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 4A 00 00 00 F4 03 04 00 80 37 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B6 B9 02 00 35 04 06 00 8D 59 BC 46 B0 6C 2D 11 F1 DA F4 C7 26 8E [07:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 91 F2 47 00 9E 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 31 37 37 38 10 04 04 00 B6 B9 02 00 F4 03 04 00 28 E3 C7 66 B6 04 01 00 00 E6 13 A3 DC 8B 3E 20 26 [07:17:22]CommunicateWithHost err = 0 [07:17:22]CheckOFDResponse [07:17:22]1017 (14) - 77093643461234 [07:17:22]1041 (16) - 0000000000871778 [07:17:22]1040 (4) - 178614 [07:17:22]1012 (4) - 23.08.2024 01:17 [07:17:22]1206 (1) - 0 [07:17:22]OFD Sender: Remove packet 178614 [07:17:22]ProducePacketName [07:17:22]name=ofd_packets/00178614 [07:17:22]NVStorageDeleteData [07:17:22]*** Cut start [07:17:22]*** Partial cut [07:17:22]*** CUTSNS_PIN = 1 [07:17:22]*** CUTSNS_PIN = 0 [07:17:22]*** Brake cut motor [07:17:22]OFD Sender: No OFD packet to send [07:17:23]Read from MH i2c: 01 [07:17:23]MH_I2C_Read... [07:17:23]*** Stop cut motor [07:17:23]*** Cut end [07:17:23]Read from MH i2c: 01 07 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 FF 0F 75 [07:17:23]process_action close_receipt done [07:17:23]requested_data is exist [07:17:23]produce_requested_data [07:17:23]requested_item fm.sn is exist - process it [07:17:23]wFMCommunicate request_size=4 [07:17:23]MH_SAM_APDU [07:17:23]CAPDU: 80 11 00 00 [07:17:23]Write to MH i2c: E2 08 00 5F 02 80 11 00 00 00 00 00 00 DB [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 17 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 17 00 5F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 34 [07:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:17:23]wFMCommunicate OK [07:17:23]requested_item fd.num is exist - process it [07:17:23]SAM_PROTO_GetFieldsCounters [07:17:23]wFMCommunicate request_size=4 [07:17:23]MH_SAM_APDU [07:17:23]CAPDU: 80 13 00 00 [07:17:23]Write to MH i2c: E2 08 00 60 02 80 13 00 00 00 00 00 00 DE [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 62 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 62 00 60 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 B9 02 00 0E 04 04 00 D6 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 29 [07:17: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B6 B9 02 00 0E 04 04 00 D6 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 [07:17:23]wFMCommunicate OK [07:17:23]SAM_PROTO_GetFieldsCounters done [07:17:23]requested_item shift.num is exist - process it [07:17:23]requested_item shift.opened is exist - process it [07:17:23]req_shift_opened [07:17:23]FM_GetShiftState [07:17:23]SAM_PROTO_GetShiftState [07:17:23]wFMCommunicate request_size=4 [07:17:23]MH_SAM_APDU [07:17:23]CAPDU: 80 13 01 00 [07:17:23]Write to MH i2c: E2 08 00 61 02 80 13 01 00 00 00 00 00 E0 [07:17:23]Write i2c OK [07:17:23]MH_I2C_Read... [07:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:23]Read from MH i2c: E2 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 0E 00 [07:17:23]MH_I2C_Read... [07:17:23]Read from MH i2c: E2 0E 00 61 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B7 [07:17:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:17:23]wFMCommunicate OK [07:17:23]SAM_PROTO_GetShiftState done [07:17:23]FM_GetShiftState done [07:17:23]req_shift_opened done [07:17:23]requested_item shift.open_date is exist - process it [07:17:23]req_shift_open_date [07:17:23]req_shift_open_date done [07:17:23]produce_requested_data done [07:17:23]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178614,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:17:23]process_action_free close_receipt [07:17:23]json_value_free [07:17:23]json_value_free done [07:17:23]process_json_proto returns [07:17:23]Send response to host [07:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178614,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:17:23]free response buf [07:17:23]execute_script done [07:17:23]execute_script returns [07:17:23]free content buf [07:17:23]Sock 9.Close socket [07:17:23]Sock 9.Thread stoped [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:30]recv_with_timeout no data received [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:09]recv_with_timeout no data received [07:20:13]OFD Sender: No OFD packet to send [07:20:14]accept exits with 7 [07:20:14]New connection [07:20:14]New thread 3067395428 created [07:20:14]Thread 3067252068 joined [07:20:14]Waiting for new connection... [07:20:14] Sock 7.Parse request [07:20:14]Sock 7.Check first char [07:20:14]Sock 7.First char is OK [07:20:14]request: POST /json_proto HTTP/1.0 [07:20:14]Method: POST [07:20:14]URL: /json_proto [07:20:14]Method is POST - this is cgi request [07:20:14]url: /json_proto [07:20:14]query_string will be loaded in cgi processing [07:20:14]execute_cgi json_proto POST (null) [07:20:14]execute_cgi path=json_proto method=POST [07:20:14]POST find Content-Length [07:20:14]Host: 172.17.44.131:8080 [07:20:14]Content-Length: 681 [07:20:14]Content-Type: application/json [07:20:14] [07:20:14]POST finish read [07:20:14]Found Content-Length = 681 [07:20:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 16.050, "sum" : 600.27, "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" ] } } [07:20:14]execute_script... [07:20: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)294020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 16.050, "sum" : 600.27, "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" ] } } [07:20:14]POST & json_proto [07:20:14]process_json_proto [07:20:14]json parsed OK: [07:20:14]protocol is kg_v1.0 [07:20:14]action value=close_receipt [07:20:14]process_action close_receipt [07:20:14]cmd_close_receipt [07:20:14]MH_GetDate [07:20:14]Write to MH i2c: F0 00 00 62 02 53 [07:20:14]Write i2c OK [07:20:14]MH_I2C_Read... [07:20:14]Read from MH i2c: F0 [07:20:14]MH_I2C_Read... [07:20:14]Read from MH i2c: F0 09 00 [07:20:14]MH_I2C_Read... [07:20:14]Read from MH i2c: F0 09 00 62 02 00 2F 38 C8 66 4F 53 BE 66 B7 [07:20:14]GetLastDocTimeStamp 1724397440 [07:20:14]current date 1724397615 [07:20:14]FM_GetShiftState [07:20:14]SAM_PROTO_GetShiftState [07:20:14]wFMCommunicate request_size=4 [07:20:14]MH_SAM_APDU [07:20:14]CAPDU: 80 13 01 00 [07:20:14]Write to MH i2c: E2 08 00 63 02 80 13 01 00 00 00 00 00 E2 [07:20:14]Write i2c OK [07:20:14]MH_I2C_Read... [07:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:14]Read from MH i2c: E2 [07:20:14]MH_I2C_Read... [07:20:14]Read from MH i2c: E2 0E 00 [07:20:14]MH_I2C_Read... [07:20:14]Read from MH i2c: E2 0E 00 63 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B9 [07:20:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:20:14]wFMCommunicate OK [07:20:14]SAM_PROTO_GetShiftState done [07:20:14]FM_GetShiftState done [07:20:14]opened in 1724371660 [07:20:14]opened+sec_in_day 1724458060 [07:20:14]quantity*price = 60027 [07:20:14]sum+1 = 60028 [07:20:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 75 23.08.2024 07:20 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178615 ФПД: 168256653915008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T072015&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178615&fm=168256653915008&tin=02508201610067®Number=0000000000092561&sum=60000 [07:20:15]StoreToDocumentArchive [07:20:15]shift 470 fd 178615 [07:20:15]save to /storage/0470/doc_00178615 [07:20:15]save last doc name /storage/0470/doc_00178615 to /storage/kkm_last_doc_name [07:20:15]save OK [07:20:15]Clear old archive folders... [07:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:20:15]tlvbuf is 00A4DB40 [07:20:15]SAM_PROTO_ClearQueue [07:20:15]wFMCommunicate request_size=4 [07:20:15]MH_SAM_APDU [07:20:15]CAPDU: 80 09 00 00 [07:20:15]Write to MH i2c: E2 08 00 70 02 80 09 00 00 00 00 00 00 E4 [07:20:15]Write i2c OK [07:20:15]MH_I2C_Read... [07:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:15]Read from MH i2c: E2 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [07:20:15]RAPDU: 90 00 [07:20:15]wFMCommunicate OK [07:20:15]SAM_PROTO_ClearQueue done [07:20:15]KKMCreateOFDPacket [07:20:15]OFDProtocolAddRootSTLVToBuf [07:20:15]FM_MakeSignedData [07:20:15]FM_MakeSignedData [07:20:15]SAM_PROTO_SignData [07:20:15]wFMCommunicate request_size=4 [07:20:15]MH_SAM_APDU [07:20:15]CAPDU: 80 0D 01 02 [07:20:15]Write to MH i2c: E2 08 00 71 02 80 0D 01 02 00 00 00 00 EC [07:20:15]Write i2c OK [07:20:15]MH_I2C_Read... [07:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:15]Read from MH i2c: E2 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [07:20:15]RAPDU: 90 00 [07:20:15]wFMCommunicate OK [07:20:15]wFMCommunicate request_size=255 [07:20:15]MH_SAM_APDU [07:20:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7B 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 E6 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 4B 00 00 00 F4 03 04 00 2F 38 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B7 B9 02 00 35 04 06 00 99 07 [07:20:15]Write to MH i2c: E2 02 01 72 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7B 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 E6 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 4B 00 00 00 F4 03 04 00 2F 38 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B7 B9 02 00 35 04 06 00 99 07 00 00 19 [07:20:15]Write i2c OK [07:20:15]MH_I2C_Read... [07:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:15]Read from MH i2c: E2 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [07:20:15]RAPDU: 90 00 [07:20:15]wFMCommunicate OK [07:20:15]wFMCommunicate request_size=9 [07:20:15]MH_SAM_APDU [07:20:15]CAPDU: 80 0D 02 02 04 4E 16 73 80 [07:20:15]Write to MH i2c: E2 0C 00 73 02 80 0D 02 02 04 00 4E 16 73 80 00 00 4E [07:20:15]Write i2c OK [07:20:15]MH_I2C_Read... [07:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:15]Read from MH i2c: E2 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 [07:20:15]MH_I2C_Read... [07:20:15]Read from MH i2c: E2 03 00 73 02 00 90 00 E9 [07:20:15]RAPDU: 90 00 [07:20:15]wFMCommunicate OK [07:20:15]wFMCommunicate request_size=4 [07:20:15]MH_SAM_APDU [07:20:15]CAPDU: 80 0D 03 02 [07:20:15]Write to MH i2c: E2 08 00 74 02 80 0D 03 02 00 00 00 00 F1 [07:20:15]Write i2c OK [07:20:15]MH_I2C_Read... [07:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:16]Read from MH i2c: E2 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: E2 0B 00 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: E2 0B 00 74 02 00 CD 35 12 24 4D EB F4 52 90 00 A8 [07:20:16]RAPDU: CD 35 12 24 4D EB F4 52 90 00 [07:20:16]wFMCommunicate OK [07:20:16]SAM_PROTO_SignData done [07:20:16]FM_MakeSignedData done [07:20:16]CreateOFDProtocolMessage [07:20:16]wFMCommunicate request_size=4 [07:20:16]MH_SAM_APDU [07:20:16]CAPDU: 80 11 00 00 [07:20:16]Write to MH i2c: E2 08 00 75 02 80 11 00 00 00 00 00 00 F1 [07:20:16]Write i2c OK [07:20:16]MH_I2C_Read... [07:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:16]Read from MH i2c: E2 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: E2 17 00 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: E2 17 00 75 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4A [07:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:20:16]wFMCommunicate OK [07:20:16]CreateOFDProtocolMessage done [07:20:16]OFDSenderStorePacket 178615 [07:20:16]StoreOFDPacket docnum=178615 [07:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 A2 63 06 01 45 18 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7B 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 E6 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 4B 00 00 00 F4 03 04 00 2F 38 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B7 B9 02 00 35 04 06 00 99 07 4E 16 73 80 CD 35 12 24 4D EB F4 52 [07:20:16]CheckFolder [07:20:16]dirname=/storage/ofd_packets [07:20:16]CheckFolder done [07:20:16]ProducePacketName [07:20:16]name=ofd_packets/00178615 [07:20:16]NVStorageSaveData ofd_packets/00178615 [07:20:16]File name is /storage/ofd_packets/00178615 [07:20:16]Write 300 bytes [07:20:16]NVStorageSaveData done [07:20:16]OFDSenderStorePacket done [07:20:16]KKMCreateOFDPacket done [07:20:16]NVStorageSaveData kkm_last_timestamp [07:20:16]File name is /storage/kkm_last_timestamp [07:20:16]Write 4 bytes [07:20:16]NVStorageSaveData done [07:20:16]ExternCall_PrintAddStr [07:20:16]wPrintStart [07:20:16]Write to MH i2c: 01 00 00 76 02 78 [07:20:16]Write i2c OK [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: 01 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: 01 07 00 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: 01 07 00 76 02 00 00 00 00 00 FF 0F 8D [07:20:16]RasterBufferAndPrint [07:20:16]line Счет N : (1)294020 [07:20:16]line ИНН: 02508201610067 [07:20:16]line Контрольно-Кассовый Чек [07:20:16]line ПРОДАЖА [07:20:16]line ТРК (МРК, ГНК) : 71 [07:20:16]line Товар: 2711129700 [07:20:16]line ГАЗ-К-5 [07:20:16]line 16.050 * 37.40 [07:20:16]line = 600.27 [07:20:16]line НДС 12% НСП 1% [07:20:16]line > о реализуемом товаре [07:20:16]line ОКРУГЛЕНИЕ: -0.27 [07:20:16]line ИТОГО: 600.00 [07:20:16]line Внесено: 600.00 [07:20:16]line СДАЧА: 0.00 [07:20:16]line НСП 1% : 5.31 [07:20:16]line НДС 12% : 63.74 [07:20:16]line Наличными: 600.00 [07:20:16]line Безнал.: 0.00 [07:20:16]line Место: АЗС № 130 "Партнер Нефть" [07:20:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:20:16]line СНО: Общий режим [07:20:16]line Чек 75 23.08.2024 07:20 [07:20:16]line Смена: 470 ФФД: 1.0 [07:20:16]line ЗНМ: 0300000071 [07:20:16]line РНМ: 0000000000092561 [07:20:16]line Версия ККМ: 001 [07:20:16]line ФМ: 0000000000871778 [07:20:16]line ФД: 178615 [07:20:16]line ФПД: 168256653915008 [07:20:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T072015&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178615&fm=168256653915008&tin=02508201610067®Number=0000000000092561&sum=60000 [07:20:16]written 0, free lines is 4095 [07:20:16]OFD Sender: Processing packet 178615 [packets to send 497, broken 496] [07:20:16]ProducePacketName [07:20:16]name=ofd_packets/00178615 [07:20:16]OFD Sender: To server: pG, [07:20:16]CommunicateWithHost lk.salyk.kg:30040 [07:20:16]ConnectInit lk.salyk.kg [07:20:16]Write to MH i2c: 01 00 00 A1 02 A3 [07:20:16]Write i2c OK [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: 01 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: 01 07 00 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 C2 0C 78 [07:20:16]RasterBufferAndPrint [07:20:16]line [07:20:16]line [07:20:16]line [07:20:16]line [07:20:16]line [07:20:16]written 0, free lines is 3272 [07:20:16]MH_Cut [07:20:16]Write to MH i2c: D1 01 00 A8 02 01 7C [07:20:16]Write i2c OK [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: D1 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: D1 01 00 [07:20:16]MH_I2C_Read... [07:20:16]Read from MH i2c: D1 01 00 A8 02 00 7B [07:20:16]Write to MH i2c: 01 00 00 A9 02 AB [07:20:16]Write i2c OK [07:20:16]MH_I2C_Read... [07:20:17]*** Cut start [07:20:17]*** Partial cut [07:20:17]*** CUTSNS_PIN = 1 [07:20:17]*** CUTSNS_PIN = 0 [07:20:17]*** Brake cut motor [07:20:17]Read from MH i2c: 01 [07:20:17]MH_I2C_Read... [07:20:17]*** Stop cut motor [07:20:17]*** Cut end [07:20:17]Read from MH i2c: 01 07 00 [07:20:17]MH_I2C_Read... [07:20:17]Read from MH i2c: 01 07 00 A9 02 00 00 00 00 00 FF 0F C0 [07:20:17]process_action close_receipt done [07:20:17]requested_data is exist [07:20:17]produce_requested_data [07:20:17]requested_item fm.sn is exist - process it [07:20:17]wFMCommunicate request_size=4 [07:20:17]MH_SAM_APDU [07:20:17]CAPDU: 80 11 00 00 [07:20:17]Write to MH i2c: E2 08 00 AA 02 80 11 00 00 00 00 00 00 26 [07:20:17]Write i2c OK [07:20:17]MH_I2C_Read... [07:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:17]Read from MH i2c: E2 [07:20:17]MH_I2C_Read... [07:20:17]Read from MH i2c: E2 17 00 [07:20:17]MH_I2C_Read... [07:20:17]Read from MH i2c: E2 17 00 AA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7F [07:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:20:18]wFMCommunicate OK [07:20:18]requested_item fd.num is exist - process it [07:20:18]SAM_PROTO_GetFieldsCounters [07:20:18]wFMCommunicate request_size=4 [07:20:18]MH_SAM_APDU [07:20:18]CAPDU: 80 13 00 00 [07:20:18]Write to MH i2c: E2 08 00 AB 02 80 13 00 00 00 00 00 00 29 [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:18]Read from MH i2c: E2 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 62 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 62 00 AB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B7 B9 02 00 0E 04 04 00 D6 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 78 [07:20: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B7 B9 02 00 0E 04 04 00 D6 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 [07:20:18]wFMCommunicate OK [07:20:18]SAM_PROTO_GetFieldsCounters done [07:20:18]requested_item shift.num is exist - process it [07:20:18]requested_item shift.opened is exist - process it [07:20:18]req_shift_opened [07:20:18]FM_GetShiftState [07:20:18]SAM_PROTO_GetShiftState [07:20:18]wFMCommunicate request_size=4 [07:20:18]MH_SAM_APDU [07:20:18]CAPDU: 80 13 01 00 [07:20:18]Write to MH i2c: E2 08 00 AC 02 80 13 01 00 00 00 00 00 2B [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:18]Read from MH i2c: E2 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 AC 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 02 [07:20:18]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:20:18]wFMCommunicate OK [07:20:18]SAM_PROTO_GetShiftState done [07:20:18]FM_GetShiftState done [07:20:18]req_shift_opened done [07:20:18]requested_item shift.open_date is exist - process it [07:20:18]req_shift_open_date [07:20:18]req_shift_open_date done [07:20:18]produce_requested_data done [07:20:18]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178615,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:20:18]process_action_free close_receipt [07:20:18]json_value_free [07:20:18]json_value_free done [07:20:18]process_json_proto returns [07:20:18]Send response to host [07:20:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178615,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:20:18]free response buf [07:20:18]execute_script done [07:20:18]execute_script returns [07:20:18]free content buf [07:20:18]Sock 7.Close socket [07:20:18]Sock 7.Thread stoped [07:20:21]Connected sock=11 [07:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 A2 63 06 01 45 18 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 B2 3E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7B 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 E6 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 4B 00 00 00 F4 03 04 00 2F 38 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B7 B9 02 00 35 04 06 00 99 07 4E 16 73 80 CD 35 12 24 4D EB F4 52 [07:20:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 29 31 47 00 F5 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 31 37 37 38 10 04 04 00 B7 B9 02 00 F4 03 04 00 DB E3 C7 66 B6 04 01 00 00 F7 52 6F 3B 89 F5 0A FF [07:20:22]CommunicateWithHost err = 0 [07:20:22]CheckOFDResponse [07:20:22]1017 (14) - 77093643461234 [07:20:22]1041 (16) - 0000000000871778 [07:20:22]1040 (4) - 178615 [07:20:22]1012 (4) - 23.08.2024 01:20 [07:20:22]1206 (1) - 0 [07:20:22]OFD Sender: Remove packet 178615 [07:20:22]ProducePacketName [07:20:22]name=ofd_packets/00178615 [07:20:22]NVStorageDeleteData [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:31]recv_with_timeout no data received [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:43]recv_with_timeout no data received [07:20:48]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]recv_with_timeout no data received [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:01]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:09]accept exits with 9 [07:26:09]New connection [07:26:09]New thread 3067252068 created [07:26:09]Thread 3067395428 joined [07:26:09]Waiting for new connection... [07:26:09] Sock 9.Parse request [07:26:09]Sock 9.Check first char [07:26:09]Sock 9.First char is OK [07:26:09]request: POST /json_proto HTTP/1.0 [07:26:09]Method: POST [07:26:09]URL: /json_proto [07:26:09]Method is POST - this is cgi request [07:26:09]url: /json_proto [07:26:09]query_string will be loaded in cgi processing [07:26:09]execute_cgi json_proto POST (null) [07:26:09]execute_cgi path=json_proto method=POST [07:26:09]POST find Content-Length [07:26:09]Host: 172.17.44.131:8080 [07:26:09]Content-Length: 679 [07:26:09]Content-Type: application/json [07:26:09] [07:26:09]POST finish read [07:26:09]Found Content-Length = 679 [07:26:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:09]execute_script... [07: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)294023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:09]POST & json_proto [07:26:09]process_json_proto [07:26:09]json parsed OK: [07:26:09]protocol is kg_v1.0 [07:26:09]action value=close_receipt [07:26:09]process_action close_receipt [07:26:09]cmd_close_receipt [07:26:09]MH_GetDate [07:26:09]Write to MH i2c: F0 00 00 AD 02 9E [07:26:09]Write i2c OK [07:26:09]MH_I2C_Read... [07:26:09]Read from MH i2c: F0 [07:26:09]MH_I2C_Read... [07:26:09]Read from MH i2c: F0 09 00 [07:26:09]MH_I2C_Read... [07:26:09]Read from MH i2c: F0 09 00 AD 02 00 92 39 C8 66 4F 53 BE 66 66 [07:26:09]GetLastDocTimeStamp 1724397615 [07:26:09]current date 1724397970 [07:26:09]FM_GetShiftState [07:26:09]SAM_PROTO_GetShiftState [07:26:09]wFMCommunicate request_size=4 [07:26:09]MH_SAM_APDU [07:26:09]CAPDU: 80 13 01 00 [07:26:09]Write to MH i2c: E2 08 00 AE 02 80 13 01 00 00 00 00 00 2D [07:26:09]Write i2c OK [07:26:09]MH_I2C_Read... [07:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:09]Read from MH i2c: E2 [07:26:09]MH_I2C_Read... [07:26:09]Read from MH i2c: E2 0E 00 [07:26:09]MH_I2C_Read... [07:26:09]Read from MH i2c: E2 0E 00 AE 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 04 [07:26:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:26:09]wFMCommunicate OK [07:26:09]SAM_PROTO_GetShiftState done [07:26:09]FM_GetShiftState done [07:26:09]opened in 1724371660 [07:26:09]opened+sec_in_day 1724458060 [07:26:09]quantity*price = 200025 [07:26:09]sum+1 = 200026 [07:26:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 76 23.08.2024 07:26 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178616 ФПД: 186251644898837 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T072610&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178616&fm=186251644898837&tin=02508201610067®Number=0000000000092561&sum=200000 [07:26:10]StoreToDocumentArchive [07:26:10]shift 470 fd 178616 [07:26:10]save to /storage/0470/doc_00178616 [07:26:10]save last doc name /storage/0470/doc_00178616 to /storage/kkm_last_doc_name [07:26:10]save OK [07:26:10]Clear old archive folders... [07:26:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:26:10]tlvbuf is 00B16050 [07:26:10]SAM_PROTO_ClearQueue [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 09 00 00 [07:26:10]Write to MH i2c: E2 08 00 BB 02 80 09 00 00 00 00 00 00 2F [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]SAM_PROTO_ClearQueue done [07:26:10]KKMCreateOFDPacket [07:26:10]OFDProtocolAddRootSTLVToBuf [07:26:10]FM_MakeSignedData [07:26:10]FM_MakeSignedData [07:26:10]SAM_PROTO_SignData [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 01 02 [07:26:10]Write to MH i2c: E2 08 00 BC 02 80 0D 01 02 00 00 00 00 37 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]wFMCommunicate request_size=255 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B8 B9 02 00 35 04 06 00 A9 65 17 22 [07:26:10]Write to MH i2c: E2 02 01 BD 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B8 B9 02 00 35 04 06 00 A9 65 17 22 00 00 89 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]wFMCommunicate request_size=7 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 02 02 02 0E 15 [07:26:10]Write to MH i2c: E2 0A 00 BE 02 80 0D 02 02 02 00 0E 15 00 00 61 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 03 00 BE 02 00 90 00 34 [07:26:10]RAPDU: 90 00 [07:26:10]wFMCommunicate OK [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 0D 03 02 [07:26:10]Write to MH i2c: E2 08 00 BF 02 80 0D 03 02 00 00 00 00 3C [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 0B 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 0B 00 BF 02 00 10 43 BB 4C 26 BF 77 10 90 00 03 [07:26:10]RAPDU: 10 43 BB 4C 26 BF 77 10 90 00 [07:26:10]wFMCommunicate OK [07:26:10]SAM_PROTO_SignData done [07:26:10]FM_MakeSignedData done [07:26:10]CreateOFDProtocolMessage [07:26:10]wFMCommunicate request_size=4 [07:26:10]MH_SAM_APDU [07:26:10]CAPDU: 80 11 00 00 [07:26:10]Write to MH i2c: E2 08 00 C0 02 80 11 00 00 00 00 00 00 3C [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:10]Read from MH i2c: E2 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 17 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: E2 17 00 C0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 95 [07:26:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:26:10]wFMCommunicate OK [07:26:10]CreateOFDProtocolMessage done [07:26:10]OFDSenderStorePacket 178616 [07:26:10]StoreOFDPacket docnum=178616 [07:26:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 DE 59 04 01 B7 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B8 B9 02 00 35 04 06 00 A9 65 17 22 0E 15 10 43 BB 4C 26 BF 77 10 [07:26:10]CheckFolder [07:26:10]dirname=/storage/ofd_packets [07:26:10]CheckFolder done [07:26:10]ProducePacketName [07:26:10]name=ofd_packets/00178616 [07:26:10]NVStorageSaveData ofd_packets/00178616 [07:26:10]File name is /storage/ofd_packets/00178616 [07:26:10]Write 298 bytes [07:26:10]NVStorageSaveData done [07:26:10]OFDSenderStorePacket done [07:26:10]KKMCreateOFDPacket done [07:26:10]NVStorageSaveData kkm_last_timestamp [07:26:10]File name is /storage/kkm_last_timestamp [07:26:10]Write 4 bytes [07:26:10]NVStorageSaveData done [07:26:10]ExternCall_PrintAddStr [07:26:10]wPrintStart [07:26:10]Write to MH i2c: 01 00 00 C1 02 C3 [07:26:10]Write i2c OK [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: 01 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: 01 07 00 [07:26:10]MH_I2C_Read... [07:26:10]Read from MH i2c: 01 07 00 C1 02 00 00 00 00 00 FF 0F D8 [07:26:10]RasterBufferAndPrint [07:26:10]line Счет N : (1)294023 [07:26:10]line ИНН: 02508201610067 [07:26:10]line Контрольно-Кассовый Чек [07:26:10]line ПРОДАЖА [07:26:10]line ТРК (МРК, ГНК) : 21 [07:26:10]line Товар: 2710194800 [07:26:10]line ДТ-К-5 [07:26:10]line 26.250 * 76.20 [07:26:10]line = 2000.25 [07:26:10]line НДС 12% НСП 1% [07:26:10]line > о реализуемом товаре [07:26:10]line ОКРУГЛЕНИЕ: -0.25 [07:26:10]line ИТОГО: 2000.00 [07:26:10]line Внесено: 2000.00 [07:26:10]line СДАЧА: 0.00 [07:26:10]line НСП 1% : 17.70 [07:26:10]line НДС 12% : 212.42 [07:26:10]line Наличными: 2000.00 [07:26:10]line Безнал.: 0.00 [07:26:10]line Место: АЗС № 130 "Партнер Нефть" [07:26:10]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:26:10]line СНО: Общий режим [07:26:10]line Чек 76 23.08.2024 07:26 [07:26:10]line Смена: 470 ФФД: 1.0 [07:26:10]line ЗНМ: 0300000071 [07:26:10]line РНМ: 0000000000092561 [07:26:10]line Версия ККМ: 001 [07:26:10]line ФМ: 0000000000871778 [07:26:10]line ФД: 178616 [07:26:10]line ФПД: 186251644898837 [07:26:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T072610&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178616&fm=186251644898837&tin=02508201610067®Number=0000000000092561&sum=200000 [07:26:10]written 0, free lines is 4095 [07:26:11]OFD Sender: Processing packet 178616 [packets to send 497, broken 496] [07:26:11]ProducePacketName [07:26:11]name=ofd_packets/00178616 [07:26:11]OFD Sender: To server: pG, [07:26:11]CommunicateWithHost lk.salyk.kg:30040 [07:26:11]ConnectInit lk.salyk.kg [07:26:11]Write to MH i2c: 01 00 00 EC 02 EE [07:26:11]Write i2c OK [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: 01 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: 01 07 00 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: 01 07 00 EC 02 00 00 00 00 00 D1 0C D2 [07:26:11]RasterBufferAndPrint [07:26:11]line [07:26:11]line [07:26:11]line [07:26:11]line [07:26:11]line [07:26:11]written 0, free lines is 3287 [07:26:11]MH_Cut [07:26:11]Write to MH i2c: D1 01 00 F3 02 01 C7 [07:26:11]Write i2c OK [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: D1 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: D1 01 00 [07:26:11]MH_I2C_Read... [07:26:11]Read from MH i2c: D1 01 00 F3 02 00 C6 [07:26:11]Write to MH i2c: 01 00 00 F4 02 F6 [07:26:11]Write i2c OK [07:26:11]MH_I2C_Read... [07:26:12]*** Cut start [07:26:12]*** Partial cut [07:26:12]*** CUTSNS_PIN = 1 [07:26:12]Connected sock=11 [07:26:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 DE 59 04 01 B7 CE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 92 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B8 B9 02 00 35 04 06 00 A9 65 17 22 0E 15 10 43 BB 4C 26 BF 77 10 [07:26:12]*** CUTSNS_PIN = 0 [07:26:12]*** Brake cut motor [07:26:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 7C 5B 47 00 D1 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B8 B9 02 00 F4 03 04 00 3A E5 C7 66 B6 04 01 00 00 13 C7 91 61 FF 58 0F 28 [07:26:12]CommunicateWithHost err = 0 [07:26:12]CheckOFDResponse [07:26:12]1017 (14) - 77093643461234 [07:26:12]1041 (16) - 0000000000871778 [07:26:12]1040 (4) - 178616 [07:26:12]1012 (4) - 23.08.2024 01:26 [07:26:12]1206 (1) - 0 [07:26:12]OFD Sender: Remove packet 178616 [07:26:12]ProducePacketName [07:26:12]name=ofd_packets/00178616 [07:26:12]NVStorageDeleteData [07:26:12]Read from MH i2c: 01 [07:26:12]MH_I2C_Read... [07:26:12]*** Stop cut motor [07:26:12]*** Cut end [07:26:12]Read from MH i2c: 01 07 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 FF 0F 0B [07:26:12]process_action close_receipt done [07:26:12]requested_data is exist [07:26:12]produce_requested_data [07:26:12]requested_item fm.sn is exist - process it [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 11 00 00 [07:26:12]Write to MH i2c: E2 08 00 F5 02 80 11 00 00 00 00 00 00 71 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 17 00 F5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CA [07:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:26:12]wFMCommunicate OK [07:26:12]requested_item fd.num is exist - process it [07:26:12]SAM_PROTO_GetFieldsCounters [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 13 00 00 [07:26:12]Write to MH i2c: E2 08 00 F6 02 80 13 00 00 00 00 00 00 74 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:12]Read from MH i2c: E2 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 62 00 [07:26:12]MH_I2C_Read... [07:26:12]Read from MH i2c: E2 62 00 F6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B8 B9 02 00 0E 04 04 00 D6 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 C7 [07:26: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B8 B9 02 00 0E 04 04 00 D6 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 [07:26:12]wFMCommunicate OK [07:26:12]SAM_PROTO_GetFieldsCounters done [07:26:12]requested_item shift.num is exist - process it [07:26:12]requested_item shift.opened is exist - process it [07:26:12]req_shift_opened [07:26:12]FM_GetShiftState [07:26:12]SAM_PROTO_GetShiftState [07:26:12]wFMCommunicate request_size=4 [07:26:12]MH_SAM_APDU [07:26:12]CAPDU: 80 13 01 00 [07:26:12]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [07:26:12]Write i2c OK [07:26:12]MH_I2C_Read... [07:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:13]Read from MH i2c: E2 [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: E2 0E 00 [07:26:13]MH_I2C_Read... [07:26:13]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4D [07:26:13]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:26:13]wFMCommunicate OK [07:26:13]SAM_PROTO_GetShiftState done [07:26:13]FM_GetShiftState done [07:26:13]req_shift_opened done [07:26:13]requested_item shift.open_date is exist - process it [07:26:13]req_shift_open_date [07:26:13]req_shift_open_date done [07:26:13]produce_requested_data done [07:26:13]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178616,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:26:13]process_action_free close_receipt [07:26:13]json_value_free [07:26:13]json_value_free done [07:26:13]process_json_proto returns [07:26:13]Send response to host [07:26:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178616,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:26:13]free response buf [07:26:13]execute_script done [07:26:13]execute_script returns [07:26:13]free content buf [07:26:13]Sock 9.Close socket [07:26:13]Sock 9.Thread stoped [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:22]accept exits with 7 [07:26:22]New connection [07:26:22]New thread 3067395428 created [07:26:22]Thread 3067252068 joined [07:26:22]Waiting for new connection... [07:26:22] Sock 7.Parse request [07:26:22]Sock 7.Check first char [07:26:22]Sock 7.First char is OK [07:26:22]request: POST /json_proto HTTP/1.0 [07:26:22]Method: POST [07:26:22]URL: /json_proto [07:26:22]Method is POST - this is cgi request [07:26:22]url: /json_proto [07:26:22]query_string will be loaded in cgi processing [07:26:22]execute_cgi json_proto POST (null) [07:26:22]execute_cgi path=json_proto method=POST [07:26:22]POST find Content-Length [07:26:22]Host: 172.17.44.131:8080 [07:26:22]Content-Length: 682 [07:26:22]Content-Type: application/json [07:26:22] [07:26:22]POST finish read [07:26:22]Found Content-Length = 682 [07:26:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294024", "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" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [07:26:22]execute_script... [07:26: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)294024", "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" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [07:26:22]POST & json_proto [07:26:22]process_json_proto [07:26:22]json parsed OK: [07:26:22]protocol is kg_v1.0 [07:26:22]action value=close_receipt [07:26:22]process_action close_receipt [07:26:22]cmd_close_receipt [07:26:22]MH_GetDate [07:26:22]Write to MH i2c: F0 00 00 F8 02 E9 [07:26:22]Write i2c OK [07:26:22]MH_I2C_Read... [07:26:22]Read from MH i2c: F0 [07:26:22]MH_I2C_Read... [07:26:22]Read from MH i2c: F0 09 00 [07:26:22]MH_I2C_Read... [07:26:22]Read from MH i2c: F0 09 00 F8 02 00 9F 39 C8 66 4F 53 BE 66 BE [07:26:22]GetLastDocTimeStamp 1724397970 [07:26:22]current date 1724397983 [07:26:22]FM_GetShiftState [07:26:22]SAM_PROTO_GetShiftState [07:26:22]wFMCommunicate request_size=4 [07:26:22]MH_SAM_APDU [07:26:22]CAPDU: 80 13 01 00 [07:26:22]Write to MH i2c: E2 08 00 F9 02 80 13 01 00 00 00 00 00 78 [07:26:22]Write i2c OK [07:26:22]MH_I2C_Read... [07:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:22]Read from MH i2c: E2 [07:26:22]MH_I2C_Read... [07:26:22]Read from MH i2c: E2 0E 00 [07:26:22]MH_I2C_Read... [07:26:22]Read from MH i2c: E2 0E 00 F9 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4F [07:26:22]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:26:22]wFMCommunicate OK [07:26:22]SAM_PROTO_GetShiftState done [07:26:22]FM_GetShiftState done [07:26:22]opened in 1724371660 [07:26:22]opened+sec_in_day 1724458060 [07:26:22]quantity*price = 150041 [07:26:22]sum+1 = 150042 [07:26:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 77 23.08.2024 07:26 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178617 ФПД: 7097962626168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T072623&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178617&fm=7097962626168&tin=02508201610067®Number=0000000000092561&sum=150000 [07:26:23]StoreToDocumentArchive [07:26:23]shift 470 fd 178617 [07:26:23]save to /storage/0470/doc_00178617 [07:26:23]save last doc name /storage/0470/doc_00178617 to /storage/kkm_last_doc_name [07:26:23]save OK [07:26:23]Clear old archive folders... [07:26:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:26:23]tlvbuf is 00A4CF80 [07:26:23]SAM_PROTO_ClearQueue [07:26:23]wFMCommunicate request_size=4 [07:26:23]MH_SAM_APDU [07:26:23]CAPDU: 80 09 00 00 [07:26:23]Write to MH i2c: E2 08 00 06 03 80 09 00 00 00 00 00 00 7B [07:26:23]Write i2c OK [07:26:23]MH_I2C_Read... [07:26:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:23]Read from MH i2c: E2 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: E2 03 00 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [07:26:23]RAPDU: 90 00 [07:26:23]wFMCommunicate OK [07:26:23]SAM_PROTO_ClearQueue done [07:26:23]KKMCreateOFDPacket [07:26:23]OFDProtocolAddRootSTLVToBuf [07:26:23]FM_MakeSignedData [07:26:23]FM_MakeSignedData [07:26:23]SAM_PROTO_SignData [07:26:23]wFMCommunicate request_size=4 [07:26:23]MH_SAM_APDU [07:26:23]CAPDU: 80 0D 01 02 [07:26:23]Write to MH i2c: E2 08 00 07 03 80 0D 01 02 00 00 00 00 83 [07:26:23]Write i2c OK [07:26:23]MH_I2C_Read... [07:26:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:23]Read from MH i2c: E2 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: E2 03 00 [07:26:23]MH_I2C_Read... [07:26:23]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [07:26:23]RAPDU: 90 00 [07:26:23]wFMCommunicate OK [07:26:23]wFMCommunicate request_size=255 [07:26:23]MH_SAM_APDU [07:26: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 4D 00 00 00 F4 03 04 00 9F 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B9 B9 02 00 35 04 06 00 06 [07:26:23]Write to MH i2c: E2 02 01 08 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 4D 00 00 00 F4 03 04 00 9F 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B9 B9 02 00 35 04 06 00 06 00 00 1F [07:26:23]Write i2c OK [07:26:23]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [07:26:24]RAPDU: 90 00 [07:26:24]wFMCommunicate OK [07:26:24]wFMCommunicate request_size=10 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 0D 02 02 05 74 9F 8A 7C 78 [07:26:24]Write to MH i2c: E2 0D 00 09 03 80 0D 02 02 05 00 74 9F 8A 7C 78 00 00 21 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [07:26:24]RAPDU: 90 00 [07:26:24]wFMCommunicate OK [07:26:24]wFMCommunicate request_size=4 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 0D 03 02 [07:26:24]Write to MH i2c: E2 08 00 0A 03 80 0D 03 02 00 00 00 00 88 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 0B 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 0B 00 0A 03 00 9E 19 95 0C 68 02 B3 1C 90 00 1A [07:26:24]RAPDU: 9E 19 95 0C 68 02 B3 1C 90 00 [07:26:24]wFMCommunicate OK [07:26:24]SAM_PROTO_SignData done [07:26:24]FM_MakeSignedData done [07:26:24]CreateOFDProtocolMessage [07:26:24]wFMCommunicate request_size=4 [07:26:24]MH_SAM_APDU [07:26:24]CAPDU: 80 11 00 00 [07:26:24]Write to MH i2c: E2 08 00 0B 03 80 11 00 00 00 00 00 00 88 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:24]Read from MH i2c: E2 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 17 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: E2 17 00 0B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [07:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:26:24]wFMCommunicate OK [07:26:24]CreateOFDProtocolMessage done [07:26:24]OFDSenderStorePacket 178617 [07:26:24]StoreOFDPacket docnum=178617 [07:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A5 1E 07 01 4E 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 4D 00 00 00 F4 03 04 00 9F 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B9 B9 02 00 35 04 06 00 06 74 9F 8A 7C 78 9E 19 95 0C 68 02 B3 1C [07:26:24]CheckFolder [07:26:24]dirname=/storage/ofd_packets [07:26:24]CheckFolder done [07:26:24]ProducePacketName [07:26:24]name=ofd_packets/00178617 [07:26:24]NVStorageSaveData ofd_packets/00178617 [07:26:24]File name is /storage/ofd_packets/00178617 [07:26:24]Write 301 bytes [07:26:24]NVStorageSaveData done [07:26:24]OFDSenderStorePacket done [07:26:24]KKMCreateOFDPacket done [07:26:24]NVStorageSaveData kkm_last_timestamp [07:26:24]File name is /storage/kkm_last_timestamp [07:26:24]Write 4 bytes [07:26:24]NVStorageSaveData done [07:26:24]ExternCall_PrintAddStr [07:26:24]wPrintStart [07:26:24]Write to MH i2c: 01 00 00 0C 03 0F [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 07 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [07:26:24]RasterBufferAndPrint [07:26:24]line Счет N : (1)294024 [07:26:24]line ИНН: 02508201610067 [07:26:24]line Контрольно-Кассовый Чек [07:26:24]line ПРОДАЖА [07:26:24]line ТРК (МРК, ГНК) : 52 [07:26:24]line Товар: 2710124130 [07:26:24]line Аи-92-К-5 [07:26:24]line 22.130 * 67.80 [07:26:24]line = 1500.41 [07:26:24]line НДС 12% НСП 1% [07:26:24]line > о реализуемом товаре [07:26:24]line ОКРУГЛЕНИЕ: -0.41 [07:26:24]line ИТОГО: 1500.00 [07:26:24]line Внесено: 1500.00 [07:26:24]line СДАЧА: 0.00 [07:26:24]line НСП 1% : 13.28 [07:26:24]line НДС 12% : 159.34 [07:26:24]line Наличными: 1500.00 [07:26:24]line Безнал.: 0.00 [07:26:24]line Место: АЗС № 130 "Партнер Нефть" [07:26:24]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:26:24]line СНО: Общий режим [07:26:24]line Чек 77 23.08.2024 07:26 [07:26:24]line Смена: 470 ФФД: 1.0 [07:26:24]line ЗНМ: 0300000071 [07:26:24]line РНМ: 0000000000092561 [07:26:24]line Версия ККМ: 001 [07:26:24]line ФМ: 0000000000871778 [07:26:24]line ФД: 178617 [07:26:24]line ФПД: 7097962626168 [07:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T072623&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178617&fm=7097962626168&tin=02508201610067®Number=0000000000092561&sum=150000 [07:26:24]written 0, free lines is 4095 [07:26:24]OFD Sender: Processing packet 178617 [packets to send 497, broken 496] [07:26:24]ProducePacketName [07:26:24]name=ofd_packets/00178617 [07:26:24]OFD Sender: To server: pG, [07:26:24]CommunicateWithHost lk.salyk.kg:30040 [07:26:24]ConnectInit lk.salyk.kg [07:26:24]Connected sock=10 [07:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A5 1E 07 01 4E 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 4D 00 00 00 F4 03 04 00 9F 39 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 B9 B9 02 00 35 04 06 00 06 74 9F 8A 7C 78 9E 19 95 0C 68 02 B3 1C [07:26:24]Write to MH i2c: 01 00 00 37 03 3A [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 07 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 DB 0C 28 [07:26:24]RasterBufferAndPrint [07:26:24]line [07:26:24]line [07:26:24]line [07:26:24]line [07:26:24]line [07:26:24]written 0, free lines is 3300 [07:26:24]MH_Cut [07:26:24]Write to MH i2c: D1 01 00 3E 03 01 13 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: D1 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: D1 01 00 [07:26:24]MH_I2C_Read... [07:26:24]Read from MH i2c: D1 01 00 3E 03 00 12 [07:26:24]Write to MH i2c: 01 00 00 3F 03 42 [07:26:24]Write i2c OK [07:26:24]MH_I2C_Read... [07:26:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 10 68 47 00 65 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 31 37 37 38 10 04 04 00 B9 B9 02 00 F4 03 04 00 47 E5 C7 66 B6 04 01 00 00 F5 40 87 D1 41 63 8B 88 [07:26:24]CommunicateWithHost err = 0 [07:26:24]CheckOFDResponse [07:26:24]1017 (14) - 77093643461234 [07:26:24]1041 (16) - 0000000000871778 [07:26:24]1040 (4) - 178617 [07:26:24]1012 (4) - 23.08.2024 01:26 [07:26:24]1206 (1) - 0 [07:26:24]OFD Sender: Remove packet 178617 [07:26:24]ProducePacketName [07:26:24]name=ofd_packets/00178617 [07:26:24]NVStorageDeleteData [07:26:25]OFD Sender: No OFD packet to send [07:26:25]*** Cut start [07:26:25]*** Partial cut [07:26:25]*** CUTSNS_PIN = 1 [07:26:25]*** CUTSNS_PIN = 0 [07:26:25]*** Brake cut motor [07:26:26]Read from MH i2c: 01 [07:26:26]MH_I2C_Read... [07:26:26]*** Stop cut motor [07:26:26]*** Cut end [07:26:26]Read from MH i2c: 01 07 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 FF 0F 57 [07:26:26]process_action close_receipt done [07:26:26]requested_data is exist [07:26:26]produce_requested_data [07:26:26]requested_item fm.sn is exist - process it [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 11 00 00 [07:26:26]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:26]Read from MH i2c: E2 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 17 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 16 [07:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:26:26]wFMCommunicate OK [07:26:26]requested_item fd.num is exist - process it [07:26:26]SAM_PROTO_GetFieldsCounters [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 13 00 00 [07:26:26]Write to MH i2c: E2 08 00 41 03 80 13 00 00 00 00 00 00 C0 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:26]Read from MH i2c: E2 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 62 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 62 00 41 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B9 B9 02 00 0E 04 04 00 D6 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 17 [07:26: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 B9 B9 02 00 0E 04 04 00 D6 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 [07:26:26]wFMCommunicate OK [07:26:26]SAM_PROTO_GetFieldsCounters done [07:26:26]requested_item shift.num is exist - process it [07:26:26]requested_item shift.opened is exist - process it [07:26:26]req_shift_opened [07:26:26]FM_GetShiftState [07:26:26]SAM_PROTO_GetShiftState [07:26:26]wFMCommunicate request_size=4 [07:26:26]MH_SAM_APDU [07:26:26]CAPDU: 80 13 01 00 [07:26:26]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [07:26:26]Write i2c OK [07:26:26]MH_I2C_Read... [07:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:26]Read from MH i2c: E2 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 0E 00 [07:26:26]MH_I2C_Read... [07:26:26]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 99 [07:26:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:26:26]wFMCommunicate OK [07:26:26]SAM_PROTO_GetShiftState done [07:26:26]FM_GetShiftState done [07:26:26]req_shift_opened done [07:26:26]requested_item shift.open_date is exist - process it [07:26:26]req_shift_open_date [07:26:26]req_shift_open_date done [07:26:26]produce_requested_data done [07:26:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178617,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:26:26]process_action_free close_receipt [07:26:26]json_value_free [07:26:26]json_value_free done [07:26:26]process_json_proto returns [07:26:26]Send response to host [07:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178617,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:26:26]free response buf [07:26:26]execute_script done [07:26:26]execute_script returns [07:26:26]free content buf [07:26:26]Sock 7.Close socket [07:26:26]Sock 7.Thread stoped [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:37]recv_with_timeout no data received [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:54]recv_with_timeout no data received [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:05]OFD Sender: No OFD packet to send [07:29:10]OFD Sender: No OFD packet to send [07:29:15]OFD Sender: No OFD packet to send [07:29:20]OFD Sender: No OFD packet to send [07:29:25]OFD Sender: No OFD packet to send [07:29:30]OFD Sender: No OFD packet to send [07:29:35]OFD Sender: No OFD packet to send [07:29:40]OFD Sender: No OFD packet to send [07:29:45]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:05]accept exits with 9 [07:30:05]New connection [07:30:05]New thread 3067252068 created [07:30:05]Thread 3067395428 joined [07:30:05]Waiting for new connection... [07:30:05] Sock 9.Parse request [07:30:05]Sock 9.Check first char [07:30:05]Sock 9.First char is OK [07:30:05]request: POST /json_proto HTTP/1.0 [07:30:05]Method: POST [07:30:05]URL: /json_proto [07:30:05]Method is POST - this is cgi request [07:30:05]url: /json_proto [07:30:05]query_string will be loaded in cgi processing [07:30:05]execute_cgi json_proto POST (null) [07:30:05]execute_cgi path=json_proto method=POST [07:30:05]POST find Content-Length [07:30:05]Host: 172.17.44.131:8080 [07:30:05]Content-Length: 679 [07:30:05]Content-Type: application/json [07:30:05] [07:30:05]POST finish read [07:30:05]Found Content-Length = 679 [07:30:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:05]execute_script... [07:30: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)294027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:30:05]POST & json_proto [07:30:05]process_json_proto [07:30:05]json parsed OK: [07:30:05]protocol is kg_v1.0 [07:30:05]action value=close_receipt [07:30:05]process_action close_receipt [07:30:05]cmd_close_receipt [07:30:05]MH_GetDate [07:30:05]Write to MH i2c: F0 00 00 43 03 35 [07:30:05]Write i2c OK [07:30:05]MH_I2C_Read... [07:30:05]Read from MH i2c: F0 [07:30:05]MH_I2C_Read... [07:30:05]Read from MH i2c: F0 09 00 [07:30:05]MH_I2C_Read... [07:30:05]Read from MH i2c: F0 09 00 43 03 00 7E 3A C8 66 4F 53 BE 66 EA [07:30:05]GetLastDocTimeStamp 1724397983 [07:30:05]current date 1724398206 [07:30:05]FM_GetShiftState [07:30:05]SAM_PROTO_GetShiftState [07:30:05]wFMCommunicate request_size=4 [07:30:05]MH_SAM_APDU [07:30:05]CAPDU: 80 13 01 00 [07:30:05]Write to MH i2c: E2 08 00 44 03 80 13 01 00 00 00 00 00 C4 [07:30:05]Write i2c OK [07:30:05]MH_I2C_Read... [07:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:05]Read from MH i2c: E2 [07:30:05]MH_I2C_Read... [07:30:05]Read from MH i2c: E2 0E 00 [07:30:05]MH_I2C_Read... [07:30:05]Read from MH i2c: E2 0E 00 44 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9B [07:30:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:30:05]wFMCommunicate OK [07:30:05]SAM_PROTO_GetShiftState done [07:30:05]FM_GetShiftState done [07:30:05]opened in 1724371660 [07:30:05]opened+sec_in_day 1724458060 [07:30:05]quantity*price = 100050 [07:30:05]sum+1 = 100052 [07:30:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 78 23.08.2024 07:30 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178618 ФПД: 198247727755586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T073006&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178618&fm=198247727755586&tin=02508201610067®Number=0000000000092561&sum=100000 [07:30:07]StoreToDocumentArchive [07:30:07]shift 470 fd 178618 [07:30:07]save to /storage/0470/doc_00178618 [07:30:07]save last doc name /storage/0470/doc_00178618 to /storage/kkm_last_doc_name [07:30:07]save OK [07:30:07]Clear old archive folders... [07:30:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:30:07]tlvbuf is 00A4E8B0 [07:30:07]SAM_PROTO_ClearQueue [07:30:07]wFMCommunicate request_size=4 [07:30:07]MH_SAM_APDU [07:30:07]CAPDU: 80 09 00 00 [07:30:07]Write to MH i2c: E2 08 00 51 03 80 09 00 00 00 00 00 00 C6 [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:30:07]Read from MH i2c: E2 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [07:30:07]RAPDU: 90 00 [07:30:07]wFMCommunicate OK [07:30:07]SAM_PROTO_ClearQueue done [07:30:07]KKMCreateOFDPacket [07:30:07]OFDProtocolAddRootSTLVToBuf [07:30:07]FM_MakeSignedData [07:30:07]FM_MakeSignedData [07:30:07]SAM_PROTO_SignData [07:30:07]wFMCommunicate request_size=4 [07:30:07]MH_SAM_APDU [07:30:07]CAPDU: 80 0D 01 02 [07:30:07]Write to MH i2c: E2 08 00 52 03 80 0D 01 02 00 00 00 00 CE [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:30:07]Read from MH i2c: E2 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [07:30:07]RAPDU: 90 00 [07:30:07]wFMCommunicate OK [07:30:07]wFMCommunicate request_size=255 [07:30:07]MH_SAM_APDU [07:30:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7E 3A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BA B9 02 00 35 04 06 00 B4 4E 25 63 [07:30:07]Write to MH i2c: E2 02 01 53 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7E 3A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BA B9 02 00 35 04 06 00 B4 4E 25 63 00 00 66 [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:07]Read from MH i2c: E2 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [07:30:07]RAPDU: 90 00 [07:30:07]wFMCommunicate OK [07:30:07]wFMCommunicate request_size=7 [07:30:07]MH_SAM_APDU [07:30:07]CAPDU: 80 0D 02 02 02 F1 42 [07:30:07]Write to MH i2c: E2 0A 00 54 03 80 0D 02 02 02 00 F1 42 00 00 08 [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:30:07]Read from MH i2c: E2 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [07:30:07]RAPDU: 90 00 [07:30:07]wFMCommunicate OK [07:30:07]wFMCommunicate request_size=4 [07:30:07]MH_SAM_APDU [07:30:07]CAPDU: 80 0D 03 02 [07:30:07]Write to MH i2c: E2 08 00 55 03 80 0D 03 02 00 00 00 00 D3 [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:30:07]Read from MH i2c: E2 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 0B 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 0B 00 55 03 00 36 E9 E3 68 D8 D2 C4 04 90 00 B0 [07:30:07]RAPDU: 36 E9 E3 68 D8 D2 C4 04 90 00 [07:30:07]wFMCommunicate OK [07:30:07]SAM_PROTO_SignData done [07:30:07]FM_MakeSignedData done [07:30:07]CreateOFDProtocolMessage [07:30:07]wFMCommunicate request_size=4 [07:30:07]MH_SAM_APDU [07:30:07]CAPDU: 80 11 00 00 [07:30:07]Write to MH i2c: E2 08 00 56 03 80 11 00 00 00 00 00 00 D3 [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:07]Read from MH i2c: E2 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 17 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: E2 17 00 56 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2C [07:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:30:07]wFMCommunicate OK [07:30:07]CreateOFDProtocolMessage done [07:30:07]OFDSenderStorePacket 178618 [07:30:07]StoreOFDPacket docnum=178618 [07:30:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 94 A7 04 01 A5 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7E 3A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BA B9 02 00 35 04 06 00 B4 4E 25 63 F1 42 36 E9 E3 68 D8 D2 C4 04 [07:30:07]CheckFolder [07:30:07]dirname=/storage/ofd_packets [07:30:07]CheckFolder done [07:30:07]ProducePacketName [07:30:07]name=ofd_packets/00178618 [07:30:07]NVStorageSaveData ofd_packets/00178618 [07:30:07]File name is /storage/ofd_packets/00178618 [07:30:07]Write 298 bytes [07:30:07]NVStorageSaveData done [07:30:07]OFDSenderStorePacket done [07:30:07]KKMCreateOFDPacket done [07:30:07]NVStorageSaveData kkm_last_timestamp [07:30:07]File name is /storage/kkm_last_timestamp [07:30:07]Write 4 bytes [07:30:07]NVStorageSaveData done [07:30:07]ExternCall_PrintAddStr [07:30:07]wPrintStart [07:30:07]Write to MH i2c: 01 00 00 57 03 5A [07:30:07]Write i2c OK [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: 01 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: 01 07 00 [07:30:07]MH_I2C_Read... [07:30:07]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [07:30:07]RasterBufferAndPrint [07:30:07]line Счет N : (1)294027 [07:30:07]line ИНН: 02508201610067 [07:30:07]line Контрольно-Кассовый Чек [07:30:07]line ПРОДАЖА [07:30:07]line ТРК (МРК, ГНК) : 11 [07:30:07]line Товар: 2710194800 [07:30:07]line ДТ-К-5 [07:30:07]line 13.130 * 76.20 [07:30:07]line = 1000.51 [07:30:07]line НДС 12% НСП 1% [07:30:07]line > о реализуемом товаре [07:30:07]line ОКРУГЛЕНИЕ: -0.51 [07:30:07]line ИТОГО: 1000.00 [07:30:07]line Внесено: 1000.00 [07:30:07]line СДАЧА: 0.00 [07:30:07]line НСП 1% : 8.85 [07:30:07]line НДС 12% : 106.25 [07:30:07]line Наличными: 1000.00 [07:30:07]line Безнал.: 0.00 [07:30:07]line Место: АЗС № 130 "Партнер Нефть" [07:30:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [07:30:07]line СНО: Общий режим [07:30:07]line Чек 78 23.08.2024 07:30 [07:30:07]line Смена: 470 ФФД: 1.0 [07:30:07]line ЗНМ: 0300000071 [07:30:07]line РНМ: 0000000000092561 [07:30:07]line Версия ККМ: 001 [07:30:07]line ФМ: 0000000000871778 [07:30:07]line ФД: 178618 [07:30:07]line ФПД: 198247727755586 [07:30:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T073006&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178618&fm=198247727755586&tin=02508201610067®Number=0000000000092561&sum=100000 [07:30:07]OFD Sender: Processing packet 178618 [packets to send 497, broken 496] [07:30:07]ProducePacketName [07:30:07]name=ofd_packets/00178618 [07:30:07]OFD Sender: To server: pG, [07:30:07]CommunicateWithHost lk.salyk.kg:30040 [07:30:07]ConnectInit lk.salyk.kg [07:30:07]written 0, free lines is 4095 [07:30:08]Write to MH i2c: 01 00 00 82 03 85 [07:30:08]Write i2c OK [07:30:08]MH_I2C_Read... [07:30:08]Read from MH i2c: 01 [07:30:08]MH_I2C_Read... [07:30:08]Read from MH i2c: 01 07 00 [07:30:08]MH_I2C_Read... [07:30:08]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 D2 0C 6A [07:30:08]RasterBufferAndPrint [07:30:08]line [07:30:08]line [07:30:08]line [07:30:08]line [07:30:08]line [07:30:08]written 0, free lines is 3288 [07:30:08]MH_Cut [07:30:08]Write to MH i2c: D1 01 00 89 03 01 5E [07:30:08]Write i2c OK [07:30:08]MH_I2C_Read... [07:30:08]Read from MH i2c: D1 [07:30:08]MH_I2C_Read... [07:30:08]Read from MH i2c: D1 01 00 [07:30:08]MH_I2C_Read... [07:30:08]Read from MH i2c: D1 01 00 89 03 00 5D [07:30:08]Write to MH i2c: 01 00 00 8A 03 8D [07:30:08]Write i2c OK [07:30:08]MH_I2C_Read... [07:30:09]*** Cut start [07:30:09]*** Partial cut [07:30:09]*** CUTSNS_PIN = 1 [07:30:09]*** CUTSNS_PIN = 0 [07:30:09]*** Brake cut motor [07:30:09]Read from MH i2c: 01 [07:30:09]MH_I2C_Read... [07:30:09]*** Stop cut motor [07:30:09]*** Cut end [07:30:09]Read from MH i2c: 01 07 00 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: 01 07 00 8A 03 00 00 00 00 00 FF 0F A2 [07:30:09]process_action close_receipt done [07:30:09]requested_data is exist [07:30:09]produce_requested_data [07:30:09]requested_item fm.sn is exist - process it [07:30:09]wFMCommunicate request_size=4 [07:30:09]MH_SAM_APDU [07:30:09]CAPDU: 80 11 00 00 [07:30:09]Write to MH i2c: E2 08 00 8B 03 80 11 00 00 00 00 00 00 08 [07:30:09]Write i2c OK [07:30:09]MH_I2C_Read... [07:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:30:09]Read from MH i2c: E2 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: E2 17 00 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: E2 17 00 8B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 61 [07:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [07:30:09]wFMCommunicate OK [07:30:09]requested_item fd.num is exist - process it [07:30:09]SAM_PROTO_GetFieldsCounters [07:30:09]wFMCommunicate request_size=4 [07:30:09]MH_SAM_APDU [07:30:09]CAPDU: 80 13 00 00 [07:30:09]Write to MH i2c: E2 08 00 8C 03 80 13 00 00 00 00 00 00 0B [07:30:09]Write i2c OK [07:30:09]MH_I2C_Read... [07:30:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:30:09]Read from MH i2c: E2 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: E2 62 00 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: E2 62 00 8C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BA B9 02 00 0E 04 04 00 D6 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 66 [07:30: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BA B9 02 00 0E 04 04 00 D6 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 [07:30:09]wFMCommunicate OK [07:30:09]SAM_PROTO_GetFieldsCounters done [07:30:09]requested_item shift.num is exist - process it [07:30:09]requested_item shift.opened is exist - process it [07:30:09]req_shift_opened [07:30:09]FM_GetShiftState [07:30:09]SAM_PROTO_GetShiftState [07:30:09]wFMCommunicate request_size=4 [07:30:09]MH_SAM_APDU [07:30:09]CAPDU: 80 13 01 00 [07:30:09]Write to MH i2c: E2 08 00 8D 03 80 13 01 00 00 00 00 00 0D [07:30:09]Write i2c OK [07:30:09]MH_I2C_Read... [07:30:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:30:09]Read from MH i2c: E2 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: E2 0E 00 [07:30:09]MH_I2C_Read... [07:30:09]Read from MH i2c: E2 0E 00 8D 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E4 [07:30:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [07:30:09]wFMCommunicate OK [07:30:09]SAM_PROTO_GetShiftState done [07:30:09]FM_GetShiftState done [07:30:09]req_shift_opened done [07:30:09]requested_item shift.open_date is exist - process it [07:30:09]req_shift_open_date [07:30:09]req_shift_open_date done [07:30:09]produce_requested_data done [07:30:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178618,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [07:30:09]process_action_free close_receipt [07:30:09]json_value_free [07:30:09]json_value_free done [07:30:09]process_json_proto returns [07:30:09]Send response to host [07:30:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178618,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [07:30:09]free response buf [07:30:09]execute_script done [07:30:09]execute_script returns [07:30:09]free content buf [07:30:09]Sock 9.Close socket [07:30:09]Sock 9.Thread stoped [07:30:11]recv_with_timeout no data received [07:30:12]ConnectInit Can't take IP for lk.salyk.kg [07:30:12]CommunicateWithHost connect error [07:30:12]CommunicateWithHost err = -1 [07:30:12]OFD Sender: Server communicate error [07:30:17]OFD Sender: Processing packet 178618 [packets to send 497, broken 496] [07:30:17]ProducePacketName [07:30:17]name=ofd_packets/00178618 [07:30:17]OFD Sender: To server: pG, [07:30:17]CommunicateWithHost lk.salyk.kg:30040 [07:30:17]ConnectInit lk.salyk.kg [07:30:21]Connected sock=9 [07:30:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 94 A7 04 01 A5 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 7E 3A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BA B9 02 00 35 04 06 00 B4 4E 25 63 F1 42 36 E9 E3 68 D8 D2 C4 04 [07:30:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4F 19 47 00 3F E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BA B9 02 00 F4 03 04 00 33 E6 C7 66 B6 04 01 00 00 A2 87 59 83 B1 59 70 F2 [07:30:21]CommunicateWithHost err = 0 [07:30:21]CheckOFDResponse [07:30:21]1017 (14) - 77093643461234 [07:30:21]1041 (16) - 0000000000871778 [07:30:21]1040 (4) - 178618 [07:30:21]1012 (4) - 23.08.2024 01:30 [07:30:21]1206 (1) - 0 [07:30:21]OFD Sender: Remove packet 178618 [07:30:21]ProducePacketName [07:30:21]name=ofd_packets/00178618 [07:30:21]NVStorageDeleteData [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:29]recv_with_timeout no data received [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:38]recv_with_timeout no data received [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34: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:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:13]recv_with_timeout no data received [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:37]recv_with_timeout no data received [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]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:18]recv_with_timeout no data received [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:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:18]recv_with_timeout no data received [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]recv_with_timeout no data received [07:47:59]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:14]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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: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:51]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:09]recv_with_timeout no data received [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:22]recv_with_timeout no data received [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:39]recv_with_timeout no data received [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:50]recv_with_timeout no data received [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]recv_with_timeout no data received [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:51]recv_with_timeout no data received [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:02]recv_with_timeout no data received [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:36]OFD Sender: No OFD packet to send [08:00:41]OFD Sender: No OFD packet to send [08:00:46]OFD Sender: No OFD packet to send [08:00:51]OFD Sender: No OFD packet to send [08:00:56]OFD Sender: No OFD packet to send [08:01:01]OFD Sender: No OFD packet to send [08:01:06]OFD Sender: No OFD packet to send [08:01:11]OFD Sender: No OFD packet to send [08:01:16]OFD Sender: No OFD packet to send [08:01:21]OFD Sender: No OFD packet to send [08:01:26]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:46]accept exits with 10 [08:01:46]New connection [08:01:46]New thread 3067395428 created [08:01:46]Thread 3067252068 joined [08:01:46]Waiting for new connection... [08:01:46] Sock 10.Parse request [08:01:46]Sock 10.Check first char [08:01:46]Sock 10.First char is OK [08:01:46]request: POST /json_proto HTTP/1.0 [08:01:46]Method: POST [08:01:46]URL: /json_proto [08:01:46]Method is POST - this is cgi request [08:01:46]url: /json_proto [08:01:46]query_string will be loaded in cgi processing [08:01:46]execute_cgi json_proto POST (null) [08:01:46]execute_cgi path=json_proto method=POST [08:01:46]POST find Content-Length [08:01:46]Host: 172.17.44.131:8080 [08:01:46]Content-Length: 679 [08:01:46]Content-Type: application/json [08:01:46] [08:01:46]POST finish read [08:01:46]Found Content-Length = 679 [08:01:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:46]execute_script... [08:01: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)294039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:46]POST & json_proto [08:01:46]process_json_proto [08:01:46]json parsed OK: [08:01:46]protocol is kg_v1.0 [08:01:46]action value=close_receipt [08:01:46]process_action close_receipt [08:01:46]cmd_close_receipt [08:01:46]MH_GetDate [08:01:46]Write to MH i2c: F0 00 00 8E 03 80 [08:01:46]Write i2c OK [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: F0 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: F0 09 00 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: F0 09 00 8E 03 00 EB 41 C8 66 4F 53 BE 66 A9 [08:01:46]GetLastDocTimeStamp 1724398206 [08:01:46]current date 1724400107 [08:01:46]FM_GetShiftState [08:01:46]SAM_PROTO_GetShiftState [08:01:46]wFMCommunicate request_size=4 [08:01:46]MH_SAM_APDU [08:01:46]CAPDU: 80 13 01 00 [08:01:46]Write to MH i2c: E2 08 00 8F 03 80 13 01 00 00 00 00 00 0F [08:01:46]Write i2c OK [08:01:46]MH_I2C_Read... [08:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:46]Read from MH i2c: E2 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: E2 0E 00 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: E2 0E 00 8F 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E6 [08:01:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [08:01:46]wFMCommunicate OK [08:01:46]SAM_PROTO_GetShiftState done [08:01:46]FM_GetShiftState done [08:01:46]opened in 1724371660 [08:01:46]opened+sec_in_day 1724458060 [08:01:46]quantity*price = 100050 [08:01:46]sum+1 = 100052 [08:01:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 81 23.08.2024 08:12 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178621 ФПД: 28891575734138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T081213&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178621&fm=28891575734138&tin=02508201610067®Number=0000000000092561&sum=100005 [08:12:14]StoreToDocumentArchive [08:12:14]shift 470 fd 178621 [08:12:14]save to /storage/0470/doc_00178621 [08:12:14]save last doc name /storage/0470/doc_00178621 to /storage/kkm_last_doc_name [08:12:14]save OK [08:12:14]Clear old archive folders... [08:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:14]tlvbuf is 00C5FB50 [08:12:14]SAM_PROTO_ClearQueue [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 09 00 00 [08:12:14]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:14]Read from MH i2c: E2 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 03 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [08:12:14]RAPDU: 90 00 [08:12:14]wFMCommunicate OK [08:12:14]SAM_PROTO_ClearQueue done [08:12:14]KKMCreateOFDPacket [08:12:14]OFDProtocolAddRootSTLVToBuf [08:12:14]FM_MakeSignedData [08:12:14]FM_MakeSignedData [08:12:14]SAM_PROTO_SignData [08:12:14]wFMCommunicate request_size=4 [08:12:14]MH_SAM_APDU [08:12:14]CAPDU: 80 0D 01 02 [08:12:14]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:14]Read from MH i2c: E2 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 03 00 [08:12:14]MH_I2C_Read... [08:12:14]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [08:12:14]RAPDU: 90 00 [08:12:14]wFMCommunicate OK [08:12:14]wFMCommunicate request_size=255 [08:12:14]MH_SAM_APDU [08:12: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 5D 44 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BD B9 02 00 35 04 06 00 1A [08:12:14]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 5D 44 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BD B9 02 00 35 04 06 00 1A 00 00 4A [08:12:14]Write i2c OK [08:12:14]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [08:12:15]RAPDU: 90 00 [08:12:15]wFMCommunicate OK [08:12:15]wFMCommunicate request_size=10 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 0D 02 02 05 46 D8 1B CF 7A [08:12:15]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 46 D8 1B CF 7A 00 00 34 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [08:12:15]RAPDU: 90 00 [08:12:15]wFMCommunicate OK [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 0D 03 02 [08:12:15]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0B 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 0B 00 2F 00 00 1B D9 E8 BA 6D F4 36 D1 90 00 A9 [08:12:15]RAPDU: 1B D9 E8 BA 6D F4 36 D1 90 00 [08:12:15]wFMCommunicate OK [08:12:15]SAM_PROTO_SignData done [08:12:15]FM_MakeSignedData done [08:12:15]CreateOFDProtocolMessage [08:12:15]wFMCommunicate request_size=4 [08:12:15]MH_SAM_APDU [08:12:15]CAPDU: 80 11 00 00 [08:12:15]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:15]Read from MH i2c: E2 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 17 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [08:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:15]wFMCommunicate OK [08:12:15]CreateOFDProtocolMessage done [08:12:15]OFDSenderStorePacket 178621 [08:12:15]StoreOFDPacket docnum=178621 [08:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 28 5C 07 01 78 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 5D 44 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BD B9 02 00 35 04 06 00 1A 46 D8 1B CF 7A 1B D9 E8 BA 6D F4 36 D1 [08:12:15]CheckFolder [08:12:15]dirname=/storage/ofd_packets [08:12:15]CheckFolder done [08:12:15]ProducePacketName [08:12:15]name=ofd_packets/00178621 [08:12:15]NVStorageSaveData ofd_packets/00178621 [08:12:15]File name is /storage/ofd_packets/00178621 [08:12:15]Write 301 bytes [08:12:15]NVStorageSaveData done [08:12:15]OFDSenderStorePacket done [08:12:15]KKMCreateOFDPacket done [08:12:15]NVStorageSaveData kkm_last_timestamp [08:12:15]File name is /storage/kkm_last_timestamp [08:12:15]Write 4 bytes [08:12:15]NVStorageSaveData done [08:12:15]ExternCall_PrintAddStr [08:12:15]wPrintStart [08:12:15]Write to MH i2c: 01 00 00 31 00 31 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 07 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [08:12:15]RasterBufferAndPrint [08:12:15]line Счет N : (1)294051 [08:12:15]line ИНН: 02508201610067 [08:12:15]line Контрольно-Кассовый Чек [08:12:15]line ПРОДАЖА [08:12:15]line ТРК (МРК, ГНК) : 32 [08:12:15]line Товар: 2710124130 [08:12:15]line Аи-92-К-5 [08:12:15]line 14.750 * 67.80 [08:12:15]line = 1000.05 [08:12:15]line НДС 12% НСП 1% [08:12:15]line > о реализуемом товаре [08:12:15]line ИТОГО: 1000.05 [08:12:15]line НСП 1% : 8.85 [08:12:15]line НДС 12% : 106.20 [08:12:15]line Наличными: 0.00 [08:12:15]line Безнал.: 1000.05 [08:12:15]line Место: АЗС № 130 "Партнер Нефть" [08:12:15]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:12:15]line СНО: Общий режим [08:12:15]line Чек 81 23.08.2024 08:12 [08:12:15]line Смена: 470 ФФД: 1.0 [08:12:15]line ЗНМ: 0300000071 [08:12:15]line РНМ: 0000000000092561 [08:12:15]line Версия ККМ: 001 [08:12:15]line Платежная система: O! деньги [08:12:15]line ФМ: 0000000000871778 [08:12:15]line ФД: 178621 [08:12:15]line ФПД: 28891575734138 [08:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T081213&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178621&fm=28891575734138&tin=02508201610067®Number=0000000000092561&sum=100005 [08:12:15]written 0, free lines is 4095 [08:12:15]OFD Sender: Processing packet 178621 [packets to send 498, broken 497] [08:12:15]ProducePacketName [08:12:15]name=ofd_packets/00178621 [08:12:15]OFD Sender: To server: pG, [08:12:15]CommunicateWithHost lk.salyk.kg:30040 [08:12:15]ConnectInit lk.salyk.kg [08:12:15]Write to MH i2c: 01 00 00 5B 00 5B [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 07 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 EA 0C 58 [08:12:15]RasterBufferAndPrint [08:12:15]line [08:12:15]line [08:12:15]line [08:12:15]line [08:12:15]line [08:12:15]written 0, free lines is 3313 [08:12:15]MH_Cut [08:12:15]Write to MH i2c: D1 01 00 62 00 01 34 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: D1 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: D1 01 00 [08:12:15]MH_I2C_Read... [08:12:15]Read from MH i2c: D1 01 00 62 00 00 33 [08:12:15]Write to MH i2c: 01 00 00 63 00 63 [08:12:15]Write i2c OK [08:12:15]MH_I2C_Read... [08:12:16]*** Cut start [08:12:16]*** Partial cut [08:12:16]*** CUTSNS_PIN = 1 [08:12:16]*** CUTSNS_PIN = 0 [08:12:16]*** Brake cut motor [08:12:17]Read from MH i2c: 01 [08:12:17]MH_I2C_Read... [08:12:17]*** Stop cut motor [08:12:17]*** Cut end [08:12:17]Read from MH i2c: 01 07 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [08:12:17]process_action close_receipt done [08:12:17]requested_data is exist [08:12:17]produce_requested_data [08:12:17]requested_item fm.sn is exist - process it [08:12:17]wFMCommunicate request_size=4 [08:12:17]MH_SAM_APDU [08:12:17]CAPDU: 80 11 00 00 [08:12:17]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:17]Read from MH i2c: E2 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 17 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [08:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:12:17]wFMCommunicate OK [08:12:17]requested_item fd.num is exist - process it [08:12:17]SAM_PROTO_GetFieldsCounters [08:12:17]wFMCommunicate request_size=4 [08:12:17]MH_SAM_APDU [08:12:17]CAPDU: 80 13 00 00 [08:12:17]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:17]Read from MH i2c: E2 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 62 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BD B9 02 00 0E 04 04 00 D6 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 48 [08:12: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BD B9 02 00 0E 04 04 00 D6 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 [08:12:17]wFMCommunicate OK [08:12:17]SAM_PROTO_GetFieldsCounters done [08:12:17]requested_item shift.num is exist - process it [08:12:17]requested_item shift.opened is exist - process it [08:12:17]req_shift_opened [08:12:17]FM_GetShiftState [08:12:17]SAM_PROTO_GetShiftState [08:12:17]wFMCommunicate request_size=4 [08:12:17]MH_SAM_APDU [08:12:17]CAPDU: 80 13 01 00 [08:12:17]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [08:12:17]Write i2c OK [08:12:17]MH_I2C_Read... [08:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:17]Read from MH i2c: E2 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 0E 00 [08:12:17]MH_I2C_Read... [08:12:17]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BA [08:12:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [08:12:17]wFMCommunicate OK [08:12:17]SAM_PROTO_GetShiftState done [08:12:17]FM_GetShiftState done [08:12:17]req_shift_opened done [08:12:17]requested_item shift.open_date is exist - process it [08:12:17]req_shift_open_date [08:12:17]req_shift_open_date done [08:12:17]produce_requested_data done [08:12:17]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178621,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [08:12:17]process_action_free close_receipt [08:12:17]json_value_free [08:12:17]json_value_free done [08:12:17]process_json_proto returns [08:12:17]Send response to host [08:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178621,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [08:12:17]free response buf [08:12:17]execute_script done [08:12:17]execute_script returns [08:12:17]free content buf [08:12:17]Sock 6.Close socket [08:12:17]Sock 6.Thread stoped [08:12:18]Connected sock=9 [08: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 31 37 37 38 0F 01 00 00 28 5C 07 01 78 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 5D 44 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BD B9 02 00 35 04 06 00 1A 46 D8 1B CF 7A 1B D9 E8 BA 6D F4 36 D1 [08:12:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A1 15 47 00 E6 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 31 37 37 38 10 04 04 00 BD B9 02 00 F4 03 04 00 08 F0 C7 66 B6 04 01 00 00 B8 C2 F9 92 29 4C E3 B1 [08:12:20]CommunicateWithHost err = 0 [08:12:20]CheckOFDResponse [08:12:20]1017 (14) - 77093643461234 [08:12:20]1041 (16) - 0000000000871778 [08:12:20]1040 (4) - 178621 [08:12:20]1012 (4) - 23.08.2024 02:12 [08:12:20]1206 (1) - 0 [08:12:20]OFD Sender: Remove packet 178621 [08:12:20]ProducePacketName [08:12:20]name=ofd_packets/00178621 [08:12:20]NVStorageDeleteData [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:50]recv_with_timeout no data received [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:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:07]recv_with_timeout no data received [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]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:14]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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]recv_with_timeout no data received [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:53]OFD Sender: No OFD packet to send [08:24:58]OFD Sender: No OFD packet to send [08:25:03]OFD Sender: No OFD packet to send [08:25:08]OFD Sender: No OFD packet to send [08:25:13]OFD Sender: No OFD packet to send [08:25:18]OFD Sender: No OFD packet to send [08:25:23]OFD Sender: No OFD packet to send [08:25:28]OFD Sender: No OFD packet to send [08:25:33]OFD Sender: No OFD packet to send [08:25:35]recv_with_timeout no data received [08:25:38]OFD Sender: No OFD packet to send [08:25:43]OFD Sender: No OFD packet to send [08:25:48]OFD Sender: No OFD packet to send [08:25:49]recv_with_timeout no data received [08:25:53]OFD Sender: No OFD packet to send [08:27:30]ConnectInit Can't connect to host [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:28]OFD Sender: No OFD packet to send [08:28:33]OFD Sender: No OFD packet to send [08:28:38]OFD Sender: No OFD packet to send [08:28:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:10]recv_with_timeout no data received [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:38]OFD Sender: No OFD packet to send [08:30:43]OFD Sender: No OFD packet to send [08:30:48]OFD Sender: No OFD packet to send [08:30:53]OFD Sender: No OFD packet to send [08:30:58]OFD Sender: No OFD packet to send [08:31:03]OFD Sender: No OFD packet to send [08:31:08]OFD Sender: No OFD packet to send [08:31:13]OFD Sender: No OFD packet to send [08:31:18]OFD Sender: No OFD packet to send [08:31:23]OFD Sender: No OFD packet to send [08:31:28]OFD Sender: No OFD packet to send [08:31:33]OFD Sender: No OFD packet to send [08:31:38]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:31]recv_with_timeout no data received [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:06]recv_with_timeout no data received [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:14]OFD Sender: No OFD packet to send [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]recv_with_timeout no data received [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:36]recv_with_timeout no data received [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:11]recv_with_timeout no data received [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:31]recv_with_timeout no data received [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:06]recv_with_timeout no data received [08:41:10]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:36]recv_with_timeout no data received [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:35]OFD Sender: No OFD packet to send [08:44:40]OFD Sender: No OFD packet to send [08:44:45]OFD Sender: No OFD packet to send [08:44:50]OFD Sender: No OFD packet to send [08:44:55]OFD Sender: No OFD packet to send [08:45:00]OFD Sender: No OFD packet to send [08:45:05]OFD Sender: No OFD packet to send [08:45:10]OFD Sender: No OFD packet to send [08:45:15]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:02]recv_with_timeout no data received [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:08]recv_with_timeout no data received [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:22]recv_with_timeout no data received [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:51:59]recv_with_timeout no data received [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:01]recv_with_timeout no data received [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:26]recv_with_timeout no data received [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:06]recv_with_timeout no data received [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:36]recv_with_timeout no data received [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:53]recv_with_timeout no data received [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:10]accept exits with 10 [08:57:10]New connection [08:57:10]New thread 3067407716 created [08:57:10]Thread 3067551076 joined [08:57:10]Waiting for new connection... [08:57:10] Sock 10.Parse request [08:57:10]Sock 10.Check first char [08:57:10]Sock 10.First char is OK [08:57:10]request: POST /json_proto HTTP/1.0 [08:57:10]Method: POST [08:57:10]URL: /json_proto [08:57:10]Method is POST - this is cgi request [08:57:10]url: /json_proto [08:57:10]query_string will be loaded in cgi processing [08:57:10]execute_cgi json_proto POST (null) [08:57:10]execute_cgi path=json_proto method=POST [08:57:10]POST find Content-Length [08:57:10]Host: 172.17.44.131:8080 [08:57:10]Content-Length: 803 [08:57:10]Content-Type: application/json [08:57:10] [08:57:10]POST finish read [08:57:10]Found Content-Length = 803 [08:57:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.070, "sum" : 2676.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2676.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:10]execute_script... [08:57: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)294080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 36.070, "sum" : 2676.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2676.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:10]POST & json_proto [08:57:10]process_json_proto [08:57:10]json parsed OK: [08:57:10]protocol is kg_v1.0 [08:57:10]action value=close_receipt [08:57:10]process_action close_receipt [08:57:10]cmd_close_receipt [08:57:10]MH_GetDate [08:57:10]Write to MH i2c: F0 00 00 67 00 56 [08:57:10]Write i2c OK [08:57:10]MH_I2C_Read... [08:57:10]Read from MH i2c: F0 [08:57:10]MH_I2C_Read... [08:57:10]Read from MH i2c: F0 09 00 [08:57:10]MH_I2C_Read... [08:57:10]Read from MH i2c: F0 09 00 67 00 00 E6 4E C8 66 4F 53 BE 66 87 [08:57:10]GetLastDocTimeStamp 1724400733 [08:57:10]current date 1724403430 [08:57:10]FM_GetShiftState [08:57:10]SAM_PROTO_GetShiftState [08:57:10]wFMCommunicate request_size=4 [08:57:10]MH_SAM_APDU [08:57:10]CAPDU: 80 13 01 00 [08:57:10]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [08:57:10]Write i2c OK [08:57:10]MH_I2C_Read... [08:57:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:10]Read from MH i2c: E2 [08:57:10]MH_I2C_Read... [08:57:10]Read from MH i2c: E2 0E 00 [08:57:10]MH_I2C_Read... [08:57:10]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BC [08:57:10]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [08:57:10]wFMCommunicate OK [08:57:10]SAM_PROTO_GetShiftState done [08:57:10]FM_GetShiftState done [08:57:10]opened in 1724371660 [08:57:10]opened+sec_in_day 1724458060 [08:57:10]quantity*price = 267639 [08:57:10]sum+1 = 267640 [08:57:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2676.39 НСП 1% : 23.68 НДС 12% : 284.22 Наличными: 0.00 Безнал.: 2676.39 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 82 23.08.2024 08:57 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178622 ФПД: 64007171341954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T085710&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178622&fm=64007171341954&tin=02508201610067®Number=0000000000092561&sum=267639 [08:57:11]StoreToDocumentArchive [08:57:11]shift 470 fd 178622 [08:57:11]save to /storage/0470/doc_00178622 [08:57:11]save last doc name /storage/0470/doc_00178622 to /storage/kkm_last_doc_name [08:57:11]save OK [08:57:11]Clear old archive folders... [08:57:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:11]tlvbuf is 00C566D0 [08:57:11]SAM_PROTO_ClearQueue [08:57:11]wFMCommunicate request_size=4 [08:57:11]MH_SAM_APDU [08:57:11]CAPDU: 80 09 00 00 [08:57:11]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:11]Read from MH i2c: E2 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [08:57:11]RAPDU: 90 00 [08:57:11]wFMCommunicate OK [08:57:11]SAM_PROTO_ClearQueue done [08:57:11]KKMCreateOFDPacket [08:57:11]OFDProtocolAddRootSTLVToBuf [08:57:11]FM_MakeSignedData [08:57:11]FM_MakeSignedData [08:57:11]SAM_PROTO_SignData [08:57:11]wFMCommunicate request_size=4 [08:57:11]MH_SAM_APDU [08:57:11]CAPDU: 80 0D 01 02 [08:57:11]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:11]Read from MH i2c: E2 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [08:57:11]RAPDU: 90 00 [08:57:11]wFMCommunicate OK [08:57:11]wFMCommunicate request_size=255 [08:57:11]MH_SAM_APDU [08:57: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 E6 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 77 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 15 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E6 4E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BE B9 02 00 35 04 06 00 3A [08:57:11]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 77 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 15 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E6 4E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BE B9 02 00 35 04 06 00 3A 00 00 37 [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:11]Read from MH i2c: E2 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [08:57:11]RAPDU: 90 00 [08:57:11]wFMCommunicate OK [08:57:11]wFMCommunicate request_size=10 [08:57:11]MH_SAM_APDU [08:57:11]CAPDU: 80 0D 02 02 05 36 D4 B5 FE 82 [08:57:11]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 36 D4 B5 FE 82 00 00 3B [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:11]Read from MH i2c: E2 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [08:57:11]RAPDU: 90 00 [08:57:11]wFMCommunicate OK [08:57:11]wFMCommunicate request_size=4 [08:57:11]MH_SAM_APDU [08:57:11]CAPDU: 80 0D 03 02 [08:57:11]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:11]Read from MH i2c: E2 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 0B 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 0B 00 79 00 00 DE 5A 96 FC 3A 26 1C 08 90 00 43 [08:57:11]RAPDU: DE 5A 96 FC 3A 26 1C 08 90 00 [08:57:11]wFMCommunicate OK [08:57:11]SAM_PROTO_SignData done [08:57:11]FM_MakeSignedData done [08:57:11]CreateOFDProtocolMessage [08:57:11]wFMCommunicate request_size=4 [08:57:11]MH_SAM_APDU [08:57:11]CAPDU: 80 11 00 00 [08:57:11]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:11]Read from MH i2c: E2 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 17 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [08:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:57:11]wFMCommunicate OK [08:57:11]CreateOFDProtocolMessage done [08:57:11]OFDSenderStorePacket 178622 [08:57:11]StoreOFDPacket docnum=178622 [08:57:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 22 D4 07 01 59 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 77 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 15 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E6 4E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BE B9 02 00 35 04 06 00 3A 36 D4 B5 FE 82 DE 5A 96 FC 3A 26 1C 08 [08:57:11]CheckFolder [08:57:11]dirname=/storage/ofd_packets [08:57:11]CheckFolder done [08:57:11]ProducePacketName [08:57:11]name=ofd_packets/00178622 [08:57:11]NVStorageSaveData ofd_packets/00178622 [08:57:11]File name is /storage/ofd_packets/00178622 [08:57:11]Write 301 bytes [08:57:11]NVStorageSaveData done [08:57:11]OFDSenderStorePacket done [08:57:11]KKMCreateOFDPacket done [08:57:11]NVStorageSaveData kkm_last_timestamp [08:57:11]File name is /storage/kkm_last_timestamp [08:57:11]Write 4 bytes [08:57:11]NVStorageSaveData done [08:57:11]ExternCall_PrintAddStr [08:57:11]wPrintStart [08:57:11]Write to MH i2c: 01 00 00 7B 00 7B [08:57:11]Write i2c OK [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: 01 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: 01 07 00 [08:57:11]MH_I2C_Read... [08:57:11]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [08:57:11]RasterBufferAndPrint [08:57:11]line Счет N : (1)294080 [08:57:11]line ИНН: 02508201610067 [08:57:11]line Контрольно-Кассовый Чек [08:57:11]line ПРОДАЖА [08:57:11]line ТРК (МРК, ГНК) : 43 [08:57:11]line Товар: 2710124500 [08:57:11]line Аи-95-К-5 [08:57:11]line 36.070 * 74.20 [08:57:11]line = 2676.39 [08:57:11]line НДС 12% НСП 1% [08:57:11]line > о реализуемом товаре [08:57:11]line ИТОГО: 2676.39 [08:57:11]line НСП 1% : 23.68 [08:57:11]line НДС 12% : 284.22 [08:57:11]line Наличными: 0.00 [08:57:11]line Безнал.: 2676.39 [08:57:11]line Место: АЗС № 130 "Партнер Нефть" [08:57:11]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [08:57:11]line СНО: Общий режим [08:57:11]line Чек 82 23.08.2024 08:57 [08:57:11]line Смена: 470 ФФД: 1.0 [08:57:11]line ЗНМ: 0300000071 [08:57:11]line РНМ: 0000000000092561 [08:57:11]line Версия ККМ: 001 [08:57:11]line Платежная система: O! деньги [08:57:11]line ФМ: 0000000000871778 [08:57:11]line ФД: 178622 [08:57:11]line ФПД: 64007171341954 [08:57:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T085710&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178622&fm=64007171341954&tin=02508201610067®Number=0000000000092561&sum=267639 [08:57:12]written 0, free lines is 4095 [08:57:12]OFD Sender: Processing packet 178622 [packets to send 498, broken 497] [08:57:12]ProducePacketName [08:57:12]name=ofd_packets/00178622 [08:57:12]OFD Sender: To server: pG, [08:57:12]CommunicateWithHost lk.salyk.kg:30040 [08:57:12]ConnectInit lk.salyk.kg [08:57:12]Write to MH i2c: 01 00 00 A5 00 A5 [08:57:12]Write i2c OK [08:57:12]MH_I2C_Read... [08:57:12]Read from MH i2c: 01 [08:57:12]MH_I2C_Read... [08:57:12]Read from MH i2c: 01 07 00 [08:57:12]MH_I2C_Read... [08:57:12]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E6 0C 9E [08:57:12]RasterBufferAndPrint [08:57:12]line [08:57:12]line [08:57:12]line [08:57:12]line [08:57:12]line [08:57:12]written 0, free lines is 3308 [08:57:12]Connected sock=9 [08:57:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 22 D4 07 01 59 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E6 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 77 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 77 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 06 6F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 77 15 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 E6 4E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BE B9 02 00 35 04 06 00 3A 36 D4 B5 FE 82 DE 5A 96 FC 3A 26 1C 08 [08:57:12]MH_Cut [08:57:12]Write to MH i2c: D1 01 00 AC 00 01 7E [08:57:12]Write i2c OK [08:57:12]MH_I2C_Read... [08:57:12]Read from MH i2c: D1 [08:57:12]MH_I2C_Read... [08:57:12]Read from MH i2c: D1 01 00 [08:57:12]MH_I2C_Read... [08:57:12]Read from MH i2c: D1 01 00 AC 00 00 7D [08:57:12]Write to MH i2c: 01 00 00 AD 00 AD [08:57:12]Write i2c OK [08:57:12]MH_I2C_Read... [08:57:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A8 8C 47 00 DE 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 31 37 37 38 10 04 04 00 BE B9 02 00 F4 03 04 00 8E FA C7 66 B6 04 01 00 00 63 FB BA CE 78 F1 3C E2 [08:57:12]CommunicateWithHost err = 0 [08:57:12]CheckOFDResponse [08:57:12]1017 (14) - 77093643461234 [08:57:12]1041 (16) - 0000000000871778 [08:57:12]1040 (4) - 178622 [08:57:12]1012 (4) - 23.08.2024 02:57 [08:57:12]1206 (1) - 0 [08:57:12]OFD Sender: Remove packet 178622 [08:57:12]ProducePacketName [08:57:12]name=ofd_packets/00178622 [08:57:12]NVStorageDeleteData [08:57:13]*** Cut start [08:57:13]*** Partial cut [08:57:13]*** CUTSNS_PIN = 1 [08:57:13]*** CUTSNS_PIN = 0 [08:57:13]OFD Sender: No OFD packet to send [08:57:13]*** Brake cut motor [08:57:13]Read from MH i2c: 01 [08:57:13]MH_I2C_Read... [08:57:13]*** Stop cut motor [08:57:13]*** Cut end [08:57:13]Read from MH i2c: 01 07 00 [08:57:13]MH_I2C_Read... [08:57:13]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [08:57:13]process_action close_receipt done [08:57:13]requested_data is exist [08:57:13]produce_requested_data [08:57:13]requested_item fm.sn is exist - process it [08:57:13]wFMCommunicate request_size=4 [08:57:13]MH_SAM_APDU [08:57:13]CAPDU: 80 11 00 00 [08:57:13]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [08:57:13]Write i2c OK [08:57:13]MH_I2C_Read... [08:57:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:13]Read from MH i2c: E2 [08:57:13]MH_I2C_Read... [08:57:13]Read from MH i2c: E2 17 00 [08:57:13]MH_I2C_Read... [08:57:13]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 81 [08:57:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [08:57:13]wFMCommunicate OK [08:57:13]requested_item fd.num is exist - process it [08:57:13]SAM_PROTO_GetFieldsCounters [08:57:13]wFMCommunicate request_size=4 [08:57:13]MH_SAM_APDU [08:57:13]CAPDU: 80 13 00 00 [08:57:13]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [08:57:13]Write i2c OK [08:57:13]MH_I2C_Read... [08:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:13]Read from MH i2c: E2 [08:57:13]MH_I2C_Read... [08:57:13]Read from MH i2c: E2 62 00 [08:57:13]MH_I2C_Read... [08:57:13]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BE B9 02 00 0E 04 04 00 D6 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 96 [08:57: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BE B9 02 00 0E 04 04 00 D6 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 [08:57:13]wFMCommunicate OK [08:57:13]SAM_PROTO_GetFieldsCounters done [08:57:13]requested_item shift.num is exist - process it [08:57:13]requested_item shift.opened is exist - process it [08:57:13]req_shift_opened [08:57:13]FM_GetShiftState [08:57:13]SAM_PROTO_GetShiftState [08:57:13]wFMCommunicate request_size=4 [08:57:13]MH_SAM_APDU [08:57:13]CAPDU: 80 13 01 00 [08:57:13]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [08:57:13]Write i2c OK [08:57:13]MH_I2C_Read... [08:57:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:14]Read from MH i2c: E2 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: E2 0E 00 [08:57:14]MH_I2C_Read... [08:57:14]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 04 [08:57:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [08:57:14]wFMCommunicate OK [08:57:14]SAM_PROTO_GetShiftState done [08:57:14]FM_GetShiftState done [08:57:14]req_shift_opened done [08:57:14]requested_item shift.open_date is exist - process it [08:57:14]req_shift_open_date [08:57:14]req_shift_open_date done [08:57:14]produce_requested_data done [08:57:14]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178622,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [08:57:14]process_action_free close_receipt [08:57:14]json_value_free [08:57:14]json_value_free done [08:57:14]process_json_proto returns [08:57:14]Send response to host [08:57:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178622,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [08:57:14]free response buf [08:57:14]execute_script done [08:57:14]execute_script returns [08:57:14]free content buf [08:57:14]Sock 10.Close socket [08:57:14]Sock 10.Thread stoped [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:29]recv_with_timeout no data received [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:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:41]recv_with_timeout no data received [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:23]accept exits with 7 [09:02:23]New connection [09:02:23]New thread 3067551076 created [09:02:23]Thread 3067407716 joined [09:02:23]Waiting for new connection... [09:02:23] Sock 7.Parse request [09:02:23]Sock 7.Check first char [09:02:23]Sock 7.First char is OK [09:02:23]request: POST /json_proto HTTP/1.0 [09:02:23]Method: POST [09:02:23]URL: /json_proto [09:02:23]Method is POST - this is cgi request [09:02:23]url: /json_proto [09:02:23]query_string will be loaded in cgi processing [09:02:23]execute_cgi json_proto POST (null) [09:02:23]execute_cgi path=json_proto method=POST [09:02:23]POST find Content-Length [09:02:23]Host: 172.17.44.131:8080 [09:02:23]Content-Length: 685 [09:02:23]Content-Type: application/json [09:02:23] [09:02:23]POST finish read [09:02:23]Found Content-Length = 685 [09:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 58.920, "sum" : 2203.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2203.00, "payments": [ { "type": 0, "sum" : 2203.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:23]execute_script... [09:02: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)294081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 58.920, "sum" : 2203.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2203.00, "payments": [ { "type": 0, "sum" : 2203.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:23]POST & json_proto [09:02:23]process_json_proto [09:02:23]json parsed OK: [09:02:23]protocol is kg_v1.0 [09:02:23]action value=close_receipt [09:02:23]process_action close_receipt [09:02:23]cmd_close_receipt [09:02:23]MH_GetDate [09:02:23]Write to MH i2c: F0 00 00 B1 00 A0 [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: F0 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: F0 09 00 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: F0 09 00 B1 00 00 20 50 C8 66 4F 53 BE 66 0D [09:02:23]GetLastDocTimeStamp 1724403430 [09:02:23]current date 1724403744 [09:02:23]FM_GetShiftState [09:02:23]SAM_PROTO_GetShiftState [09:02:23]wFMCommunicate request_size=4 [09:02:23]MH_SAM_APDU [09:02:23]CAPDU: 80 13 01 00 [09:02:23]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:02:23]Write i2c OK [09:02:23]MH_I2C_Read... [09:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:23]Read from MH i2c: E2 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: E2 0E 00 [09:02:23]MH_I2C_Read... [09:02:23]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 06 [09:02:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:02:23]wFMCommunicate OK [09:02:23]SAM_PROTO_GetShiftState done [09:02:23]FM_GetShiftState done [09:02:23]opened in 1724371660 [09:02:23]opened+sec_in_day 1724458060 [09:02:23]quantity*price = 220360 [09:02:23]sum+1 = 220362 [09:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2203.00 Внесено: 5000.00 СДАЧА: 2797.00 НСП 1% : 19.50 НДС 12% : 234.01 Наличными: 2203.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 83 23.08.2024 09:02 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178623 ФПД: 207849460721847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T090224&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178623&fm=207849460721847&tin=02508201610067®Number=0000000000092561&sum=220300 [09:02:24]StoreToDocumentArchive [09:02:24]shift 470 fd 178623 [09:02:24]save to /storage/0470/doc_00178623 [09:02:24]save last doc name /storage/0470/doc_00178623 to /storage/kkm_last_doc_name [09:02:24]save OK [09:02:24]Clear old archive folders... [09:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:02:24]tlvbuf is 00C85650 [09:02:24]SAM_PROTO_ClearQueue [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 09 00 00 [09:02:24]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:24]Read from MH i2c: E2 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 03 00 [09:02:24]MH_I2C_Read... [09:02:24]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:02:24]RAPDU: 90 00 [09:02:24]wFMCommunicate OK [09:02:24]SAM_PROTO_ClearQueue done [09:02:24]KKMCreateOFDPacket [09:02:24]OFDProtocolAddRootSTLVToBuf [09:02:24]FM_MakeSignedData [09:02:24]FM_MakeSignedData [09:02:24]SAM_PROTO_SignData [09:02:24]wFMCommunicate request_size=4 [09:02:24]MH_SAM_APDU [09:02:24]CAPDU: 80 0D 01 02 [09:02:24]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:02:24]Write i2c OK [09:02:24]MH_I2C_Read... [09:02:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:25]Read from MH i2c: E2 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 03 00 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:02:25]RAPDU: 90 00 [09:02:25]wFMCommunicate OK [09:02:25]wFMCommunicate request_size=255 [09:02:25]MH_SAM_APDU [09:02:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 E6 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5B 00 00 00 00 07 04 06 00 8C 5C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 50 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BF B9 02 00 35 04 06 00 BD 09 [09:02:25]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 E6 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5B 00 00 00 00 07 04 06 00 8C 5C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 50 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BF B9 02 00 35 04 06 00 BD 09 00 00 1E [09:02:25]Write i2c OK [09:02:25]MH_I2C_Read... [09:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:25]Read from MH i2c: E2 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 03 00 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:02:25]RAPDU: 90 00 [09:02:25]wFMCommunicate OK [09:02:25]wFMCommunicate request_size=9 [09:02:25]MH_SAM_APDU [09:02:25]CAPDU: 80 0D 02 02 04 B9 45 E8 B7 [09:02:25]Write to MH i2c: E2 0C 00 C2 00 80 0D 02 02 04 00 B9 45 E8 B7 00 00 E1 [09:02:25]Write i2c OK [09:02:25]MH_I2C_Read... [09:02:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:25]Read from MH i2c: E2 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 03 00 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:02:25]RAPDU: 90 00 [09:02:25]wFMCommunicate OK [09:02:25]wFMCommunicate request_size=4 [09:02:25]MH_SAM_APDU [09:02:25]CAPDU: 80 0D 03 02 [09:02:25]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:02:25]Write i2c OK [09:02:25]MH_I2C_Read... [09:02:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:25]Read from MH i2c: E2 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 0B 00 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 0B 00 C3 00 00 FF 60 A5 2F B9 F2 60 0D 90 00 8A [09:02:25]RAPDU: FF 60 A5 2F B9 F2 60 0D 90 00 [09:02:25]wFMCommunicate OK [09:02:25]SAM_PROTO_SignData done [09:02:25]FM_MakeSignedData done [09:02:25]CreateOFDProtocolMessage [09:02:25]wFMCommunicate request_size=4 [09:02:25]MH_SAM_APDU [09:02:25]CAPDU: 80 11 00 00 [09:02:25]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:02:25]Write i2c OK [09:02:25]MH_I2C_Read... [09:02:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:25]Read from MH i2c: E2 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 17 00 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 97 [09:02:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:02:25]wFMCommunicate OK [09:02:25]CreateOFDProtocolMessage done [09:02:25]OFDSenderStorePacket 178623 [09:02:25]StoreOFDPacket docnum=178623 [09:02:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 AE B4 06 01 D9 CF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 E6 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5B 00 00 00 00 07 04 06 00 8C 5C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 50 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BF B9 02 00 35 04 06 00 BD 09 B9 45 E8 B7 FF 60 A5 2F B9 F2 60 0D [09:02:25]CheckFolder [09:02:25]dirname=/storage/ofd_packets [09:02:25]CheckFolder done [09:02:25]ProducePacketName [09:02:25]name=ofd_packets/00178623 [09:02:25]NVStorageSaveData ofd_packets/00178623 [09:02:25]File name is /storage/ofd_packets/00178623 [09:02:25]Write 300 bytes [09:02:25]NVStorageSaveData done [09:02:25]OFDSenderStorePacket done [09:02:25]KKMCreateOFDPacket done [09:02:25]NVStorageSaveData kkm_last_timestamp [09:02:25]File name is /storage/kkm_last_timestamp [09:02:25]Write 4 bytes [09:02:25]NVStorageSaveData done [09:02:25]ExternCall_PrintAddStr [09:02:25]wPrintStart [09:02:25]Write to MH i2c: 01 00 00 C5 00 C5 [09:02:25]Write i2c OK [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: 01 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: 01 07 00 [09:02:25]MH_I2C_Read... [09:02:25]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:02:25]RasterBufferAndPrint [09:02:25]line Счет N : (1)294081 [09:02:25]line ИНН: 02508201610067 [09:02:25]line Контрольно-Кассовый Чек [09:02:25]line ПРОДАЖА [09:02:25]line ТРК (МРК, ГНК) : 71 [09:02:25]line Товар: 2711129700 [09:02:25]line ГАЗ-К-5 [09:02:25]line 58.920 * 37.40 [09:02:25]line = 2203.61 [09:02:25]line НДС 12% НСП 1% [09:02:25]line > о реализуемом товаре [09:02:25]line ОКРУГЛЕНИЕ: -0.61 [09:02:25]line ИТОГО: 2203.00 [09:02:25]line Внесено: 5000.00 [09:02:25]line СДАЧА: 2797.00 [09:02:25]line НСП 1% : 19.50 [09:02:25]line НДС 12% : 234.01 [09:02:25]line Наличными: 2203.00 [09:02:25]line Безнал.: 0.00 [09:02:25]line Место: АЗС № 130 "Партнер Нефть" [09:02:25]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:02:25]line СНО: Общий режим [09:02:25]line Чек 83 23.08.2024 09:02 [09:02:25]line Смена: 470 ФФД: 1.0 [09:02:25]line ЗНМ: 0300000071 [09:02:25]line РНМ: 0000000000092561 [09:02:25]line Версия ККМ: 001 [09:02:25]line ФМ: 0000000000871778 [09:02:25]line ФД: 178623 [09:02:25]line ФПД: 207849460721847 [09:02:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T090224&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178623&fm=207849460721847&tin=02508201610067®Number=0000000000092561&sum=220300 [09:02:25]OFD Sender: Processing packet 178623 [packets to send 498, broken 497] [09:02:25]ProducePacketName [09:02:25]name=ofd_packets/00178623 [09:02:25]OFD Sender: To server: pG, [09:02:25]CommunicateWithHost lk.salyk.kg:30040 [09:02:25]ConnectInit lk.salyk.kg [09:02:25]written 0, free lines is 4095 [09:02:26]Write to MH i2c: 01 00 00 F0 00 F0 [09:02:26]Write i2c OK [09:02:26]MH_I2C_Read... [09:02:26]Read from MH i2c: 01 [09:02:26]MH_I2C_Read... [09:02:26]Read from MH i2c: 01 07 00 [09:02:26]MH_I2C_Read... [09:02:26]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 DD 0C E0 [09:02:26]RasterBufferAndPrint [09:02:26]line [09:02:26]line [09:02:26]line [09:02:26]line [09:02:26]line [09:02:26]written 0, free lines is 3298 [09:02:26]MH_Cut [09:02:26]Write to MH i2c: D1 01 00 F7 00 01 C9 [09:02:26]Write i2c OK [09:02:26]MH_I2C_Read... [09:02:26]Read from MH i2c: D1 [09:02:26]MH_I2C_Read... [09:02:26]Read from MH i2c: D1 01 00 [09:02:26]MH_I2C_Read... [09:02:26]Read from MH i2c: D1 01 00 F7 00 00 C8 [09:02:26]Write to MH i2c: 01 00 00 F8 00 F8 [09:02:26]Write i2c OK [09:02:26]MH_I2C_Read... [09:02:27]*** Cut start [09:02:27]*** Partial cut [09:02:27]*** CUTSNS_PIN = 1 [09:02:27]*** CUTSNS_PIN = 0 [09:02:27]Connected sock=10 [09:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 AE B4 06 01 D9 CF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 28 E6 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 5C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 5C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 5B 00 00 00 00 07 04 06 00 8C 5C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 20 50 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 BF B9 02 00 35 04 06 00 BD 09 B9 45 E8 B7 FF 60 A5 2F B9 F2 60 0D [09:02:27]*** Brake cut motor [09:02:27]Read from MH i2c: 01 [09:02:27]MH_I2C_Read... [09:02:27]*** Stop cut motor [09:02:27]*** Cut end [09:02:27]Read from MH i2c: 01 07 00 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [09:02:27]process_action close_receipt done [09:02:27]requested_data is exist [09:02:27]produce_requested_data [09:02:27]requested_item fm.sn is exist - process it [09:02:27]wFMCommunicate request_size=4 [09:02:27]MH_SAM_APDU [09:02:27]CAPDU: 80 11 00 00 [09:02:27]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [09:02:27]Write i2c OK [09:02:27]MH_I2C_Read... [09:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:27]Read from MH i2c: E2 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 17 00 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CC [09:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:02:27]wFMCommunicate OK [09:02:27]requested_item fd.num is exist - process it [09:02:27]SAM_PROTO_GetFieldsCounters [09:02:27]wFMCommunicate request_size=4 [09:02:27]MH_SAM_APDU [09:02:27]CAPDU: 80 13 00 00 [09:02:27]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [09:02:27]Write i2c OK [09:02:27]MH_I2C_Read... [09:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:27]Read from MH i2c: E2 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 62 00 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BF B9 02 00 0E 04 04 00 D6 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 E5 [09:02:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BF B9 02 00 0E 04 04 00 D6 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 [09:02:27]wFMCommunicate OK [09:02:27]SAM_PROTO_GetFieldsCounters done [09:02:27]requested_item shift.num is exist - process it [09:02:27]requested_item shift.opened is exist - process it [09:02:27]req_shift_opened [09:02:27]FM_GetShiftState [09:02:27]SAM_PROTO_GetShiftState [09:02:27]wFMCommunicate request_size=4 [09:02:27]MH_SAM_APDU [09:02:27]CAPDU: 80 13 01 00 [09:02:27]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [09:02:27]Write i2c OK [09:02:27]MH_I2C_Read... [09:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:27]Read from MH i2c: E2 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 0E 00 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4F [09:02:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:02:27]wFMCommunicate OK [09:02:27]SAM_PROTO_GetShiftState done [09:02:27]FM_GetShiftState done [09:02:27]req_shift_opened done [09:02:27]requested_item shift.open_date is exist - process it [09:02:27]req_shift_open_date [09:02:27]req_shift_open_date done [09:02:27]produce_requested_data done [09:02:27]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178623,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:02:27]process_action_free close_receipt [09:02:27]json_value_free [09:02:27]json_value_free done [09:02:27]process_json_proto returns [09:02:27]Send response to host [09:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178623,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:02:27]free response buf [09:02:27]execute_script done [09:02:27]execute_script returns [09:02:27]free content buf [09:02:27]Sock 7.Close socket [09:02:27]Sock 7.Thread stoped [09:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1A 73 47 00 1B 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 31 37 37 38 10 04 04 00 BF B9 02 00 F4 03 04 00 C9 FB C7 66 B6 04 01 00 00 87 6E 0B B1 75 7B 6F 66 [09:02:27]CommunicateWithHost err = 0 [09:02:27]CheckOFDResponse [09:02:27]1017 (14) - 77093643461234 [09:02:27]1041 (16) - 0000000000871778 [09:02:27]1040 (4) - 178623 [09:02:27]1012 (4) - 23.08.2024 03:02 [09:02:27]1206 (1) - 0 [09:02:27]OFD Sender: Remove packet 178623 [09:02:27]ProducePacketName [09:02:27]name=ofd_packets/00178623 [09:02:27]NVStorageDeleteData [09:02:28]OFD Sender: No OFD packet to send [09:02:33]recv_with_timeout no data received [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]recv_with_timeout no data received [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:16]recv_with_timeout no data received [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:27]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:44]recv_with_timeout no data received [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:54]OFD Sender: No OFD packet to send [09:07:59]OFD Sender: No OFD packet to send [09:08:04]OFD Sender: No OFD packet to send [09:08:09]OFD Sender: No OFD packet to send [09:08:14]OFD Sender: No OFD packet to send [09:08:19]OFD Sender: No OFD packet to send [09:08:24]OFD Sender: No OFD packet to send [09:08:29]OFD Sender: No OFD packet to send [09:08:34]OFD Sender: No OFD packet to send [09:08:39]OFD Sender: No OFD packet to send [09:08:44]OFD Sender: No OFD packet to send [09:08:49]OFD Sender: No OFD packet to send [09:08:54]OFD Sender: No OFD packet to send [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]OFD Sender: No OFD packet to send [09:09:44]OFD Sender: No OFD packet to send [09:09:49]OFD Sender: No OFD packet to send [09:09:54]OFD Sender: No OFD packet to send [09:09:59]OFD Sender: No OFD packet to send [09:10:04]OFD Sender: No OFD packet to send [09:10:09]OFD Sender: No OFD packet to send [09:10:14]OFD Sender: No OFD packet to send [09:10:19]OFD Sender: No OFD packet to send [09:10:24]OFD Sender: No OFD packet to send [09:10:29]OFD Sender: No OFD packet to send [09:10:34]OFD Sender: No OFD packet to send [09:10:39]OFD Sender: No OFD packet to send [09:10:44]OFD Sender: No OFD packet to send [09:10:49]OFD Sender: No OFD packet to send [09:10:54]OFD Sender: No OFD packet to send [09:10:59]OFD Sender: No OFD packet to send [09:11:04]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:30]recv_with_timeout no data received [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:41]int [09:15:41]Write to MH i2c: 01 00 00 FC 00 FC [09:15:41]*** FLAG_PRN_PAP1 set [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 07 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 07 00 FC 00 00 01 00 00 00 FF 0F 12 [09:15:41]state=0 [09:15:41]No paper [09:15:41]int [09:15:41]Write to MH i2c: 01 00 00 FD 00 FD [09:15:41]*** FLAG_PRN_PAP2 set [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 07 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: 01 07 00 FD 00 00 03 00 00 00 FF 0F 15 [09:15:41]state=0 [09:15:41]No paper [09:15:41]Cover opened [09:15:45]OFD Sender: No OFD packet to send [09:15:46]Write to MH i2c: 01 00 00 FE 00 FE [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: 01 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: 01 07 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: 01 07 00 FE 00 00 03 00 00 00 FF 0F 16 [09:15:46]state=3 [09:15:46]No paper [09:15:46]Cover opened [09:15:50]OFD Sender: No OFD packet to send [09:15:51]Write to MH i2c: 01 00 00 FF 00 FF [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: 01 07 00 FF 00 00 03 00 00 00 FF 0F 17 [09:15:51]state=3 [09:15:51]No paper [09:15:51]Cover opened [09:15:55]OFD Sender: No OFD packet to send [09:15:56]Write to MH i2c: 01 00 00 00 01 01 [09:15:56]Write i2c OK [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: 01 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: 01 07 00 [09:15:56]MH_I2C_Read... [09:15:56]Read from MH i2c: 01 07 00 00 01 00 03 00 00 00 FF 0F 19 [09:15:56]state=3 [09:15:56]No paper [09:15:56]Cover opened [09:16:00]OFD Sender: No OFD packet to send [09:16:01]Write to MH i2c: 01 00 00 01 01 02 [09:16:01]Write i2c OK [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 07 00 [09:16:01]MH_I2C_Read... [09:16:01]Read from MH i2c: 01 07 00 01 01 00 03 00 00 00 FF 0F 1A [09:16:01]state=3 [09:16:01]No paper [09:16:01]Cover opened [09:16:05]OFD Sender: No OFD packet to send [09:16:06]Write to MH i2c: 01 00 00 02 01 03 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 02 01 00 03 00 00 00 FF 0F 1B [09:16:06]state=3 [09:16:06]No paper [09:16:06]Cover opened [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]/dev/ttyS4 opened [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 655387+1723749199=1724404586 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 6B 53 C8 66 4F 53 BE 66 B1 [09:16:27]Current date/time: 23.08.2024 09:16 [09:16:27]FM_Init [09:16:27]wFMConnect [09:16:27]MH_SAM_On [09:16:27]Write to MH i2c: E0 00 00 08 00 E7 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_init finished! [09:16:27]*** atr: [09:16:27]*** 0F 3B D5 18 FF 81 91 FE [09:16:27]*** 1F C3 80 73 C8 21 10 0A [09:16:27]*** 00 00 00 00 00 00 00 00 [09:16:27]*** 00 00 00 00 00 00 00 00 [09:16:27]*** 00 00 00 00 00 00 00 00 [09:16:27]*** 00 00 00 00 00 00 00 00 [09:16:27]*** 00 00 00 00 00 00 00 00 [09:16:27]*** 00 00 00 00 00 00 00 00 [09:16:27]Read from MH i2c: E0 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E0 10 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [09:16:27]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [09:16:27]wFMCommunicate request_size=10 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [09:16:27]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [09:16:27]RAPDU: 90 00 [09:16:27]wFMCommunicate OK [09:16:27]wFMCommunicate request_size=4 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 80 11 00 00 [09:16:27]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 17 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [09:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:16:27]wFMCommunicate OK [09:16:27]Detected FM SN is 0000000000871778 [09:16:27]Stored FM SN is 0000000000871778 [09:16:27]wFMCommunicate request_size=9 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 80 16 00 00 04 D9 BA 00 00 [09:16:27]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [09:16:27]RAPDU: 90 00 [09:16:27]wFMCommunicate OK [09:16:27]FM PIN OK [09:16:27]wFMCommunicate request_size=8 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 80 14 04 00 03 02 00 01 [09:16:27]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [09:16:27]RAPDU: 90 00 [09:16:27]wFMCommunicate OK [09:16:27]wFMCommunicate request_size=13 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [09:16:27]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [09:16:27]RAPDU: 90 00 [09:16:27]wFMCommunicate OK [09:16:27]wFMCommunicate request_size=4 [09:16:27]MH_SAM_APDU [09:16:27]CAPDU: 80 11 00 00 [09:16:27]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:27]Read from MH i2c: E2 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 17 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [09:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:16:27]wFMCommunicate OK [09:16:27]DocumentArchiveInit [09:16:27]Start Httpd... [09:16:27]Httpd thread 3067366756 created [09:16:27]Write to MH i2c: 01 00 00 0F 00 0F [09:16:27]Write i2c OK [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 [09:16:27]MH_I2C_Read... [09:16:27]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [09:16:27]MH Int Process started [09:16:27]Allocated Socket 8 [09:16:27]Bind OK [09:16:27]Listen OK [09:16:27]httpd running on port 8080 [09:16:27]Waiting for new connection... [09:16:28]OFD Sender: No OFD packet to send [09:16:32]accept exits with 9 [09:16:32]New connection [09:16:32]New thread 3067080036 created [09:16:32]Waiting for new connection... [09:16:32] Sock 9.Parse request [09:16:32]Sock 9.Check first char [09:16:32]Sock 9.First char is OK [09:16:32]request: POST /json_proto HTTP/1.0 [09:16:32]Method: POST [09:16:32]URL: /json_proto [09:16:32]Method is POST - this is cgi request [09:16:32]url: /json_proto [09:16:32]query_string will be loaded in cgi processing [09:16:32]execute_cgi json_proto POST (null) [09:16:32]execute_cgi path=json_proto method=POST [09:16:32]POST find Content-Length [09:16:32]Host: 172.17.44.131:8080 [09:16:32]Content-Length: 215 [09:16:32]Content-Type: application/json [09:16:32] [09:16:32]POST finish read [09:16:32]Found Content-Length = 215 [09:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:32]execute_script... [09:16:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:32]POST & json_proto [09:16:32]process_json_proto [09:16:32]json parsed OK: [09:16:32]protocol is kg_v1.0 [09:16:32]action value=get_value [09:16:32]process_action get_value [09:16:32]cmd_get_value [09:16:32]process_action get_value done [09:16:32]requested_data is exist [09:16:32]produce_requested_data [09:16:32]requested_item kkm.sn is exist - process it [09:16:32]requested_item kkm.ver is exist - process it [09:16:32]requested_item fm.sn is exist - process it [09:16:32]wFMCommunicate request_size=4 [09:16:32]MH_SAM_APDU [09:16:32]CAPDU: 80 11 00 00 [09:16:32]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:32]Read from MH i2c: E2 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: E2 17 00 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [09:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:16:32]wFMCommunicate OK [09:16:32]requested_item fd.num is exist - process it [09:16:32]SAM_PROTO_GetFieldsCounters [09:16:32]wFMCommunicate request_size=4 [09:16:32]MH_SAM_APDU [09:16:32]CAPDU: 80 13 00 00 [09:16:32]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: E2 [09:16:32]MH_I2C_Read... [09:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:32]Read from MH i2c: E2 62 00 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BF B9 02 00 0E 04 04 00 D6 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 FC [09:16:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 BF B9 02 00 0E 04 04 00 D6 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 [09:16:32]wFMCommunicate OK [09:16:32]SAM_PROTO_GetFieldsCounters done [09:16:32]requested_item shift.num is exist - process it [09:16:32]requested_item shift.opened is exist - process it [09:16:32]req_shift_opened [09:16:32]FM_GetShiftState [09:16:32]SAM_PROTO_GetShiftState [09:16:32]wFMCommunicate request_size=4 [09:16:32]MH_SAM_APDU [09:16:32]CAPDU: 80 13 01 00 [09:16:32]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:32]Read from MH i2c: E2 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: E2 0E 00 [09:16:32]MH_I2C_Read... [09:16:32]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [09:16:32]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:16:32]wFMCommunicate OK [09:16:32]SAM_PROTO_GetShiftState done [09:16:32]FM_GetShiftState done [09:16:32]req_shift_opened done [09:16:32]requested_item shift.open_date is exist - process it [09:16:32]req_shift_open_date [09:16:32]req_shift_open_date done [09:16:32]produce_requested_data done [09:16:32]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178623,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:16:32]process_action_free get_value [09:16:32]json_value_free [09:16:32]json_value_free done [09:16:32]process_json_proto returns [09:16:32]Send response to host [09:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178623,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:16:32]free response buf [09:16:32]execute_script done [09:16:32]execute_script returns [09:16:32]free content buf [09:16:32]Sock 9.Close socket [09:16:32]Sock 9.Thread stoped [09:16:32]accept exits with 10 [09:16:32]New connection [09:16:32]New thread 3066936676 created [09:16:32]Thread 3067080036 joined [09:16:32]Waiting for new connection... [09:16:32] Sock 10.Parse request [09:16:32]Sock 10.Check first char [09:16:32]Sock 10.First char is OK [09:16:32]request: POST /json_proto HTTP/1.0 [09:16:32]Method: POST [09:16:32]URL: /json_proto [09:16:32]Method is POST - this is cgi request [09:16:32]url: /json_proto [09:16:32]query_string will be loaded in cgi processing [09:16:32]execute_cgi json_proto POST (null) [09:16:32]execute_cgi path=json_proto method=POST [09:16:32]POST find Content-Length [09:16:32]Host: 172.17.44.131:8080 [09:16:32]Content-Length: 331 [09:16:32]Content-Type: application/json [09:16:32] [09:16:32]POST finish read [09:16:32]Found Content-Length = 331 [09:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:16:32]execute_script... [09:16:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:16:32]POST & json_proto [09:16:32]process_json_proto [09:16:32]json parsed OK: [09:16:32]protocol is kg_v1.0 [09:16:32]action value=get_value [09:16:32]process_action get_value [09:16:32]cmd_get_value [09:16:32]process_action get_value done [09:16:32]requested_data is exist [09:16:32]produce_requested_data [09:16:32]requested_item fm.sale.total is exist - process it [09:16:32]SAM_PROTO_GetFMData [09:16:32]wFMCommunicate request_size=4 [09:16:32]MH_SAM_APDU [09:16:32]CAPDU: 80 13 03 00 [09:16:32]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [09:16:32]Write i2c OK [09:16:32]MH_I2C_Read... [09:16:33]OFD Sender: No OFD packet to send [09:16:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:16:33]Read from MH i2c: E2 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 FD 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 13 B6 02 00 69 04 A4 00 6F 04 04 00 7D B4 02 00 B1 04 05 00 97 00 A5 2A 05 70 04 05 00 DB 65 5A 14 04 72 04 05 00 BC 9A 4A 16 01 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 8E 9E 7D 8C 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 39 F0 B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 4B [09:16:33]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 13 B6 02 00 69 04 A4 00 6F 04 04 00 7D B4 02 00 B1 04 05 00 97 00 A5 2A 05 70 04 05 00 DB 65 5A 14 04 72 04 05 00 BC 9A 4A 16 01 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 8E 9E 7D 8C 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 39 F0 B4 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 96 01 00 00 B1 04 04 00 58 A9 FB 6B 70 04 04 00 58 A9 FB 6B 72 04 00 00 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 AA 48 53 01 EF 03 90 00 [09:16:33]wFMCommunicate OK [09:16:33]wFMCommunicate request_size=4 [09:16:33]MH_SAM_APDU [09:16:33]CAPDU: 80 17 00 00 [09:16:33]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:33]Read from MH i2c: E2 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 FD 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [09:16:33]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 F8 45 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:16:33]wFMCommunicate OK [09:16:33]wFMCommunicate request_size=4 [09:16:33]MH_SAM_APDU [09:16:33]CAPDU: 80 17 00 00 [09:16:33]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:33]Read from MH i2c: E2 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 FD 00 [09:16:33]MH_I2C_Read... [09:16:33]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [09:16:33]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:16:33]wFMCommunicate OK [09:16:33]wFMCommunicate request_size=4 [09:16:33]MH_SAM_APDU [09:16:33]CAPDU: 80 17 00 00 [09:16:33]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [09:16:33]Write i2c OK [09:16:33]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 FD 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [09:16:34]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:16:34]wFMCommunicate OK [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 17 00 00 [09:16:34]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 E3 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 E3 00 17 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 76 [09:16:34]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:16:34]wFMCommunicate OK [09:16:34]SAM_PROTO_GetFMData done [09:16:34]requested_item fm.sale_refund.total is exist - process it [09:16:34]requested_item fm.buy.total is exist - process it [09:16:34]requested_item shift.sale.total is exist - process it [09:16:34]SAM_PROTO_GetShiftData [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 13 02 00 [09:16:34]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 FD 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 FD 00 18 00 00 AF 04 AA 04 AB 04 6E 04 04 00 53 00 00 00 69 04 9C 00 6F 04 04 00 53 00 00 00 B1 04 03 00 06 44 B0 70 04 03 00 F8 2D 70 72 04 03 00 0E 16 40 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 F2 B8 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 8F 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 AF [09:16:34]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 53 00 00 00 69 04 9C 00 6F 04 04 00 53 00 00 00 B1 04 03 00 06 44 B0 70 04 03 00 F8 2D 70 72 04 03 00 0E 16 40 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 F2 B8 12 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 64 8F 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 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [09:16:34]wFMCommunicate OK [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 17 00 00 [09:16:34]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:35]Read from MH i2c: E2 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 FD 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 FD 00 19 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [09:16:35]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:16:35]wFMCommunicate OK [09:16:35]wFMCommunicate request_size=4 [09:16:35]MH_SAM_APDU [09:16:35]CAPDU: 80 17 00 00 [09:16:35]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:35]Read from MH i2c: E2 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 FD 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 FD 00 1A 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 4E [09:16:35]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:16:35]wFMCommunicate OK [09:16:35]wFMCommunicate request_size=4 [09:16:35]MH_SAM_APDU [09:16:35]CAPDU: 80 17 00 00 [09:16:35]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:16:35]Read from MH i2c: E2 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 FD 00 [09:16:35]MH_I2C_Read... [09:16:35]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 19 [09:16:35]RAPDU: 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 90 00 [09:16:35]wFMCommunicate OK [09:16:35]wFMCommunicate request_size=4 [09:16:35]MH_SAM_APDU [09:16:35]CAPDU: 80 17 00 00 [09:16:35]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [09:16:35]Write i2c OK [09:16:35]MH_I2C_Read... [09:16:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [09:16:36]Read from MH i2c: E2 [09:16:36]MH_I2C_Read... [09:18:48]ConnectInit Can't connect to host [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:06]int [09:19:06]Write to MH i2c: 01 00 00 1D 00 1D [09:19:06]*** FLAG_PRN_KEY set [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 1D 00 00 08 00 00 00 FF 0F 3A [09:19:06]state=0 [09:19:06]Key pressed [09:19:06]Feed [09:19:06]Write to MH i2c: D8 00 00 1E 00 F5 [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: D8 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: D8 01 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: D8 01 00 1E 00 00 F6 [09:19:06]int [09:19:06]Write to MH i2c: 01 00 00 1F 00 1F [09:19:06]Write i2c OK [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 [09:19:06]MH_I2C_Read... [09:19:06]Read from MH i2c: 01 07 00 1F 00 00 48 00 00 00 3D 00 AB [09:19:06]state=2 [09:19:06]Key pressed [09:19:07]int [09:19:07]Write to MH i2c: 01 00 00 20 00 20 [09:19:07]*** FLAG_PRN_KEY reset [09:19:07]Write i2c OK [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 [09:19:07]MH_I2C_Read... [09:19:07]Read from MH i2c: 01 07 00 20 00 00 00 00 00 00 F6 0F 2C [09:19:07]state=2 [09:19:07]Stop feed [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:19]accept exits with 9 [09:19:19]New connection [09:19:19]New thread 3067080036 created [09:19:19]Thread 3066936676 joined [09:19:19]Waiting for new connection... [09:19:19] Sock 9.Parse request [09:19:19]Sock 9.Check first char [09:19:19]Sock 9.First char is OK [09:19:19]request: POST /json_proto HTTP/1.0 [09:19:19]Method: POST [09:19:19]URL: /json_proto [09:19:19]Method is POST - this is cgi request [09:19:19]url: /json_proto [09:19:19]query_string will be loaded in cgi processing [09:19:19]execute_cgi json_proto POST (null) [09:19:19]execute_cgi path=json_proto method=POST [09:19:19]POST find Content-Length [09:19:19]Host: 172.17.44.131:8080 [09:19:19]Content-Length: 620 [09:19:19]Content-Type: application/json [09:19:19] [09:19:19]POST finish read [09:19:19]Found Content-Length = 620 [09:19:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)50976", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:19]execute_script... [09:19:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)50976", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:19]POST & json_proto [09:19:19]process_json_proto [09:19:19]json parsed OK: [09:19:19]protocol is kg_v1.0 [09:19:19]action value=close_receipt [09:19:19]process_action close_receipt [09:19:19]cmd_close_receipt [09:19:19]MH_GetDate [09:19:19]Write to MH i2c: F0 00 00 21 00 10 [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: F0 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: F0 09 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: F0 09 00 21 00 00 17 54 C8 66 4F 53 BE 66 78 [09:19:19]GetLastDocTimeStamp 1724403744 [09:19:19]current date 1724404759 [09:19:19]FM_GetShiftState [09:19:19]SAM_PROTO_GetShiftState [09:19:19]wFMCommunicate request_size=4 [09:19:19]MH_SAM_APDU [09:19:19]CAPDU: 80 13 01 00 [09:19:19]Write to MH i2c: E2 08 00 22 00 80 13 01 00 00 00 00 00 9F [09:19:19]Write i2c OK [09:19:19]MH_I2C_Read... [09:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:19]Read from MH i2c: E2 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0E 00 [09:19:19]MH_I2C_Read... [09:19:19]Read from MH i2c: E2 0E 00 22 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 76 [09:19:19]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:19:19]wFMCommunicate OK [09:19:19]SAM_PROTO_GetShiftState done [09:19:19]FM_GetShiftState done [09:19:19]opened in 1724371660 [09:19:19]opened+sec_in_day 1724458060 [09:19:19]quantity*price = 14000 [09:19:19]sum+1 = 14001 [09:19:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 84 23.08.2024 09:19 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178624 ФПД: 205809346750182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T091919&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178624&fm=205809346750182&tin=02508201610067®Number=0000000000092561&sum=14000 0 [09:19:20]StoreToDocumentArchive [09:19:20]shift 470 fd 178624 [09:19:20]save to /storage/0470/doc_00178624 [09:19:20]save last doc name /storage/0470/doc_00178624 to /storage/kkm_last_doc_name [09:19:20]save OK [09:19:20]Clear old archive folders... [09:19:20]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:19:20]tlvbuf is 01749750 [09:19:20]SAM_PROTO_ClearQueue [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 09 00 00 [09:19:20]Write to MH i2c: E2 08 00 2F 00 80 09 00 00 00 00 00 00 A1 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 2F 00 00 90 00 A3 [09:19:20]RAPDU: 90 00 [09:19:20]wFMCommunicate OK [09:19:20]SAM_PROTO_ClearQueue done [09:19:20]KKMCreateOFDPacket [09:19:20]OFDProtocolAddRootSTLVToBuf [09:19:20]FM_MakeSignedData [09:19:20]FM_MakeSignedData [09:19:20]SAM_PROTO_SignData [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 0D 01 02 [09:19:20]Write to MH i2c: E2 08 00 30 00 80 0D 01 02 00 00 00 00 A9 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 30 00 00 90 00 A4 [09:19:20]RAPDU: 90 00 [09:19:20]wFMCommunicate OK [09:19:20]wFMCommunicate request_size=255 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 17 54 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 [09:19:20]Write to MH i2c: E2 02 01 31 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 17 54 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 00 00 60 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 31 00 00 90 00 A5 [09:19:20]RAPDU: 90 00 [09:19:20]wFMCommunicate OK [09:19:20]wFMCommunicate request_size=32 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 37 37 38 10 04 04 00 C0 B9 02 00 35 04 06 00 BB 2E B9 01 26 E6 [09:19:20]Write to MH i2c: E2 23 00 32 00 80 0D 02 02 1B 00 30 30 30 38 37 31 37 37 38 10 04 04 00 C0 B9 02 00 35 04 06 00 BB 2E B9 01 26 E6 00 00 39 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 03 00 32 00 00 90 00 A6 [09:19:20]RAPDU: 90 00 [09:19:20]wFMCommunicate OK [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 0D 03 02 [09:19:20]Write to MH i2c: E2 08 00 33 00 80 0D 03 02 00 00 00 00 AE [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 0B 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 0B 00 33 00 00 D2 37 DB 4C BC DD 93 05 90 00 10 [09:19:20]RAPDU: D2 37 DB 4C BC DD 93 05 90 00 [09:19:20]wFMCommunicate OK [09:19:20]SAM_PROTO_SignData done [09:19:20]FM_MakeSignedData done [09:19:20]CreateOFDProtocolMessage [09:19:20]wFMCommunicate request_size=4 [09:19:20]MH_SAM_APDU [09:19:20]CAPDU: 80 11 00 00 [09:19:20]Write to MH i2c: E2 08 00 34 00 80 11 00 00 00 00 00 00 AE [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:20]Read from MH i2c: E2 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 17 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: E2 17 00 34 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 07 [09:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:19:20]wFMCommunicate OK [09:19:20]CreateOFDProtocolMessage done [09:19:20]OFDSenderStorePacket 178624 [09:19:20]StoreOFDPacket docnum=178624 [09:19:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 25 01 00 00 D1 FE 1D 01 DD 32 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 17 54 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C0 B9 02 00 35 04 06 00 BB 2E B9 01 26 E6 D2 37 DB 4C BC DD 93 05 [09:19:20]CheckFolder [09:19:20]dirname=/storage/ofd_packets [09:19:20]CheckFolder done [09:19:20]ProducePacketName [09:19:20]name=ofd_packets/00178624 [09:19:20]NVStorageSaveData ofd_packets/00178624 [09:19:20]File name is /storage/ofd_packets/00178624 [09:19:20]Write 323 bytes [09:19:20]NVStorageSaveData done [09:19:20]OFDSenderStorePacket done [09:19:20]KKMCreateOFDPacket done [09:19:20]NVStorageSaveData kkm_last_timestamp [09:19:20]File name is /storage/kkm_last_timestamp [09:19:20]Write 4 bytes [09:19:20]NVStorageSaveData done [09:19:20]ExternCall_PrintAddStr [09:19:20]wPrintStart [09:19:20]Write to MH i2c: 01 00 00 35 00 35 [09:19:20]Write i2c OK [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 [09:19:20]MH_I2C_Read... [09:19:20]Read from MH i2c: 01 07 00 35 00 00 00 00 00 00 FF 0F 4A [09:19:20]RasterBufferAndPrint [09:19:20]line Счет N : (3)50976 [09:19:20]line ИНН: 02508201610067 [09:19:20]line Контрольно-Кассовый Чек [09:19:20]line ПРОДАЖА [09:19:20]line Товар: 48743570 [09:19:20]line Сигареты Winston XStyle Blue [09:19:20]line 1.000 * 140.00 [09:19:20]line = 140.00 [09:19:20]line НДС 12% НСП 1% [09:19:20]line > о реализуемом товаре [09:19:20]line ИТОГО: 140.00 [09:19:20]line НСП 1% : 1.24 [09:19:20]line НДС 12% : 14.87 [09:19:20]line Наличными: 140.00 [09:19:20]line Безнал.: 0.00 [09:19:20]line Место: АЗС № 130 "Партнер Нефть" [09:19:20]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:19:20]line СНО: Общий режим [09:19:20]line Чек 84 23.08.2024 09:19 [09:19:20]line Смена: 470 ФФД: 1.0 [09:19:20]line ЗНМ: 0300000071 [09:19:20]line РНМ: 0000000000092561 [09:19:20]line Версия ККМ: 001 [09:19:20]line ФМ: 0000000000871778 [09:19:20]line ФД: 178624 [09:19:20]line ФПД: 205809346750182 [09:19:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T091919&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178624&fm=205809346750182&tin=02508201610067®Number=0000000000092561&sum=14000 [09:19:20]line 0 [09:19:20]written 0, free lines is 4095 [09:19:20]OFD Sender: Processing packet 178624 [packets to send 498, broken 497] [09:19:20]ProducePacketName [09:19:20]name=ofd_packets/00178624 [09:19:20]OFD Sender: To server: pG, [09:19:20]CommunicateWithHost lk.salyk.kg:30040 [09:19:20]ConnectInit lk.salyk.kg [09:19:21]Write to MH i2c: 01 00 00 5D 00 5D [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: 01 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: 01 07 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: 01 07 00 5D 00 00 00 00 00 00 F1 0C 61 [09:19:21]RasterBufferAndPrint [09:19:21]line [09:19:21]line [09:19:21]line [09:19:21]line [09:19:21]line [09:19:21]written 0, free lines is 3319 [09:19:21]MH_Cut [09:19:21]Write to MH i2c: D1 01 00 64 00 01 36 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: D1 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: D1 01 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: D1 01 00 64 00 00 35 [09:19:21]Write to MH i2c: 01 00 00 65 00 65 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]Connected sock=10 [09:19:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 25 01 00 00 D1 FE 1D 01 DD 32 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 17 54 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C0 B9 02 00 35 04 06 00 BB 2E B9 01 26 E6 D2 37 DB 4C BC DD 93 05 [09:19:22]*** Cut start [09:19:22]*** Partial cut [09:19:22]*** CUTSNS_PIN = 1 [09:19:22]*** CUTSNS_PIN = 0 [09:19:22]*** Brake cut motor [09:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1E D1 47 00 78 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C0 B9 02 00 F4 03 04 00 BF FF C7 66 B6 04 01 00 00 EA 79 29 93 5D 0D 4F 9F [09:19:22]CommunicateWithHost err = 0 [09:19:22]CheckOFDResponse [09:19:22]1017 (14) - 77093643461234 [09:19:22]1041 (16) - 0000000000871778 [09:19:22]1040 (4) - 178624 [09:19:22]1012 (4) - 23.08.2024 03:19 [09:19:22]1206 (1) - 0 [09:19:22]OFD Sender: Remove packet 178624 [09:19:22]ProducePacketName [09:19:22]name=ofd_packets/00178624 [09:19:22]NVStorageDeleteData [09:19:22]Read from MH i2c: 01 [09:19:22]MH_I2C_Read... [09:19:22]*** Stop cut motor [09:19:22]*** Cut end [09:19:22]Read from MH i2c: 01 07 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [09:19:22]process_action close_receipt done [09:19:22]requested_data is exist [09:19:22]produce_requested_data [09:19:22]requested_item fm.sn is exist - process it [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 11 00 00 [09:19:22]Write to MH i2c: E2 08 00 66 00 80 11 00 00 00 00 00 00 E0 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 17 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 17 00 66 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 39 [09:19:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:19:22]wFMCommunicate OK [09:19:22]requested_item fd.num is exist - process it [09:19:22]SAM_PROTO_GetFieldsCounters [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 13 00 00 [09:19:22]Write to MH i2c: E2 08 00 67 00 80 13 00 00 00 00 00 00 E3 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 62 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 62 00 67 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C0 B9 02 00 0E 04 04 00 D6 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 56 [09:19: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C0 B9 02 00 0E 04 04 00 D6 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 [09:19:22]wFMCommunicate OK [09:19:22]SAM_PROTO_GetFieldsCounters done [09:19:22]requested_item shift.num is exist - process it [09:19:22]requested_item shift.opened is exist - process it [09:19:22]req_shift_opened [09:19:22]FM_GetShiftState [09:19:22]SAM_PROTO_GetShiftState [09:19:22]wFMCommunicate request_size=4 [09:19:22]MH_SAM_APDU [09:19:22]CAPDU: 80 13 01 00 [09:19:22]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:19:22]Write i2c OK [09:19:22]MH_I2C_Read... [09:19:22]OFD Sender: No OFD packet to send [09:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:22]Read from MH i2c: E2 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 0E 00 [09:19:22]MH_I2C_Read... [09:19:22]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BC [09:19:22]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:19:22]wFMCommunicate OK [09:19:22]SAM_PROTO_GetShiftState done [09:19:22]FM_GetShiftState done [09:19:22]req_shift_opened done [09:19:22]requested_item shift.open_date is exist - process it [09:19:22]req_shift_open_date [09:19:22]req_shift_open_date done [09:19:22]produce_requested_data done [09:19:22]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178624,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:19:22]process_action_free close_receipt [09:19:22]json_value_free [09:19:22]json_value_free done [09:19:22]process_json_proto returns [09:19:22]Send response to host [09:19:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178624,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:19:22]free response buf [09:19:22]execute_script done [09:19:22]execute_script returns [09:19:22]free content buf [09:19:22]Sock 9.Close socket [09:19:22]Sock 9.Thread stoped [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:18]recv_with_timeout no data received [09:20:22]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:14]recv_with_timeout no data received [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:39]recv_with_timeout no data received [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]recv_with_timeout no data received [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:11]recv_with_timeout no data received [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:23]accept exits with 7 [09:26:23]New connection [09:26:23]New thread 3066936676 created [09:26:23]Thread 3067080036 joined [09:26:23]Waiting for new connection... [09:26:23] Sock 7.Parse request [09:26:23]Sock 7.Check first char [09:26:23]Sock 7.First char is OK [09:26:23]request: POST /json_proto HTTP/1.0 [09:26:23]Method: POST [09:26:23]URL: /json_proto [09:26:23]Method is POST - this is cgi request [09:26:23]url: /json_proto [09:26:23]query_string will be loaded in cgi processing [09:26:23]execute_cgi json_proto POST (null) [09:26:23]execute_cgi path=json_proto method=POST [09:26:23]POST find Content-Length [09:26:23]Host: 172.17.44.131:8080 [09:26:23]Content-Length: 668 [09:26:23]Content-Type: application/json [09:26:23] [09:26:23]POST finish read [09:26:23]Found Content-Length = 668 [09:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51002", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:23]execute_script... [09:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)51002", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:23]POST & json_proto [09:26:23]process_json_proto [09:26:23]json parsed OK: [09:26:23]protocol is kg_v1.0 [09:26:23]action value=close_receipt [09:26:23]process_action close_receipt [09:26:23]cmd_close_receipt [09:26:23]MH_GetDate [09:26:23]Write to MH i2c: F0 00 00 69 00 58 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: F0 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: F0 09 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: F0 09 00 69 00 00 BF 55 C8 66 4F 53 BE 66 69 [09:26:23]GetLastDocTimeStamp 1724404759 [09:26:23]current date 1724405183 [09:26:23]FM_GetShiftState [09:26:23]SAM_PROTO_GetShiftState [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 13 01 00 [09:26:23]Write to MH i2c: E2 08 00 6A 00 80 13 01 00 00 00 00 00 E7 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:23]Read from MH i2c: E2 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0E 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: E2 0E 00 6A 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BE [09:26:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:26:23]wFMCommunicate OK [09:26:23]SAM_PROTO_GetShiftState done [09:26:23]FM_GetShiftState done [09:26:23]opened in 1724371660 [09:26:23]opened+sec_in_day 1724458060 [09:26:23]quantity*price = 6500 [09:26:23]sum+1 = 6501 [09:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 85 23.08.2024 09:26 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178625 ФПД: 92392880534303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T092623&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178625&fm=92392880534303&tin=02508201610067®Number=0000000000092561&sum=6500 0 [09:26:24]StoreToDocumentArchive [09:26:24]shift 470 fd 178625 [09:26:24]save to /storage/0470/doc_00178625 [09:26:24]save last doc name /storage/0470/doc_00178625 to /storage/kkm_last_doc_name [09:26:24]save OK [09:26:24]Clear old archive folders... [09:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:26:24]tlvbuf is 01749AE0 [09:26:24]SAM_PROTO_ClearQueue [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 09 00 00 [09:26:24]Write to MH i2c: E2 08 00 77 00 80 09 00 00 00 00 00 00 E9 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:26:24]RAPDU: 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_ClearQueue done [09:26:24]KKMCreateOFDPacket [09:26:24]OFDProtocolAddRootSTLVToBuf [09:26:24]FM_MakeSignedData [09:26:24]FM_MakeSignedData [09:26:24]SAM_PROTO_SignData [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 0D 01 02 [09:26:24]Write to MH i2c: E2 08 00 78 00 80 0D 01 02 00 00 00 00 F1 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:26:24]RAPDU: 90 00 [09:26:24]wFMCommunicate OK [09:26:24]wFMCommunicate request_size=255 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 55 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [09:26:24]Write to MH i2c: E2 02 01 79 00 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 55 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 E9 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [09:26:24]RAPDU: 90 00 [09:26:24]wFMCommunicate OK [09:26:24]wFMCommunicate request_size=43 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C1 B9 02 00 35 04 06 00 54 07 E4 D2 F3 1F [09:26:24]Write to MH i2c: E2 2E 00 7A 00 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C1 B9 02 00 35 04 06 00 54 07 E4 D2 F3 1F 00 00 81 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 03 00 7A 00 00 90 00 EE [09:26:24]RAPDU: 90 00 [09:26:24]wFMCommunicate OK [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 0D 03 02 [09:26:24]Write to MH i2c: E2 08 00 7B 00 80 0D 03 02 00 00 00 00 F6 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0B 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0B 00 7B 00 00 66 1D 95 38 71 CB 34 AC 90 00 63 [09:26:24]RAPDU: 66 1D 95 38 71 CB 34 AC 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_SignData done [09:26:24]FM_MakeSignedData done [09:26:24]CreateOFDProtocolMessage [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 11 00 00 [09:26:24]Write to MH i2c: E2 08 00 7C 00 80 11 00 00 00 00 00 00 F6 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4F [09:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:26:24]wFMCommunicate OK [09:26:24]CreateOFDProtocolMessage done [09:26:24]OFDSenderStorePacket 178625 [09:26:24]StoreOFDPacket docnum=178625 [09:26:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 30 01 00 00 C7 68 28 01 CE 90 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 55 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C1 B9 02 00 35 04 06 00 54 07 E4 D2 F3 1F 66 1D 95 38 71 CB 34 AC [09:26:24]CheckFolder [09:26:24]dirname=/storage/ofd_packets [09:26:24]CheckFolder done [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00178625 [09:26:24]NVStorageSaveData ofd_packets/00178625 [09:26:24]File name is /storage/ofd_packets/00178625 [09:26:24]Write 334 bytes [09:26:24]NVStorageSaveData done [09:26:24]OFDSenderStorePacket done [09:26:24]KKMCreateOFDPacket done [09:26:24]NVStorageSaveData kkm_last_timestamp [09:26:24]File name is /storage/kkm_last_timestamp [09:26:24]Write 4 bytes [09:26:24]NVStorageSaveData done [09:26:24]ExternCall_PrintAddStr [09:26:24]wPrintStart [09:26:24]Write to MH i2c: 01 00 00 7D 00 7D [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: 01 07 00 7D 00 00 00 00 00 00 FF 0F 92 [09:26:24]RasterBufferAndPrint [09:26:24]line Счет N : (3)51002 [09:26:24]line ИНН: 02508201610067 [09:26:24]line Контрольно-Кассовый Чек [09:26:24]line ПРОДАЖА [09:26:24]line Товар: 4700040114137 [09:26:24]line Султан чай 1л. зел лимон [09:26:24]line 1.000 * 65.00 [09:26:24]line = 65.00 [09:26:24]line НДС 12% НСП 1% [09:26:24]line > о реализуемом товаре [09:26:24]line ИТОГО: 65.00 [09:26:24]line НСП 1% : 0.57 [09:26:24]line НДС 12% : 6.90 [09:26:24]line Наличными: 65.00 [09:26:24]line Безнал.: 0.00 [09:26:24]line Место: АЗС № 130 "Партнер Нефть" [09:26:24]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:26:24]line СНО: Общий режим [09:26:24]line Чек 85 23.08.2024 09:26 [09:26:24]line Смена: 470 ФФД: 1.0 [09:26:24]line ЗНМ: 0300000071 [09:26:24]line РНМ: 0000000000092561 [09:26:24]line Версия ККМ: 001 [09:26:24]line ФМ: 0000000000871778 [09:26:24]line ФД: 178625 [09:26:24]line ФПД: 92392880534303 [09:26:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T092623&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178625&fm=92392880534303&tin=02508201610067®Number=0000000000092561&sum=6500 [09:26:24]line 0 [09:26:24]written 0, free lines is 4095 [09:26:24]OFD Sender: Processing packet 178625 [packets to send 498, broken 497] [09:26:24]ProducePacketName [09:26:24]name=ofd_packets/00178625 [09:26:24]OFD Sender: To server: pG, [09:26:24]CommunicateWithHost lk.salyk.kg:30040 [09:26:24]ConnectInit lk.salyk.kg [09:26:25]Write to MH i2c: 01 00 00 A5 00 A5 [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 07 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 ED 0C A5 [09:26:25]RasterBufferAndPrint [09:26:25]line [09:26:25]line [09:26:25]line [09:26:25]line [09:26:25]line [09:26:25]written 0, free lines is 3315 [09:26:25]MH_Cut [09:26:25]Write to MH i2c: D1 01 00 AC 00 01 7E [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: D1 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: D1 01 00 [09:26:25]MH_I2C_Read... [09:26:25]Read from MH i2c: D1 01 00 AC 00 00 7D [09:26:25]Write to MH i2c: 01 00 00 AD 00 AD [09:26:25]Write i2c OK [09:26:25]MH_I2C_Read... [09:26:26]*** Cut start [09:26:26]*** Partial cut [09:26:26]*** CUTSNS_PIN = 1 [09:26:26]*** CUTSNS_PIN = 0 [09:26:26]*** Brake cut motor [09:26:26]Read from MH i2c: 01 [09:26:26]MH_I2C_Read... [09:26:26]*** Stop cut motor [09:26:26]*** Cut end [09:26:26]Read from MH i2c: 01 07 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [09:26:26]process_action close_receipt done [09:26:26]requested_data is exist [09:26:26]produce_requested_data [09:26:26]requested_item fm.sn is exist - process it [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 11 00 00 [09:26:26]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 81 [09:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:26:26]wFMCommunicate OK [09:26:26]requested_item fd.num is exist - process it [09:26:26]SAM_PROTO_GetFieldsCounters [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 13 00 00 [09:26:26]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 62 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C1 B9 02 00 0E 04 04 00 D6 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 A2 [09:26: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C1 B9 02 00 0E 04 04 00 D6 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 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetFieldsCounters done [09:26:26]requested_item shift.num is exist - process it [09:26:26]requested_item shift.opened is exist - process it [09:26:26]req_shift_opened [09:26:26]FM_GetShiftState [09:26:26]SAM_PROTO_GetShiftState [09:26:26]wFMCommunicate request_size=4 [09:26:26]MH_SAM_APDU [09:26:26]CAPDU: 80 13 01 00 [09:26:26]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:26:26]Write i2c OK [09:26:26]MH_I2C_Read... [09:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:26]Read from MH i2c: E2 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 [09:26:26]MH_I2C_Read... [09:26:26]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 04 [09:26:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:26:26]wFMCommunicate OK [09:26:26]SAM_PROTO_GetShiftState done [09:26:26]FM_GetShiftState done [09:26:26]req_shift_opened done [09:26:26]requested_item shift.open_date is exist - process it [09:26:26]req_shift_open_date [09:26:26]req_shift_open_date done [09:26:26]produce_requested_data done [09:26:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178625,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:26:26]process_action_free close_receipt [09:26:26]json_value_free [09:26:26]json_value_free done [09:26:26]process_json_proto returns [09:26:26]Send response to host [09:26:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178625,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:26:26]free response buf [09:26:26]execute_script done [09:26:26]execute_script returns [09:26:26]free content buf [09:26:26]Sock 7.Close socket [09:26:26]Sock 7.Thread stoped [09:26:26]Connected sock=10 [09:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 30 01 00 00 C7 68 28 01 CE 90 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BF 55 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C1 B9 02 00 35 04 06 00 54 07 E4 D2 F3 1F 66 1D 95 38 71 CB 34 AC [09:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B2 C6 47 00 F6 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 31 37 37 38 10 04 04 00 C1 B9 02 00 F4 03 04 00 69 01 C8 66 B6 04 01 00 00 47 C3 15 81 B0 68 8F AE [09:26:27]CommunicateWithHost err = 0 [09:26:27]CheckOFDResponse [09:26:27]1017 (14) - 77093643461234 [09:26:27]1041 (16) - 0000000000871778 [09:26:27]1040 (4) - 178625 [09:26:27]1012 (4) - 23.08.2024 03:26 [09:26:27]1206 (1) - 0 [09:26:27]OFD Sender: Remove packet 178625 [09:26:27]ProducePacketName [09:26:27]name=ofd_packets/00178625 [09:26:27]NVStorageDeleteData [09:26:28]OFD Sender: No OFD packet to send [09:26:33]recv_with_timeout no data received [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]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:08]recv_with_timeout no data received [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:08]OFD Sender: No OFD packet to send [09:29:13]OFD Sender: No OFD packet to send [09:29:18]OFD Sender: No OFD packet to send [09:29:23]OFD Sender: No OFD packet to send [09:29:28]OFD Sender: No OFD packet to send [09:29:33]OFD Sender: No OFD packet to send [09:29:38]OFD Sender: No OFD packet to send [09:29:43]OFD Sender: No OFD packet to send [09:29:48]OFD Sender: No OFD packet to send [09:29:53]OFD Sender: No OFD packet to send [09:29:58]OFD Sender: No OFD packet to send [09:30:03]OFD Sender: No OFD packet to send [09:30:08]OFD Sender: No OFD packet to send [09:30:13]OFD Sender: No OFD packet to send [09:30:18]OFD Sender: No OFD packet to send [09:30:23]OFD Sender: No OFD packet to send [09:30:25]recv_with_timeout no data received [09:30:28]OFD Sender: No OFD packet to send [09:30:33]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:09]OFD Sender: No OFD packet to send [09:32:14]OFD Sender: No OFD packet to send [09:32:19]OFD Sender: No OFD packet to send [09:32:24]recv_with_timeout no data received [09:32:24]OFD Sender: No OFD packet to send [09:32:29]OFD Sender: No OFD packet to send [09:32:34]OFD Sender: No OFD packet to send [09:32:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:15]recv_with_timeout no data received [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:30]recv_with_timeout no data received [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:48]recv_with_timeout no data received [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:15]recv_with_timeout no data received [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:25]recv_with_timeout no data received [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:56]recv_with_timeout no data received [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:52]accept exits with 9 [09:37:52]New connection [09:37:52]New thread 3067080036 created [09:37:52]Thread 3066936676 joined [09:37:52]Waiting for new connection... [09:37:52] Sock 9.Parse request [09:37:52]Sock 9.Check first char [09:37:52]Sock 9.First char is OK [09:37:52]request: POST /json_proto HTTP/1.0 [09:37:52]Method: POST [09:37:52]URL: /json_proto [09:37:52]Method is POST - this is cgi request [09:37:52]url: /json_proto [09:37:52]query_string will be loaded in cgi processing [09:37:52]execute_cgi json_proto POST (null) [09:37:52]execute_cgi path=json_proto method=POST [09:37:52]POST find Content-Length [09:37:52]Host: 172.17.44.131:8080 [09:37:52]Content-Length: 682 [09:37:52]Content-Type: application/json [09:37:52] [09:37:52]POST finish read [09:37:52]Found Content-Length = 682 [09:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:52]execute_script... [09:37: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)294095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:52]POST & json_proto [09:37:52]process_json_proto [09:37:52]json parsed OK: [09:37:52]protocol is kg_v1.0 [09:37:52]action value=close_receipt [09:37:52]process_action close_receipt [09:37:52]cmd_close_receipt [09:37:52]MH_GetDate [09:37:52]Write to MH i2c: F0 00 00 B1 00 A0 [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: F0 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: F0 09 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: F0 09 00 B1 00 00 70 58 C8 66 4F 53 BE 66 65 [09:37:52]GetLastDocTimeStamp 1724405183 [09:37:52]current date 1724405872 [09:37:52]FM_GetShiftState [09:37:52]SAM_PROTO_GetShiftState [09:37:52]wFMCommunicate request_size=4 [09:37:52]MH_SAM_APDU [09:37:52]CAPDU: 80 13 01 00 [09:37:52]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:37:52]Write i2c OK [09:37:52]MH_I2C_Read... [09:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:52]Read from MH i2c: E2 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0E 00 [09:37:52]MH_I2C_Read... [09:37:52]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 06 [09:37:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:37:52]wFMCommunicate OK [09:37:52]SAM_PROTO_GetShiftState done [09:37:52]FM_GetShiftState done [09:37:52]opened in 1724371660 [09:37:52]opened+sec_in_day 1724458060 [09:37:52]quantity*price = 100021 [09:37:52]sum+1 = 100023 [09:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 86 23.08.2024 09:37 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178626 ФПД: 13802740932539 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093752&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178626&fm=13802740932539&tin=02508201610067®Number=0000000000092561&sum=100000 [09:37:53]StoreToDocumentArchive [09:37:53]shift 470 fd 178626 [09:37:53]save to /storage/0470/doc_00178626 [09:37:53]save last doc name /storage/0470/doc_00178626 to /storage/kkm_last_doc_name [09:37:53]save OK [09:37:53]Clear old archive folders... [09:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:53]tlvbuf is 01734920 [09:37:53]SAM_PROTO_ClearQueue [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 09 00 00 [09:37:53]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:37:53]RAPDU: 90 00 [09:37:53]wFMCommunicate OK [09:37:53]SAM_PROTO_ClearQueue done [09:37:53]KKMCreateOFDPacket [09:37:53]OFDProtocolAddRootSTLVToBuf [09:37:53]FM_MakeSignedData [09:37:53]FM_MakeSignedData [09:37:53]SAM_PROTO_SignData [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 0D 01 02 [09:37:53]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:37:53]RAPDU: 90 00 [09:37:53]wFMCommunicate OK [09:37:53]wFMCommunicate request_size=255 [09:37:53]MH_SAM_APDU [09:37: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 70 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C2 B9 02 00 35 04 06 00 0C [09:37:53]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 70 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C2 B9 02 00 35 04 06 00 0C 00 00 95 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:37:53]RAPDU: 90 00 [09:37:53]wFMCommunicate OK [09:37:53]wFMCommunicate request_size=10 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 0D 02 02 05 8D B3 78 5F BB [09:37:53]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 8D B3 78 5F BB 00 00 18 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:37:53]RAPDU: 90 00 [09:37:53]wFMCommunicate OK [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 0D 03 02 [09:37:53]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 0B 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 0B 00 C3 00 00 1A AF 3C E9 FF DD 51 1D 90 00 77 [09:37:53]RAPDU: 1A AF 3C E9 FF DD 51 1D 90 00 [09:37:53]wFMCommunicate OK [09:37:53]SAM_PROTO_SignData done [09:37:53]FM_MakeSignedData done [09:37:53]CreateOFDProtocolMessage [09:37:53]wFMCommunicate request_size=4 [09:37:53]MH_SAM_APDU [09:37:53]CAPDU: 80 11 00 00 [09:37:53]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:53]Read from MH i2c: E2 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 17 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 97 [09:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:37:53]wFMCommunicate OK [09:37:53]CreateOFDProtocolMessage done [09:37:53]OFDSenderStorePacket 178626 [09:37:53]StoreOFDPacket docnum=178626 [09:37:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 18 44 07 01 91 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 70 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C2 B9 02 00 35 04 06 00 0C 8D B3 78 5F BB 1A AF 3C E9 FF DD 51 1D [09:37:53]CheckFolder [09:37:53]dirname=/storage/ofd_packets [09:37:53]CheckFolder done [09:37:53]ProducePacketName [09:37:53]name=ofd_packets/00178626 [09:37:53]NVStorageSaveData ofd_packets/00178626 [09:37:53]File name is /storage/ofd_packets/00178626 [09:37:53]Write 301 bytes [09:37:53]NVStorageSaveData done [09:37:53]OFDSenderStorePacket done [09:37:53]KKMCreateOFDPacket done [09:37:53]NVStorageSaveData kkm_last_timestamp [09:37:53]File name is /storage/kkm_last_timestamp [09:37:53]Write 4 bytes [09:37:53]NVStorageSaveData done [09:37:53]ExternCall_PrintAddStr [09:37:53]wPrintStart [09:37:53]Write to MH i2c: 01 00 00 C5 00 C5 [09:37:53]Write i2c OK [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 07 00 [09:37:53]MH_I2C_Read... [09:37:53]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:37:53]RasterBufferAndPrint [09:37:53]line Счет N : (1)294095 [09:37:53]line ИНН: 02508201610067 [09:37:53]line Контрольно-Кассовый Чек [09:37:53]line ПРОДАЖА [09:37:53]line ТРК (МРК, ГНК) : 33 [09:37:53]line Товар: 2710124500 [09:37:53]line Аи-95-К-5 [09:37:53]line 13.480 * 74.20 [09:37:53]line = 1000.22 [09:37:53]line НДС 12% НСП 1% [09:37:53]line > о реализуемом товаре [09:37:53]line ОКРУГЛЕНИЕ: -0.22 [09:37:53]line ИТОГО: 1000.00 [09:37:53]line Внесено: 1000.00 [09:37:53]line СДАЧА: 0.00 [09:37:53]line НСП 1% : 8.85 [09:37:53]line НДС 12% : 106.22 [09:37:53]line Наличными: 1000.00 [09:37:53]line Безнал.: 0.00 [09:37:53]line Место: АЗС № 130 "Партнер Нефть" [09:37:53]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:37:53]line СНО: Общий режим [09:37:53]line Чек 86 23.08.2024 09:37 [09:37:53]line Смена: 470 ФФД: 1.0 [09:37:53]line ЗНМ: 0300000071 [09:37:53]line РНМ: 0000000000092561 [09:37:53]line Версия ККМ: 001 [09:37:53]line ФМ: 0000000000871778 [09:37:53]line ФД: 178626 [09:37:53]line ФПД: 13802740932539 [09:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093752&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178626&fm=13802740932539&tin=02508201610067®Number=0000000000092561&sum=100000 [09:37:54]OFD Sender: Processing packet 178626 [packets to send 498, broken 497] [09:37:54]ProducePacketName [09:37:54]name=ofd_packets/00178626 [09:37:54]OFD Sender: To server: pG, [09:37:54]CommunicateWithHost lk.salyk.kg:30040 [09:37:54]ConnectInit lk.salyk.kg [09:37:54]written 0, free lines is 4095 [09:37:54]Write to MH i2c: 01 00 00 F0 00 F0 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: 01 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: 01 07 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 CC 0C CF [09:37:54]RasterBufferAndPrint [09:37:54]line [09:37:54]line [09:37:54]line [09:37:54]line [09:37:54]line [09:37:54]written 0, free lines is 3280 [09:37:54]MH_Cut [09:37:54]Write to MH i2c: D1 01 00 F7 00 01 C9 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: D1 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: D1 01 00 [09:37:54]MH_I2C_Read... [09:37:54]Read from MH i2c: D1 01 00 F7 00 00 C8 [09:37:54]Write to MH i2c: 01 00 00 F8 00 F8 [09:37:54]Write i2c OK [09:37:54]MH_I2C_Read... [09:37:55]*** Cut start [09:37:55]*** Partial cut [09:37:55]*** CUTSNS_PIN = 1 [09:37:55]*** CUTSNS_PIN = 0 [09:37:55]*** Brake cut motor [09:37:55]Read from MH i2c: 01 [09:37:55]MH_I2C_Read... [09:37:55]*** Stop cut motor [09:37:55]*** Cut end [09:37:55]Read from MH i2c: 01 07 00 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [09:37:55]process_action close_receipt done [09:37:55]requested_data is exist [09:37:55]produce_requested_data [09:37:55]requested_item fm.sn is exist - process it [09:37:55]wFMCommunicate request_size=4 [09:37:55]MH_SAM_APDU [09:37:55]CAPDU: 80 11 00 00 [09:37:55]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [09:37:55]Write i2c OK [09:37:55]MH_I2C_Read... [09:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:55]Read from MH i2c: E2 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: E2 17 00 [09:37:55]MH_I2C_Read... [09:37:55]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CC [09:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:37:55]wFMCommunicate OK [09:37:55]requested_item fd.num is exist - process it [09:37:55]SAM_PROTO_GetFieldsCounters [09:37:55]wFMCommunicate request_size=4 [09:37:55]MH_SAM_APDU [09:37:55]CAPDU: 80 13 00 00 [09:37:55]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [09:37:55]Write i2c OK [09:37:55]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 62 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C2 B9 02 00 0E 04 04 00 D6 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 F1 [09:37: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C2 B9 02 00 0E 04 04 00 D6 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 [09:37:56]wFMCommunicate OK [09:37:56]SAM_PROTO_GetFieldsCounters done [09:37:56]requested_item shift.num is exist - process it [09:37:56]requested_item shift.opened is exist - process it [09:37:56]req_shift_opened [09:37:56]FM_GetShiftState [09:37:56]SAM_PROTO_GetShiftState [09:37:56]wFMCommunicate request_size=4 [09:37:56]MH_SAM_APDU [09:37:56]CAPDU: 80 13 01 00 [09:37:56]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [09:37:56]Write i2c OK [09:37:56]MH_I2C_Read... [09:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:56]Read from MH i2c: E2 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 0E 00 [09:37:56]MH_I2C_Read... [09:37:56]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4F [09:37:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:37:56]wFMCommunicate OK [09:37:56]SAM_PROTO_GetShiftState done [09:37:56]FM_GetShiftState done [09:37:56]req_shift_opened done [09:37:56]requested_item shift.open_date is exist - process it [09:37:56]req_shift_open_date [09:37:56]req_shift_open_date done [09:37:56]produce_requested_data done [09:37:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178626,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:37:56]process_action_free close_receipt [09:37:56]json_value_free [09:37:56]json_value_free done [09:37:56]process_json_proto returns [09:37:56]Send response to host [09:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178626,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:37:56]free response buf [09:37:56]execute_script done [09:37:56]execute_script returns [09:37:56]free content buf [09:37:56]Sock 9.Close socket [09:37:56]Sock 9.Thread stoped [09:37:58]Connected sock=11 [09:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 18 44 07 01 91 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 70 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C2 B9 02 00 35 04 06 00 0C 8D B3 78 5F BB 1A AF 3C E9 FF DD 51 1D [09:37:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 75 E5 47 00 1A 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C2 B9 02 00 F4 03 04 00 1C 04 C8 66 B6 04 01 00 00 1B 9C 42 04 EE 27 E5 E2 [09:37:58]CommunicateWithHost err = 0 [09:37:58]CheckOFDResponse [09:37:58]1017 (14) - 77093643461234 [09:37:58]1041 (16) - 0000000000871778 [09:37:58]1040 (4) - 178626 [09:37:58]1012 (4) - 23.08.2024 03:38 [09:37:58]1206 (1) - 0 [09:37:58]OFD Sender: Remove packet 178626 [09:37:58]ProducePacketName [09:37:58]name=ofd_packets/00178626 [09:37:58]NVStorageDeleteData [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:30]recv_with_timeout no data received [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:58]accept exits with 7 [09:39:58]New connection [09:39:58]New thread 3066936676 created [09:39:58]Thread 3067080036 joined [09:39:58]Waiting for new connection... [09:39:58] Sock 7.Parse request [09:39:58]Sock 7.Check first char [09:39:58]Sock 7.First char is OK [09:39:58]request: POST /json_proto HTTP/1.0 [09:39:58]Method: POST [09:39:58]URL: /json_proto [09:39:58]Method is POST - this is cgi request [09:39:58]url: /json_proto [09:39:58]query_string will be loaded in cgi processing [09:39:58]execute_cgi json_proto POST (null) [09:39:58]execute_cgi path=json_proto method=POST [09:39:58]POST find Content-Length [09:39:58]Host: 172.17.44.131:8080 [09:39:58]Content-Length: 677 [09:39:58]Content-Type: application/json [09:39:58] [09:39:58]POST finish read [09:39:58]Found Content-Length = 677 [09:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294097", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:39:58]execute_script... [09:39: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)294097", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:39:58]POST & json_proto [09:39:58]process_json_proto [09:39:58]json parsed OK: [09:39:58]protocol is kg_v1.0 [09:39:58]action value=close_receipt [09:39:58]process_action close_receipt [09:39:58]cmd_close_receipt [09:39:58]MH_GetDate [09:39:58]Write to MH i2c: F0 00 00 FC 00 EB [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: F0 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: F0 09 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: F0 09 00 FC 00 00 EF 58 C8 66 4F 53 BE 66 2F [09:39:58]GetLastDocTimeStamp 1724405872 [09:39:58]current date 1724405999 [09:39:58]FM_GetShiftState [09:39:58]SAM_PROTO_GetShiftState [09:39:58]wFMCommunicate request_size=4 [09:39:58]MH_SAM_APDU [09:39:58]CAPDU: 80 13 01 00 [09:39:58]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [09:39:58]Write i2c OK [09:39:58]MH_I2C_Read... [09:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:58]Read from MH i2c: E2 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0E 00 [09:39:58]MH_I2C_Read... [09:39:58]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 51 [09:39:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:39:58]wFMCommunicate OK [09:39:58]SAM_PROTO_GetShiftState done [09:39:58]FM_GetShiftState done [09:39:58]opened in 1724371660 [09:39:58]opened+sec_in_day 1724458060 [09:39:58]quantity*price = 40002 [09:39:58]sum+1 = 40003 [09:39:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 87 23.08.2024 09:39 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178627 ФПД: 133712686159590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093959&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178627&fm=133712686159590&tin=02508201610067®Number=0000000000092561&sum=40000 [09:39:59]StoreToDocumentArchive [09:39:59]shift 470 fd 178627 [09:39:59]save to /storage/0470/doc_00178627 [09:39:59]save last doc name /storage/0470/doc_00178627 to /storage/kkm_last_doc_name [09:39:59]save OK [09:39:59]Clear old archive folders... [09:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:59]tlvbuf is 017344F0 [09:39:59]SAM_PROTO_ClearQueue [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 09 00 00 [09:39:59]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [09:39:59]RAPDU: 90 00 [09:39:59]wFMCommunicate OK [09:39:59]SAM_PROTO_ClearQueue done [09:39:59]KKMCreateOFDPacket [09:39:59]OFDProtocolAddRootSTLVToBuf [09:39:59]FM_MakeSignedData [09:39:59]FM_MakeSignedData [09:39:59]SAM_PROTO_SignData [09:39:59]wFMCommunicate request_size=4 [09:39:59]MH_SAM_APDU [09:39:59]CAPDU: 80 0D 01 02 [09:39:59]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:59]Read from MH i2c: E2 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 [09:39:59]MH_I2C_Read... [09:39:59]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [09:39:59]RAPDU: 90 00 [09:39:59]wFMCommunicate OK [09:39:59]wFMCommunicate request_size=255 [09:39:59]MH_SAM_APDU [09:39: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C3 B9 02 00 35 04 06 00 79 [09:39:59]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C3 B9 02 00 35 04 06 00 79 00 00 87 [09:39:59]Write i2c OK [09:39:59]MH_I2C_Read... [09:39:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 03 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [09:40:00]RAPDU: 90 00 [09:40:00]wFMCommunicate OK [09:40:00]wFMCommunicate request_size=10 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 0D 02 02 05 9C 69 29 16 E6 [09:40:00]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 9C 69 29 16 E6 00 00 BC [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 03 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [09:40:00]RAPDU: 90 00 [09:40:00]wFMCommunicate OK [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 0D 03 02 [09:40:00]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 0B 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 0B 00 0E 01 00 3E 82 D0 57 A3 0C AC 33 90 00 00 [09:40:00]RAPDU: 3E 82 D0 57 A3 0C AC 33 90 00 [09:40:00]wFMCommunicate OK [09:40:00]SAM_PROTO_SignData done [09:40:00]FM_MakeSignedData done [09:40:00]CreateOFDProtocolMessage [09:40:00]wFMCommunicate request_size=4 [09:40:00]MH_SAM_APDU [09:40:00]CAPDU: 80 11 00 00 [09:40:00]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:00]Read from MH i2c: E2 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 17 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [09:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:40:00]wFMCommunicate OK [09:40:00]CreateOFDProtocolMessage done [09:40:00]OFDSenderStorePacket 178627 [09:40:00]StoreOFDPacket docnum=178627 [09:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 DF 7C 07 01 82 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C3 B9 02 00 35 04 06 00 79 9C 69 29 16 E6 3E 82 D0 57 A3 0C AC 33 [09:40:00]CheckFolder [09:40:00]dirname=/storage/ofd_packets [09:40:00]CheckFolder done [09:40:00]ProducePacketName [09:40:00]name=ofd_packets/00178627 [09:40:00]NVStorageSaveData ofd_packets/00178627 [09:40:00]File name is /storage/ofd_packets/00178627 [09:40:00]Write 301 bytes [09:40:00]NVStorageSaveData done [09:40:00]OFDSenderStorePacket done [09:40:00]KKMCreateOFDPacket done [09:40:00]NVStorageSaveData kkm_last_timestamp [09:40:00]File name is /storage/kkm_last_timestamp [09:40:00]Write 4 bytes [09:40:00]NVStorageSaveData done [09:40:00]ExternCall_PrintAddStr [09:40:00]wPrintStart [09:40:00]Write to MH i2c: 01 00 00 10 01 11 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [09:40:00]RasterBufferAndPrint [09:40:00]line Счет N : (1)294097 [09:40:00]line ИНН: 02508201610067 [09:40:00]line Контрольно-Кассовый Чек [09:40:00]line ПРОДАЖА [09:40:00]line ТРК (МРК, ГНК) : 52 [09:40:00]line Товар: 2710124130 [09:40:00]line Аи-92-К-5 [09:40:00]line 5.900 * 67.80 [09:40:00]line = 400.02 [09:40:00]line НДС 12% НСП 1% [09:40:00]line > о реализуемом товаре [09:40:00]line ОКРУГЛЕНИЕ: -0.02 [09:40:00]line ИТОГО: 400.00 [09:40:00]line Внесено: 400.00 [09:40:00]line СДАЧА: 0.00 [09:40:00]line НСП 1% : 3.54 [09:40:00]line НДС 12% : 42.48 [09:40:00]line Наличными: 400.00 [09:40:00]line Безнал.: 0.00 [09:40:00]line Место: АЗС № 130 "Партнер Нефть" [09:40:00]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:40:00]line СНО: Общий режим [09:40:00]line Чек 87 23.08.2024 09:39 [09:40:00]line Смена: 470 ФФД: 1.0 [09:40:00]line ЗНМ: 0300000071 [09:40:00]line РНМ: 0000000000092561 [09:40:00]line Версия ККМ: 001 [09:40:00]line ФМ: 0000000000871778 [09:40:00]line ФД: 178627 [09:40:00]line ФПД: 133712686159590 [09:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T093959&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178627&fm=133712686159590&tin=02508201610067®Number=0000000000092561&sum=40000 [09:40:00]written 0, free lines is 4095 [09:40:00]OFD Sender: Processing packet 178627 [packets to send 498, broken 497] [09:40:00]ProducePacketName [09:40:00]name=ofd_packets/00178627 [09:40:00]OFD Sender: To server: pG, [09:40:00]CommunicateWithHost lk.salyk.kg:30040 [09:40:00]ConnectInit lk.salyk.kg [09:40:00]Write to MH i2c: 01 00 00 3B 01 3C [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 C7 0C 16 [09:40:00]RasterBufferAndPrint [09:40:00]line [09:40:00]line [09:40:00]line [09:40:00]line [09:40:00]line [09:40:00]written 0, free lines is 3274 [09:40:00]MH_Cut [09:40:00]Write to MH i2c: D1 01 00 42 01 01 15 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: D1 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: D1 01 00 [09:40:00]MH_I2C_Read... [09:40:00]Read from MH i2c: D1 01 00 42 01 00 14 [09:40:00]Write to MH i2c: 01 00 00 43 01 44 [09:40:00]Write i2c OK [09:40:00]MH_I2C_Read... [09:40:01]*** Cut start [09:40:01]*** Partial cut [09:40:01]*** CUTSNS_PIN = 1 [09:40:01]*** CUTSNS_PIN = 0 [09:40:01]*** Brake cut motor [09:40:01]Read from MH i2c: 01 [09:40:01]MH_I2C_Read... [09:40:01]*** Stop cut motor [09:40:01]*** Cut end [09:40:01]Read from MH i2c: 01 07 00 [09:40:01]MH_I2C_Read... [09:40:01]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [09:40:01]process_action close_receipt done [09:40:01]requested_data is exist [09:40:01]produce_requested_data [09:40:01]requested_item fm.sn is exist - process it [09:40:01]wFMCommunicate request_size=4 [09:40:01]MH_SAM_APDU [09:40:01]CAPDU: 80 11 00 00 [09:40:01]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [09:40:01]Write i2c OK [09:40:01]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 17 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 18 [09:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:40:02]wFMCommunicate OK [09:40:02]requested_item fd.num is exist - process it [09:40:02]SAM_PROTO_GetFieldsCounters [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 13 00 00 [09:40:02]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 62 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C3 B9 02 00 0E 04 04 00 D6 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 41 [09:40: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C3 B9 02 00 0E 04 04 00 D6 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 [09:40:02]wFMCommunicate OK [09:40:02]SAM_PROTO_GetFieldsCounters done [09:40:02]requested_item shift.num is exist - process it [09:40:02]requested_item shift.opened is exist - process it [09:40:02]req_shift_opened [09:40:02]FM_GetShiftState [09:40:02]SAM_PROTO_GetShiftState [09:40:02]wFMCommunicate request_size=4 [09:40:02]MH_SAM_APDU [09:40:02]CAPDU: 80 13 01 00 [09:40:02]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [09:40:02]Write i2c OK [09:40:02]MH_I2C_Read... [09:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:02]Read from MH i2c: E2 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 0E 00 [09:40:02]MH_I2C_Read... [09:40:02]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9B [09:40:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:40:02]wFMCommunicate OK [09:40:02]SAM_PROTO_GetShiftState done [09:40:02]FM_GetShiftState done [09:40:02]req_shift_opened done [09:40:02]requested_item shift.open_date is exist - process it [09:40:02]req_shift_open_date [09:40:02]req_shift_open_date done [09:40:02]produce_requested_data done [09:40:02]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178627,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:40:02]process_action_free close_receipt [09:40:02]json_value_free [09:40:02]json_value_free done [09:40:02]process_json_proto returns [09:40:02]Send response to host [09:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178627,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:40:02]free response buf [09:40:02]execute_script done [09:40:02]execute_script returns [09:40:02]free content buf [09:40:02]Sock 7.Close socket [09:40:02]Sock 7.Thread stoped [09:40:43]accept exits with 9 [09:40:43]New connection [09:40:43]New thread 3067080036 created [09:40:43]Thread 3066936676 joined [09:40:43]Waiting for new connection... [09:40:43] Sock 9.Parse request [09:40:43]Sock 9.Check first char [09:40:43]Sock 9.First char is OK [09:40:43]request: POST /json_proto HTTP/1.0 [09:40:43]Method: POST [09:40:43]URL: /json_proto [09:40:43]Method is POST - this is cgi request [09:40:43]url: /json_proto [09:40:43]query_string will be loaded in cgi processing [09:40:43]execute_cgi json_proto POST (null) [09:40:43]execute_cgi path=json_proto method=POST [09:40:43]POST find Content-Length [09:40:43]Host: 172.17.44.131:8080 [09:40:43]Content-Length: 677 [09:40:43]Content-Type: application/json [09:40:43] [09:40:43]POST finish read [09:40:43]Found Content-Length = 677 [09:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294098", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:43]execute_script... [09:40:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294098", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:43]POST & json_proto [09:40:43]process_json_proto [09:40:43]json parsed OK: [09:40:43]protocol is kg_v1.0 [09:40:43]action value=close_receipt [09:40:43]process_action close_receipt [09:40:43]cmd_close_receipt [09:40:43]MH_GetDate [09:40:43]Write to MH i2c: F0 00 00 47 01 37 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: F0 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: F0 09 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: F0 09 00 47 01 00 1C 59 C8 66 4F 53 BE 66 A9 [09:40:43]GetLastDocTimeStamp 1724405999 [09:40:43]current date 1724406044 [09:40:43]FM_GetShiftState [09:40:43]SAM_PROTO_GetShiftState [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 13 01 00 [09:40:43]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9D [09:40:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_GetShiftState done [09:40:43]FM_GetShiftState done [09:40:43]opened in 1724371660 [09:40:43]opened+sec_in_day 1724458060 [09:40:43]quantity*price = 50036 [09:40:43]sum+1 = 50037 [09:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 88 23.08.2024 09:40 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178628 ФПД: 253038403704224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094044&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178628&fm=253038403704224&tin=02508201610067®Number=0000000000092561&sum=50000 [09:40:44]StoreToDocumentArchive [09:40:44]shift 470 fd 178628 [09:40:44]save to /storage/0470/doc_00178628 [09:40:44]save last doc name /storage/0470/doc_00178628 to /storage/kkm_last_doc_name [09:40:44]save OK [09:40:44]Clear old archive folders... [09:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:44]tlvbuf is 01736590 [09:40:44]SAM_PROTO_ClearQueue [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 09 00 00 [09:40:44]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [09:40:44]RAPDU: 90 00 [09:40:44]wFMCommunicate OK [09:40:44]SAM_PROTO_ClearQueue done [09:40:44]KKMCreateOFDPacket [09:40:44]OFDProtocolAddRootSTLVToBuf [09:40:44]FM_MakeSignedData [09:40:44]FM_MakeSignedData [09:40:44]SAM_PROTO_SignData [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 0D 01 02 [09:40:44]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [09:40:44]RAPDU: 90 00 [09:40:44]wFMCommunicate OK [09:40:44]wFMCommunicate request_size=255 [09:40:44]MH_SAM_APDU [09:40: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 1C 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C4 B9 02 00 35 04 06 00 E6 [09:40:44]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 1C 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C4 B9 02 00 35 04 06 00 E6 00 00 8A [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [09:40:44]RAPDU: 90 00 [09:40:44]wFMCommunicate OK [09:40:44]wFMCommunicate request_size=10 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 0D 02 02 05 23 18 2A D5 A0 [09:40:44]Write to MH i2c: E2 0D 00 58 01 80 0D 02 02 05 00 23 18 2A D5 A0 00 00 B7 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:44]Read from MH i2c: E2 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 [09:40:44]MH_I2C_Read... [09:40:44]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [09:40:44]RAPDU: 90 00 [09:40:44]wFMCommunicate OK [09:40:44]wFMCommunicate request_size=4 [09:40:44]MH_SAM_APDU [09:40:44]CAPDU: 80 0D 03 02 [09:40:44]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [09:40:44]Write i2c OK [09:40:44]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0B 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0B 00 59 01 00 7C D1 95 4D 4B 0C E1 FC 90 00 39 [09:40:45]RAPDU: 7C D1 95 4D 4B 0C E1 FC 90 00 [09:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_SignData done [09:40:45]FM_MakeSignedData done [09:40:45]CreateOFDProtocolMessage [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 11 00 00 [09:40:45]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2E [09:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:40:45]wFMCommunicate OK [09:40:45]CreateOFDProtocolMessage done [09:40:45]OFDSenderStorePacket 178628 [09:40:45]StoreOFDPacket docnum=178628 [09:40:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E2 59 07 01 89 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 1C 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C4 B9 02 00 35 04 06 00 E6 23 18 2A D5 A0 7C D1 95 4D 4B 0C E1 FC [09:40:45]CheckFolder [09:40:45]dirname=/storage/ofd_packets [09:40:45]CheckFolder done [09:40:45]ProducePacketName [09:40:45]name=ofd_packets/00178628 [09:40:45]NVStorageSaveData ofd_packets/00178628 [09:40:45]File name is /storage/ofd_packets/00178628 [09:40:45]Write 301 bytes [09:40:45]NVStorageSaveData done [09:40:45]OFDSenderStorePacket done [09:40:45]KKMCreateOFDPacket done [09:40:45]NVStorageSaveData kkm_last_timestamp [09:40:45]File name is /storage/kkm_last_timestamp [09:40:45]Write 4 bytes [09:40:45]NVStorageSaveData done [09:40:45]ExternCall_PrintAddStr [09:40:45]wPrintStart [09:40:45]Write to MH i2c: 01 00 00 5B 01 5C [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 5B 01 00 00 00 00 00 FF 0F 71 [09:40:45]RasterBufferAndPrint [09:40:45]line Счет N : (1)294098 [09:40:45]line ИНН: 02508201610067 [09:40:45]line Контрольно-Кассовый Чек [09:40:45]line ПРОДАЖА [09:40:45]line ТРК (МРК, ГНК) : 32 [09:40:45]line Товар: 2710124130 [09:40:45]line Аи-92-К-5 [09:40:45]line 7.380 * 67.80 [09:40:45]line = 500.36 [09:40:45]line НДС 12% НСП 1% [09:40:45]line > о реализуемом товаре [09:40:45]line ОКРУГЛЕНИЕ: -0.36 [09:40:45]line ИТОГО: 500.00 [09:40:45]line Внесено: 500.00 [09:40:45]line СДАЧА: 0.00 [09:40:45]line НСП 1% : 4.43 [09:40:45]line НДС 12% : 53.14 [09:40:45]line Наличными: 500.00 [09:40:45]line Безнал.: 0.00 [09:40:45]line Место: АЗС № 130 "Партнер Нефть" [09:40:45]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:40:45]line СНО: Общий режим [09:40:45]line Чек 88 23.08.2024 09:40 [09:40:45]line Смена: 470 ФФД: 1.0 [09:40:45]line ЗНМ: 0300000071 [09:40:45]line РНМ: 0000000000092561 [09:40:45]line Версия ККМ: 001 [09:40:45]line ФМ: 0000000000871778 [09:40:45]line ФД: 178628 [09:40:45]line ФПД: 253038403704224 [09:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094044&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178628&fm=253038403704224&tin=02508201610067®Number=0000000000092561&sum=50000 [09:40:45]written 0, free lines is 4095 [09:40:45]Write to MH i2c: 01 00 00 86 01 87 [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 86 01 00 00 00 00 00 C9 0C 63 [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 3280 [09:40:45]MH_Cut [09:40:45]Write to MH i2c: D1 01 00 8D 01 01 60 [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 8D 01 00 5F [09:40:45]Write to MH i2c: 01 00 00 8E 01 8F [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:46]*** Cut start [09:40:46]*** Partial cut [09:40:46]*** CUTSNS_PIN = 1 [09:40:46]*** CUTSNS_PIN = 0 [09:40:46]*** Brake cut motor [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 8E 01 00 00 00 00 00 FF 0F A4 [09:40:47]process_action close_receipt 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 8F 01 80 11 00 00 00 00 00 00 0A [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 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 63 [09:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 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 90 01 80 13 00 00 00 00 00 00 0D [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 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C4 B9 02 00 0E 04 04 00 D6 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 90 [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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C4 B9 02 00 0E 04 04 00 D6 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 [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 91 01 80 13 01 00 00 00 00 00 0F [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0E 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E6 [09:40:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:40:47]wFMCommunicate OK [09:40:47]SAM_PROTO_GetShiftState done [09:40:47]FM_GetShiftState done [09:40:47]req_shift_opened done [09:40:47]requested_item shift.open_date is exist - process it [09:40:47]req_shift_open_date [09:40:47]req_shift_open_date done [09:40:47]produce_requested_data done [09:40:47]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178628,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:40:47]process_action_free close_receipt [09:40:47]json_value_free [09:40:47]json_value_free done [09:40:47]process_json_proto returns [09:40:47]Send response to host [09:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178628,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:40:47]free response buf [09:40:47]execute_script done [09:40:47]execute_script returns [09:40:47]free content buf [09:40:47]Sock 9.Close socket [09:40:47]Sock 9.Thread stoped [09:40:54]recv_with_timeout no data received [09:42:12]ConnectInit Can't connect to host [09:42:12]CommunicateWithHost connect error [09:42:12]CommunicateWithHost err = -1 [09:42:12]OFD Sender: Server communicate error [09:42:12]OFD Sender: Processing packet 178627 [packets to send 499, broken 497] [09:42:12]ProducePacketName [09:42:12]name=ofd_packets/00178627 [09:42:12]OFD Sender: To server: pG, [09:42:12]CommunicateWithHost lk.salyk.kg:30040 [09:42:12]ConnectInit lk.salyk.kg [09:42:14]Connected sock=9 [09: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 31 37 37 38 0F 01 00 00 DF 7C 07 01 82 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C3 B9 02 00 35 04 06 00 79 9C 69 29 16 E6 3E 82 D0 57 A3 0C AC 33 [09:42:20]recv_with_timeout no data received [09:42:20]CommunicateWithHost answer receiving error [09:42:20]CommunicateWithHost err = -3 [09:42:20]OFD Sender: Server communicate error [09:42:25]OFD Sender: Processing packet 178627 [packets to send 499, broken 497] [09:42:25]ProducePacketName [09:42:25]name=ofd_packets/00178627 [09:42:25]OFD Sender: To server: pG, [09:42:25]CommunicateWithHost lk.salyk.kg:30040 [09:42:25]ConnectInit lk.salyk.kg [09:42:27]Connected sock=9 [09:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 DF 7C 07 01 82 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 EF 58 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C3 B9 02 00 35 04 06 00 79 9C 69 29 16 E6 3E 82 D0 57 A3 0C AC 33 [09:42:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FF 72 47 00 76 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 31 37 37 38 10 04 04 00 C3 B9 02 00 F4 03 04 00 29 05 C8 66 B6 04 01 00 00 29 C6 78 CF F2 BC F7 3C [09:42:28]CommunicateWithHost err = 0 [09:42:28]CheckOFDResponse [09:42:28]1017 (14) - 77093643461234 [09:42:28]1041 (16) - 0000000000871778 [09:42:28]1040 (4) - 178627 [09:42:28]1012 (4) - 23.08.2024 03:42 [09:42:28]1206 (1) - 0 [09:42:28]OFD Sender: Remove packet 178627 [09:42:28]ProducePacketName [09:42:28]name=ofd_packets/00178627 [09:42:28]NVStorageDeleteData [09:42:28]OFD Sender: Processing packet 178628 [packets to send 498, broken 497] [09:42:28]ProducePacketName [09:42:28]name=ofd_packets/00178628 [09:42:28]OFD Sender: To server: pG, [09:42:28]CommunicateWithHost lk.salyk.kg:30040 [09:42:28]ConnectInit lk.salyk.kg [09:42:29]Connected sock=9 [09:42:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E2 59 07 01 89 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 58 00 00 00 F4 03 04 00 1C 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C4 B9 02 00 35 04 06 00 E6 23 18 2A D5 A0 7C D1 95 4D 4B 0C E1 FC [09:42:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 5F DD 47 00 14 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C4 B9 02 00 F4 03 04 00 2B 05 C8 66 B6 04 01 00 00 A2 98 A4 DA E0 0E 47 20 [09:42:30]CommunicateWithHost err = 0 [09:42:30]CheckOFDResponse [09:42:30]1017 (14) - 77093643461234 [09:42:30]1041 (16) - 0000000000871778 [09:42:30]1040 (4) - 178628 [09:42:30]1012 (4) - 23.08.2024 03:42 [09:42:30]1206 (1) - 0 [09:42:30]OFD Sender: Remove packet 178628 [09:42:30]ProducePacketName [09:42:30]name=ofd_packets/00178628 [09:42:30]NVStorageDeleteData [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]accept exits with 7 [09:43:05]New connection [09:43:05]New thread 3066936676 created [09:43:05]Thread 3067080036 joined [09:43:05]Waiting for new connection... [09:43:05] Sock 7.Parse request [09:43:05]Sock 7.Check first char [09:43:05]Sock 7.First char is OK [09:43:05]request: POST /json_proto HTTP/1.0 [09:43:05]Method: POST [09:43:05]URL: /json_proto [09:43:05]Method is POST - this is cgi request [09:43:05]url: /json_proto [09:43:05]query_string will be loaded in cgi processing [09:43:05]execute_cgi json_proto POST (null) [09:43:05]execute_cgi path=json_proto method=POST [09:43:05]POST find Content-Length [09:43:05]Host: 172.17.44.131:8080 [09:43:05]Content-Length: 685 [09:43:05]Content-Type: application/json [09:43:05] [09:43:05]POST finish read [09:43:05]Found Content-Length = 685 [09:43:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 37.440, "sum" : 1400.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:05]execute_script... [09:43: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)294096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 37.440, "sum" : 1400.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:05]POST & json_proto [09:43:05]process_json_proto [09:43:05]json parsed OK: [09:43:05]protocol is kg_v1.0 [09:43:05]action value=close_receipt [09:43:05]process_action close_receipt [09:43:05]cmd_close_receipt [09:43:05]MH_GetDate [09:43:05]Write to MH i2c: F0 00 00 92 01 82 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: F0 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: F0 09 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: F0 09 00 92 01 00 AA 59 C8 66 4F 53 BE 66 82 [09:43:05]GetLastDocTimeStamp 1724406044 [09:43:05]current date 1724406186 [09:43:05]FM_GetShiftState [09:43:05]SAM_PROTO_GetShiftState [09:43:05]wFMCommunicate request_size=4 [09:43:05]MH_SAM_APDU [09:43:05]CAPDU: 80 13 01 00 [09:43:05]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:05]Read from MH i2c: E2 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 0E 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E8 [09:43:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:43:05]wFMCommunicate OK [09:43:05]SAM_PROTO_GetShiftState done [09:43:05]FM_GetShiftState done [09:43:05]opened in 1724371660 [09:43:05]opened+sec_in_day 1724458060 [09:43:05]quantity*price = 140025 [09:43:05]sum+1 = 140027 [09:43:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1400.00 Внесено: 2000.00 СДАЧА: 600.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 89 23.08.2024 09:43 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178629 ФПД: 174631144879412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094306&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178629&fm=174631144879412&tin=02508201610067®Number=0000000000092561&sum=140000 [09:43:06]StoreToDocumentArchive [09:43:06]shift 470 fd 178629 [09:43:06]save to /storage/0470/doc_00178629 [09:43:06]save last doc name /storage/0470/doc_00178629 to /storage/kkm_last_doc_name [09:43:06]save OK [09:43:06]Clear old archive folders... [09:43:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:43:06]tlvbuf is B6DC7580 [09:43:06]SAM_PROTO_ClearQueue [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 09 00 00 [09:43:06]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_ClearQueue done [09:43:06]KKMCreateOFDPacket [09:43:06]OFDProtocolAddRootSTLVToBuf [09:43:06]FM_MakeSignedData [09:43:06]FM_MakeSignedData [09:43:06]SAM_PROTO_SignData [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 01 02 [09:43:06]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [09:43:06]RAPDU: 90 00 [09:43:06]wFMCommunicate OK [09:43:06]wFMCommunicate request_size=255 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 92 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 FA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AA 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C5 B9 02 00 35 04 06 00 9E D3 [09:43:06]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 92 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 FA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AA 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C5 B9 02 00 35 04 06 00 9E D3 00 00 F8 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 03 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [09:43:07]RAPDU: 90 00 [09:43:07]wFMCommunicate OK [09:43:07]wFMCommunicate request_size=9 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 0D 02 02 04 7B 5B 75 34 [09:43:07]Write to MH i2c: E2 0C 00 A3 01 80 0D 02 02 04 00 7B 5B 75 34 00 00 A5 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 03 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [09:43:07]RAPDU: 90 00 [09:43:07]wFMCommunicate OK [09:43:07]wFMCommunicate request_size=4 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 0D 03 02 [09:43:07]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 0B 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 0B 00 A4 01 00 B6 4A 1D 88 0E A3 1B 0D 90 00 9F [09:43:07]RAPDU: B6 4A 1D 88 0E A3 1B 0D 90 00 [09:43:07]wFMCommunicate OK [09:43:07]SAM_PROTO_SignData done [09:43:07]FM_MakeSignedData done [09:43:07]CreateOFDProtocolMessage [09:43:07]wFMCommunicate request_size=4 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 11 00 00 [09:43:07]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 17 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 79 [09:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:43:07]wFMCommunicate OK [09:43:07]CreateOFDProtocolMessage done [09:43:07]OFDSenderStorePacket 178629 [09:43:07]StoreOFDPacket docnum=178629 [09:43:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 0F 16 06 01 0A 9D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 92 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 FA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AA 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C5 B9 02 00 35 04 06 00 9E D3 7B 5B 75 34 B6 4A 1D 88 0E A3 1B 0D [09:43:07]CheckFolder [09:43:07]dirname=/storage/ofd_packets [09:43:07]CheckFolder done [09:43:07]ProducePacketName [09:43:07]name=ofd_packets/00178629 [09:43:07]NVStorageSaveData ofd_packets/00178629 [09:43:07]File name is /storage/ofd_packets/00178629 [09:43:07]Write 300 bytes [09:43:07]NVStorageSaveData done [09:43:07]OFDSenderStorePacket done [09:43:07]KKMCreateOFDPacket done [09:43:07]NVStorageSaveData kkm_last_timestamp [09:43:07]File name is /storage/kkm_last_timestamp [09:43:07]Write 4 bytes [09:43:07]NVStorageSaveData done [09:43:07]ExternCall_PrintAddStr [09:43:07]wPrintStart [09:43:07]Write to MH i2c: 01 00 00 A6 01 A7 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [09:43:07]RasterBufferAndPrint [09:43:07]line Счет N : (1)294096 [09:43:07]line ИНН: 02508201610067 [09:43:07]line Контрольно-Кассовый Чек [09:43:07]line ПРОДАЖА [09:43:07]line ТРК (МРК, ГНК) : 81 [09:43:07]line Товар: 2711129700 [09:43:07]line ГАЗ-К-5 [09:43:07]line 37.440 * 37.40 [09:43:07]line = 1400.26 [09:43:07]line НДС 12% НСП 1% [09:43:07]line > о реализуемом товаре [09:43:07]line ОКРУГЛЕНИЕ: -0.26 [09:43:07]line ИТОГО: 1400.00 [09:43:07]line Внесено: 2000.00 [09:43:07]line СДАЧА: 600.00 [09:43:07]line НСП 1% : 12.39 [09:43:07]line НДС 12% : 148.70 [09:43:07]line Наличными: 1400.00 [09:43:07]line Безнал.: 0.00 [09:43:07]line Место: АЗС № 130 "Партнер Нефть" [09:43:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:43:07]line СНО: Общий режим [09:43:07]line Чек 89 23.08.2024 09:43 [09:43:07]line Смена: 470 ФФД: 1.0 [09:43:07]line ЗНМ: 0300000071 [09:43:07]line РНМ: 0000000000092561 [09:43:07]line Версия ККМ: 001 [09:43:07]line ФМ: 0000000000871778 [09:43:07]line ФД: 178629 [09:43:07]line ФПД: 174631144879412 [09:43:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094306&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178629&fm=174631144879412&tin=02508201610067®Number=0000000000092561&sum=140000 [09:43:07]OFD Sender: Processing packet 178629 [packets to send 498, broken 497] [09:43:07]ProducePacketName [09:43:07]name=ofd_packets/00178629 [09:43:07]OFD Sender: To server: pG, [09:43:07]CommunicateWithHost lk.salyk.kg:30040 [09:43:07]ConnectInit lk.salyk.kg [09:43:07]written 0, free lines is 4095 [09:43:08]Write to MH i2c: 01 00 00 D1 01 D2 [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: 01 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: 01 07 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 CD 0C B2 [09:43:08]RasterBufferAndPrint [09:43:08]line [09:43:08]line [09:43:08]line [09:43:08]line [09:43:08]line [09:43:08]written 0, free lines is 3281 [09:43:08]MH_Cut [09:43:08]Write to MH i2c: D1 01 00 D8 01 01 AB [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: D1 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: D1 01 00 [09:43:08]MH_I2C_Read... [09:43:08]Read from MH i2c: D1 01 00 D8 01 00 AA [09:43:08]Write to MH i2c: 01 00 00 D9 01 DA [09:43:08]Write i2c OK [09:43:08]MH_I2C_Read... [09:43:08]*** Cut start [09:43:08]*** Partial cut [09:43:08]*** CUTSNS_PIN = 1 [09:43:08]*** CUTSNS_PIN = 0 [09:43:09]*** Brake cut motor [09:43:09]Read from MH i2c: 01 [09:43:09]MH_I2C_Read... [09:43:09]*** Stop cut motor [09:43:09]*** Cut end [09:43:09]Read from MH i2c: 01 07 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [09:43:09]process_action close_receipt done [09:43:09]requested_data is exist [09:43:09]produce_requested_data [09:43:09]requested_item fm.sn is exist - process it [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 11 00 00 [09:43:09]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 17 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AE [09:43:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:43:09]wFMCommunicate OK [09:43:09]requested_item fd.num is exist - process it [09:43:09]SAM_PROTO_GetFieldsCounters [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 13 00 00 [09:43:09]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 62 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C5 B9 02 00 0E 04 04 00 D6 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 DF [09:43:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C5 B9 02 00 0E 04 04 00 D6 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 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_GetFieldsCounters done [09:43:09]requested_item shift.num is exist - process it [09:43:09]requested_item shift.opened is exist - process it [09:43:09]req_shift_opened [09:43:09]FM_GetShiftState [09:43:09]SAM_PROTO_GetShiftState [09:43:09]wFMCommunicate request_size=4 [09:43:09]MH_SAM_APDU [09:43:09]CAPDU: 80 13 01 00 [09:43:09]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [09:43:09]Write i2c OK [09:43:09]MH_I2C_Read... [09:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:09]Read from MH i2c: E2 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0E 00 [09:43:09]MH_I2C_Read... [09:43:09]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 31 [09:43:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:43:09]wFMCommunicate OK [09:43:09]SAM_PROTO_GetShiftState done [09:43:09]FM_GetShiftState done [09:43:09]req_shift_opened done [09:43:09]requested_item shift.open_date is exist - process it [09:43:09]req_shift_open_date [09:43:09]req_shift_open_date done [09:43:09]produce_requested_data done [09:43:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178629,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:43:09]process_action_free close_receipt [09:43:09]json_value_free [09:43:09]json_value_free done [09:43:09]process_json_proto returns [09:43:09]Send response to host [09:43:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178629,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:43:09]free response buf [09:43:09]execute_script done [09:43:09]execute_script returns [09:43:09]free content buf [09:43:09]Sock 7.Close socket [09:43:09]Sock 7.Thread stoped [09:43:12]recv_with_timeout no data received [09:43:12]ConnectInit Can't take IP for lk.salyk.kg [09:43:12]CommunicateWithHost connect error [09:43:12]CommunicateWithHost err = -1 [09:43:12]OFD Sender: Server communicate error [09:43:17]OFD Sender: Processing packet 178629 [packets to send 498, broken 497] [09:43:17]ProducePacketName [09:43:17]name=ofd_packets/00178629 [09:43:17]OFD Sender: To server: pG, [09:43:17]CommunicateWithHost lk.salyk.kg:30040 [09:43:17]ConnectInit lk.salyk.kg [09:43:23]Connected sock=10 [09:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 0F 16 06 01 0A 9D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 40 92 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 FA 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 AA 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C5 B9 02 00 35 04 06 00 9E D3 7B 5B 75 34 B6 4A 1D 88 0E A3 1B 0D [09:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AF 4E 47 00 C1 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 31 37 37 38 10 04 04 00 C5 B9 02 00 F4 03 04 00 61 05 C8 66 B6 04 01 00 00 CF EA 6F 8D 8E B2 ED 1B [09:43:23]CommunicateWithHost err = 0 [09:43:23]CheckOFDResponse [09:43:23]1017 (14) - 77093643461234 [09:43:23]1041 (16) - 0000000000871778 [09:43:23]1040 (4) - 178629 [09:43:23]1012 (4) - 23.08.2024 03:43 [09:43:23]1206 (1) - 0 [09:43:23]OFD Sender: Remove packet 178629 [09:43:23]ProducePacketName [09:43:23]name=ofd_packets/00178629 [09:43:23]NVStorageDeleteData [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]accept exits with 9 [09:43:49]New connection [09:43:49]New thread 3067080036 created [09:43:49]Thread 3066936676 joined [09:43:49]Waiting for new connection... [09:43:49] Sock 9.Parse request [09:43:49]Sock 9.Check first char [09:43:49]Sock 9.First char is OK [09:43:49]request: POST /json_proto HTTP/1.0 [09:43:49]Method: POST [09:43:49]URL: /json_proto [09:43:49]Method is POST - this is cgi request [09:43:49]url: /json_proto [09:43:49]query_string will be loaded in cgi processing [09:43:49]execute_cgi json_proto POST (null) [09:43:49]execute_cgi path=json_proto method=POST [09:43:49]POST find Content-Length [09:43:49]Host: 172.17.44.131:8080 [09:43:49]Content-Length: 677 [09:43:49]Content-Type: application/json [09:43:49] [09:43:49]POST finish read [09:43:49]Found Content-Length = 677 [09:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294099", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:49]execute_script... [09:43: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)294099", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:49]POST & json_proto [09:43:49]process_json_proto [09:43:49]json parsed OK: [09:43:49]protocol is kg_v1.0 [09:43:49]action value=close_receipt [09:43:49]process_action close_receipt [09:43:49]cmd_close_receipt [09:43:49]MH_GetDate [09:43:49]Write to MH i2c: F0 00 00 DD 01 CD [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: F0 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: F0 09 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: F0 09 00 DD 01 00 D5 59 C8 66 4F 53 BE 66 F8 [09:43:49]GetLastDocTimeStamp 1724406186 [09:43:49]current date 1724406229 [09:43:49]FM_GetShiftState [09:43:49]SAM_PROTO_GetShiftState [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 13 01 00 [09:43:49]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:49]OFD Sender: No OFD packet to send [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 33 [09:43:49]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_GetShiftState done [09:43:49]FM_GetShiftState done [09:43:49]opened in 1724371660 [09:43:49]opened+sec_in_day 1724458060 [09:43:49]quantity*price = 50036 [09:43:49]sum+1 = 50037 [09:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 90 23.08.2024 09:43 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178630 ФПД: 88654756277237 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094349&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178630&fm=88654756277237&tin=02508201610067®Number=0000000000092561&sum=50000 [09:43:50]StoreToDocumentArchive [09:43:50]shift 470 fd 178630 [09:43:50]save to /storage/0470/doc_00178630 [09:43:50]save last doc name /storage/0470/doc_00178630 to /storage/kkm_last_doc_name [09:43:50]save OK [09:43:50]Clear old archive folders... [09:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:50]tlvbuf is 0175A250 [09:43:50]SAM_PROTO_ClearQueue [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 09 00 00 [09:43:50]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_ClearQueue done [09:43:50]KKMCreateOFDPacket [09:43:50]OFDProtocolAddRootSTLVToBuf [09:43:50]FM_MakeSignedData [09:43:50]FM_MakeSignedData [09:43:50]SAM_PROTO_SignData [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 01 02 [09:43:50]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=255 [09:43:50]MH_SAM_APDU [09:43: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 5A 00 00 00 F4 03 04 00 D5 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C6 B9 02 00 35 04 06 00 50 [09:43:50]Write to MH i2c: E2 02 01 ED 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 5A 00 00 00 F4 03 04 00 D5 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C6 B9 02 00 35 04 06 00 50 00 00 47 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=10 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 02 02 05 A1 8B 41 6B F5 [09:43:50]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 A1 8B 41 6B F5 00 00 40 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [09:43:50]RAPDU: 90 00 [09:43:50]wFMCommunicate OK [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 0D 03 02 [09:43:50]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0B 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0B 00 EF 01 00 41 D7 34 F0 7C C5 70 11 90 00 6A [09:43:50]RAPDU: 41 D7 34 F0 7C C5 70 11 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_SignData done [09:43:50]FM_MakeSignedData done [09:43:50]CreateOFDProtocolMessage [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 11 00 00 [09:43:50]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C4 [09:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:43:50]wFMCommunicate OK [09:43:50]CreateOFDProtocolMessage done [09:43:50]OFDSenderStorePacket 178630 [09:43:50]StoreOFDPacket docnum=178630 [09:43:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 B8 66 07 01 DF B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 5A 00 00 00 F4 03 04 00 D5 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C6 B9 02 00 35 04 06 00 50 A1 8B 41 6B F5 41 D7 34 F0 7C C5 70 11 [09:43:50]CheckFolder [09:43:50]dirname=/storage/ofd_packets [09:43:50]CheckFolder done [09:43:50]ProducePacketName [09:43:50]name=ofd_packets/00178630 [09:43:50]NVStorageSaveData ofd_packets/00178630 [09:43:50]File name is /storage/ofd_packets/00178630 [09:43:50]Write 301 bytes [09:43:50]NVStorageSaveData done [09:43:50]OFDSenderStorePacket done [09:43:50]KKMCreateOFDPacket done [09:43:50]NVStorageSaveData kkm_last_timestamp [09:43:50]File name is /storage/kkm_last_timestamp [09:43:50]Write 4 bytes [09:43:50]NVStorageSaveData done [09:43:50]ExternCall_PrintAddStr [09:43:50]wPrintStart [09:43:50]Write to MH i2c: 01 00 00 F1 01 F2 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [09:43:50]RasterBufferAndPrint [09:43:50]line Счет N : (1)294099 [09:43:50]line ИНН: 02508201610067 [09:43:50]line Контрольно-Кассовый Чек [09:43:50]line ПРОДАЖА [09:43:50]line ТРК (МРК, ГНК) : 42 [09:43:50]line Товар: 2710124130 [09:43:50]line Аи-92-К-5 [09:43:50]line 7.380 * 67.80 [09:43:50]line = 500.36 [09:43:50]line НДС 12% НСП 1% [09:43:50]line > о реализуемом товаре [09:43:50]line ОКРУГЛЕНИЕ: -0.36 [09:43:50]line ИТОГО: 500.00 [09:43:50]line Внесено: 500.00 [09:43:50]line СДАЧА: 0.00 [09:43:50]line НСП 1% : 4.43 [09:43:50]line НДС 12% : 53.14 [09:43:50]line Наличными: 500.00 [09:43:50]line Безнал.: 0.00 [09:43:50]line Место: АЗС № 130 "Партнер Нефть" [09:43:50]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:43:50]line СНО: Общий режим [09:43:50]line Чек 90 23.08.2024 09:43 [09:43:50]line Смена: 470 ФФД: 1.0 [09:43:50]line ЗНМ: 0300000071 [09:43:50]line РНМ: 0000000000092561 [09:43:50]line Версия ККМ: 001 [09:43:50]line ФМ: 0000000000871778 [09:43:50]line ФД: 178630 [09:43:50]line ФПД: 88654756277237 [09:43:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094349&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178630&fm=88654756277237&tin=02508201610067®Number=0000000000092561&sum=50000 [09:43:50]written 0, free lines is 4095 [09:43:51]OFD Sender: Processing packet 178630 [packets to send 498, broken 497] [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00178630 [09:43:51]OFD Sender: To server: pG, [09:43:51]CommunicateWithHost lk.salyk.kg:30040 [09:43:51]ConnectInit lk.salyk.kg [09:43:51]Write to MH i2c: 01 00 00 1C 02 1E [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 C8 0C F9 [09:43:51]RasterBufferAndPrint [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]line [09:43:51]written 0, free lines is 3278 [09:43:51]MH_Cut [09:43:51]Write to MH i2c: D1 01 00 23 02 01 F7 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: D1 01 00 23 02 00 F6 [09:43:51]Write to MH i2c: 01 00 00 24 02 26 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:52]Connected sock=10 [09:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 B8 66 07 01 DF B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 5A 00 00 00 F4 03 04 00 D5 59 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C6 B9 02 00 35 04 06 00 50 A1 8B 41 6B F5 41 D7 34 F0 7C C5 70 11 [09:43:52]*** Cut start [09:43:52]*** Partial cut [09:43:52]*** CUTSNS_PIN = 1 [09:43:52]*** CUTSNS_PIN = 0 [09:43:52]*** Brake cut motor [09:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 22 C6 47 00 0B 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 31 37 37 38 10 04 04 00 C6 B9 02 00 F4 03 04 00 7E 05 C8 66 B6 04 01 00 00 E4 BC DE 63 C5 EC C2 F5 [09:43:52]CommunicateWithHost err = 0 [09:43:52]CheckOFDResponse [09:43:52]1017 (14) - 77093643461234 [09:43:52]1041 (16) - 0000000000871778 [09:43:52]1040 (4) - 178630 [09:43:52]1012 (4) - 23.08.2024 03:43 [09:43:52]1206 (1) - 0 [09:43:52]OFD Sender: Remove packet 178630 [09:43:52]ProducePacketName [09:43:52]name=ofd_packets/00178630 [09:43:52]NVStorageDeleteData [09:43:52]Read from MH i2c: 01 [09:43:52]MH_I2C_Read... [09:43:52]*** Stop cut motor [09:43:52]*** Cut end [09:43:52]Read from MH i2c: 01 07 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [09:43:52]process_action close_receipt done [09:43:52]requested_data is exist [09:43:52]produce_requested_data [09:43:52]requested_item fm.sn is exist - process it [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 11 00 00 [09:43:52]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 17 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FA [09:43:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:43:52]wFMCommunicate OK [09:43:52]requested_item fd.num is exist - process it [09:43:52]SAM_PROTO_GetFieldsCounters [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 00 00 [09:43:52]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:52]Read from MH i2c: E2 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 62 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C6 B9 02 00 0E 04 04 00 D6 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 2F [09:43: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C6 B9 02 00 0E 04 04 00 D6 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 [09:43:52]wFMCommunicate OK [09:43:52]SAM_PROTO_GetFieldsCounters done [09:43:52]requested_item shift.num is exist - process it [09:43:52]requested_item shift.opened is exist - process it [09:43:52]req_shift_opened [09:43:52]FM_GetShiftState [09:43:52]SAM_PROTO_GetShiftState [09:43:52]wFMCommunicate request_size=4 [09:43:52]MH_SAM_APDU [09:43:52]CAPDU: 80 13 01 00 [09:43:52]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7D [09:43:53]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:43:53]wFMCommunicate OK [09:43:53]SAM_PROTO_GetShiftState done [09:43:53]FM_GetShiftState done [09:43:53]req_shift_opened done [09:43:53]requested_item shift.open_date is exist - process it [09:43:53]req_shift_open_date [09:43:53]req_shift_open_date done [09:43:53]produce_requested_data done [09:43:53]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178630,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:43:53]process_action_free close_receipt [09:43:53]json_value_free [09:43:53]json_value_free done [09:43:53]process_json_proto returns [09:43:53]Send response to host [09:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178630,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:43:53]free response buf [09:43:53]execute_script done [09:43:53]execute_script returns [09:43:53]free content buf [09:43:53]Sock 9.Close socket [09:43:53]Sock 9.Thread stoped [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:46]recv_with_timeout no data received [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]accept exits with 7 [09:46:08]New connection [09:46:08]New thread 3066936676 created [09:46:08]Thread 3067080036 joined [09:46:08]Waiting for new connection... [09:46:08] Sock 7.Parse request [09:46:08]Sock 7.Check first char [09:46:08]Sock 7.First char is OK [09:46:08]request: POST /json_proto HTTP/1.0 [09:46:08]Method: POST [09:46:08]URL: /json_proto [09:46:08]Method is POST - this is cgi request [09:46:08]url: /json_proto [09:46:08]query_string will be loaded in cgi processing [09:46:08]execute_cgi json_proto POST (null) [09:46:08]execute_cgi path=json_proto method=POST [09:46:08]POST find Content-Length [09:46:08]Host: 172.17.44.131:8080 [09:46:08]Content-Length: 803 [09:46:08]Content-Type: application/json [09:46:08] [09:46:08]POST finish read [09:46:08]Found Content-Length = 803 [09:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294100", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:08]execute_script... [09:46: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)294100", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:08]POST & json_proto [09:46:08]process_json_proto [09:46:08]json parsed OK: [09:46:08]protocol is kg_v1.0 [09:46:08]action value=close_receipt [09:46:08]process_action close_receipt [09:46:08]cmd_close_receipt [09:46:08]MH_GetDate [09:46:08]Write to MH i2c: F0 00 00 28 02 19 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: F0 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: F0 09 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: F0 09 00 28 02 00 60 5A C8 66 4F 53 BE 66 D0 [09:46:08]GetLastDocTimeStamp 1724406229 [09:46:08]current date 1724406368 [09:46:08]FM_GetShiftState [09:46:08]SAM_PROTO_GetShiftState [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 13 01 00 [09:46:08]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0E 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7F [09:46:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:46:08]wFMCommunicate OK [09:46:08]SAM_PROTO_GetShiftState done [09:46:08]FM_GetShiftState done [09:46:08]opened in 1724371660 [09:46:08]opened+sec_in_day 1724458060 [09:46:08]quantity*price = 200043 [09:46:08]sum+1 = 200044 [09:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 91 23.08.2024 09:46 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178631 ФПД: 144910690491839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094608&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178631&fm=144910690491839&tin=02508201610067®Number=0000000000092561&sum=200043 [09:46:09]StoreToDocumentArchive [09:46:09]shift 470 fd 178631 [09:46:09]save to /storage/0470/doc_00178631 [09:46:09]save last doc name /storage/0470/doc_00178631 to /storage/kkm_last_doc_name [09:46:09]save OK [09:46:09]Clear old archive folders... [09:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:09]tlvbuf is 017491D0 [09:46:09]SAM_PROTO_ClearQueue [09:46:09]wFMCommunicate request_size=4 [09:46:09]MH_SAM_APDU [09:46:09]CAPDU: 80 09 00 00 [09:46:09]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:09]Read from MH i2c: E2 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [09:46:09]RAPDU: 90 00 [09:46:09]wFMCommunicate OK [09:46:09]SAM_PROTO_ClearQueue done [09:46:09]KKMCreateOFDPacket [09:46:09]OFDProtocolAddRootSTLVToBuf [09:46:09]FM_MakeSignedData [09:46:09]FM_MakeSignedData [09:46:09]SAM_PROTO_SignData [09:46:09]wFMCommunicate request_size=4 [09:46:09]MH_SAM_APDU [09:46:09]CAPDU: 80 0D 01 02 [09:46:09]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:09]Read from MH i2c: E2 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [09:46:09]RAPDU: 90 00 [09:46:09]wFMCommunicate OK [09:46:09]wFMCommunicate request_size=255 [09:46:09]MH_SAM_APDU [09:46: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 60 5A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C7 B9 02 00 35 04 06 00 83 [09:46:09]Write to MH i2c: E2 02 01 38 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 60 5A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C7 B9 02 00 35 04 06 00 83 00 00 62 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:09]Read from MH i2c: E2 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [09:46:09]RAPDU: 90 00 [09:46:09]wFMCommunicate OK [09:46:09]wFMCommunicate request_size=10 [09:46:09]MH_SAM_APDU [09:46:09]CAPDU: 80 0D 02 02 05 CB A6 3B 1D BF [09:46:09]Write to MH i2c: E2 0D 00 39 02 80 0D 02 02 05 00 CB A6 3B 1D BF 00 00 47 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:09]Read from MH i2c: E2 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [09:46:09]RAPDU: 90 00 [09:46:09]wFMCommunicate OK [09:46:09]wFMCommunicate request_size=4 [09:46:09]MH_SAM_APDU [09:46:09]CAPDU: 80 0D 03 02 [09:46:09]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:09]Read from MH i2c: E2 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 0B 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 0B 00 3A 02 00 3C 35 AE 97 37 D2 C7 8B 90 00 C9 [09:46:09]RAPDU: 3C 35 AE 97 37 D2 C7 8B 90 00 [09:46:09]wFMCommunicate OK [09:46:09]SAM_PROTO_SignData done [09:46:09]FM_MakeSignedData done [09:46:09]CreateOFDProtocolMessage [09:46:09]wFMCommunicate request_size=4 [09:46:09]MH_SAM_APDU [09:46:09]CAPDU: 80 11 00 00 [09:46:09]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:09]Read from MH i2c: E2 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 17 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 10 [09:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:46:09]wFMCommunicate OK [09:46:09]CreateOFDProtocolMessage done [09:46:09]OFDSenderStorePacket 178631 [09:46:09]StoreOFDPacket docnum=178631 [09:46:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 03 9F 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 60 5A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C7 B9 02 00 35 04 06 00 83 CB A6 3B 1D BF 3C 35 AE 97 37 D2 C7 8B [09:46:09]CheckFolder [09:46:09]dirname=/storage/ofd_packets [09:46:09]CheckFolder done [09:46:09]ProducePacketName [09:46:09]name=ofd_packets/00178631 [09:46:09]NVStorageSaveData ofd_packets/00178631 [09:46:09]File name is /storage/ofd_packets/00178631 [09:46:09]Write 301 bytes [09:46:09]NVStorageSaveData done [09:46:09]OFDSenderStorePacket done [09:46:09]KKMCreateOFDPacket done [09:46:09]NVStorageSaveData kkm_last_timestamp [09:46:09]File name is /storage/kkm_last_timestamp [09:46:09]Write 4 bytes [09:46:09]NVStorageSaveData done [09:46:09]ExternCall_PrintAddStr [09:46:09]wPrintStart [09:46:09]Write to MH i2c: 01 00 00 3C 02 3E [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 07 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [09:46:09]RasterBufferAndPrint [09:46:09]line Счет N : (1)294100 [09:46:09]line ИНН: 02508201610067 [09:46:09]line Контрольно-Кассовый Чек [09:46:09]line ПРОДАЖА [09:46:09]line ТРК (МРК, ГНК) : 63 [09:46:09]line Товар: 2710124500 [09:46:09]line Аи-95-К-5 [09:46:09]line 26.960 * 74.20 [09:46:09]line = 2000.43 [09:46:09]line НДС 12% НСП 1% [09:46:09]line > о реализуемом товаре [09:46:09]line ИТОГО: 2000.43 [09:46:09]line НСП 1% : 17.70 [09:46:09]line НДС 12% : 212.43 [09:46:09]line Наличными: 0.00 [09:46:09]line Безнал.: 2000.43 [09:46:09]line Место: АЗС № 130 "Партнер Нефть" [09:46:09]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:46:09]line СНО: Общий режим [09:46:09]line Чек 91 23.08.2024 09:46 [09:46:09]line Смена: 470 ФФД: 1.0 [09:46:09]line ЗНМ: 0300000071 [09:46:09]line РНМ: 0000000000092561 [09:46:09]line Версия ККМ: 001 [09:46:09]line Платежная система: O! деньги [09:46:09]line ФМ: 0000000000871778 [09:46:09]line ФД: 178631 [09:46:09]line ФПД: 144910690491839 [09:46:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T094608&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178631&fm=144910690491839&tin=02508201610067®Number=0000000000092561&sum=200043 [09:46:09]written 0, free lines is 4095 [09:46:09]OFD Sender: Processing packet 178631 [packets to send 498, broken 497] [09:46:09]ProducePacketName [09:46:09]name=ofd_packets/00178631 [09:46:09]OFD Sender: To server: pG, [09:46:09]CommunicateWithHost lk.salyk.kg:30040 [09:46:09]ConnectInit lk.salyk.kg [09:46:10]Connected sock=10 [09:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 03 9F 07 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 60 5A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C7 B9 02 00 35 04 06 00 83 CB A6 3B 1D BF 3C 35 AE 97 37 D2 C7 8B [09:46:10]Write to MH i2c: 01 00 00 66 02 68 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: 01 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: 01 07 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 EF 0C 6A [09:46:10]RasterBufferAndPrint [09:46:10]line [09:46:10]line [09:46:10]line [09:46:10]line [09:46:10]line [09:46:10]written 0, free lines is 3317 [09:46:10]MH_Cut [09:46:10]Write to MH i2c: D1 01 00 6D 02 01 41 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: D1 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: D1 01 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: D1 01 00 6D 02 00 40 [09:46:10]Write to MH i2c: 01 00 00 6E 02 70 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D0 43 47 00 93 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 31 37 37 38 10 04 04 00 C7 B9 02 00 F4 03 04 00 08 06 C8 66 B6 04 01 00 00 C4 AB 03 85 BB 5B DC 27 [09:46:10]CommunicateWithHost err = 0 [09:46:10]CheckOFDResponse [09:46:10]1017 (14) - 77093643461234 [09:46:10]1041 (16) - 0000000000871778 [09:46:10]1040 (4) - 178631 [09:46:10]1012 (4) - 23.08.2024 03:46 [09:46:10]1206 (1) - 0 [09:46:10]OFD Sender: Remove packet 178631 [09:46:10]ProducePacketName [09:46:10]name=ofd_packets/00178631 [09:46:10]NVStorageDeleteData [09:46:11]OFD Sender: No OFD packet to send [09:46:11]*** Cut start [09:46:11]*** Partial cut [09:46:11]*** CUTSNS_PIN = 1 [09:46:11]*** CUTSNS_PIN = 0 [09:46:11]*** Brake cut motor [09:46:11]Read from MH i2c: 01 [09:46:11]MH_I2C_Read... [09:46:11]*** Stop cut motor [09:46:11]*** Cut end [09:46:11]Read from MH i2c: 01 07 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: 01 07 00 6E 02 00 00 00 00 00 FF 0F 85 [09:46:11]process_action close_receipt done [09:46:11]requested_data is exist [09:46:11]produce_requested_data [09:46:11]requested_item fm.sn is exist - process it [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 11 00 00 [09:46:11]Write to MH i2c: E2 08 00 6F 02 80 11 00 00 00 00 00 00 EB [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 17 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 17 00 6F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 44 [09:46:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:46:11]wFMCommunicate OK [09:46:11]requested_item fd.num is exist - process it [09:46:11]SAM_PROTO_GetFieldsCounters [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 13 00 00 [09:46:11]Write to MH i2c: E2 08 00 70 02 80 13 00 00 00 00 00 00 EE [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 62 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 62 00 70 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C7 B9 02 00 0E 04 04 00 D6 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 7D [09:46: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C7 B9 02 00 0E 04 04 00 D6 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 [09:46:11]wFMCommunicate OK [09:46:11]SAM_PROTO_GetFieldsCounters done [09:46:11]requested_item shift.num is exist - process it [09:46:11]requested_item shift.opened is exist - process it [09:46:11]req_shift_opened [09:46:11]FM_GetShiftState [09:46:11]SAM_PROTO_GetShiftState [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 13 01 00 [09:46:11]Write to MH i2c: E2 08 00 71 02 80 13 01 00 00 00 00 00 F0 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:12]Read from MH i2c: E2 0E 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 0E 00 71 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C7 [09:46:12]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:46:12]wFMCommunicate OK [09:46:12]SAM_PROTO_GetShiftState done [09:46:12]FM_GetShiftState done [09:46:12]req_shift_opened done [09:46:12]requested_item shift.open_date is exist - process it [09:46:12]req_shift_open_date [09:46:12]req_shift_open_date done [09:46:12]produce_requested_data done [09:46:12]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178631,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:46:12]process_action_free close_receipt [09:46:12]json_value_free [09:46:12]json_value_free done [09:46:12]process_json_proto returns [09:46:12]Send response to host [09:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178631,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:46:12]free response buf [09:46:12]execute_script done [09:46:12]execute_script returns [09:46:12]free content buf [09:46:12]Sock 7.Close socket [09:46:12]Sock 7.Thread stoped [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:48:49]ConnectInit Can't connect to host [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:12]recv_with_timeout no data received [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]recv_with_timeout no data received [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]recv_with_timeout no data received [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:40]recv_with_timeout no data received [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:36]recv_with_timeout no data received [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:47]recv_with_timeout no data received [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:53:57]recv_with_timeout no data received [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:56]recv_with_timeout no data received [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:16]recv_with_timeout no data received [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:15]recv_with_timeout no data received [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:34]recv_with_timeout no data received [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:51]recv_with_timeout no data received [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:52]accept exits with 9 [09:59:52]New connection [09:59:52]New thread 3067080036 created [09:59:52]Thread 3066936676 joined [09:59:52]Waiting for new connection... [09:59:52] Sock 9.Parse request [09:59:52]Sock 9.Check first char [09:59:52]Sock 9.First char is OK [09:59:52]request: POST /json_proto HTTP/1.0 [09:59:52]Method: POST [09:59:52]URL: /json_proto [09:59:52]Method is POST - this is cgi request [09:59:52]url: /json_proto [09:59:52]query_string will be loaded in cgi processing [09:59:52]execute_cgi json_proto POST (null) [09:59:52]execute_cgi path=json_proto method=POST [09:59:52]POST find Content-Length [09:59:52]Host: 172.17.44.131:8080 [09:59:52]Content-Length: 682 [09:59:52]Content-Type: application/json [09:59:52] [09:59:52]POST finish read [09:59:52]Found Content-Length = 682 [09:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294117", "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" : 67.80, "quantity" : 14.830, "sum" : 1005.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:52]execute_script... [09:59: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)294117", "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" : 67.80, "quantity" : 14.830, "sum" : 1005.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1005.00, "payments": [ { "type": 0, "sum" : 1005.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:52]POST & json_proto [09:59:52]process_json_proto [09:59:52]json parsed OK: [09:59:52]protocol is kg_v1.0 [09:59:52]action value=close_receipt [09:59:52]process_action close_receipt [09:59:52]cmd_close_receipt [09:59:52]MH_GetDate [09:59:52]Write to MH i2c: F0 00 00 72 02 63 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: F0 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: F0 09 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: F0 09 00 72 02 00 99 5D C8 66 4F 53 BE 66 56 [09:59:52]GetLastDocTimeStamp 1724406368 [09:59:52]current date 1724407193 [09:59:52]FM_GetShiftState [09:59:52]SAM_PROTO_GetShiftState [09:59:52]wFMCommunicate request_size=4 [09:59:52]MH_SAM_APDU [09:59:52]CAPDU: 80 13 01 00 [09:59:52]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [09:59:52]Write i2c OK [09:59:52]MH_I2C_Read... [09:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:52]Read from MH i2c: E2 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 0E 00 [09:59:52]MH_I2C_Read... [09:59:52]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C9 [09:59:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:59:52]wFMCommunicate OK [09:59:52]SAM_PROTO_GetShiftState done [09:59:52]FM_GetShiftState done [09:59:52]opened in 1724371660 [09:59:52]opened+sec_in_day 1724458060 [09:59:52]quantity*price = 100547 [09:59:52]sum+1 = 100548 [09:59:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1005.00 Внесено: 1005.00 СДАЧА: 0.00 НСП 1% : 8.90 НДС 12% : 106.78 Наличными: 1005.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 92 23.08.2024 09:59 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178632 ФПД: 143448102576811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095953&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178632&fm=143448102576811&tin=02508201610067®Number=0000000000092561&sum=100500 [09:59:53]StoreToDocumentArchive [09:59:53]shift 470 fd 178632 [09:59:53]save to /storage/0470/doc_00178632 [09:59:53]save last doc name /storage/0470/doc_00178632 to /storage/kkm_last_doc_name [09:59:53]save OK [09:59:53]Clear old archive folders... [09:59:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:53]tlvbuf is 0174F720 [09:59:53]SAM_PROTO_ClearQueue [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 09 00 00 [09:59:53]Write to MH i2c: E2 08 00 80 02 80 09 00 00 00 00 00 00 F4 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [09:59:53]RAPDU: 90 00 [09:59:53]wFMCommunicate OK [09:59:53]SAM_PROTO_ClearQueue done [09:59:53]KKMCreateOFDPacket [09:59:53]OFDProtocolAddRootSTLVToBuf [09:59:53]FM_MakeSignedData [09:59:53]FM_MakeSignedData [09:59:53]SAM_PROTO_SignData [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 0D 01 02 [09:59:53]Write to MH i2c: E2 08 00 81 02 80 0D 01 02 00 00 00 00 FC [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [09:59:53]RAPDU: 90 00 [09:59:53]wFMCommunicate OK [09:59:53]wFMCommunicate request_size=255 [09:59:53]MH_SAM_APDU [09:59: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 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C8 B9 02 00 35 04 06 00 82 [09:59:53]Write to MH i2c: E2 02 01 82 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C8 B9 02 00 35 04 06 00 82 00 00 05 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [09:59:53]RAPDU: 90 00 [09:59:53]wFMCommunicate OK [09:59:53]wFMCommunicate request_size=10 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 0D 02 02 05 77 1D 32 A2 AB [09:59:53]Write to MH i2c: E2 0D 00 83 02 80 0D 02 02 05 00 77 1D 32 A2 AB 00 00 1C [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:53]Read from MH i2c: E2 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 [09:59:53]MH_I2C_Read... [09:59:53]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [09:59:53]RAPDU: 90 00 [09:59:53]wFMCommunicate OK [09:59:53]wFMCommunicate request_size=4 [09:59:53]MH_SAM_APDU [09:59:53]CAPDU: 80 0D 03 02 [09:59:53]Write to MH i2c: E2 08 00 84 02 80 0D 03 02 00 00 00 00 01 [09:59:53]Write i2c OK [09:59:53]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 0B 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 0B 00 84 02 00 8E BA 6D 57 C6 7C 3F 3F 90 00 CE [09:59:54]RAPDU: 8E BA 6D 57 C6 7C 3F 3F 90 00 [09:59:54]wFMCommunicate OK [09:59:54]SAM_PROTO_SignData done [09:59:54]FM_MakeSignedData done [09:59:54]CreateOFDProtocolMessage [09:59:54]wFMCommunicate request_size=4 [09:59:54]MH_SAM_APDU [09:59:54]CAPDU: 80 11 00 00 [09:59:54]Write to MH i2c: E2 08 00 85 02 80 11 00 00 00 00 00 00 01 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:54]Read from MH i2c: E2 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 17 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: E2 17 00 85 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5A [09:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:59:54]wFMCommunicate OK [09:59:54]CreateOFDProtocolMessage done [09:59:54]OFDSenderStorePacket 178632 [09:59:54]StoreOFDPacket docnum=178632 [09:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 ED 65 07 01 2D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C8 B9 02 00 35 04 06 00 82 77 1D 32 A2 AB 8E BA 6D 57 C6 7C 3F 3F [09:59:54]CheckFolder [09:59:54]dirname=/storage/ofd_packets [09:59:54]CheckFolder done [09:59:54]ProducePacketName [09:59:54]name=ofd_packets/00178632 [09:59:54]NVStorageSaveData ofd_packets/00178632 [09:59:54]File name is /storage/ofd_packets/00178632 [09:59:54]Write 301 bytes [09:59:54]NVStorageSaveData done [09:59:54]OFDSenderStorePacket done [09:59:54]KKMCreateOFDPacket done [09:59:54]NVStorageSaveData kkm_last_timestamp [09:59:54]File name is /storage/kkm_last_timestamp [09:59:54]Write 4 bytes [09:59:54]NVStorageSaveData done [09:59:54]ExternCall_PrintAddStr [09:59:54]wPrintStart [09:59:54]Write to MH i2c: 01 00 00 86 02 88 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 86 02 00 00 00 00 00 FF 0F 9D [09:59:54]RasterBufferAndPrint [09:59:54]line Счет N : (1)294117 [09:59:54]line ИНН: 02508201610067 [09:59:54]line Контрольно-Кассовый Чек [09:59:54]line ПРОДАЖА [09:59:54]line ТРК (МРК, ГНК) : 62 [09:59:54]line Товар: 2710124130 [09:59:54]line Аи-92-К-5 [09:59:54]line 14.830 * 67.80 [09:59:54]line = 1005.47 [09:59:54]line НДС 12% НСП 1% [09:59:54]line > о реализуемом товаре [09:59:54]line ОКРУГЛЕНИЕ: -0.47 [09:59:54]line ИТОГО: 1005.00 [09:59:54]line Внесено: 1005.00 [09:59:54]line СДАЧА: 0.00 [09:59:54]line НСП 1% : 8.90 [09:59:54]line НДС 12% : 106.78 [09:59:54]line Наличными: 1005.00 [09:59:54]line Безнал.: 0.00 [09:59:54]line Место: АЗС № 130 "Партнер Нефть" [09:59:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [09:59:54]line СНО: Общий режим [09:59:54]line Чек 92 23.08.2024 09:59 [09:59:54]line Смена: 470 ФФД: 1.0 [09:59:54]line ЗНМ: 0300000071 [09:59:54]line РНМ: 0000000000092561 [09:59:54]line Версия ККМ: 001 [09:59:54]line ФМ: 0000000000871778 [09:59:54]line ФД: 178632 [09:59:54]line ФПД: 143448102576811 [09:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T095953&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178632&fm=143448102576811&tin=02508201610067®Number=0000000000092561&sum=100500 [09:59:54]written 0, free lines is 4095 [09:59:54]OFD Sender: Processing packet 178632 [packets to send 498, broken 497] [09:59:54]ProducePacketName [09:59:54]name=ofd_packets/00178632 [09:59:54]OFD Sender: To server: pG, [09:59:54]CommunicateWithHost lk.salyk.kg:30040 [09:59:54]ConnectInit lk.salyk.kg [09:59:54]Write to MH i2c: 01 00 00 B1 02 B3 [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: 01 07 00 B1 02 00 00 00 00 00 C7 0C 8D [09:59:54]RasterBufferAndPrint [09:59:54]line [09:59:54]line [09:59:54]line [09:59:54]line [09:59:54]line [09:59:54]written 0, free lines is 3277 [09:59:54]MH_Cut [09:59:54]Write to MH i2c: D1 01 00 B8 02 01 8C [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D1 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D1 01 00 [09:59:54]MH_I2C_Read... [09:59:54]Read from MH i2c: D1 01 00 B8 02 00 8B [09:59:54]Write to MH i2c: 01 00 00 B9 02 BB [09:59:54]Write i2c OK [09:59:54]MH_I2C_Read... [09:59:55]*** Cut start [09:59:55]*** Partial cut [09:59:55]*** CUTSNS_PIN = 1 [09:59:55]*** CUTSNS_PIN = 0 [09:59:55]*** Brake cut motor [09:59:55]Read from MH i2c: 01 [09:59:55]MH_I2C_Read... [09:59:55]*** Stop cut motor [09:59:55]*** Cut end [09:59:55]Read from MH i2c: 01 07 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [09:59:55]process_action close_receipt done [09:59:55]requested_data is exist [09:59:55]produce_requested_data [09:59:55]requested_item fm.sn is exist - process it [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 11 00 00 [09:59:55]Write to MH i2c: E2 08 00 BA 02 80 11 00 00 00 00 00 00 36 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:55]Read from MH i2c: E2 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 17 00 [09:59:55]MH_I2C_Read... [09:59:55]Read from MH i2c: E2 17 00 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 8F [09:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [09:59:55]wFMCommunicate OK [09:59:55]requested_item fd.num is exist - process it [09:59:55]SAM_PROTO_GetFieldsCounters [09:59:55]wFMCommunicate request_size=4 [09:59:55]MH_SAM_APDU [09:59:55]CAPDU: 80 13 00 00 [09:59:55]Write to MH i2c: E2 08 00 BB 02 80 13 00 00 00 00 00 00 39 [09:59:55]Write i2c OK [09:59:55]MH_I2C_Read... [09:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:56]Read from MH i2c: E2 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 62 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 62 00 BB 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C8 B9 02 00 0E 04 04 00 D6 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 CC [09:59: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C8 B9 02 00 0E 04 04 00 D6 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 [09:59:56]wFMCommunicate OK [09:59:56]SAM_PROTO_GetFieldsCounters done [09:59:56]requested_item shift.num is exist - process it [09:59:56]requested_item shift.opened is exist - process it [09:59:56]req_shift_opened [09:59:56]FM_GetShiftState [09:59:56]SAM_PROTO_GetShiftState [09:59:56]wFMCommunicate request_size=4 [09:59:56]MH_SAM_APDU [09:59:56]CAPDU: 80 13 01 00 [09:59:56]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [09:59:56]Write i2c OK [09:59:56]MH_I2C_Read... [09:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:56]Read from MH i2c: E2 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 0E 00 [09:59:56]MH_I2C_Read... [09:59:56]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 12 [09:59:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [09:59:56]wFMCommunicate OK [09:59:56]SAM_PROTO_GetShiftState done [09:59:56]FM_GetShiftState done [09:59:56]req_shift_opened done [09:59:56]requested_item shift.open_date is exist - process it [09:59:56]req_shift_open_date [09:59:56]req_shift_open_date done [09:59:56]produce_requested_data done [09:59:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178632,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [09:59:56]process_action_free close_receipt [09:59:56]json_value_free [09:59:56]json_value_free done [09:59:56]process_json_proto returns [09:59:56]Send response to host [09:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178632,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [09:59:56]free response buf [09:59:56]execute_script done [09:59:56]execute_script returns [09:59:56]free content buf [09:59:56]Sock 9.Close socket [09:59:56]Sock 9.Thread stoped [09:59:57]Connected sock=11 [09:59:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 ED 65 07 01 2D 35 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 29 00 00 00 00 07 04 06 00 94 88 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 99 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C8 B9 02 00 35 04 06 00 82 77 1D 32 A2 AB 8E BA 6D 57 C6 7C 3F 3F [10:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D0 54 47 00 2F 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C8 B9 02 00 F4 03 04 00 44 09 C8 66 B6 04 01 00 00 A4 1C 49 9E 13 62 AF 40 [10:00:00]CommunicateWithHost err = 0 [10:00:00]CheckOFDResponse [10:00:00]1017 (14) - 77093643461234 [10:00:00]1041 (16) - 0000000000871778 [10:00:00]1040 (4) - 178632 [10:00:00]1012 (4) - 23.08.2024 04:00 [10:00:00]1206 (1) - 0 [10:00:00]OFD Sender: Remove packet 178632 [10:00:00]ProducePacketName [10:00:00]name=ofd_packets/00178632 [10:00:00]NVStorageDeleteData [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:27]recv_with_timeout no data received [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:40]recv_with_timeout no data received [10:00:41]OFD Sender: No OFD packet to send [10:00:45]accept exits with 10 [10:00:45]New connection [10:00:45]New thread 3066936676 created [10:00:45]Thread 3067080036 joined [10:00:45]Waiting for new connection... [10:00:45] Sock 10.Parse request [10:00:45]Sock 10.Check first char [10:00:45]Sock 10.First char is OK [10:00:45]request: POST /json_proto HTTP/1.0 [10:00:45]Method: POST [10:00:45]URL: /json_proto [10:00:45]Method is POST - this is cgi request [10:00:45]url: /json_proto [10:00:45]query_string will be loaded in cgi processing [10:00:45]execute_cgi json_proto POST (null) [10:00:45]execute_cgi path=json_proto method=POST [10:00:45]POST find Content-Length [10:00:45]Host: 172.17.44.131:8080 [10:00:45]Content-Length: 679 [10:00:45]Content-Type: application/json [10:00:45] [10:00:45]POST finish read [10:00:45]Found Content-Length = 679 [10:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:45]execute_script... [10: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)294119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:45]POST & json_proto [10:00:45]process_json_proto [10:00:45]json parsed OK: [10:00:45]protocol is kg_v1.0 [10:00:45]action value=close_receipt [10:00:45]process_action close_receipt [10:00:45]cmd_close_receipt [10:00:45]MH_GetDate [10:00:45]Write to MH i2c: F0 00 00 BD 02 AE [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 09 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: F0 09 00 BD 02 00 CE 5D C8 66 4F 53 BE 66 D6 [10:00:45]GetLastDocTimeStamp 1724407193 [10:00:45]current date 1724407246 [10:00:45]FM_GetShiftState [10:00:45]SAM_PROTO_GetShiftState [10:00:45]wFMCommunicate request_size=4 [10:00:45]MH_SAM_APDU [10:00:45]CAPDU: 80 13 01 00 [10:00:45]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [10:00:45]Write i2c OK [10:00:45]MH_I2C_Read... [10:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:45]Read from MH i2c: E2 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 [10:00:45]MH_I2C_Read... [10:00:45]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 14 [10:00:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:00:45]wFMCommunicate OK [10:00:45]SAM_PROTO_GetShiftState done [10:00:45]FM_GetShiftState done [10:00:45]opened in 1724371660 [10:00:45]opened+sec_in_day 1724458060 [10:00:45]quantity*price = 200025 [10:00:45]sum+1 = 200026 [10:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 93 23.08.2024 10:00 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178633 ФПД: 169343730173279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100046&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178633&fm=169343730173279&tin=02508201610067®Number=0000000000092561&sum=200000 [10:00:47]StoreToDocumentArchive [10:00:47]shift 470 fd 178633 [10:00:47]save to /storage/0470/doc_00178633 [10:00:47]save last doc name /storage/0470/doc_00178633 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=248 [10:00:47]tlvbuf is 01747A90 [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 CB 02 80 09 00 00 00 00 00 00 3F [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 CB 02 00 90 00 41 [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 CC 02 80 0D 01 02 00 00 00 00 47 [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 CC 02 00 90 00 42 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C9 B9 02 00 35 04 06 00 9A 04 68 E1 [10:00:47]Write to MH i2c: E2 02 01 CD 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C9 B9 02 00 35 04 06 00 9A 04 68 E1 00 00 BB [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 02 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 CD 02 00 90 00 43 [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=7 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 02 02 02 C5 5F [10:00:47]Write to MH i2c: E2 0A 00 CE 02 80 0D 02 02 02 00 C5 5F 00 00 72 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 02 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 CE 02 00 90 00 44 [10:00:47]RAPDU: 90 00 [10:00:47]wFMCommunicate OK [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 0D 03 02 [10:00:47]Write to MH i2c: E2 08 00 CF 02 80 0D 03 02 00 00 00 00 4C [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0B 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 0B 00 CF 02 00 0B 30 30 D3 7A DE 64 4A 90 00 91 [10:00:47]RAPDU: 0B 30 30 D3 7A DE 64 4A 90 00 [10:00:47]wFMCommunicate OK [10:00:47]SAM_PROTO_SignData done [10:00:47]FM_MakeSignedData done [10:00:47]CreateOFDProtocolMessage [10:00:47]wFMCommunicate request_size=4 [10:00:47]MH_SAM_APDU [10:00:47]CAPDU: 80 11 00 00 [10:00:47]Write to MH i2c: E2 08 00 D0 02 80 11 00 00 00 00 00 00 4C [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:47]Read from MH i2c: E2 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: E2 17 00 D0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A5 [10:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:47]wFMCommunicate OK [10:00:47]CreateOFDProtocolMessage done [10:00:47]OFDSenderStorePacket 178633 [10:00:47]StoreOFDPacket docnum=178633 [10:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 1E 5C 04 01 48 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C9 B9 02 00 35 04 06 00 9A 04 68 E1 C5 5F 0B 30 30 D3 7A DE 64 4A [10:00:47]CheckFolder [10:00:47]dirname=/storage/ofd_packets [10:00:47]CheckFolder done [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00178633 [10:00:47]NVStorageSaveData ofd_packets/00178633 [10:00:47]File name is /storage/ofd_packets/00178633 [10:00:47]Write 298 bytes [10:00:47]NVStorageSaveData done [10:00:47]OFDSenderStorePacket done [10:00:47]KKMCreateOFDPacket done [10:00:47]NVStorageSaveData kkm_last_timestamp [10:00:47]File name is /storage/kkm_last_timestamp [10:00:47]Write 4 bytes [10:00:47]NVStorageSaveData done [10:00:47]ExternCall_PrintAddStr [10:00:47]wPrintStart [10:00:47]Write to MH i2c: 01 00 00 D1 02 D3 [10:00:47]Write i2c OK [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 [10:00:47]MH_I2C_Read... [10:00:47]Read from MH i2c: 01 07 00 D1 02 00 00 00 00 00 FF 0F E8 [10:00:47]RasterBufferAndPrint [10:00:47]line Счет N : (1)294119 [10:00:47]line ИНН: 02508201610067 [10:00:47]line Контрольно-Кассовый Чек [10:00:47]line ПРОДАЖА [10:00:47]line ТРК (МРК, ГНК) : 21 [10:00:47]line Товар: 2710194800 [10:00:47]line ДТ-К-5 [10:00:47]line 26.250 * 76.20 [10:00:47]line = 2000.25 [10:00:47]line НДС 12% НСП 1% [10:00:47]line > о реализуемом товаре [10:00:47]line ОКРУГЛЕНИЕ: -0.25 [10:00:47]line ИТОГО: 2000.00 [10:00:47]line Внесено: 2000.00 [10:00:47]line СДАЧА: 0.00 [10:00:47]line НСП 1% : 17.70 [10:00:47]line НДС 12% : 212.42 [10:00:47]line Наличными: 2000.00 [10:00:47]line Безнал.: 0.00 [10:00:47]line Место: АЗС № 130 "Партнер Нефть" [10:00:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:00:47]line СНО: Общий режим [10:00:47]line Чек 93 23.08.2024 10:00 [10:00:47]line Смена: 470 ФФД: 1.0 [10:00:47]line ЗНМ: 0300000071 [10:00:47]line РНМ: 0000000000092561 [10:00:47]line Версия ККМ: 001 [10:00:47]line ФМ: 0000000000871778 [10:00:47]line ФД: 178633 [10:00:47]line ФПД: 169343730173279 [10:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100046&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178633&fm=169343730173279&tin=02508201610067®Number=0000000000092561&sum=200000 [10:00:47]OFD Sender: Processing packet 178633 [packets to send 498, broken 497] [10:00:47]ProducePacketName [10:00:47]name=ofd_packets/00178633 [10:00:47]OFD Sender: To server: pG, [10:00:47]CommunicateWithHost lk.salyk.kg:30040 [10:00:47]ConnectInit lk.salyk.kg [10:00:47]written 0, free lines is 4095 [10:00:48]Write to MH i2c: 01 00 00 FC 02 FE [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 FC 02 00 00 00 00 00 CF 0C E0 [10:00:48]RasterBufferAndPrint [10:00:48]line [10:00:48]line [10:00:48]line [10:00:48]line [10:00:48]line [10:00:48]written 0, free lines is 3285 [10:00:48]MH_Cut [10:00:48]Write to MH i2c: D1 01 00 03 03 01 D8 [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: D1 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: D1 01 00 [10:00:48]MH_I2C_Read... [10:00:48]Read from MH i2c: D1 01 00 03 03 00 D7 [10:00:48]Write to MH i2c: 01 00 00 04 03 07 [10:00:48]Write i2c OK [10:00:48]MH_I2C_Read... [10:00:49]*** Cut start [10:00:49]*** Partial cut [10:00:49]*** CUTSNS_PIN = 1 [10:00:49]*** CUTSNS_PIN = 0 [10:00:49]*** Brake cut motor [10:00:49]Connected sock=11 [10:00:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 1E 5C 04 01 48 D0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 CE 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 C9 B9 02 00 35 04 06 00 9A 04 68 E1 C5 5F 0B 30 30 D3 7A DE 64 4A [10:00:49]Read from MH i2c: 01 [10:00:49]MH_I2C_Read... [10:00:49]*** Stop cut motor [10:00:49]*** Cut end [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 04 03 00 00 00 00 00 FF 0F 1C [10:00:49]process_action close_receipt done [10:00:49]requested_data is exist [10:00:49]produce_requested_data [10:00:49]requested_item fm.sn is exist - process it [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 11 00 00 [10:00:49]Write to MH i2c: E2 08 00 05 03 80 11 00 00 00 00 00 00 82 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 17 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 17 00 05 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DB [10:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:49]wFMCommunicate OK [10:00:49]requested_item fd.num is exist - process it [10:00:49]SAM_PROTO_GetFieldsCounters [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 13 00 00 [10:00:49]Write to MH i2c: E2 08 00 06 03 80 13 00 00 00 00 00 00 85 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 62 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 62 00 06 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C9 B9 02 00 0E 04 04 00 D6 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 1C [10: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 C9 B9 02 00 0E 04 04 00 D6 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 [10:00:49]wFMCommunicate OK [10:00:49]SAM_PROTO_GetFieldsCounters done [10:00:49]requested_item shift.num is exist - process it [10:00:49]requested_item shift.opened is exist - process it [10:00:49]req_shift_opened [10:00:49]FM_GetShiftState [10:00:49]SAM_PROTO_GetShiftState [10:00:49]wFMCommunicate request_size=4 [10:00:49]MH_SAM_APDU [10:00:49]CAPDU: 80 13 01 00 [10:00:49]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [10:00:49]Write i2c OK [10:00:49]MH_I2C_Read... [10:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:49]Read from MH i2c: E2 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 0E 00 [10:00:49]MH_I2C_Read... [10:00:49]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5E [10:00:49]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:00:49]wFMCommunicate OK [10:00:49]SAM_PROTO_GetShiftState done [10:00:49]FM_GetShiftState done [10:00:49]req_shift_opened done [10:00:49]requested_item shift.open_date is exist - process it [10:00:49]req_shift_open_date [10:00:49]req_shift_open_date done [10:00:49]produce_requested_data done [10:00:49]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178633,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:00:49]process_action_free close_receipt [10:00:49]json_value_free [10:00:49]json_value_free done [10:00:49]process_json_proto returns [10:00:49]Send response to host [10:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178633,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:00:49]free response buf [10:00:49]execute_script done [10:00:49]execute_script returns [10:00:49]free content buf [10:00:49]Sock 10.Close socket [10:00:49]Sock 10.Thread stoped [10:00:50]accept exits with 9 [10:00:50]New connection [10:00:50]New thread 3067080036 created [10:00:50]Thread 3066936676 joined [10:00:50]Waiting for new connection... [10:00:50] Sock 9.Parse request [10:00:50]Sock 9.Check first char [10:00:50]Sock 9.First char is OK [10:00:50]request: POST /json_proto HTTP/1.0 [10:00:50]Method: POST [10:00:50]URL: /json_proto [10:00:50]Method is POST - this is cgi request [10:00:50]url: /json_proto [10:00:50]query_string will be loaded in cgi processing [10:00:50]execute_cgi json_proto POST (null) [10:00:50]execute_cgi path=json_proto method=POST [10:00:50]POST find Content-Length [10:00:50]Host: 172.17.44.131:8080 [10:00:50]Content-Length: 791 [10:00:50]Content-Type: application/json [10:00:50] [10:00:50]POST finish read [10:00:50]Found Content-Length = 791 [10:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:50]execute_script... [10:00: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)294118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:50]POST & json_proto [10:00:50]process_json_proto [10:00:50]json parsed OK: [10:00:50]protocol is kg_v1.0 [10:00:50]action value=close_receipt [10:00:50]process_action close_receipt [10:00:50]cmd_close_receipt [10:00:50]MH_GetDate [10:00:50]Write to MH i2c: F0 00 00 08 03 FA [10:00:50]Write i2c OK [10:00:50]MH_I2C_Read... [10:00:50]Read from MH i2c: F0 [10:00:50]MH_I2C_Read... [10:00:50]Read from MH i2c: F0 09 00 [10:00:50]MH_I2C_Read... [10:00:50]Read from MH i2c: F0 09 00 08 03 00 D3 5D C8 66 4F 53 BE 66 27 [10:00:50]GetLastDocTimeStamp 1724407246 [10:00:50]current date 1724407251 [10:00:50]FM_GetShiftState [10:00:50]SAM_PROTO_GetShiftState [10:00:50]wFMCommunicate request_size=4 [10:00:50]MH_SAM_APDU [10:00:50]CAPDU: 80 13 01 00 [10:00:50]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [10:00:50]Write i2c OK [10:00:50]MH_I2C_Read... [10:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:50]Read from MH i2c: E2 [10:00:50]MH_I2C_Read... [10:00:50]Read from MH i2c: E2 0E 00 [10:00:50]MH_I2C_Read... [10:00:50]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 60 [10:00:50]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:00:50]wFMCommunicate OK [10:00:50]SAM_PROTO_GetShiftState done [10:00:50]FM_GetShiftState done [10:00:50]opened in 1724371660 [10:00:50]opened+sec_in_day 1724458060 [10:00:50]quantity*price = 0 [10:00:50]sum+1 = 1 [10:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 94 23.08.2024 10:00 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 2 ФМ: 0000000000871778 ФД: 178634 ФПД: 144158897749703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100051&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178634&fm=144158897749703&tin=02508201610067®Number=0000000000092561&sum=0 [10:00:51]StoreToDocumentArchive [10:00:51]shift 470 fd 178634 [10:00:51]save to /storage/0470/doc_00178634 [10:00:51]save last doc name /storage/0470/doc_00178634 to /storage/kkm_last_doc_name [10:00:51]save OK [10:00:51]Clear old archive folders... [10:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:00:51]tlvbuf is 017870A0 [10:00:51]SAM_PROTO_ClearQueue [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 09 00 00 [10:00:51]Write to MH i2c: E2 08 00 16 03 80 09 00 00 00 00 00 00 8B [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:51]Read from MH i2c: E2 03 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [10:00:51]RAPDU: 90 00 [10:00:51]wFMCommunicate OK [10:00:51]SAM_PROTO_ClearQueue done [10:00:51]KKMCreateOFDPacket [10:00:51]OFDProtocolAddRootSTLVToBuf [10:00:51]FM_MakeSignedData [10:00:51]FM_MakeSignedData [10:00:51]SAM_PROTO_SignData [10:00:51]wFMCommunicate request_size=4 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 0D 01 02 [10:00:51]Write to MH i2c: E2 08 00 17 03 80 0D 01 02 00 00 00 00 93 [10:00:51]Write i2c OK [10:00:51]MH_I2C_Read... [10:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:51]Read from MH i2c: E2 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 03 00 [10:00:51]MH_I2C_Read... [10:00:51]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [10:00:51]RAPDU: 90 00 [10:00:51]wFMCommunicate OK [10:00:51]wFMCommunicate request_size=255 [10:00:51]MH_SAM_APDU [10:00:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D3 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CA B9 02 00 35 04 06 00 83 1C 9B E4 [10:00:52]Write to MH i2c: E2 02 01 18 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D3 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CA B9 02 00 35 04 06 00 83 1C 9B E4 00 00 0B [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:52]Read from MH i2c: E2 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 03 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [10:00:52]RAPDU: 90 00 [10:00:52]wFMCommunicate OK [10:00:52]wFMCommunicate request_size=7 [10:00:52]MH_SAM_APDU [10:00:52]CAPDU: 80 0D 02 02 02 3E C7 [10:00:52]Write to MH i2c: E2 0A 00 19 03 80 0D 02 02 02 00 3E C7 00 00 9F [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:52]Read from MH i2c: E2 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 03 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [10:00:52]RAPDU: 90 00 [10:00:52]wFMCommunicate OK [10:00:52]wFMCommunicate request_size=4 [10:00:52]MH_SAM_APDU [10:00:52]CAPDU: 80 0D 03 02 [10:00:52]Write to MH i2c: E2 08 00 1A 03 80 0D 03 02 00 00 00 00 98 [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:52]Read from MH i2c: E2 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 0B 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 0B 00 1A 03 00 A0 F2 BD BD D4 D3 B6 E4 90 00 E6 [10:00:52]RAPDU: A0 F2 BD BD D4 D3 B6 E4 90 00 [10:00:52]wFMCommunicate OK [10:00:52]SAM_PROTO_SignData done [10:00:52]FM_MakeSignedData done [10:00:52]CreateOFDProtocolMessage [10:00:52]wFMCommunicate request_size=4 [10:00:52]MH_SAM_APDU [10:00:52]CAPDU: 80 11 00 00 [10:00:52]Write to MH i2c: E2 08 00 1B 03 80 11 00 00 00 00 00 00 98 [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:52]Read from MH i2c: E2 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 17 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: E2 17 00 1B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F1 [10:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:52]wFMCommunicate OK [10:00:52]CreateOFDProtocolMessage done [10:00:52]OFDSenderStorePacket 178634 [10:00:52]StoreOFDPacket docnum=178634 [10:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 B8 42 04 01 07 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D3 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CA B9 02 00 35 04 06 00 83 1C 9B E4 3E C7 A0 F2 BD BD D4 D3 B6 E4 [10:00:52]CheckFolder [10:00:52]dirname=/storage/ofd_packets [10:00:52]CheckFolder done [10:00:52]ProducePacketName [10:00:52]name=ofd_packets/00178634 [10:00:52]NVStorageSaveData ofd_packets/00178634 [10:00:52]File name is /storage/ofd_packets/00178634 [10:00:52]Write 298 bytes [10:00:52]NVStorageSaveData done [10:00:52]OFDSenderStorePacket done [10:00:52]KKMCreateOFDPacket done [10:00:52]NVStorageSaveData kkm_last_timestamp [10:00:52]File name is /storage/kkm_last_timestamp [10:00:52]Write 4 bytes [10:00:52]NVStorageSaveData done [10:00:52]ExternCall_PrintAddStr [10:00:52]wPrintStart [10:00:52]Write to MH i2c: 01 00 00 1C 03 1F [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: 01 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: 01 07 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: 01 07 00 1C 03 00 00 00 00 00 FF 0F 34 [10:00:52]RasterBufferAndPrint [10:00:52]line Счет N : (1)294118 [10:00:52]line ИНН: 02508201610067 [10:00:52]line Контрольно-Кассовый Чек [10:00:52]line ПРОДАЖА [10:00:52]line ТРК (МРК, ГНК) : 44 [10:00:52]line Товар: 2710194800 [10:00:52]line ДТ-К-5 [10:00:52]line 40.000 * 0.00 [10:00:52]line = 0.00 [10:00:52]line НДС 12% НСП 1% [10:00:52]line > о реализуемом товаре [10:00:52]line ИТОГО: 0.00 [10:00:52]line НСП 1% : 0.00 [10:00:52]line НДС 12% : 0.00 [10:00:52]line Наличными: 0.00 [10:00:52]line Безнал.: 0.00 [10:00:52]line Место: АЗС № 130 "Партнер Нефть" [10:00:52]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:00:52]line СНО: Общий режим [10:00:52]line Чек 94 23.08.2024 10:00 [10:00:52]line Смена: 470 ФФД: 1.0 [10:00:52]line ЗНМ: 0300000071 [10:00:52]line РНМ: 0000000000092561 [10:00:52]line Версия ККМ: 001 [10:00:52]line Талоны: Топливные Талоны [10:00:52]line 2 [10:00:52]line ФМ: 0000000000871778 [10:00:52]line ФД: 178634 [10:00:52]line ФПД: 144158897749703 [10:00:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100051&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178634&fm=144158897749703&tin=02508201610067®Number=0000000000092561&sum=0 [10:00:52]written 0, free lines is 4095 [10:00:52]OFD Sender: Processing packet 178634 [packets to send 498, broken 497] [10:00:52]ProducePacketName [10:00:52]name=ofd_packets/00178634 [10:00:52]OFD Sender: To server: pG, [10:00:52]CommunicateWithHost lk.salyk.kg:30040 [10:00:52]ConnectInit lk.salyk.kg [10:00:52]Write to MH i2c: 01 00 00 46 03 49 [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: 01 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: 01 07 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: 01 07 00 46 03 00 00 00 00 00 E0 0C 3C [10:00:52]RasterBufferAndPrint [10:00:52]line [10:00:52]line [10:00:52]line [10:00:52]line [10:00:52]line [10:00:52]written 0, free lines is 3311 [10:00:52]MH_Cut [10:00:52]Write to MH i2c: D1 01 00 4D 03 01 22 [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: D1 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: D1 01 00 [10:00:52]MH_I2C_Read... [10:00:52]Read from MH i2c: D1 01 00 4D 03 00 21 [10:00:52]Write to MH i2c: 01 00 00 4E 03 51 [10:00:52]Write i2c OK [10:00:52]MH_I2C_Read... [10:00:53]Connected sock=10 [10:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 B8 42 04 01 07 EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 D3 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CA B9 02 00 35 04 06 00 83 1C 9B E4 3E C7 A0 F2 BD BD D4 D3 B6 E4 [10:00:53]*** Cut start [10:00:53]*** Partial cut [10:00:53]*** CUTSNS_PIN = 1 [10:00:53]*** CUTSNS_PIN = 0 [10:00:53]*** Brake cut motor [10:00:54]Read from MH i2c: 01 [10:00:54]MH_I2C_Read... [10:00:54]*** Stop cut motor [10:00:54]*** Cut end [10:00:54]Read from MH i2c: 01 07 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [10:00:54]process_action close_receipt done [10:00:54]requested_data is exist [10:00:54]produce_requested_data [10:00:54]requested_item fm.sn is exist - process it [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 11 00 00 [10:00:54]Write to MH i2c: E2 08 00 4F 03 80 11 00 00 00 00 00 00 CC [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 17 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 17 00 4F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 25 [10:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:00:54]wFMCommunicate OK [10:00:54]requested_item fd.num is exist - process it [10:00:54]SAM_PROTO_GetFieldsCounters [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 13 00 00 [10:00:54]Write to MH i2c: E2 08 00 50 03 80 13 00 00 00 00 00 00 CF [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 62 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 62 00 50 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CA B9 02 00 0E 04 04 00 D6 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 6A [10:00: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CA B9 02 00 0E 04 04 00 D6 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:00:54]wFMCommunicate OK [10:00:54]SAM_PROTO_GetFieldsCounters done [10:00:54]requested_item shift.num is exist - process it [10:00:54]requested_item shift.opened is exist - process it [10:00:54]req_shift_opened [10:00:54]FM_GetShiftState [10:00:54]SAM_PROTO_GetShiftState [10:00:54]wFMCommunicate request_size=4 [10:00:54]MH_SAM_APDU [10:00:54]CAPDU: 80 13 01 00 [10:00:54]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [10:00:54]Write i2c OK [10:00:54]MH_I2C_Read... [10:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:54]Read from MH i2c: E2 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 0E 00 [10:00:54]MH_I2C_Read... [10:00:54]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A8 [10:00:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:00:54]wFMCommunicate OK [10:00:54]SAM_PROTO_GetShiftState done [10:00:54]FM_GetShiftState done [10:00:54]req_shift_opened done [10:00:54]requested_item shift.open_date is exist - process it [10:00:54]req_shift_open_date [10:00:54]req_shift_open_date done [10:00:54]produce_requested_data done [10:00:54]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178634,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:00:54]process_action_free close_receipt [10:00:54]json_value_free [10:00:54]json_value_free done [10:00:54]process_json_proto returns [10:00:54]Send response to host [10:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178634,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:00:54]free response buf [10:00:54]execute_script done [10:00:54]execute_script returns [10:00:54]free content buf [10:00:54]Sock 9.Close socket [10:00:54]Sock 9.Thread stoped [10:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 52 CE 47 00 15 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 31 37 37 38 10 04 04 00 CA B9 02 00 F4 03 04 00 7C 09 C8 66 B6 04 01 00 00 97 99 74 2C 2C 1D C4 2C [10:00:55]CommunicateWithHost err = 0 [10:00:55]CheckOFDResponse [10:00:55]1017 (14) - 77093643461234 [10:00:55]1041 (16) - 0000000000871778 [10:00:55]1040 (4) - 178634 [10:00:55]1012 (4) - 23.08.2024 04:01 [10:00:55]1206 (1) - 0 [10:00:55]OFD Sender: Remove packet 178634 [10:00:55]ProducePacketName [10:00:55]name=ofd_packets/00178634 [10:00:55]NVStorageDeleteData [10:00:55]OFD Sender: No OFD packet to send [10:01:00]recv_with_timeout no data received [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:26]accept exits with 7 [10:01:26]New connection [10:01:26]New thread 3066936676 created [10:01:26]Thread 3067080036 joined [10:01:26]Waiting for new connection... [10:01:26] Sock 7.Parse request [10:01:26]Sock 7.Check first char [10:01:26]Sock 7.First char is OK [10:01:26]request: POST /json_proto HTTP/1.0 [10:01:26]Method: POST [10:01:26]URL: /json_proto [10:01:26]Method is POST - this is cgi request [10:01:26]url: /json_proto [10:01:26]query_string will be loaded in cgi processing [10:01:26]execute_cgi json_proto POST (null) [10:01:26]execute_cgi path=json_proto method=POST [10:01:26]POST find Content-Length [10:01:26]Host: 172.17.44.131:8080 [10:01:26]Content-Length: 639 [10:01:26]Content-Type: application/json [10:01:26] [10:01:26]POST finish read [10:01:26]Found Content-Length = 639 [10:01:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:26]execute_script... [10:01: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)294120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 40.000, "sum" : 3048.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3048.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:26]POST & json_proto [10:01:26]process_json_proto [10:01:26]json parsed OK: [10:01:26]protocol is kg_v1.0 [10:01:26]action value=close_receipt [10:01:26]process_action close_receipt [10:01:26]cmd_close_receipt [10:01:26]MH_GetDate [10:01:26]Write to MH i2c: F0 00 00 52 03 44 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: F0 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: F0 09 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: F0 09 00 52 03 00 F7 5D C8 66 4F 53 BE 66 95 [10:01:26]GetLastDocTimeStamp 1724407251 [10:01:26]current date 1724407287 [10:01:26]FM_GetShiftState [10:01:26]SAM_PROTO_GetShiftState [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 13 01 00 [10:01:26]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:26]Read from MH i2c: E2 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0E 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AA [10:01:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:01:26]wFMCommunicate OK [10:01:26]SAM_PROTO_GetShiftState done [10:01:26]FM_GetShiftState done [10:01:26]opened in 1724371660 [10:01:26]opened+sec_in_day 1724458060 [10:01:26]quantity*price = 304800 [10:01:26]sum+1 = 304801 [10:01:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3048.00 НСП 1% : 26.97 НДС 12% : 323.68 Наличными: 3048.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 95 23.08.2024 10:01 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178635 ФПД: 149593901832721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100127&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178635&fm=149593901832721&tin=02508201610067®Number=0000000000092561&sum=304800 [10:01:27]StoreToDocumentArchive [10:01:27]shift 470 fd 178635 [10:01:27]save to /storage/0470/doc_00178635 [10:01:27]save last doc name /storage/0470/doc_00178635 to /storage/kkm_last_doc_name [10:01:27]save OK [10:01:27]Clear old archive folders... [10:01:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:01:27]tlvbuf is 0173DF00 [10:01:27]SAM_PROTO_ClearQueue [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 09 00 00 [10:01:27]Write to MH i2c: E2 08 00 60 03 80 09 00 00 00 00 00 00 D5 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [10:01:27]RAPDU: 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_ClearQueue done [10:01:27]KKMCreateOFDPacket [10:01:27]OFDProtocolAddRootSTLVToBuf [10:01:27]FM_MakeSignedData [10:01:27]FM_MakeSignedData [10:01:27]SAM_PROTO_SignData [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 0D 01 02 [10:01:27]Write to MH i2c: E2 08 00 61 03 80 0D 01 02 00 00 00 00 DD [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [10:01:27]RAPDU: 90 00 [10:01:27]wFMCommunicate OK [10:01:27]wFMCommunicate request_size=255 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CB B9 02 00 35 04 06 00 88 0E 0B 61 [10:01:28]Write to MH i2c: E2 02 01 62 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CB B9 02 00 35 04 06 00 88 0E 0B 61 00 00 9F [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [10:01:28]RAPDU: 90 00 [10:01:28]wFMCommunicate OK [10:01:28]wFMCommunicate request_size=7 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 0D 02 02 02 1A 11 [10:01:28]Write to MH i2c: E2 0A 00 63 03 80 0D 02 02 02 00 1A 11 00 00 0F [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [10:01:28]RAPDU: 90 00 [10:01:28]wFMCommunicate OK [10:01:28]wFMCommunicate request_size=4 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 0D 03 02 [10:01:28]Write to MH i2c: E2 08 00 64 03 80 0D 03 02 00 00 00 00 E2 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 0B 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 0B 00 64 03 00 09 0B AD 38 DB 31 40 B8 90 00 E0 [10:01:28]RAPDU: 09 0B AD 38 DB 31 40 B8 90 00 [10:01:28]wFMCommunicate OK [10:01:28]SAM_PROTO_SignData done [10:01:28]FM_MakeSignedData done [10:01:28]CreateOFDProtocolMessage [10:01:28]wFMCommunicate request_size=4 [10:01:28]MH_SAM_APDU [10:01:28]CAPDU: 80 11 00 00 [10:01:28]Write to MH i2c: E2 08 00 65 03 80 11 00 00 00 00 00 00 E2 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:28]Read from MH i2c: E2 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 17 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: E2 17 00 65 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3B [10:01:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:01:28]wFMCommunicate OK [10:01:28]CreateOFDProtocolMessage done [10:01:28]OFDSenderStorePacket 178635 [10:01:28]StoreOFDPacket docnum=178635 [10:01:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A7 98 04 01 15 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CB B9 02 00 35 04 06 00 88 0E 0B 61 1A 11 09 0B AD 38 DB 31 40 B8 [10:01:28]CheckFolder [10:01:28]dirname=/storage/ofd_packets [10:01:28]CheckFolder done [10:01:28]ProducePacketName [10:01:28]name=ofd_packets/00178635 [10:01:28]NVStorageSaveData ofd_packets/00178635 [10:01:28]File name is /storage/ofd_packets/00178635 [10:01:28]Write 298 bytes [10:01:28]NVStorageSaveData done [10:01:28]OFDSenderStorePacket done [10:01:28]KKMCreateOFDPacket done [10:01:28]NVStorageSaveData kkm_last_timestamp [10:01:28]File name is /storage/kkm_last_timestamp [10:01:28]Write 4 bytes [10:01:28]NVStorageSaveData done [10:01:28]ExternCall_PrintAddStr [10:01:28]wPrintStart [10:01:28]Write to MH i2c: 01 00 00 66 03 69 [10:01:28]Write i2c OK [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 07 00 [10:01:28]MH_I2C_Read... [10:01:28]Read from MH i2c: 01 07 00 66 03 00 00 00 00 00 FF 0F 7E [10:01:28]RasterBufferAndPrint [10:01:28]line Счет N : (1)294120 [10:01:28]line ИНН: 02508201610067 [10:01:28]line Контрольно-Кассовый Чек [10:01:28]line ПРОДАЖА [10:01:28]line ТРК (МРК, ГНК) : 34 [10:01:28]line Товар: 2710194800 [10:01:28]line ДТ-К-5 [10:01:28]line 40.000 * 76.20 [10:01:28]line = 3048.00 [10:01:28]line НДС 12% НСП 1% [10:01:28]line > о реализуемом товаре [10:01:28]line ИТОГО: 3048.00 [10:01:28]line НСП 1% : 26.97 [10:01:28]line НДС 12% : 323.68 [10:01:28]line Наличными: 3048.00 [10:01:28]line Безнал.: 0.00 [10:01:28]line Место: АЗС № 130 "Партнер Нефть" [10:01:28]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:01:28]line СНО: Общий режим [10:01:28]line Чек 95 23.08.2024 10:01 [10:01:28]line Смена: 470 ФФД: 1.0 [10:01:28]line ЗНМ: 0300000071 [10:01:28]line РНМ: 0000000000092561 [10:01:28]line Версия ККМ: 001 [10:01:28]line ФМ: 0000000000871778 [10:01:28]line ФД: 178635 [10:01:28]line ФПД: 149593901832721 [10:01:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100127&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178635&fm=149593901832721&tin=02508201610067®Number=0000000000092561&sum=304800 [10:01:28]written 0, free lines is 4095 [10:01:28]OFD Sender: Processing packet 178635 [packets to send 498, broken 497] [10:01:28]ProducePacketName [10:01:28]name=ofd_packets/00178635 [10:01:28]OFD Sender: To server: pG, [10:01:28]CommunicateWithHost lk.salyk.kg:30040 [10:01:28]ConnectInit lk.salyk.kg [10:01:29]Write to MH i2c: 01 00 00 8E 03 91 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: 01 07 00 8E 03 00 00 00 00 00 11 0D B6 [10:01:29]RasterBufferAndPrint [10:01:29]line [10:01:29]line [10:01:29]line [10:01:29]line [10:01:29]line [10:01:29]written 0, free lines is 3366 [10:01:29]MH_Cut [10:01:29]Write to MH i2c: D1 01 00 95 03 01 6A [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: D1 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: D1 01 00 [10:01:29]MH_I2C_Read... [10:01:29]Read from MH i2c: D1 01 00 95 03 00 69 [10:01:29]Write to MH i2c: 01 00 00 96 03 99 [10:01:29]Write i2c OK [10:01:29]MH_I2C_Read... [10:01:29]*** Cut start [10:01:29]*** Partial cut [10:01:29]*** CUTSNS_PIN = 1 [10:01:29]*** CUTSNS_PIN = 0 [10:01:29]*** Brake cut motor [10:01:30]Read from MH i2c: 01 [10:01:30]MH_I2C_Read... [10:01:30]*** Stop cut motor [10:01:30]*** Cut end [10:01:30]Read from MH i2c: 01 07 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: 01 07 00 96 03 00 00 00 00 00 FF 0F AE [10:01:30]process_action close_receipt done [10:01:30]requested_data is exist [10:01:30]produce_requested_data [10:01:30]requested_item fm.sn is exist - process it [10:01:30]wFMCommunicate request_size=4 [10:01:30]MH_SAM_APDU [10:01:30]CAPDU: 80 11 00 00 [10:01:30]Write to MH i2c: E2 08 00 97 03 80 11 00 00 00 00 00 00 14 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:30]Read from MH i2c: E2 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 17 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 17 00 97 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6D [10:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:01:30]wFMCommunicate OK [10:01:30]requested_item fd.num is exist - process it [10:01:30]SAM_PROTO_GetFieldsCounters [10:01:30]wFMCommunicate request_size=4 [10:01:30]MH_SAM_APDU [10:01:30]CAPDU: 80 13 00 00 [10:01:30]Write to MH i2c: E2 08 00 98 03 80 13 00 00 00 00 00 00 17 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:30]Read from MH i2c: E2 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 62 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 62 00 98 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CB B9 02 00 0E 04 04 00 D6 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 B6 [10:01: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CB B9 02 00 0E 04 04 00 D6 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 [10:01:30]wFMCommunicate OK [10:01:30]SAM_PROTO_GetFieldsCounters done [10:01:30]requested_item shift.num is exist - process it [10:01:30]requested_item shift.opened is exist - process it [10:01:30]req_shift_opened [10:01:30]FM_GetShiftState [10:01:30]SAM_PROTO_GetShiftState [10:01:30]wFMCommunicate request_size=4 [10:01:30]MH_SAM_APDU [10:01:30]CAPDU: 80 13 01 00 [10:01:30]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [10:01:30]Write i2c OK [10:01:30]MH_I2C_Read... [10:01:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:30]Read from MH i2c: E2 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 0E 00 [10:01:30]MH_I2C_Read... [10:01:30]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F0 [10:01:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:01:30]wFMCommunicate OK [10:01:30]SAM_PROTO_GetShiftState done [10:01:30]FM_GetShiftState done [10:01:30]req_shift_opened done [10:01:30]requested_item shift.open_date is exist - process it [10:01:30]req_shift_open_date [10:01:30]req_shift_open_date done [10:01:30]produce_requested_data done [10:01:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178635,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:01:30]process_action_free close_receipt [10:01:30]json_value_free [10:01:30]json_value_free done [10:01:30]process_json_proto returns [10:01:30]Send response to host [10:01:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178635,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:01:30]free response buf [10:01:30]execute_script done [10:01:30]execute_script returns [10:01:30]free content buf [10:01:30]Sock 7.Close socket [10:01:30]Sock 7.Thread stoped [10:01:33]Connected sock=11 [10:01:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A7 98 04 01 15 DB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A0 A6 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A6 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 7E 00 00 00 00 07 04 06 00 A0 A6 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 5D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CB B9 02 00 35 04 06 00 88 0E 0B 61 1A 11 09 0B AD 38 DB 31 40 B8 [10:01:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EC C1 47 00 BE 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CB B9 02 00 F4 03 04 00 A3 09 C8 66 B6 04 01 00 00 63 25 57 E0 A1 6F 67 94 [10:01:34]CommunicateWithHost err = 0 [10:01:34]CheckOFDResponse [10:01:34]1017 (14) - 77093643461234 [10:01:34]1041 (16) - 0000000000871778 [10:01:34]1040 (4) - 178635 [10:01:34]1012 (4) - 23.08.2024 04:01 [10:01:34]1206 (1) - 0 [10:01:34]OFD Sender: Remove packet 178635 [10:01:34]ProducePacketName [10:01:34]name=ofd_packets/00178635 [10:01:34]NVStorageDeleteData [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]accept exits with 10 [10:01:44]New connection [10:01:44]New thread 3067080036 created [10:01:44]Thread 3066936676 joined [10:01:44]Waiting for new connection... [10:01:44] Sock 10.Parse request [10:01:44]Sock 10.Check first char [10:01:44]Sock 10.First char is OK [10:01:44]request: POST /json_proto HTTP/1.0 [10:01:44]Method: POST [10:01:44]URL: /json_proto [10:01:44]Method is POST - this is cgi request [10:01:44]url: /json_proto [10:01:44]query_string will be loaded in cgi processing [10:01:44]execute_cgi json_proto POST (null) [10:01:44]execute_cgi path=json_proto method=POST [10:01:44]POST find Content-Length [10:01:44]Host: 172.17.44.131:8080 [10:01:44]Content-Length: 679 [10:01:44]Content-Type: application/json [10:01:44] [10:01:44]POST finish read [10:01:44]Found Content-Length = 679 [10:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:44]execute_script... [10:01: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)294121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:44]POST & json_proto [10:01:44]process_json_proto [10:01:44]json parsed OK: [10:01:44]protocol is kg_v1.0 [10:01:44]action value=close_receipt [10:01:44]process_action close_receipt [10:01:44]cmd_close_receipt [10:01:44]MH_GetDate [10:01:44]Write to MH i2c: F0 00 00 9A 03 8C [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: F0 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: F0 09 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: F0 09 00 9A 03 00 09 5E C8 66 4F 53 BE 66 F0 [10:01:44]GetLastDocTimeStamp 1724407287 [10:01:44]current date 1724407305 [10:01:44]FM_GetShiftState [10:01:44]SAM_PROTO_GetShiftState [10:01:44]wFMCommunicate request_size=4 [10:01:44]MH_SAM_APDU [10:01:44]CAPDU: 80 13 01 00 [10:01:44]Write to MH i2c: E2 08 00 9B 03 80 13 01 00 00 00 00 00 1B [10:01:44]Write i2c OK [10:01:44]MH_I2C_Read... [10:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:44]Read from MH i2c: E2 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 [10:01:44]MH_I2C_Read... [10:01:44]Read from MH i2c: E2 0E 00 9B 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F2 [10:01:44]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:01:44]wFMCommunicate OK [10:01:44]SAM_PROTO_GetShiftState done [10:01:44]FM_GetShiftState done [10:01:44]opened in 1724371660 [10:01:44]opened+sec_in_day 1724458060 [10:01:44]quantity*price = 100050 [10:01:44]sum+1 = 100052 [10:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 96 23.08.2024 10:01 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178636 ФПД: 11769040800627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100145&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178636&fm=11769040800627&tin=02508201610067®Number=0000000000092561&sum=100000 [10:01:45]StoreToDocumentArchive [10:01:45]shift 470 fd 178636 [10:01:45]save to /storage/0470/doc_00178636 [10:01:45]save last doc name /storage/0470/doc_00178636 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=248 [10:01:45]tlvbuf is 01779580 [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 A8 03 80 09 00 00 00 00 00 00 1D [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 A8 03 00 90 00 1F [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 A9 03 80 0D 01 02 00 00 00 00 25 [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 A9 03 00 90 00 20 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 09 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CC B9 02 00 35 04 06 00 0A B4 31 7F [10:01:46]Write to MH i2c: E2 02 01 AA 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 09 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CC B9 02 00 35 04 06 00 0A B4 31 7F 00 00 74 [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 03 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [10:01:46]RAPDU: 90 00 [10:01:46]wFMCommunicate OK [10:01:46]wFMCommunicate request_size=7 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 0D 02 02 02 0B 73 [10:01:46]Write to MH i2c: E2 0A 00 AB 03 80 0D 02 02 02 00 0B 73 00 00 AA [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 03 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [10:01:46]RAPDU: 90 00 [10:01:46]wFMCommunicate OK [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 0D 03 02 [10:01:46]Write to MH i2c: E2 08 00 AC 03 80 0D 03 02 00 00 00 00 2A [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0B 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 0B 00 AC 03 00 F3 97 1E 9F 5F 81 26 17 90 00 8F [10:01:46]RAPDU: F3 97 1E 9F 5F 81 26 17 90 00 [10:01:46]wFMCommunicate OK [10:01:46]SAM_PROTO_SignData done [10:01:46]FM_MakeSignedData done [10:01:46]CreateOFDProtocolMessage [10:01:46]wFMCommunicate request_size=4 [10:01:46]MH_SAM_APDU [10:01:46]CAPDU: 80 11 00 00 [10:01:46]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [10:01:46]Write i2c OK [10:01:46]MH_I2C_Read... [10:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:46]Read from MH i2c: E2 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 17 00 [10:01:46]MH_I2C_Read... [10:01:46]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [10:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:01:46]wFMCommunicate OK [10:01:46]CreateOFDProtocolMessage done [10:01:46]OFDSenderStorePacket 178636 [10:01:46]StoreOFDPacket docnum=178636 [10:01:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D5 F4 04 01 22 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 09 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CC B9 02 00 35 04 06 00 0A B4 31 7F 0B 73 F3 97 1E 9F 5F 81 26 17 [10:01:46]CheckFolder [10:01:46]dirname=/storage/ofd_packets [10:01:46]CheckFolder done [10:01:46]ProducePacketName [10:01:46]name=ofd_packets/00178636 [10:01:46]NVStorageSaveData ofd_packets/00178636 [10:01:46]File name is /storage/ofd_packets/00178636 [10:01:46]Write 298 bytes [10:01:46]NVStorageSaveData done [10:01:46]OFDSenderStorePacket done [10:01:46]KKMCreateOFDPacket done [10:01:46]NVStorageSaveData kkm_last_timestamp [10:01:46]File name is /storage/kkm_last_timestamp [10:01:46]Write 4 bytes [10:01:46]NVStorageSaveData done [10:01:46]ExternCall_PrintAddStr [10:01:46]wPrintStart [10:01:46]Write to MH i2c: 01 00 00 AE 03 B1 [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]OFD Sender: Processing packet 178636 [packets to send 498, broken 497] [10:01:46]ProducePacketName [10:01:46]name=ofd_packets/00178636 [10:01:46]OFD Sender: To server: pG, [10:01:46]CommunicateWithHost lk.salyk.kg:30040 [10:01:46]ConnectInit lk.salyk.kg [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 AE 03 00 00 00 00 00 FF 0F C6 [10:01:46]RasterBufferAndPrint [10:01:46]line Счет N : (1)294121 [10:01:46]line ИНН: 02508201610067 [10:01:46]line Контрольно-Кассовый Чек [10:01:46]line ПРОДАЖА [10:01:46]line ТРК (МРК, ГНК) : 11 [10:01:46]line Товар: 2710194800 [10:01:46]line ДТ-К-5 [10:01:46]line 13.130 * 76.20 [10:01:46]line = 1000.51 [10:01:46]line НДС 12% НСП 1% [10:01:46]line > о реализуемом товаре [10:01:46]line ОКРУГЛЕНИЕ: -0.51 [10:01:46]line ИТОГО: 1000.00 [10:01:46]line Внесено: 1000.00 [10:01:46]line СДАЧА: 0.00 [10:01:46]line НСП 1% : 8.85 [10:01:46]line НДС 12% : 106.25 [10:01:46]line Наличными: 1000.00 [10:01:46]line Безнал.: 0.00 [10:01:46]line Место: АЗС № 130 "Партнер Нефть" [10:01:46]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:01:46]line СНО: Общий режим [10:01:46]line Чек 96 23.08.2024 10:01 [10:01:46]line Смена: 470 ФФД: 1.0 [10:01:46]line ЗНМ: 0300000071 [10:01:46]line РНМ: 0000000000092561 [10:01:46]line Версия ККМ: 001 [10:01:46]line ФМ: 0000000000871778 [10:01:46]line ФД: 178636 [10:01:46]line ФПД: 11769040800627 [10:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100145&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178636&fm=11769040800627&tin=02508201610067®Number=0000000000092561&sum=100000 [10:01:46]written 0, free lines is 4095 [10:01:47]Write to MH i2c: 01 00 00 D9 03 DC [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: 01 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: 01 07 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 D6 0C C5 [10:01:47]RasterBufferAndPrint [10:01:47]line [10:01:47]line [10:01:47]line [10:01:47]line [10:01:47]line [10:01:47]written 0, free lines is 3310 [10:01:47]MH_Cut [10:01:47]Write to MH i2c: D1 01 00 E0 03 01 B5 [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: D1 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: D1 01 00 [10:01:47]MH_I2C_Read... [10:01:47]Read from MH i2c: D1 01 00 E0 03 00 B4 [10:01:47]Write to MH i2c: 01 00 00 E1 03 E4 [10:01:47]Write i2c OK [10:01:47]MH_I2C_Read... [10:01:47]*** Cut start [10:01:47]*** Partial cut [10:01:47]*** CUTSNS_PIN = 1 [10:01:47]*** CUTSNS_PIN = 0 [10:01:48]*** Brake cut motor [10:01:48]Read from MH i2c: 01 [10:01:48]MH_I2C_Read... [10:01:48]*** Stop cut motor [10:01:48]*** Cut end [10:01:48]Read from MH i2c: 01 07 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: 01 07 00 E1 03 00 00 00 00 00 FF 0F F9 [10:01:48]process_action close_receipt done [10:01:48]requested_data is exist [10:01:48]produce_requested_data [10:01:48]requested_item fm.sn is exist - process it [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 11 00 00 [10:01:48]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 17 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B8 [10:01:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:01:48]wFMCommunicate OK [10:01:48]requested_item fd.num is exist - process it [10:01:48]SAM_PROTO_GetFieldsCounters [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 13 00 00 [10:01:48]Write to MH i2c: E2 08 00 E3 03 80 13 00 00 00 00 00 00 62 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 62 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 62 00 E3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CC B9 02 00 0E 04 04 00 D6 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 05 [10:01: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CC B9 02 00 0E 04 04 00 D6 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 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_GetFieldsCounters done [10:01:48]requested_item shift.num is exist - process it [10:01:48]requested_item shift.opened is exist - process it [10:01:48]req_shift_opened [10:01:48]FM_GetShiftState [10:01:48]SAM_PROTO_GetShiftState [10:01:48]wFMCommunicate request_size=4 [10:01:48]MH_SAM_APDU [10:01:48]CAPDU: 80 13 01 00 [10:01:48]Write to MH i2c: E2 08 00 E4 03 80 13 01 00 00 00 00 00 64 [10:01:48]Write i2c OK [10:01:48]MH_I2C_Read... [10:01:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:48]Read from MH i2c: E2 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 0E 00 [10:01:48]MH_I2C_Read... [10:01:48]Read from MH i2c: E2 0E 00 E4 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3B [10:01:48]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:01:48]wFMCommunicate OK [10:01:48]SAM_PROTO_GetShiftState done [10:01:48]FM_GetShiftState done [10:01:48]req_shift_opened done [10:01:48]requested_item shift.open_date is exist - process it [10:01:48]req_shift_open_date [10:01:48]req_shift_open_date done [10:01:48]produce_requested_data done [10:01:48]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178636,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:01:48]process_action_free close_receipt [10:01:48]json_value_free [10:01:48]json_value_free done [10:01:48]process_json_proto returns [10:01:48]Send response to host [10:01:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178636,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:01:48]free response buf [10:01:48]execute_script done [10:01:48]execute_script returns [10:01:48]free content buf [10:01:48]Sock 10.Close socket [10:01:48]Sock 10.Thread stoped [10:01:53]Connected sock=11 [10: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 31 37 37 38 0C 01 00 00 D5 F4 04 01 22 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 09 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CC B9 02 00 35 04 06 00 0A B4 31 7F 0B 73 F3 97 1E 9F 5F 81 26 17 [10:01:58]recv_with_timeout no data received [10:01:58]CommunicateWithHost answer receiving error [10:01:58]CommunicateWithHost err = -3 [10:01:58]OFD Sender: Server communicate error [10:02:03]OFD Sender: Processing packet 178636 [packets to send 498, broken 497] [10:02:03]ProducePacketName [10:02:03]name=ofd_packets/00178636 [10:02:03]OFD Sender: To server: pG, [10:02:03]CommunicateWithHost lk.salyk.kg:30040 [10:02:03]ConnectInit lk.salyk.kg [10:02:06]Connected sock=10 [10:02:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D5 F4 04 01 22 63 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 09 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CC B9 02 00 35 04 06 00 0A B4 31 7F 0B 73 F3 97 1E 9F 5F 81 26 17 [10:02:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 00 69 47 00 E2 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 31 37 37 38 10 04 04 00 CC B9 02 00 F4 03 04 00 C4 09 C8 66 B6 04 01 00 00 D1 27 C0 8E 7F E6 34 74 [10:02:08]CommunicateWithHost err = 0 [10:02:08]CheckOFDResponse [10:02:08]1017 (14) - 77093643461234 [10:02:08]1041 (16) - 0000000000871778 [10:02:08]1040 (4) - 178636 [10:02:08]1012 (4) - 23.08.2024 04:02 [10:02:08]1206 (1) - 0 [10:02:08]OFD Sender: Remove packet 178636 [10:02:08]ProducePacketName [10:02:08]name=ofd_packets/00178636 [10:02:08]NVStorageDeleteData [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:06]accept exits with 9 [10:03:06]New connection [10:03:06]New thread 3066936676 created [10:03:06]Thread 3067080036 joined [10:03:06]Waiting for new connection... [10:03:06] Sock 9.Parse request [10:03:06]Sock 9.Check first char [10:03:06]Sock 9.First char is OK [10:03:06]request: POST /json_proto HTTP/1.0 [10:03:06]Method: POST [10:03:06]URL: /json_proto [10:03:06]Method is POST - this is cgi request [10:03:06]url: /json_proto [10:03:06]query_string will be loaded in cgi processing [10:03:06]execute_cgi json_proto POST (null) [10:03:06]execute_cgi path=json_proto method=POST [10:03:06]POST find Content-Length [10:03:06]Host: 172.17.44.131:8080 [10:03:06]Content-Length: 672 [10:03:06]Content-Type: application/json [10:03:06] [10:03:06]POST finish read [10:03:06]Found Content-Length = 672 [10:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:03:06]execute_script... [10:03: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)294122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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:03:06]POST & json_proto [10:03:06]process_json_proto [10:03:06]json parsed OK: [10:03:06]protocol is kg_v1.0 [10:03:06]action value=close_receipt [10:03:06]process_action close_receipt [10:03:06]cmd_close_receipt [10:03:06]MH_GetDate [10:03:06]Write to MH i2c: F0 00 00 E5 03 D7 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 09 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: F0 09 00 E5 03 00 5B 5E C8 66 4F 53 BE 66 8D [10:03:06]GetLastDocTimeStamp 1724407305 [10:03:06]current date 1724407387 [10:03:06]FM_GetShiftState [10:03:06]SAM_PROTO_GetShiftState [10:03:06]wFMCommunicate request_size=4 [10:03:06]MH_SAM_APDU [10:03:06]CAPDU: 80 13 01 00 [10:03:06]Write to MH i2c: E2 08 00 E6 03 80 13 01 00 00 00 00 00 66 [10:03:06]Write i2c OK [10:03:06]MH_I2C_Read... [10:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:06]Read from MH i2c: E2 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 [10:03:06]MH_I2C_Read... [10:03:06]Read from MH i2c: E2 0E 00 E6 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3D [10:03:06]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:03:06]wFMCommunicate OK [10:03:06]SAM_PROTO_GetShiftState done [10:03:06]FM_GetShiftState done [10:03:06]opened in 1724371660 [10:03:06]opened+sec_in_day 1724458060 [10:03:06]quantity*price = 100035 [10:03:06]sum+1 = 100036 [10:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 97 23.08.2024 10:03 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178637 ФПД: 19022566151608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100307&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178637&fm=19022566151608&tin=02508201610067®Number=0000000000092561&sum=100000 [10:03:07]StoreToDocumentArchive [10:03:07]shift 470 fd 178637 [10:03:07]save to /storage/0470/doc_00178637 [10:03:07]save last doc name /storage/0470/doc_00178637 to /storage/kkm_last_doc_name [10:03:07]save OK [10:03:07]Clear old archive folders... [10:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=249 [10:03:07]tlvbuf is 01762670 [10:03:07]SAM_PROTO_ClearQueue [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 09 00 00 [10:03:07]Write to MH i2c: E2 08 00 F3 03 80 09 00 00 00 00 00 00 68 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]SAM_PROTO_ClearQueue done [10:03:07]KKMCreateOFDPacket [10:03:07]OFDProtocolAddRootSTLVToBuf [10:03:07]FM_MakeSignedData [10:03:07]FM_MakeSignedData [10:03:07]SAM_PROTO_SignData [10:03:07]wFMCommunicate request_size=4 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 01 02 [10:03:07]Write to MH i2c: E2 08 00 F4 03 80 0D 01 02 00 00 00 00 70 [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:07]Read from MH i2c: E2 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 [10:03:07]MH_I2C_Read... [10:03:07]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [10:03:07]RAPDU: 90 00 [10:03:07]wFMCommunicate OK [10:03:07]wFMCommunicate request_size=255 [10:03:07]MH_SAM_APDU [10:03:07]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 61 00 00 00 F4 03 04 00 5B 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CD B9 02 00 35 04 06 00 11 4D 09 [10:03:07]Write to MH i2c: E2 02 01 F5 03 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 61 00 00 00 F4 03 04 00 5B 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CD B9 02 00 35 04 06 00 11 4D 09 00 00 FC [10:03:07]Write i2c OK [10:03:07]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [10:03:08]RAPDU: 90 00 [10:03:08]wFMCommunicate OK [10:03:08]wFMCommunicate request_size=8 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 0D 02 02 03 4C 55 B8 [10:03:08]Write to MH i2c: E2 0B 00 F6 03 80 0D 02 02 03 00 4C 55 B8 00 00 D2 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:08]Read from MH i2c: E2 03 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [10:03:08]RAPDU: 90 00 [10:03:08]wFMCommunicate OK [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 0D 03 02 [10:03:08]Write to MH i2c: E2 08 00 F7 03 80 0D 03 02 00 00 00 00 75 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 0B 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 0B 00 F7 03 00 75 19 F2 C4 6C AA 1B 58 90 00 43 [10:03:08]RAPDU: 75 19 F2 C4 6C AA 1B 58 90 00 [10:03:08]wFMCommunicate OK [10:03:08]SAM_PROTO_SignData done [10:03:08]FM_MakeSignedData done [10:03:08]CreateOFDProtocolMessage [10:03:08]wFMCommunicate request_size=4 [10:03:08]MH_SAM_APDU [10:03:08]CAPDU: 80 11 00 00 [10:03:08]Write to MH i2c: E2 08 00 F8 03 80 11 00 00 00 00 00 00 75 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:08]Read from MH i2c: E2 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: E2 17 00 F8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CE [10:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:03:08]wFMCommunicate OK [10:03:08]CreateOFDProtocolMessage done [10:03:08]OFDSenderStorePacket 178637 [10:03:08]StoreOFDPacket docnum=178637 [10:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 07 0C 05 01 88 54 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 61 00 00 00 F4 03 04 00 5B 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CD B9 02 00 35 04 06 00 11 4D 09 4C 55 B8 75 19 F2 C4 6C AA 1B 58 [10:03:08]CheckFolder [10:03:08]dirname=/storage/ofd_packets [10:03:08]CheckFolder done [10:03:08]ProducePacketName [10:03:08]name=ofd_packets/00178637 [10:03:08]NVStorageSaveData ofd_packets/00178637 [10:03:08]File name is /storage/ofd_packets/00178637 [10:03:08]Write 299 bytes [10:03:08]NVStorageSaveData done [10:03:08]OFDSenderStorePacket done [10:03:08]KKMCreateOFDPacket done [10:03:08]NVStorageSaveData kkm_last_timestamp [10:03:08]File name is /storage/kkm_last_timestamp [10:03:08]Write 4 bytes [10:03:08]NVStorageSaveData done [10:03:08]ExternCall_PrintAddStr [10:03:08]wPrintStart [10:03:08]Write to MH i2c: 01 00 00 F9 03 FC [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 F9 03 00 00 00 00 00 FF 0F 11 [10:03:08]RasterBufferAndPrint [10:03:08]line Счет N : (1)294122 [10:03:08]line ИНН: 02508201610067 [10:03:08]line Контрольно-Кассовый Чек [10:03:08]line ПРОДАЖА [10:03:08]line ТРК (МРК, ГНК) : 51 [10:03:08]line Товар: 2710124130 [10:03:08]line SU-92-К-5 [10:03:08]line 14.540 * 68.80 [10:03:08]line = 1000.35 [10:03:08]line НДС 12% НСП 1% [10:03:08]line > о реализуемом товаре [10:03:08]line ОКРУГЛЕНИЕ: -0.35 [10:03:08]line ИТОГО: 1000.00 [10:03:08]line Внесено: 1000.00 [10:03:08]line СДАЧА: 0.00 [10:03:08]line НСП 1% : 8.85 [10:03:08]line НДС 12% : 106.23 [10:03:08]line Наличными: 1000.00 [10:03:08]line Безнал.: 0.00 [10:03:08]line Место: АЗС № 130 "Партнер Нефть" [10:03:08]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:03:08]line СНО: Общий режим [10:03:08]line Чек 97 23.08.2024 10:03 [10:03:08]line Смена: 470 ФФД: 1.0 [10:03:08]line ЗНМ: 0300000071 [10:03:08]line РНМ: 0000000000092561 [10:03:08]line Версия ККМ: 001 [10:03:08]line ФМ: 0000000000871778 [10:03:08]line ФД: 178637 [10:03:08]line ФПД: 19022566151608 [10:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100307&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178637&fm=19022566151608&tin=02508201610067®Number=0000000000092561&sum=100000 [10:03:08]written 0, free lines is 4095 [10:03:08]OFD Sender: Processing packet 178637 [packets to send 498, broken 497] [10:03:08]ProducePacketName [10:03:08]name=ofd_packets/00178637 [10:03:08]OFD Sender: To server: pG, [10:03:08]CommunicateWithHost lk.salyk.kg:30040 [10:03:08]ConnectInit lk.salyk.kg [10:03:08]Write to MH i2c: 01 00 00 24 04 28 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 D4 0C 0F [10:03:08]RasterBufferAndPrint [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]line [10:03:08]written 0, free lines is 3290 [10:03:08]MH_Cut [10:03:08]Write to MH i2c: D1 01 00 2B 04 01 01 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: D1 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: D1 01 00 [10:03:08]MH_I2C_Read... [10:03:08]Read from MH i2c: D1 01 00 2B 04 00 00 [10:03:08]Write to MH i2c: 01 00 00 2C 04 30 [10:03:08]Write i2c OK [10:03:08]MH_I2C_Read... [10:03:09]*** Cut start [10:03:09]*** Partial cut [10:03:09]*** CUTSNS_PIN = 1 [10:03:09]*** CUTSNS_PIN = 0 [10:03:09]*** Brake cut motor [10:03:10]Read from MH i2c: 01 [10:03:10]MH_I2C_Read... [10:03:10]*** Stop cut motor [10:03:10]*** Cut end [10:03:10]Read from MH i2c: 01 07 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: 01 07 00 2C 04 00 00 00 00 00 FF 0F 45 [10:03:10]process_action close_receipt done [10:03:10]requested_data is exist [10:03:10]produce_requested_data [10:03:10]requested_item fm.sn is exist - process it [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 11 00 00 [10:03:10]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 17 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 04 [10:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:03:10]wFMCommunicate OK [10:03:10]requested_item fd.num is exist - process it [10:03:10]SAM_PROTO_GetFieldsCounters [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 13 00 00 [10:03:10]Write to MH i2c: E2 08 00 2E 04 80 13 00 00 00 00 00 00 AE [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 62 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 62 00 2E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CD B9 02 00 0E 04 04 00 D6 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 55 [10:03: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CD B9 02 00 0E 04 04 00 D6 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 [10:03:10]wFMCommunicate OK [10:03:10]SAM_PROTO_GetFieldsCounters done [10:03:10]requested_item shift.num is exist - process it [10:03:10]requested_item shift.opened is exist - process it [10:03:10]req_shift_opened [10:03:10]FM_GetShiftState [10:03:10]SAM_PROTO_GetShiftState [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 13 01 00 [10:03:10]Write to MH i2c: E2 08 00 2F 04 80 13 01 00 00 00 00 00 B0 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:10]Read from MH i2c: E2 0E 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 0E 00 2F 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 87 [10:03:10]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:03:10]wFMCommunicate OK [10:03:10]SAM_PROTO_GetShiftState done [10:03:10]FM_GetShiftState done [10:03:10]req_shift_opened done [10:03:10]requested_item shift.open_date is exist - process it [10:03:10]req_shift_open_date [10:03:10]req_shift_open_date done [10:03:10]produce_requested_data done [10:03:10]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178637,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:03:10]process_action_free close_receipt [10:03:10]json_value_free [10:03:10]json_value_free done [10:03:10]process_json_proto returns [10:03:10]Send response to host [10:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178637,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:03:10]free response buf [10:03:10]execute_script done [10:03:10]execute_script returns [10:03:10]free content buf [10:03:10]Sock 9.Close socket [10:03:10]Sock 9.Thread stoped [10:03:12]Connected sock=11 [10:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 07 0C 05 01 88 54 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 61 00 00 00 F4 03 04 00 5B 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CD B9 02 00 35 04 06 00 11 4D 09 4C 55 B8 75 19 F2 C4 6C AA 1B 58 [10:03:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A0 DE 47 00 F0 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CD B9 02 00 F4 03 04 00 06 0A C8 66 B6 04 01 00 00 81 DC 01 34 63 B8 AA F2 [10:03:15]CommunicateWithHost err = 0 [10:03:15]CheckOFDResponse [10:03:15]1017 (14) - 77093643461234 [10:03:15]1041 (16) - 0000000000871778 [10:03:15]1040 (4) - 178637 [10:03:15]1012 (4) - 23.08.2024 04:03 [10:03:15]1206 (1) - 0 [10:03:15]OFD Sender: Remove packet 178637 [10:03:15]ProducePacketName [10:03:15]name=ofd_packets/00178637 [10:03:15]NVStorageDeleteData [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:15]recv_with_timeout no data received [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:25]accept exits with 7 [10:04:25]New connection [10:04:25]New thread 3067080036 created [10:04:25]Thread 3066936676 joined [10:04:25]Waiting for new connection... [10:04:25] Sock 7.Parse request [10:04:25]Sock 7.Check first char [10:04:25]Sock 7.First char is OK [10:04:25]request: POST /json_proto HTTP/1.0 [10:04:25]Method: POST [10:04:25]URL: /json_proto [10:04:25]Method is POST - this is cgi request [10:04:25]url: /json_proto [10:04:25]query_string will be loaded in cgi processing [10:04:25]execute_cgi json_proto POST (null) [10:04:25]execute_cgi path=json_proto method=POST [10:04:25]POST find Content-Length [10:04:25]Host: 172.17.44.131:8080 [10:04:25]Content-Length: 682 [10:04:25]Content-Type: application/json [10:04:25] [10:04:25]POST finish read [10:04:25]Found Content-Length = 682 [10:04:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:25]execute_script... [10:04:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:25]POST & json_proto [10:04:25]process_json_proto [10:04:25]json parsed OK: [10:04:25]protocol is kg_v1.0 [10:04:25]action value=close_receipt [10:04:25]process_action close_receipt [10:04:25]cmd_close_receipt [10:04:25]MH_GetDate [10:04:25]Write to MH i2c: F0 00 00 30 04 23 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 09 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: F0 09 00 30 04 00 AA 5E C8 66 4F 53 BE 66 28 [10:04:25]GetLastDocTimeStamp 1724407387 [10:04:25]current date 1724407466 [10:04:25]FM_GetShiftState [10:04:25]SAM_PROTO_GetShiftState [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 13 01 00 [10:04:25]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 89 [10:04:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_GetShiftState done [10:04:25]FM_GetShiftState done [10:04:25]opened in 1724371660 [10:04:25]opened+sec_in_day 1724458060 [10:04:25]quantity*price = 100021 [10:04:25]sum+1 = 100023 [10:04:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 98 23.08.2024 10:04 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178638 ФПД: 34381573269369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100426&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178638&fm=34381573269369&tin=02508201610067®Number=0000000000092561&sum=100000 [10:04:26]StoreToDocumentArchive [10:04:26]shift 470 fd 178638 [10:04:26]save to /storage/0470/doc_00178638 [10:04:26]save last doc name /storage/0470/doc_00178638 to /storage/kkm_last_doc_name [10:04:26]save OK [10:04:26]Clear old archive folders... [10:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:26]tlvbuf is 0171AE70 [10:04:26]SAM_PROTO_ClearQueue [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 09 00 00 [10:04:26]Write to MH i2c: E2 08 00 3E 04 80 09 00 00 00 00 00 00 B4 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_ClearQueue done [10:04:26]KKMCreateOFDPacket [10:04:26]OFDProtocolAddRootSTLVToBuf [10:04:26]FM_MakeSignedData [10:04:26]FM_MakeSignedData [10:04:26]SAM_PROTO_SignData [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 01 02 [10:04:26]Write to MH i2c: E2 08 00 3F 04 80 0D 01 02 00 00 00 00 BC [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=255 [10:04:26]MH_SAM_APDU [10:04: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AA 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CE B9 02 00 35 04 06 00 1F [10:04:26]Write to MH i2c: E2 02 01 40 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AA 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CE B9 02 00 35 04 06 00 1F 00 00 83 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]OFD Sender: No OFD packet to send [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=10 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 02 02 05 45 15 76 27 79 [10:04:26]Write to MH i2c: E2 0D 00 41 04 80 0D 02 02 05 00 45 15 76 27 79 00 00 39 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 03 02 [10:04:26]Write to MH i2c: E2 08 00 42 04 80 0D 03 02 00 00 00 00 C1 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 42 04 00 2F 2B E1 AF 30 34 2B 47 90 00 82 [10:04:26]RAPDU: 2F 2B E1 AF 30 34 2B 47 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_SignData done [10:04:26]FM_MakeSignedData done [10:04:26]CreateOFDProtocolMessage [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 11 00 00 [10:04:26]Write to MH i2c: E2 08 00 43 04 80 11 00 00 00 00 00 00 C1 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 43 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1A [10:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:04:26]wFMCommunicate OK [10:04:26]CreateOFDProtocolMessage done [10:04:26]OFDSenderStorePacket 178638 [10:04:26]StoreOFDPacket docnum=178638 [10:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 55 D2 07 01 3C 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AA 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CE B9 02 00 35 04 06 00 1F 45 15 76 27 79 2F 2B E1 AF 30 34 2B 47 [10:04:26]CheckFolder [10:04:26]dirname=/storage/ofd_packets [10:04:26]CheckFolder done [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00178638 [10:04:26]NVStorageSaveData ofd_packets/00178638 [10:04:26]File name is /storage/ofd_packets/00178638 [10:04:26]Write 301 bytes [10:04:26]NVStorageSaveData done [10:04:26]OFDSenderStorePacket done [10:04:26]KKMCreateOFDPacket done [10:04:26]NVStorageSaveData kkm_last_timestamp [10:04:26]File name is /storage/kkm_last_timestamp [10:04:26]Write 4 bytes [10:04:26]NVStorageSaveData done [10:04:26]ExternCall_PrintAddStr [10:04:26]wPrintStart [10:04:26]Write to MH i2c: 01 00 00 44 04 48 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 44 04 00 00 00 00 00 FF 0F 5D [10:04:26]RasterBufferAndPrint [10:04:26]line Счет N : (1)294125 [10:04:26]line ИНН: 02508201610067 [10:04:26]line Контрольно-Кассовый Чек [10:04:26]line ПРОДАЖА [10:04:26]line ТРК (МРК, ГНК) : 33 [10:04:26]line Товар: 2710124500 [10:04:26]line Аи-95-К-5 [10:04:26]line 13.480 * 74.20 [10:04:26]line = 1000.22 [10:04:26]line НДС 12% НСП 1% [10:04:26]line > о реализуемом товаре [10:04:26]line ОКРУГЛЕНИЕ: -0.22 [10:04:26]line ИТОГО: 1000.00 [10:04:26]line Внесено: 1000.00 [10:04:26]line СДАЧА: 0.00 [10:04:26]line НСП 1% : 8.85 [10:04:26]line НДС 12% : 106.22 [10:04:26]line Наличными: 1000.00 [10:04:26]line Безнал.: 0.00 [10:04:26]line Место: АЗС № 130 "Партнер Нефть" [10:04:26]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:04:26]line СНО: Общий режим [10:04:26]line Чек 98 23.08.2024 10:04 [10:04:26]line Смена: 470 ФФД: 1.0 [10:04:26]line ЗНМ: 0300000071 [10:04:26]line РНМ: 0000000000092561 [10:04:26]line Версия ККМ: 001 [10:04:26]line ФМ: 0000000000871778 [10:04:26]line ФД: 178638 [10:04:26]line ФПД: 34381573269369 [10:04:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100426&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178638&fm=34381573269369&tin=02508201610067®Number=0000000000092561&sum=100000 [10:04:27]OFD Sender: Processing packet 178638 [packets to send 498, broken 497] [10:04:27]ProducePacketName [10:04:27]name=ofd_packets/00178638 [10:04:27]OFD Sender: To server: pG, [10:04:27]CommunicateWithHost lk.salyk.kg:30040 [10:04:27]ConnectInit lk.salyk.kg [10:04:27]written 0, free lines is 4095 [10:04:27]Write to MH i2c: 01 00 00 6F 04 73 [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 D6 0C 5C [10:04:27]RasterBufferAndPrint [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]written 0, free lines is 3293 [10:04:27]MH_Cut [10:04:27]Write to MH i2c: D1 01 00 76 04 01 4C [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 01 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 01 00 76 04 00 4B [10:04:27]Write to MH i2c: 01 00 00 77 04 7B [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:28]*** Cut start [10:04:28]*** Partial cut [10:04:28]*** CUTSNS_PIN = 1 [10:04:28]*** CUTSNS_PIN = 0 [10:04:28]*** Brake cut motor [10:04:29]Read from MH i2c: 01 [10:04:29]MH_I2C_Read... [10:04:29]*** Stop cut motor [10:04:29]*** Cut end [10:04:29]Read from MH i2c: 01 07 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: 01 07 00 77 04 00 00 00 00 00 FF 0F 90 [10:04:29]process_action close_receipt done [10:04:29]requested_data is exist [10:04:29]produce_requested_data [10:04:29]requested_item fm.sn is exist - process it [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 11 00 00 [10:04:29]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 17 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4F [10:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:04:29]wFMCommunicate OK [10:04:29]requested_item fd.num is exist - process it [10:04:29]SAM_PROTO_GetFieldsCounters [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 00 00 [10:04:29]Write to MH i2c: E2 08 00 79 04 80 13 00 00 00 00 00 00 F9 [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 62 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 62 00 79 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CE B9 02 00 0E 04 04 00 D6 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 A4 [10:04:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CE B9 02 00 0E 04 04 00 D6 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 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetFieldsCounters done [10:04:29]requested_item shift.num is exist - process it [10:04:29]requested_item shift.opened is exist - process it [10:04:29]req_shift_opened [10:04:29]FM_GetShiftState [10:04:29]SAM_PROTO_GetShiftState [10:04:29]wFMCommunicate request_size=4 [10:04:29]MH_SAM_APDU [10:04:29]CAPDU: 80 13 01 00 [10:04:29]Write to MH i2c: E2 08 00 7A 04 80 13 01 00 00 00 00 00 FB [10:04:29]Write i2c OK [10:04:29]MH_I2C_Read... [10:04:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:29]Read from MH i2c: E2 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 [10:04:29]MH_I2C_Read... [10:04:29]Read from MH i2c: E2 0E 00 7A 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D2 [10:04:29]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:04:29]wFMCommunicate OK [10:04:29]SAM_PROTO_GetShiftState done [10:04:29]FM_GetShiftState done [10:04:29]req_shift_opened done [10:04:29]requested_item shift.open_date is exist - process it [10:04:29]req_shift_open_date [10:04:29]req_shift_open_date done [10:04:29]produce_requested_data done [10:04:29]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178638,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:04:29]process_action_free close_receipt [10:04:29]json_value_free [10:04:29]json_value_free done [10:04:29]process_json_proto returns [10:04:29]Send response to host [10:04:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178638,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:04:29]free response buf [10:04:29]execute_script done [10:04:29]execute_script returns [10:04:29]free content buf [10:04:29]Sock 7.Close socket [10:04:29]Sock 7.Thread stoped [10:04:32]ConnectInit Can't take IP for lk.salyk.kg [10:04:32]CommunicateWithHost connect error [10:04:32]CommunicateWithHost err = -1 [10:04:32]OFD Sender: Server communicate error [10:04:37]OFD Sender: Processing packet 178638 [packets to send 498, broken 497] [10:04:37]ProducePacketName [10:04:37]name=ofd_packets/00178638 [10:04:37]OFD Sender: To server: pG, [10:04:37]CommunicateWithHost lk.salyk.kg:30040 [10:04:37]ConnectInit lk.salyk.kg [10:04:37]Connected sock=7 [10:04:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 55 D2 07 01 3C 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 AA 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CE B9 02 00 35 04 06 00 1F 45 15 76 27 79 2F 2B E1 AF 30 34 2B 47 [10:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B4 56 47 00 99 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 31 37 37 38 10 04 04 00 CE B9 02 00 F4 03 04 00 5B 0A C8 66 B6 04 01 00 00 91 F7 F7 22 F2 70 F1 44 [10:04:39]CommunicateWithHost err = 0 [10:04:39]CheckOFDResponse [10:04:39]1017 (14) - 77093643461234 [10:04:39]1041 (16) - 0000000000871778 [10:04:39]1040 (4) - 178638 [10:04:39]1012 (4) - 23.08.2024 04:04 [10:04:39]1206 (1) - 0 [10:04:39]OFD Sender: Remove packet 178638 [10:04:39]ProducePacketName [10:04:39]name=ofd_packets/00178638 [10:04:39]NVStorageDeleteData [10:04:39]OFD Sender: No OFD packet to send [10:04:42]accept exits with 10 [10:04:42]New connection [10:04:42]New thread 3066936676 created [10:04:42]Thread 3067080036 joined [10:04:42]Waiting for new connection... [10:04:42] Sock 10.Parse request [10:04:42]Sock 10.Check first char [10:04:42]Sock 10.First char is OK [10:04:42]request: POST /json_proto HTTP/1.0 [10:04:42]Method: POST [10:04:42]URL: /json_proto [10:04:42]Method is POST - this is cgi request [10:04:42]url: /json_proto [10:04:42]query_string will be loaded in cgi processing [10:04:42]execute_cgi json_proto POST (null) [10:04:42]execute_cgi path=json_proto method=POST [10:04:42]POST find Content-Length [10:04:42]Host: 172.17.44.131:8080 [10:04:42]Content-Length: 800 [10:04:42]Content-Type: application/json [10:04:42] [10:04:42]POST finish read [10:04:42]Found Content-Length = 800 [10:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:42]execute_script... [10:04: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)294124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:42]POST & json_proto [10:04:42]process_json_proto [10:04:42]json parsed OK: [10:04:42]protocol is kg_v1.0 [10:04:42]action value=close_receipt [10:04:42]process_action close_receipt [10:04:42]cmd_close_receipt [10:04:42]MH_GetDate [10:04:42]Write to MH i2c: F0 00 00 7B 04 6E [10:04:42]Write i2c OK [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: F0 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: F0 09 00 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: F0 09 00 7B 04 00 BB 5E C8 66 4F 53 BE 66 84 [10:04:42]GetLastDocTimeStamp 1724407466 [10:04:42]current date 1724407483 [10:04:42]FM_GetShiftState [10:04:42]SAM_PROTO_GetShiftState [10:04:42]wFMCommunicate request_size=4 [10:04:42]MH_SAM_APDU [10:04:42]CAPDU: 80 13 01 00 [10:04:42]Write to MH i2c: E2 08 00 7C 04 80 13 01 00 00 00 00 00 FD [10:04:42]Write i2c OK [10:04:42]MH_I2C_Read... [10:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:42]Read from MH i2c: E2 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: E2 0E 00 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: E2 0E 00 7C 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D4 [10:04:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:04:42]wFMCommunicate OK [10:04:42]SAM_PROTO_GetShiftState done [10:04:42]FM_GetShiftState done [10:04:42]opened in 1724371660 [10:04:42]opened+sec_in_day 1724458060 [10:04:42]quantity*price = 300075 [10:04:42]sum+1 = 300077 [10:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 99 23.08.2024 10:04 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178639 ФПД: 20357538406938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100443&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178639&fm=20357538406938&tin=02508201610067®Number=0000000000092561&sum=300076 [10:04:43]StoreToDocumentArchive [10:04:43]shift 470 fd 178639 [10:04:43]save to /storage/0470/doc_00178639 [10:04:43]save last doc name /storage/0470/doc_00178639 to /storage/kkm_last_doc_name [10:04:43]save OK [10:04:43]Clear old archive folders... [10:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:43]tlvbuf is 0173DA30 [10:04:43]SAM_PROTO_ClearQueue [10:04:43]wFMCommunicate request_size=4 [10:04:43]MH_SAM_APDU [10:04:43]CAPDU: 80 09 00 00 [10:04:43]Write to MH i2c: E2 08 00 89 04 80 09 00 00 00 00 00 00 FF [10:04:43]Write i2c OK [10:04:43]MH_I2C_Read... [10:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:43]Read from MH i2c: E2 [10:04:43]MH_I2C_Read... [10:04:43]Read from MH i2c: E2 03 00 [10:04:43]MH_I2C_Read... [10:04:43]Read from MH i2c: E2 03 00 89 04 00 90 00 01 [10:04:43]RAPDU: 90 00 [10:04:43]wFMCommunicate OK [10:04:43]SAM_PROTO_ClearQueue done [10:04:43]KKMCreateOFDPacket [10:04:43]OFDProtocolAddRootSTLVToBuf [10:04:43]FM_MakeSignedData [10:04:43]FM_MakeSignedData [10:04:43]SAM_PROTO_SignData [10:04:43]wFMCommunicate request_size=4 [10:04:43]MH_SAM_APDU [10:04:43]CAPDU: 80 0D 01 02 [10:04:43]Write to MH i2c: E2 08 00 8A 04 80 0D 01 02 00 00 00 00 07 [10:04:43]Write i2c OK [10:04:43]MH_I2C_Read... [10:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:43]Read from MH i2c: E2 [10:04:43]MH_I2C_Read... [10:04:43]Read from MH i2c: E2 03 00 [10:04:43]MH_I2C_Read... [10:04:43]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [10:04:43]RAPDU: 90 00 [10:04:43]wFMCommunicate OK [10:04:43]wFMCommunicate request_size=255 [10:04:43]MH_SAM_APDU [10:04:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BB 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CF B9 02 00 35 04 06 00 12 83 DB D8 [10:04:43]Write to MH i2c: E2 02 01 8B 04 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BB 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CF B9 02 00 35 04 06 00 12 83 DB D8 00 00 B9 [10:04:43]Write i2c OK [10:04:43]MH_I2C_Read... [10:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:44]Read from MH i2c: E2 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 03 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [10:04:44]RAPDU: 90 00 [10:04:44]wFMCommunicate OK [10:04:44]wFMCommunicate request_size=7 [10:04:44]MH_SAM_APDU [10:04:44]CAPDU: 80 0D 02 02 02 62 1A [10:04:44]Write to MH i2c: E2 0A 00 8C 04 80 0D 02 02 02 00 62 1A 00 00 8A [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:44]Read from MH i2c: E2 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 03 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [10:04:44]RAPDU: 90 00 [10:04:44]wFMCommunicate OK [10:04:44]wFMCommunicate request_size=4 [10:04:44]MH_SAM_APDU [10:04:44]CAPDU: 80 0D 03 02 [10:04:44]Write to MH i2c: E2 08 00 8D 04 80 0D 03 02 00 00 00 00 0C [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:44]Read from MH i2c: E2 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 0B 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 0B 00 8D 04 00 61 FD 0B EA 5E 56 F2 0E 90 00 14 [10:04:44]RAPDU: 61 FD 0B EA 5E 56 F2 0E 90 00 [10:04:44]wFMCommunicate OK [10:04:44]SAM_PROTO_SignData done [10:04:44]FM_MakeSignedData done [10:04:44]CreateOFDProtocolMessage [10:04:44]wFMCommunicate request_size=4 [10:04:44]MH_SAM_APDU [10:04:44]CAPDU: 80 11 00 00 [10:04:44]Write to MH i2c: E2 08 00 8E 04 80 11 00 00 00 00 00 00 0C [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:44]Read from MH i2c: E2 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 17 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: E2 17 00 8E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 65 [10:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:04:44]wFMCommunicate OK [10:04:44]CreateOFDProtocolMessage done [10:04:44]OFDSenderStorePacket 178639 [10:04:44]StoreOFDPacket docnum=178639 [10:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 20 F2 04 01 B0 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BB 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CF B9 02 00 35 04 06 00 12 83 DB D8 62 1A 61 FD 0B EA 5E 56 F2 0E [10:04:44]CheckFolder [10:04:44]dirname=/storage/ofd_packets [10:04:44]CheckFolder done [10:04:44]ProducePacketName [10:04:44]name=ofd_packets/00178639 [10:04:44]NVStorageSaveData ofd_packets/00178639 [10:04:44]File name is /storage/ofd_packets/00178639 [10:04:44]Write 298 bytes [10:04:44]NVStorageSaveData done [10:04:44]OFDSenderStorePacket done [10:04:44]KKMCreateOFDPacket done [10:04:44]NVStorageSaveData kkm_last_timestamp [10:04:44]File name is /storage/kkm_last_timestamp [10:04:44]Write 4 bytes [10:04:44]NVStorageSaveData done [10:04:44]ExternCall_PrintAddStr [10:04:44]wPrintStart [10:04:44]Write to MH i2c: 01 00 00 8F 04 93 [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: 01 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: 01 07 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: 01 07 00 8F 04 00 00 00 00 00 FF 0F A8 [10:04:44]RasterBufferAndPrint [10:04:44]line Счет N : (1)294124 [10:04:44]line ИНН: 02508201610067 [10:04:44]line Контрольно-Кассовый Чек [10:04:44]line ПРОДАЖА [10:04:44]line ТРК (МРК, ГНК) : 11 [10:04:44]line Товар: 2710194800 [10:04:44]line ДТ-К-5 [10:04:44]line 39.380 * 76.20 [10:04:44]line = 3000.76 [10:04:44]line НДС 12% НСП 1% [10:04:44]line > о реализуемом товаре [10:04:44]line ИТОГО: 3000.76 [10:04:44]line НСП 1% : 26.55 [10:04:44]line НДС 12% : 318.66 [10:04:44]line Наличными: 0.00 [10:04:44]line Безнал.: 3000.76 [10:04:44]line Место: АЗС № 130 "Партнер Нефть" [10:04:44]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:04:44]line СНО: Общий режим [10:04:44]line Чек 99 23.08.2024 10:04 [10:04:44]line Смена: 470 ФФД: 1.0 [10:04:44]line ЗНМ: 0300000071 [10:04:44]line РНМ: 0000000000092561 [10:04:44]line Версия ККМ: 001 [10:04:44]line Платежная система: O! деньги [10:04:44]line ФМ: 0000000000871778 [10:04:44]line ФД: 178639 [10:04:44]line ФПД: 20357538406938 [10:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T100443&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178639&fm=20357538406938&tin=02508201610067®Number=0000000000092561&sum=300076 [10:04:44]written 0, free lines is 4095 [10:04:44]OFD Sender: Processing packet 178639 [packets to send 498, broken 497] [10:04:44]ProducePacketName [10:04:44]name=ofd_packets/00178639 [10:04:44]OFD Sender: To server: pG, [10:04:44]CommunicateWithHost lk.salyk.kg:30040 [10:04:44]ConnectInit lk.salyk.kg [10:04:44]Write to MH i2c: 01 00 00 B9 04 BD [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: 01 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: 01 07 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: 01 07 00 B9 04 00 00 00 00 00 F5 0C C5 [10:04:44]RasterBufferAndPrint [10:04:44]line [10:04:44]line [10:04:44]line [10:04:44]line [10:04:44]line [10:04:44]written 0, free lines is 3332 [10:04:44]MH_Cut [10:04:44]Write to MH i2c: D1 01 00 C0 04 01 96 [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: D1 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: D1 01 00 [10:04:44]MH_I2C_Read... [10:04:44]Read from MH i2c: D1 01 00 C0 04 00 95 [10:04:44]Write to MH i2c: 01 00 00 C1 04 C5 [10:04:44]Write i2c OK [10:04:44]MH_I2C_Read... [10:04:45]*** Cut start [10:04:45]*** Partial cut [10:04:45]*** CUTSNS_PIN = 1 [10:04:45]*** CUTSNS_PIN = 0 [10:04:45]*** Brake cut motor [10:04:45]Read from MH i2c: 01 [10:04:45]MH_I2C_Read... [10:04:45]*** Stop cut motor [10:04:46]*** Cut end [10:04:46]Read from MH i2c: 01 07 00 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: 01 07 00 C1 04 00 00 00 00 00 FF 0F DA [10:04:46]process_action close_receipt done [10:04:46]requested_data is exist [10:04:46]produce_requested_data [10:04:46]requested_item fm.sn is exist - process it [10:04:46]wFMCommunicate request_size=4 [10:04:46]MH_SAM_APDU [10:04:46]CAPDU: 80 11 00 00 [10:04:46]Write to MH i2c: E2 08 00 C2 04 80 11 00 00 00 00 00 00 40 [10:04:46]Write i2c OK [10:04:46]MH_I2C_Read... [10:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:46]Read from MH i2c: E2 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: E2 17 00 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: E2 17 00 C2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 99 [10:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:04:46]wFMCommunicate OK [10:04:46]requested_item fd.num is exist - process it [10:04:46]SAM_PROTO_GetFieldsCounters [10:04:46]wFMCommunicate request_size=4 [10:04:46]MH_SAM_APDU [10:04:46]CAPDU: 80 13 00 00 [10:04:46]Write to MH i2c: E2 08 00 C3 04 80 13 00 00 00 00 00 00 43 [10:04:46]Write i2c OK [10:04:46]MH_I2C_Read... [10:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:46]Read from MH i2c: E2 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: E2 62 00 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: E2 62 00 C3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CF B9 02 00 0E 04 04 00 D6 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 F2 [10:04: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 CF B9 02 00 0E 04 04 00 D6 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 [10:04:46]wFMCommunicate OK [10:04:46]SAM_PROTO_GetFieldsCounters done [10:04:46]requested_item shift.num is exist - process it [10:04:46]requested_item shift.opened is exist - process it [10:04:46]req_shift_opened [10:04:46]FM_GetShiftState [10:04:46]SAM_PROTO_GetShiftState [10:04:46]wFMCommunicate request_size=4 [10:04:46]MH_SAM_APDU [10:04:46]CAPDU: 80 13 01 00 [10:04:46]Write to MH i2c: E2 08 00 C4 04 80 13 01 00 00 00 00 00 45 [10:04:46]Write i2c OK [10:04:46]MH_I2C_Read... [10:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:46]Read from MH i2c: E2 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: E2 0E 00 [10:04:46]MH_I2C_Read... [10:04:46]Read from MH i2c: E2 0E 00 C4 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1C [10:04:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:04:46]wFMCommunicate OK [10:04:46]SAM_PROTO_GetShiftState done [10:04:46]FM_GetShiftState done [10:04:46]req_shift_opened done [10:04:46]requested_item shift.open_date is exist - process it [10:04:46]req_shift_open_date [10:04:46]req_shift_open_date done [10:04:46]produce_requested_data done [10:04:46]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178639,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:04:46]process_action_free close_receipt [10:04:46]json_value_free [10:04:46]json_value_free done [10:04:46]process_json_proto returns [10:04:46]Send response to host [10:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178639,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:04:46]free response buf [10:04:46]execute_script done [10:04:46]execute_script returns [10:04:46]free content buf [10:04:46]Sock 10.Close socket [10:04:46]Sock 10.Thread stoped [10:04:48]Connected sock=11 [10:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 20 F2 04 01 B0 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 BB 5E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 CF B9 02 00 35 04 06 00 12 83 DB D8 62 1A 61 FD 0B EA 5E 56 F2 0E [10:04:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F4 A2 47 00 3D 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 31 37 37 38 10 04 04 00 CF B9 02 00 F4 03 04 00 66 0A C8 66 B6 04 01 00 00 E6 E8 00 3A BB 94 5A D6 [10:04:48]CommunicateWithHost err = 0 [10:04:48]CheckOFDResponse [10:04:48]1017 (14) - 77093643461234 [10:04:48]1041 (16) - 0000000000871778 [10:04:48]1040 (4) - 178639 [10:04:48]1012 (4) - 23.08.2024 04:04 [10:04:48]1206 (1) - 0 [10:04:48]OFD Sender: Remove packet 178639 [10:04:48]ProducePacketName [10:04:48]name=ofd_packets/00178639 [10:04:48]NVStorageDeleteData [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:28]recv_with_timeout no data received [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:50]recv_with_timeout no data received [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [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:13]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:55]recv_with_timeout no data received [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:06]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:15]recv_with_timeout no data received [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:38]recv_with_timeout no data received [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:24]recv_with_timeout no data received [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:41]recv_with_timeout no data received [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]recv_with_timeout no data received [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:36]recv_with_timeout no data received [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:50]OFD Sender: No OFD packet to send [10:14:55]OFD Sender: No OFD packet to send [10:15:00]OFD Sender: No OFD packet to send [10:15:05]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:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]recv_with_timeout no data received [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:06]recv_with_timeout no data received [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:18]recv_with_timeout no data received [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:37]recv_with_timeout no data received [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:21:01]OFD Sender: No OFD packet to send [10:21:03]recv_with_timeout no data received [10:21:06]OFD Sender: No OFD packet to send [10:21:11]OFD Sender: No OFD packet to send [10:21:16]OFD Sender: No OFD packet to send [10:21:21]OFD Sender: No OFD packet to send [10:21:26]OFD Sender: No OFD packet to send [10:21:31]OFD Sender: No OFD packet to send [10:21:36]OFD Sender: No OFD packet to send [10:21:40]recv_with_timeout no data received [10:21:41]OFD Sender: No OFD packet to send [10:21:46]OFD Sender: No OFD packet to send [10:21:51]OFD Sender: No OFD packet to send [10:21:56]OFD Sender: No OFD packet to send [10:22:01]OFD Sender: No OFD packet to send [10:22:06]OFD Sender: No OFD packet to send [10:22:11]OFD Sender: No OFD packet to send [10:22:16]OFD Sender: No OFD packet to send [10:22:21]OFD Sender: No OFD packet to send [10:22:26]OFD Sender: No OFD packet to send [10:22:31]OFD Sender: No OFD packet to send [10:22:36]OFD Sender: No OFD packet to send [10:22:41]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:23:57]recv_with_timeout no data received [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28:07]OFD Sender: No OFD packet to send [10:28:12]OFD Sender: No OFD packet to send [10:28:17]OFD Sender: No OFD packet to send [10:28:17]recv_with_timeout no data received [10:28:22]OFD Sender: No OFD packet to send [10:28:27]OFD Sender: No OFD packet to send [10:28:32]OFD Sender: No OFD packet to send [10:28:37]OFD Sender: No OFD packet to send [10:28:42]OFD Sender: No OFD packet to send [10:28:47]OFD Sender: No OFD packet to send [10:28:52]OFD Sender: No OFD packet to send [10:28:57]OFD Sender: No OFD packet to send [10:28:59]recv_with_timeout no data received [10:29:02]OFD Sender: No OFD packet to send [10:29:07]OFD Sender: No OFD packet to send [10:29:12]recv_with_timeout no data received [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:27]OFD Sender: No OFD packet to send [10:29:29]recv_with_timeout no data received [10:29:32]OFD Sender: No OFD packet to send [10:29:37]OFD Sender: No OFD packet to send [10:29:42]OFD Sender: No OFD packet to send [10:29:47]recv_with_timeout no data received [10:29:47]OFD Sender: No OFD packet to send [10:29:52]OFD Sender: No OFD packet to send [10:29:57]OFD Sender: No OFD packet to send [10:30:07]OFD Sender: No OFD packet to send [10:30:12]OFD Sender: No OFD packet to send [10:30:17]OFD Sender: No OFD packet to send [10:30:22]OFD Sender: No OFD packet to send [10:30:27]OFD Sender: No OFD packet to send [10:30:32]OFD Sender: No OFD packet to send [10:30:37]OFD Sender: No OFD packet to send [10:30:42]OFD Sender: No OFD packet to send [10:30:47]OFD Sender: No OFD packet to send [10:30:52]recv_with_timeout no data received [10:30:52]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:06]recv_with_timeout no data received [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:44]recv_with_timeout no data received [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:11]accept exits with 7 [10:35:11]New connection [10:35:11]New thread 3067080036 created [10:35:11]Thread 3066936676 joined [10:35:11]Waiting for new connection... [10:35:11] Sock 7.Parse request [10:35:11]Sock 7.Check first char [10:35:11]Sock 7.First char is OK [10:35:11]request: POST /json_proto HTTP/1.0 [10:35:11]Method: POST [10:35:11]URL: /json_proto [10:35:11]Method is POST - this is cgi request [10:35:11]url: /json_proto [10:35:11]query_string will be loaded in cgi processing [10:35:11]execute_cgi json_proto POST (null) [10:35:11]execute_cgi path=json_proto method=POST [10:35:11]POST find Content-Length [10:35:11]Host: 172.17.44.131:8080 [10:35:11]Content-Length: 677 [10:35:11]Content-Type: application/json [10:35:11] [10:35:11]POST finish read [10:35:11]Found Content-Length = 677 [10:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:11]execute_script... [10:35: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)294154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:11]POST & json_proto [10:35:11]process_json_proto [10:35:11]json parsed OK: [10:35:11]protocol is kg_v1.0 [10:35:11]action value=close_receipt [10:35:11]process_action close_receipt [10:35:11]cmd_close_receipt [10:35:11]MH_GetDate [10:35:11]Write to MH i2c: F0 00 00 C5 04 B8 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: F0 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: F0 09 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: F0 09 00 C5 04 00 E0 65 C8 66 4F 53 BE 66 FA [10:35:11]GetLastDocTimeStamp 1724407483 [10:35:11]current date 1724409312 [10:35:11]FM_GetShiftState [10:35:11]SAM_PROTO_GetShiftState [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 13 01 00 [10:35:11]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:11]Read from MH i2c: E2 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 0E 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1E [10:35:11]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:35:11]wFMCommunicate OK [10:35:11]SAM_PROTO_GetShiftState done [10:35:11]FM_GetShiftState done [10:35:11]opened in 1724371660 [10:35:11]opened+sec_in_day 1724458060 [10:35:11]quantity*price = 50010 [10:35:11]sum+1 = 50012 [10:35:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 100 23.08.2024 10:35 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178640 ФПД: 276143572375999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T103512&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178640&fm=276143572375999&tin=02508201610067®Number=0000000000092561&sum=50000 [10:35:12]StoreToDocumentArchive [10:35:12]shift 470 fd 178640 [10:35:12]save to /storage/0470/doc_00178640 [10:35:12]save last doc name /storage/0470/doc_00178640 to /storage/kkm_last_doc_name [10:35:12]save OK [10:35:12]Clear old archive folders... [10:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:12]tlvbuf is 0173EF60 [10:35:12]SAM_PROTO_ClearQueue [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 09 00 00 [10:35:12]Write to MH i2c: E2 08 00 D3 04 80 09 00 00 00 00 00 00 49 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 03 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 03 00 D3 04 00 90 00 4B [10:35:12]RAPDU: 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_ClearQueue done [10:35:12]KKMCreateOFDPacket [10:35:12]OFDProtocolAddRootSTLVToBuf [10:35:12]FM_MakeSignedData [10:35:12]FM_MakeSignedData [10:35:12]SAM_PROTO_SignData [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 0D 01 02 [10:35:12]Write to MH i2c: E2 08 00 D4 04 80 0D 01 02 00 00 00 00 51 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 03 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 03 00 D4 04 00 90 00 4C [10:35:12]RAPDU: 90 00 [10:35:12]wFMCommunicate OK [10:35:12]wFMCommunicate request_size=255 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 E0 65 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D0 B9 02 00 35 04 06 00 FB [10:35:12]Write to MH i2c: E2 02 01 D5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 E0 65 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D0 B9 02 00 35 04 06 00 FB 00 00 F0 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [10:35:13]RAPDU: 90 00 [10:35:13]wFMCommunicate OK [10:35:13]wFMCommunicate request_size=10 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 0D 02 02 05 26 AF 89 D9 BF [10:35:13]Write to MH i2c: E2 0D 00 D6 04 80 0D 02 02 05 00 26 AF 89 D9 BF 00 00 54 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [10:35:13]RAPDU: 90 00 [10:35:13]wFMCommunicate OK [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 0D 03 02 [10:35:13]Write to MH i2c: E2 08 00 D7 04 80 0D 03 02 00 00 00 00 56 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 0B 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 0B 00 D7 04 00 8A 3D FF 44 E0 27 C8 E0 90 00 10 [10:35:13]RAPDU: 8A 3D FF 44 E0 27 C8 E0 90 00 [10:35:13]wFMCommunicate OK [10:35:13]SAM_PROTO_SignData done [10:35:13]FM_MakeSignedData done [10:35:13]CreateOFDProtocolMessage [10:35:13]wFMCommunicate request_size=4 [10:35:13]MH_SAM_APDU [10:35:13]CAPDU: 80 11 00 00 [10:35:13]Write to MH i2c: E2 08 00 D8 04 80 11 00 00 00 00 00 00 56 [10:35:13]Write i2c OK [10:35:13]MH_I2C_Read... [10:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:13]Read from MH i2c: E2 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 17 00 [10:35:13]MH_I2C_Read... [10:35:13]Read from MH i2c: E2 17 00 D8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [10:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:35:13]wFMCommunicate OK [10:35:13]CreateOFDProtocolMessage done [10:35:13]OFDSenderStorePacket 178640 [10:35:13]StoreOFDPacket docnum=178640 [10:38:59]OFD Sender: No OFD packet to send [10:38:59]ConnectInit Can't connect to host [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:55]recv_with_timeout no data received [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]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:02]accept exits with 9 [10:45:02]New connection [10:45:02]New thread 3066936676 created [10:45:02]Thread 3067080036 joined [10:45:02]Waiting for new connection... [10:45:02] Sock 9.Parse request [10:45:02]Sock 9.Check first char [10:45:02]Sock 9.First char is OK [10:45:02]request: POST /json_proto HTTP/1.0 [10:45:02]Method: POST [10:45:02]URL: /json_proto [10:45:02]Method is POST - this is cgi request [10:45:02]url: /json_proto [10:45:02]query_string will be loaded in cgi processing [10:45:02]execute_cgi json_proto POST (null) [10:45:02]execute_cgi path=json_proto method=POST [10:45:02]POST find Content-Length [10:45:02]Host: 172.17.44.131:8080 [10:45:02]Content-Length: 800 [10:45:02]Content-Type: application/json [10:45:02] [10:45:02]POST finish read [10:45:02]Found Content-Length = 800 [10:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294164", "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" : 67.80, "quantity" : 8.850, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:02]execute_script... [10:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294164", "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" : 67.80, "quantity" : 8.850, "sum" : 600.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:02]POST & json_proto [10:45:02]process_json_proto [10:45:02]json parsed OK: [10:45:02]protocol is kg_v1.0 [10:45:02]action value=close_receipt [10:45:02]process_action close_receipt [10:45:02]cmd_close_receipt [10:45:02]MH_GetDate [10:45:02]Write to MH i2c: F0 00 00 10 05 04 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: F0 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: F0 09 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: F0 09 00 10 05 00 2F 68 C8 66 4F 53 BE 66 98 [10:45:02]GetLastDocTimeStamp 1724409312 [10:45:02]current date 1724409903 [10:45:02]FM_GetShiftState [10:45:02]SAM_PROTO_GetShiftState [10:45:02]wFMCommunicate request_size=4 [10:45:02]MH_SAM_APDU [10:45:02]CAPDU: 80 13 01 00 [10:45:02]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [10:45:02]Write i2c OK [10:45:02]MH_I2C_Read... [10:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:02]Read from MH i2c: E2 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: E2 0E 00 [10:45:02]MH_I2C_Read... [10:45:02]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 6A [10:45:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:45:02]wFMCommunicate OK [10:45:02]SAM_PROTO_GetShiftState done [10:45:02]FM_GetShiftState done [10:45:02]opened in 1724371660 [10:45:02]opened+sec_in_day 1724458060 [10:45:02]quantity*price = 60003 [10:45:02]sum+1 = 60004 [10:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 101 23.08.2024 10:45 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178641 ФПД: 36861316544657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T104503&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178641&fm=36861316544657&tin=02508201610067®Number=0000000000092561&sum=60003 [10:45:03]StoreToDocumentArchive [10:45:03]shift 470 fd 178641 [10:45:03]save to /storage/0470/doc_00178641 [10:45:03]save last doc name /storage/0470/doc_00178641 to /storage/kkm_last_doc_name [10:45:03]save OK [10:45:03]Clear old archive folders... [10:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:03]tlvbuf is 0174EA80 [10:45:03]SAM_PROTO_ClearQueue [10:45:03]wFMCommunicate request_size=4 [10:45:03]MH_SAM_APDU [10:45:03]CAPDU: 80 09 00 00 [10:45:03]Write to MH i2c: E2 08 00 1E 05 80 09 00 00 00 00 00 00 95 [10:45:03]Write i2c OK [10:45:03]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 1E 05 00 90 00 97 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_ClearQueue done [10:45:04]KKMCreateOFDPacket [10:45:04]OFDProtocolAddRootSTLVToBuf [10:45:04]FM_MakeSignedData [10:45:04]FM_MakeSignedData [10:45:04]SAM_PROTO_SignData [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 01 02 [10:45:04]Write to MH i2c: E2 08 00 1F 05 80 0D 01 02 00 00 00 00 9D [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 1F 05 00 90 00 98 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]wFMCommunicate request_size=255 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2F 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D1 B9 02 00 35 04 06 00 21 [10:45:04]Write to MH i2c: E2 02 01 20 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2F 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D1 B9 02 00 35 04 06 00 21 00 00 9B [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]wFMCommunicate request_size=10 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 02 02 05 86 71 AD B8 91 [10:45:04]Write to MH i2c: E2 0D 00 21 05 80 0D 02 02 05 00 86 71 AD B8 91 00 00 97 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [10:45:04]RAPDU: 90 00 [10:45:04]wFMCommunicate OK [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 0D 03 02 [10:45:04]Write to MH i2c: E2 08 00 22 05 80 0D 03 02 00 00 00 00 A2 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 0B 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 0B 00 22 05 00 D5 B3 95 B9 A0 3D E1 AE 90 00 E5 [10:45:04]RAPDU: D5 B3 95 B9 A0 3D E1 AE 90 00 [10:45:04]wFMCommunicate OK [10:45:04]SAM_PROTO_SignData done [10:45:04]FM_MakeSignedData done [10:45:04]CreateOFDProtocolMessage [10:45:04]wFMCommunicate request_size=4 [10:45:04]MH_SAM_APDU [10:45:04]CAPDU: 80 11 00 00 [10:45:04]Write to MH i2c: E2 08 00 23 05 80 11 00 00 00 00 00 00 A2 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:04]Read from MH i2c: E2 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 17 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: E2 17 00 23 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FB [10:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:45:04]wFMCommunicate OK [10:45:04]CreateOFDProtocolMessage done [10:45:04]OFDSenderStorePacket 178641 [10:45:04]StoreOFDPacket docnum=178641 [10:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 30 D1 07 01 08 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 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 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2F 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D1 B9 02 00 35 04 06 00 21 86 71 AD B8 91 D5 B3 95 B9 A0 3D E1 AE [10:45:04]CheckFolder [10:45:04]dirname=/storage/ofd_packets [10:45:04]CheckFolder done [10:45:04]ProducePacketName [10:45:04]name=ofd_packets/00178641 [10:45:04]NVStorageSaveData ofd_packets/00178641 [10:45:04]File name is /storage/ofd_packets/00178641 [10:45:04]Write 301 bytes [10:45:04]NVStorageSaveData done [10:45:04]OFDSenderStorePacket done [10:45:04]KKMCreateOFDPacket done [10:45:04]NVStorageSaveData kkm_last_timestamp [10:45:04]File name is /storage/kkm_last_timestamp [10:45:04]Write 4 bytes [10:45:04]NVStorageSaveData done [10:45:04]ExternCall_PrintAddStr [10:45:04]wPrintStart [10:45:04]Write to MH i2c: 01 00 00 24 05 29 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 24 05 00 00 00 00 00 FF 0F 3E [10:45:04]RasterBufferAndPrint [10:45:04]line Счет N : (1)294164 [10:45:04]line ИНН: 02508201610067 [10:45:04]line Контрольно-Кассовый Чек [10:45:04]line ПРОДАЖА [10:45:04]line ТРК (МРК, ГНК) : 42 [10:45:04]line Товар: 2710124130 [10:45:04]line Аи-92-К-5 [10:45:04]line 8.850 * 67.80 [10:45:04]line = 600.03 [10:45:04]line НДС 12% НСП 1% [10:45:04]line > о реализуемом товаре [10:45:04]line ИТОГО: 600.03 [10:45:04]line НСП 1% : 5.31 [10:45:04]line НДС 12% : 63.72 [10:45:04]line Наличными: 0.00 [10:45:04]line Безнал.: 600.03 [10:45:04]line Место: АЗС № 130 "Партнер Нефть" [10:45:04]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:45:04]line СНО: Общий режим [10:45:04]line Чек 101 23.08.2024 10:45 [10:45:04]line Смена: 470 ФФД: 1.0 [10:45:04]line ЗНМ: 0300000071 [10:45:04]line РНМ: 0000000000092561 [10:45:04]line Версия ККМ: 001 [10:45:04]line Платежная система: O! деньги [10:45:04]line ФМ: 0000000000871778 [10:45:04]line ФД: 178641 [10:45:04]line ФПД: 36861316544657 [10:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T104503&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178641&fm=36861316544657&tin=02508201610067®Number=0000000000092561&sum=60003 [10:45:04]written 0, free lines is 4095 [10:45:04]OFD Sender: Processing packet 178641 [packets to send 498, broken 497] [10:45:04]ProducePacketName [10:45:04]name=ofd_packets/00178641 [10:45:04]OFD Sender: To server: pG, [10:45:04]CommunicateWithHost lk.salyk.kg:30040 [10:45:04]ConnectInit lk.salyk.kg [10:45:04]Write to MH i2c: 01 00 00 4E 05 53 [10:45:04]Write i2c OK [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 [10:45:04]MH_I2C_Read... [10:45:04]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 E2 0C 48 [10:45:04]RasterBufferAndPrint [10:45:04]line [10:45:04]line [10:45:04]line [10:45:04]line [10:45:04]line [10:45:04]written 0, free lines is 3304 [10:45:05]MH_Cut [10:45:05]Write to MH i2c: D1 01 00 55 05 01 2C [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 01 00 [10:45:05]MH_I2C_Read... [10:45:05]Read from MH i2c: D1 01 00 55 05 00 2B [10:45:05]Write to MH i2c: 01 00 00 56 05 5B [10:45:05]Write i2c OK [10:45:05]MH_I2C_Read... [10:45:05]*** Cut start [10:45:05]*** Partial cut [10:45:05]*** CUTSNS_PIN = 1 [10:45:05]*** CUTSNS_PIN = 0 [10:45:05]*** Brake cut motor [10:45:06]Read from MH i2c: 01 [10:45:06]MH_I2C_Read... [10:45:06]*** Stop cut motor [10:45:06]*** Cut end [10:45:06]Read from MH i2c: 01 07 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [10:45:06]process_action close_receipt done [10:45:06]requested_data is exist [10:45:06]produce_requested_data [10:45:06]requested_item fm.sn is exist - process it [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 11 00 00 [10:45:06]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 17 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [10:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:45:06]wFMCommunicate OK [10:45:06]requested_item fd.num is exist - process it [10:45:06]SAM_PROTO_GetFieldsCounters [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 13 00 00 [10:45:06]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 62 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 62 00 58 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D1 B9 02 00 0E 04 04 00 D6 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 90 [10: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D1 B9 02 00 0E 04 04 00 D6 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 [10:45:06]wFMCommunicate OK [10:45:06]SAM_PROTO_GetFieldsCounters done [10:45:06]requested_item shift.num is exist - process it [10:45:06]requested_item shift.opened is exist - process it [10:45:06]req_shift_opened [10:45:06]FM_GetShiftState [10:45:06]SAM_PROTO_GetShiftState [10:45:06]wFMCommunicate request_size=4 [10:45:06]MH_SAM_APDU [10:45:06]CAPDU: 80 13 01 00 [10:45:06]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [10:45:06]Write i2c OK [10:45:06]MH_I2C_Read... [10:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:06]Read from MH i2c: E2 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 0E 00 [10:45:06]MH_I2C_Read... [10:45:06]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B2 [10:45:06]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:45:06]wFMCommunicate OK [10:45:06]SAM_PROTO_GetShiftState done [10:45:06]FM_GetShiftState done [10:45:06]req_shift_opened done [10:45:06]requested_item shift.open_date is exist - process it [10:45:06]req_shift_open_date [10:45:06]req_shift_open_date done [10:45:06]produce_requested_data done [10:45:06]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178641,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:45:06]process_action_free close_receipt [10:45:06]json_value_free [10:45:06]json_value_free done [10:45:06]process_json_proto returns [10:45:06]Send response to host [10:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178641,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:45:06]free response buf [10:45:06]execute_script done [10:45:06]execute_script returns [10:45:06]free content buf [10:45:06]Sock 9.Close socket [10:45:06]Sock 9.Thread stoped [10:45:23]accept exits with 10 [10:45:23]New connection [10:45:23]New thread 3067080036 created [10:45:23]Thread 3066936676 joined [10:45:23]Waiting for new connection... [10:45:23] Sock 10.Parse request [10:45:23]Sock 10.Check first char [10:45:23]Sock 10.First char is OK [10:45:23]request: POST /json_proto HTTP/1.0 [10:45:23]Method: POST [10:45:23]URL: /json_proto [10:45:23]Method is POST - this is cgi request [10:45:23]url: /json_proto [10:45:23]query_string will be loaded in cgi processing [10:45:23]execute_cgi json_proto POST (null) [10:45:23]execute_cgi path=json_proto method=POST [10:45:23]POST find Content-Length [10:45:23]Host: 172.17.44.131:8080 [10:45:23]Content-Length: 682 [10:45:23]Content-Type: application/json [10:45:23] [10:45:23]POST finish read [10:45:23]Found Content-Length = 682 [10:45:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294163", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:23]execute_script... [10:45: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)294163", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:23]POST & json_proto [10:45:23]process_json_proto [10:45:23]json parsed OK: [10:45:23]protocol is kg_v1.0 [10:45:23]action value=close_receipt [10:45:23]process_action close_receipt [10:45:23]cmd_close_receipt [10:45:23]MH_GetDate [10:45:23]Write to MH i2c: F0 00 00 5A 05 4E [10:45:23]Write i2c OK [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: F0 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: F0 09 00 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: F0 09 00 5A 05 00 44 68 C8 66 4F 53 BE 66 F7 [10:45:23]GetLastDocTimeStamp 1724409903 [10:45:23]current date 1724409924 [10:45:23]FM_GetShiftState [10:45:23]SAM_PROTO_GetShiftState [10:45:23]wFMCommunicate request_size=4 [10:45:23]MH_SAM_APDU [10:45:23]CAPDU: 80 13 01 00 [10:45:23]Write to MH i2c: E2 08 00 5B 05 80 13 01 00 00 00 00 00 DD [10:45:23]Write i2c OK [10:45:23]MH_I2C_Read... [10:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:23]Read from MH i2c: E2 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: E2 0E 00 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: E2 0E 00 5B 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B4 [10:45:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:45:23]wFMCommunicate OK [10:45:23]SAM_PROTO_GetShiftState done [10:45:23]FM_GetShiftState done [10:45:23]opened in 1724371660 [10:45:23]opened+sec_in_day 1724458060 [10:45:23]quantity*price = 100021 [10:45:23]sum+1 = 100023 [10:45:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 102 23.08.2024 10:45 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178642 ФПД: 92467406720179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T104524&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178642&fm=92467406720179&tin=02508201610067®Number=0000000000092561&sum=100000 [10:45:24]StoreToDocumentArchive [10:45:24]shift 470 fd 178642 [10:45:24]save to /storage/0470/doc_00178642 [10:45:24]save last doc name /storage/0470/doc_00178642 to /storage/kkm_last_doc_name [10:45:24]save OK [10:45:24]Clear old archive folders... [10:45:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:24]tlvbuf is 0173D9A0 [10:45:24]SAM_PROTO_ClearQueue [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 09 00 00 [10:45:24]Write to MH i2c: E2 08 00 68 05 80 09 00 00 00 00 00 00 DF [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 68 05 00 90 00 E1 [10:45:24]RAPDU: 90 00 [10:45:24]wFMCommunicate OK [10:45:24]SAM_PROTO_ClearQueue done [10:45:24]KKMCreateOFDPacket [10:45:24]OFDProtocolAddRootSTLVToBuf [10:45:24]FM_MakeSignedData [10:45:24]FM_MakeSignedData [10:45:24]SAM_PROTO_SignData [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 0D 01 02 [10:45:24]Write to MH i2c: E2 08 00 69 05 80 0D 01 02 00 00 00 00 E7 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 69 05 00 90 00 E2 [10:45:24]RAPDU: 90 00 [10:45:24]wFMCommunicate OK [10:45:24]wFMCommunicate request_size=255 [10:45:24]MH_SAM_APDU [10:45: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D2 B9 02 00 35 04 06 00 54 [10:45:24]Write to MH i2c: E2 02 01 6A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D2 B9 02 00 35 04 06 00 54 00 00 8F [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:25]Read from MH i2c: E2 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 03 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 03 00 6A 05 00 90 00 E3 [10:45:25]RAPDU: 90 00 [10:45:25]wFMCommunicate OK [10:45:25]wFMCommunicate request_size=10 [10:45:25]MH_SAM_APDU [10:45:25]CAPDU: 80 0D 02 02 05 19 3E EE 4C B3 [10:45:25]Write to MH i2c: E2 0D 00 6B 05 80 0D 02 02 05 00 19 3E EE 4C B3 00 00 38 [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:25]Read from MH i2c: E2 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 03 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [10:45:25]RAPDU: 90 00 [10:45:25]wFMCommunicate OK [10:45:25]wFMCommunicate request_size=4 [10:45:25]MH_SAM_APDU [10:45:25]CAPDU: 80 0D 03 02 [10:45:25]Write to MH i2c: E2 08 00 6C 05 80 0D 03 02 00 00 00 00 EC [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:25]Read from MH i2c: E2 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 0B 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 0B 00 6C 05 00 71 EA A9 26 6A 85 6D 49 90 00 BC [10:45:25]RAPDU: 71 EA A9 26 6A 85 6D 49 90 00 [10:45:25]wFMCommunicate OK [10:45:25]SAM_PROTO_SignData done [10:45:25]FM_MakeSignedData done [10:45:25]CreateOFDProtocolMessage [10:45:25]wFMCommunicate request_size=4 [10:45:25]MH_SAM_APDU [10:45:25]CAPDU: 80 11 00 00 [10:45:25]Write to MH i2c: E2 08 00 6D 05 80 11 00 00 00 00 00 00 EC [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:25]Read from MH i2c: E2 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 17 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: E2 17 00 6D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 45 [10:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:45:25]wFMCommunicate OK [10:45:25]CreateOFDProtocolMessage done [10:45:25]OFDSenderStorePacket 178642 [10:45:25]StoreOFDPacket docnum=178642 [10:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 81 DD 07 01 28 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D2 B9 02 00 35 04 06 00 54 19 3E EE 4C B3 71 EA A9 26 6A 85 6D 49 [10:45:25]CheckFolder [10:45:25]dirname=/storage/ofd_packets [10:45:25]CheckFolder done [10:45:25]ProducePacketName [10:45:25]name=ofd_packets/00178642 [10:45:25]NVStorageSaveData ofd_packets/00178642 [10:45:25]File name is /storage/ofd_packets/00178642 [10:45:25]Write 301 bytes [10:45:25]NVStorageSaveData done [10:45:25]OFDSenderStorePacket done [10:45:25]KKMCreateOFDPacket done [10:45:25]NVStorageSaveData kkm_last_timestamp [10:45:25]File name is /storage/kkm_last_timestamp [10:45:25]Write 4 bytes [10:45:25]NVStorageSaveData done [10:45:25]ExternCall_PrintAddStr [10:45:25]wPrintStart [10:45:25]Write to MH i2c: 01 00 00 6E 05 73 [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: 01 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: 01 07 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: 01 07 00 6E 05 00 00 00 00 00 FF 0F 88 [10:45:25]RasterBufferAndPrint [10:45:25]line Счет N : (1)294163 [10:45:25]line ИНН: 02508201610067 [10:45:25]line Контрольно-Кассовый Чек [10:45:25]line ПРОДАЖА [10:45:25]line ТРК (МРК, ГНК) : 63 [10:45:25]line Товар: 2710124500 [10:45:25]line Аи-95-К-5 [10:45:25]line 13.480 * 74.20 [10:45:25]line = 1000.22 [10:45:25]line НДС 12% НСП 1% [10:45:25]line > о реализуемом товаре [10:45:25]line ОКРУГЛЕНИЕ: -0.22 [10:45:25]line ИТОГО: 1000.00 [10:45:25]line Внесено: 1000.00 [10:45:25]line СДАЧА: 0.00 [10:45:25]line НСП 1% : 8.85 [10:45:25]line НДС 12% : 106.22 [10:45:25]line Наличными: 1000.00 [10:45:25]line Безнал.: 0.00 [10:45:25]line Место: АЗС № 130 "Партнер Нефть" [10:45:25]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [10:45:25]line СНО: Общий режим [10:45:25]line Чек 102 23.08.2024 10:45 [10:45:25]line Смена: 470 ФФД: 1.0 [10:45:25]line ЗНМ: 0300000071 [10:45:25]line РНМ: 0000000000092561 [10:45:25]line Версия ККМ: 001 [10:45:25]line ФМ: 0000000000871778 [10:45:25]line ФД: 178642 [10:45:25]line ФПД: 92467406720179 [10:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T104524&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178642&fm=92467406720179&tin=02508201610067®Number=0000000000092561&sum=100000 [10:45:25]written 0, free lines is 4095 [10:45:25]Write to MH i2c: 01 00 00 99 05 9E [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: 01 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: 01 07 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: 01 07 00 99 05 00 00 00 00 00 E2 0C 93 [10:45:25]RasterBufferAndPrint [10:45:25]line [10:45:25]line [10:45:25]line [10:45:25]line [10:45:25]line [10:45:25]written 0, free lines is 3304 [10:45:25]MH_Cut [10:45:25]Write to MH i2c: D1 01 00 A0 05 01 77 [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: D1 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: D1 01 00 [10:45:25]MH_I2C_Read... [10:45:25]Read from MH i2c: D1 01 00 A0 05 00 76 [10:45:25]Write to MH i2c: 01 00 00 A1 05 A6 [10:45:25]Write i2c OK [10:45:25]MH_I2C_Read... [10:45:26]*** Cut start [10:45:26]*** Partial cut [10:45:26]*** CUTSNS_PIN = 1 [10:45:26]*** CUTSNS_PIN = 0 [10:45:26]*** Brake cut motor [10:45:27]Read from MH i2c: 01 [10:45:27]MH_I2C_Read... [10:45:27]*** Stop cut motor [10:45:27]*** Cut end [10:45:27]Read from MH i2c: 01 07 00 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [10:45:27]process_action close_receipt done [10:45:27]requested_data is exist [10:45:27]produce_requested_data [10:45:27]requested_item fm.sn is exist - process it [10:45:27]wFMCommunicate request_size=4 [10:45:27]MH_SAM_APDU [10:45:27]CAPDU: 80 11 00 00 [10:45:27]Write to MH i2c: E2 08 00 A2 05 80 11 00 00 00 00 00 00 21 [10:45:27]Write i2c OK [10:45:27]MH_I2C_Read... [10:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:27]Read from MH i2c: E2 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: E2 17 00 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: E2 17 00 A2 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [10:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [10:45:27]wFMCommunicate OK [10:45:27]requested_item fd.num is exist - process it [10:45:27]SAM_PROTO_GetFieldsCounters [10:45:27]wFMCommunicate request_size=4 [10:45:27]MH_SAM_APDU [10:45:27]CAPDU: 80 13 00 00 [10:45:27]Write to MH i2c: E2 08 00 A3 05 80 13 00 00 00 00 00 00 24 [10:45:27]Write i2c OK [10:45:27]MH_I2C_Read... [10:45:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:27]Read from MH i2c: E2 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: E2 62 00 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: E2 62 00 A3 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D2 B9 02 00 0E 04 04 00 D6 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 DF [10:45: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D2 B9 02 00 0E 04 04 00 D6 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 [10:45:27]wFMCommunicate OK [10:45:27]SAM_PROTO_GetFieldsCounters done [10:45:27]requested_item shift.num is exist - process it [10:45:27]requested_item shift.opened is exist - process it [10:45:27]req_shift_opened [10:45:27]FM_GetShiftState [10:45:27]SAM_PROTO_GetShiftState [10:45:27]wFMCommunicate request_size=4 [10:45:27]MH_SAM_APDU [10:45:27]CAPDU: 80 13 01 00 [10:45:27]Write to MH i2c: E2 08 00 A4 05 80 13 01 00 00 00 00 00 26 [10:45:27]Write i2c OK [10:45:27]MH_I2C_Read... [10:45:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:27]Read from MH i2c: E2 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: E2 0E 00 [10:45:27]MH_I2C_Read... [10:45:27]Read from MH i2c: E2 0E 00 A4 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 FD [10:45:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [10:45:27]wFMCommunicate OK [10:45:27]SAM_PROTO_GetShiftState done [10:45:27]FM_GetShiftState done [10:45:27]req_shift_opened done [10:45:27]requested_item shift.open_date is exist - process it [10:45:27]req_shift_open_date [10:45:27]req_shift_open_date done [10:45:27]produce_requested_data done [10:45:27]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178642,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [10:45:27]process_action_free close_receipt [10:45:27]json_value_free [10:45:27]json_value_free done [10:45:27]process_json_proto returns [10:45:27]Send response to host [10:45:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178642,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [10:45:27]free response buf [10:45:27]execute_script done [10:45:27]execute_script returns [10:45:27]free content buf [10:45:27]Sock 10.Close socket [10:45:27]Sock 10.Thread stoped [10:47:19]ConnectInit Can't connect to host [10:47:19]CommunicateWithHost connect error [10:47:19]CommunicateWithHost err = -1 [10:47:19]OFD Sender: Server communicate error [10:47:19]OFD Sender: Processing packet 178641 [packets to send 499, broken 497] [10:47:19]ProducePacketName [10:47:19]name=ofd_packets/00178641 [10:47:19]OFD Sender: To server: pG, [10:47:19]CommunicateWithHost lk.salyk.kg:30040 [10:47:19]ConnectInit lk.salyk.kg [10:47:19]Connected sock=7 [10: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 31 37 37 38 0F 01 00 00 30 D1 07 01 08 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 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 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 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 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 2F 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D1 B9 02 00 35 04 06 00 21 86 71 AD B8 91 D5 B3 95 B9 A0 3D E1 AE [10:47:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C6 30 47 00 07 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 31 37 37 38 10 04 04 00 D1 B9 02 00 F4 03 04 00 5D 14 C8 66 B6 04 01 00 00 64 47 EE 2E 98 5F DA 9C [10:47:20]CommunicateWithHost err = 0 [10:47:20]CheckOFDResponse [10:47:20]1017 (14) - 77093643461234 [10:47:20]1041 (16) - 0000000000871778 [10:47:20]1040 (4) - 178641 [10:47:20]1012 (4) - 23.08.2024 04:47 [10:47:20]1206 (1) - 0 [10:47:20]OFD Sender: Remove packet 178641 [10:47:20]ProducePacketName [10:47:20]name=ofd_packets/00178641 [10:47:20]NVStorageDeleteData [10:47:20]OFD Sender: Processing packet 178642 [packets to send 498, broken 497] [10:47:20]ProducePacketName [10:47:20]name=ofd_packets/00178642 [10:47:20]OFD Sender: To server: pG, [10:47:20]CommunicateWithHost lk.salyk.kg:30040 [10:47:20]ConnectInit lk.salyk.kg [10:47:21]Connected sock=7 [10:47:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 81 DD 07 01 28 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 44 68 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D2 B9 02 00 35 04 06 00 54 19 3E EE 4C B3 71 EA A9 26 6A 85 6D 49 [10:47:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D4 A5 47 00 0C 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 31 37 37 38 10 04 04 00 D2 B9 02 00 F4 03 04 00 5F 14 C8 66 B6 04 01 00 00 68 FE 85 E5 2D E5 5A 24 [10:47:21]CommunicateWithHost err = 0 [10:47:21]CheckOFDResponse [10:47:21]1017 (14) - 77093643461234 [10:47:21]1041 (16) - 0000000000871778 [10:47:21]1040 (4) - 178642 [10:47:21]1012 (4) - 23.08.2024 04:47 [10:47:21]1206 (1) - 0 [10:47:21]OFD Sender: Remove packet 178642 [10:47:21]ProducePacketName [10:47:21]name=ofd_packets/00178642 [10:47:21]NVStorageDeleteData [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:50:16]ConnectInit Can't connect to host [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:08]recv_with_timeout no data received [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:47]OFD Sender: No OFD packet to send [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:51:58]recv_with_timeout no data received [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:23]OFD Sender: No OFD packet to send [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:58]OFD Sender: No OFD packet to send [10:55:03]OFD Sender: No OFD packet to send [10:55:08]OFD Sender: No OFD packet to send [10:55:13]OFD Sender: No OFD packet to send [10:55:18]OFD Sender: No OFD packet to send [10:55:23]OFD Sender: No OFD packet to send [10:55:28]OFD Sender: No OFD packet to send [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:56:39]ConnectInit Can't connect to host [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:05]recv_with_timeout no data received [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]recv_with_timeout no data received [10:57:28]OFD Sender: No OFD packet to send [10:57:33]OFD Sender: No OFD packet to send [10:57:38]OFD Sender: No OFD packet to send [10:57:43]OFD Sender: No OFD packet to send [10:57:48]OFD Sender: No OFD packet to send [10:57:53]OFD Sender: No OFD packet to send [10:57:58]OFD Sender: No OFD packet to send [10:58:03]OFD Sender: No OFD packet to send [10:58:08]OFD Sender: No OFD packet to send [10:58:13]OFD Sender: No OFD packet to send [10:58:18]OFD Sender: No OFD packet to send [10:58:23]OFD Sender: No OFD packet to send [10:58:28]OFD Sender: No OFD packet to send [10:58:33]OFD Sender: No OFD packet to send [10:58:38]OFD Sender: No OFD packet to send [10:58:43]OFD Sender: No OFD packet to send [10:58:48]OFD Sender: No OFD packet to send [10:58:53]OFD Sender: No OFD packet to send [10:58:58]OFD Sender: No OFD packet to send [10:59:03]OFD Sender: No OFD packet to send [10:59:08]OFD Sender: No OFD packet to send [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:26]recv_with_timeout no data received [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00: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:12]recv_with_timeout no data received [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:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:09]recv_with_timeout no data received [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:56]recv_with_timeout no data received [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:27]recv_with_timeout no data received [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:05]accept exits with 11 [11:04:05]New connection [11:04:05]New thread 3066936676 created [11:04:05]Thread 3067080036 joined [11:04:05]Waiting for new connection... [11:04:05] Sock 11.Parse request [11:04:05]Sock 11.Check first char [11:04:05]Sock 11.First char is OK [11:04:05]request: POST /json_proto HTTP/1.0 [11:04:05]Method: POST [11:04:05]URL: /json_proto [11:04:05]Method is POST - this is cgi request [11:04:05]url: /json_proto [11:04:05]query_string will be loaded in cgi processing [11:04:05]execute_cgi json_proto POST (null) [11:04:05]execute_cgi path=json_proto method=POST [11:04:05]POST find Content-Length [11:04:05]Host: 172.17.44.131:8080 [11:04:05]Content-Length: 817 [11:04:05]Content-Type: application/json [11:04:05] [11:04:05]POST finish read [11:04:05]Found Content-Length = 817 [11:04:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294184", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:05]execute_script... [11:04: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)294184", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:05]POST & json_proto [11:04:05]process_json_proto [11:04:05]json parsed OK: [11:04:05]protocol is kg_v1.0 [11:04:05]action value=close_receipt [11:04:05]process_action close_receipt [11:04:05]cmd_close_receipt [11:04:05]MH_GetDate [11:04:05]Write to MH i2c: F0 00 00 A5 05 99 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: F0 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: F0 09 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: F0 09 00 A5 05 00 A6 6C C8 66 4F 53 BE 66 A8 [11:04:05]GetLastDocTimeStamp 1724409924 [11:04:05]current date 1724411046 [11:04:05]FM_GetShiftState [11:04:05]SAM_PROTO_GetShiftState [11:04:05]wFMCommunicate request_size=4 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 13 01 00 [11:04:05]Write to MH i2c: E2 08 00 A6 05 80 13 01 00 00 00 00 00 28 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 0E 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 0E 00 A6 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 FF [11:04:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:04:05]wFMCommunicate OK [11:04:05]SAM_PROTO_GetShiftState done [11:04:05]FM_GetShiftState done [11:04:05]opened in 1724371660 [11:04:05]opened+sec_in_day 1724458060 [11:04:05]quantity*price = 70037 [11:04:05]sum+1 = 70038 [11:04:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 103 23.08.2024 11:04 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178643 ФПД: 144823531518258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T110406&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178643&fm=144823531518258&tin=02508201610067®Number=0000000000092561&sum=70037 [11:04:07]StoreToDocumentArchive [11:04:07]shift 470 fd 178643 [11:04:07]save to /storage/0470/doc_00178643 [11:04:07]save last doc name /storage/0470/doc_00178643 to /storage/kkm_last_doc_name [11:04:07]save OK [11:04:07]Clear old archive folders... [11:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:07]tlvbuf is 0174E610 [11:04:07]SAM_PROTO_ClearQueue [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 09 00 00 [11:04:07]Write to MH i2c: E2 08 00 B3 05 80 09 00 00 00 00 00 00 2A [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 B3 05 00 90 00 2C [11:04:07]RAPDU: 90 00 [11:04:07]wFMCommunicate OK [11:04:07]SAM_PROTO_ClearQueue done [11:04:07]KKMCreateOFDPacket [11:04:07]OFDProtocolAddRootSTLVToBuf [11:04:07]FM_MakeSignedData [11:04:07]FM_MakeSignedData [11:04:07]SAM_PROTO_SignData [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 0D 01 02 [11:04:07]Write to MH i2c: E2 08 00 B4 05 80 0D 01 02 00 00 00 00 32 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [11:04:07]RAPDU: 90 00 [11:04:07]wFMCommunicate OK [11:04:07]wFMCommunicate request_size=255 [11:04:07]MH_SAM_APDU [11:04: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A6 6C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D3 B9 02 00 35 04 06 00 83 [11:04:07]Write to MH i2c: E2 02 01 B5 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A6 6C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D3 B9 02 00 35 04 06 00 83 00 00 75 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [11:04:07]RAPDU: 90 00 [11:04:07]wFMCommunicate OK [11:04:07]wFMCommunicate request_size=10 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 0D 02 02 05 B7 5B 26 B9 32 [11:04:07]Write to MH i2c: E2 0D 00 B6 05 80 0D 02 02 05 00 B7 5B 26 B9 32 00 00 62 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [11:04:07]RAPDU: 90 00 [11:04:07]wFMCommunicate OK [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 0D 03 02 [11:04:07]Write to MH i2c: E2 08 00 B7 05 80 0D 03 02 00 00 00 00 37 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 0B 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 0B 00 B7 05 00 34 D7 67 42 09 79 2D 63 90 00 FE [11:04:07]RAPDU: 34 D7 67 42 09 79 2D 63 90 00 [11:04:07]wFMCommunicate OK [11:04:07]SAM_PROTO_SignData done [11:04:07]FM_MakeSignedData done [11:04:07]CreateOFDProtocolMessage [11:04:07]wFMCommunicate request_size=4 [11:04:07]MH_SAM_APDU [11:04:07]CAPDU: 80 11 00 00 [11:04:07]Write to MH i2c: E2 08 00 B8 05 80 11 00 00 00 00 00 00 37 [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:07]Read from MH i2c: E2 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 17 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: E2 17 00 B8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 90 [11:04:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:04:07]wFMCommunicate OK [11:04:07]CreateOFDProtocolMessage done [11:04:07]OFDSenderStorePacket 178643 [11:04:07]StoreOFDPacket docnum=178643 [11:04:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 0B F4 07 01 7C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A6 6C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D3 B9 02 00 35 04 06 00 83 B7 5B 26 B9 32 34 D7 67 42 09 79 2D 63 [11:04:07]CheckFolder [11:04:07]dirname=/storage/ofd_packets [11:04:07]CheckFolder done [11:04:07]ProducePacketName [11:04:07]name=ofd_packets/00178643 [11:04:07]NVStorageSaveData ofd_packets/00178643 [11:04:07]File name is /storage/ofd_packets/00178643 [11:04:07]Write 301 bytes [11:04:07]NVStorageSaveData done [11:04:07]OFDSenderStorePacket done [11:04:07]KKMCreateOFDPacket done [11:04:07]NVStorageSaveData kkm_last_timestamp [11:04:07]File name is /storage/kkm_last_timestamp [11:04:07]Write 4 bytes [11:04:07]NVStorageSaveData done [11:04:07]ExternCall_PrintAddStr [11:04:07]wPrintStart [11:04:07]Write to MH i2c: 01 00 00 B9 05 BE [11:04:07]Write i2c OK [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: 01 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: 01 07 00 [11:04:07]MH_I2C_Read... [11:04:07]Read from MH i2c: 01 07 00 B9 05 00 00 00 00 00 FF 0F D3 [11:04:07]RasterBufferAndPrint [11:04:07]line Счет N : (1)294184 [11:04:07]line ИНН: 02508201610067 [11:04:07]line Контрольно-Кассовый Чек [11:04:07]line ПРОДАЖА [11:04:07]line ТРК (МРК, ГНК) : 32 [11:04:07]line Товар: 2710124130 [11:04:07]line Аи-92-К-5 [11:04:07]line 10.330 * 67.80 [11:04:07]line = 700.37 [11:04:07]line НДС 12% НСП 1% [11:04:07]line > о реализуемом товаре [11:04:07]line ИТОГО: 700.37 [11:04:07]line НСП 1% : 6.20 [11:04:07]line НДС 12% : 74.38 [11:04:07]line Наличными: 0.00 [11:04:07]line Безнал.: 700.37 [11:04:07]line Место: АЗС № 130 "Партнер Нефть" [11:04:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:04:07]line СНО: Общий режим [11:04:07]line Чек 103 23.08.2024 11:04 [11:04:07]line Смена: 470 ФФД: 1.0 [11:04:07]line ЗНМ: 0300000071 [11:04:07]line РНМ: 0000000000092561 [11:04:07]line Версия ККМ: 001 [11:04:07]line Платежная система: Бакай Банк [11:04:07]line ФМ: 0000000000871778 [11:04:07]line ФД: 178643 [11:04:07]line ФПД: 144823531518258 [11:04:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T110406&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178643&fm=144823531518258&tin=02508201610067®Number=0000000000092561&sum=70037 [11:04:07]written 0, free lines is 4095 [11:04:07]OFD Sender: Processing packet 178643 [packets to send 498, broken 497] [11:04:07]ProducePacketName [11:04:07]name=ofd_packets/00178643 [11:04:07]OFD Sender: To server: pG, [11:04:07]CommunicateWithHost lk.salyk.kg:30040 [11:04:07]ConnectInit lk.salyk.kg [11:04:08]Write to MH i2c: 01 00 00 E3 05 E8 [11:04:08]Write i2c OK [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: 01 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: 01 07 00 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: 01 07 00 E3 05 00 00 00 00 00 F7 0C F2 [11:04:08]RasterBufferAndPrint [11:04:08]line [11:04:08]line [11:04:08]line [11:04:08]line [11:04:08]line [11:04:08]written 0, free lines is 3327 [11:04:08]MH_Cut [11:04:08]Write to MH i2c: D1 01 00 EA 05 01 C1 [11:04:08]Write i2c OK [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: D1 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: D1 01 00 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: D1 01 00 EA 05 00 C0 [11:04:08]Write to MH i2c: 01 00 00 EB 05 F0 [11:04:08]Write i2c OK [11:04:08]MH_I2C_Read... [11:04:08]*** Cut start [11:04:08]*** Partial cut [11:04:08]*** CUTSNS_PIN = 1 [11:04:08]*** CUTSNS_PIN = 0 [11:04:09]*** Brake cut motor [11:04:09]Read from MH i2c: 01 [11:04:09]MH_I2C_Read... [11:04:09]*** Stop cut motor [11:04:09]*** Cut end [11:04:09]Read from MH i2c: 01 07 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [11:04:09]process_action close_receipt done [11:04:09]requested_data is exist [11:04:09]produce_requested_data [11:04:09]requested_item fm.sn is exist - process it [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 11 00 00 [11:04:09]Write to MH i2c: E2 08 00 EC 05 80 11 00 00 00 00 00 00 6B [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 17 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 17 00 EC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C4 [11:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:04:09]wFMCommunicate OK [11:04:09]requested_item fd.num is exist - process it [11:04:09]SAM_PROTO_GetFieldsCounters [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 13 00 00 [11:04:09]Write to MH i2c: E2 08 00 ED 05 80 13 00 00 00 00 00 00 6E [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 62 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 62 00 ED 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D3 B9 02 00 0E 04 04 00 D6 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 2D [11:04: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D3 B9 02 00 0E 04 04 00 D6 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 [11:04:09]wFMCommunicate OK [11:04:09]SAM_PROTO_GetFieldsCounters done [11:04:09]requested_item shift.num is exist - process it [11:04:09]requested_item shift.opened is exist - process it [11:04:09]req_shift_opened [11:04:09]FM_GetShiftState [11:04:09]SAM_PROTO_GetShiftState [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 13 01 00 [11:04:09]Write to MH i2c: E2 08 00 EE 05 80 13 01 00 00 00 00 00 70 [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 0E 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 0E 00 EE 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 47 [11:04:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:04:09]wFMCommunicate OK [11:04:09]SAM_PROTO_GetShiftState done [11:04:09]FM_GetShiftState done [11:04:09]req_shift_opened done [11:04:09]requested_item shift.open_date is exist - process it [11:04:09]req_shift_open_date [11:04:09]req_shift_open_date done [11:04:09]produce_requested_data done [11:04:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178643,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [11:04:09]process_action_free close_receipt [11:04:09]json_value_free [11:04:09]json_value_free done [11:04:09]process_json_proto returns [11:04:09]Send response to host [11:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178643,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [11:04:09]free response buf [11:04:09]execute_script done [11:04:09]execute_script returns [11:04:09]free content buf [11:04:09]Sock 11.Close socket [11:04:09]Sock 11.Thread stoped [11:04:12]ConnectInit Can't take IP for lk.salyk.kg [11:04:12]CommunicateWithHost connect error [11:04:12]CommunicateWithHost err = -1 [11:04:12]OFD Sender: Server communicate error [11:04:17]OFD Sender: Processing packet 178643 [packets to send 498, broken 497] [11:04:17]ProducePacketName [11:04:17]name=ofd_packets/00178643 [11:04:17]OFD Sender: To server: pG, [11:04:17]CommunicateWithHost lk.salyk.kg:30040 [11:04:17]ConnectInit lk.salyk.kg [11:04:18]Connected sock=9 [11:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 0B F4 07 01 7C C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A6 6C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D3 B9 02 00 35 04 06 00 83 B7 5B 26 B9 32 34 D7 67 42 09 79 2D 63 [11:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 68 75 47 00 38 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 31 37 37 38 10 04 04 00 D3 B9 02 00 F4 03 04 00 5A 18 C8 66 B6 04 01 00 00 F8 C7 F0 04 42 24 7E F9 [11:04:21]CommunicateWithHost err = 0 [11:04:21]CheckOFDResponse [11:04:21]1017 (14) - 77093643461234 [11:04:21]1041 (16) - 0000000000871778 [11:04:21]1040 (4) - 178643 [11:04:21]1012 (4) - 23.08.2024 05:04 [11:04:21]1206 (1) - 0 [11:04:21]OFD Sender: Remove packet 178643 [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00178643 [11:04:21]NVStorageDeleteData [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:28]recv_with_timeout no data received [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:08]recv_with_timeout no data received [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:51]recv_with_timeout no data received [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:12]OFD Sender: No OFD packet to send [11:10:17]OFD Sender: No OFD packet to send [11:10:22]OFD Sender: No OFD packet to send [11:10:27]OFD Sender: No OFD packet to send [11:10:32]OFD Sender: No OFD packet to send [11:10:35]recv_with_timeout no data received [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:10]recv_with_timeout no data received [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]recv_with_timeout no data received [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12: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:19]recv_with_timeout no data received [11:13:23]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:48]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]recv_with_timeout no data received [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:46]recv_with_timeout no data received [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:07]recv_with_timeout no data received [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:42]recv_with_timeout no data received [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:22]recv_with_timeout no data received [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19: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:02]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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:23:08]ConnectInit Can't connect to host [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:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:45]recv_with_timeout no data received [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:50]OFD Sender: No OFD packet to send [11:29:55]OFD Sender: No OFD packet to send [11:30:00]OFD Sender: No OFD packet to send [11:30:05]OFD Sender: No OFD packet to send [11:30:10]OFD Sender: No OFD packet to send [11:30:15]OFD Sender: No OFD packet to send [11:30:19]recv_with_timeout no data received [11:30:20]OFD Sender: No OFD packet to send [11:30:25]OFD Sender: No OFD packet to send [11:30:30]OFD Sender: No OFD packet to send [11:30:35]OFD Sender: No OFD packet to send [11:30:40]OFD Sender: No OFD packet to send [11:30:45]OFD Sender: No OFD packet to send [11:30:50]OFD Sender: No OFD packet to send [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:02]recv_with_timeout no data received [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:49]recv_with_timeout no data received [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:07]recv_with_timeout no data received [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:46]OFD Sender: No OFD packet to send [11:33:51]OFD Sender: No OFD packet to send [11:33:56]OFD Sender: No OFD packet to send [11:34:01]OFD Sender: No OFD packet to send [11:34:06]OFD Sender: No OFD packet to send [11:34:11]OFD Sender: No OFD packet to send [11:34:16]OFD Sender: No OFD packet to send [11:34:16]recv_with_timeout no data received [11:34:21]OFD Sender: No OFD packet to send [11:34:26]OFD Sender: No OFD packet to send [11:34:31]OFD Sender: No OFD packet to send [11:34:36]OFD Sender: No OFD packet to send [11:34:41]OFD Sender: No OFD packet to send [11:34:46]OFD Sender: No OFD packet to send [11:34:51]OFD Sender: No OFD packet to send [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:09]recv_with_timeout no data received [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:46]recv_with_timeout no data received [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:19]recv_with_timeout no data received [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:17]recv_with_timeout no data received [11:37:21]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]A0 *** [00:00:10]01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 663876+1723749199=1724413075 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 94 74 C8 66 4F 53 BE 66 FB [11:37:56]Current date/time: 23.08.2024 11:37 [11:37:56]FM_Init [11:37:56]wFMConnect [11:37:56]MH_SAM_On [11:37:56]Write to MH i2c: E0 00 00 08 00 E7 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_init finished! [11:37:56]*** atr: [11:37:56]*** 0F 3B D5 18 FF 81 91 FE [11:37:56]*** 1F C3 80 73 C8 21 10 0A [11:37:56]*** 00 00 00 00 00 00 00 00 [11:37:56]*** 00 00 00 00 00 00 00 00 [11:37:56]*** 00 00 00 00 00 00 00 00 [11:37:56]*** 00 00 00 00 00 00 00 00 [11:37:56]*** 00 00 00 00 00 00 00 00 [11:37:56]*** 00 00 00 00 00 00 00 00 [11:37:56]Read from MH i2c: E0 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E0 10 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [11:37:56]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [11:37:56]wFMCommunicate request_size=10 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [11:37:56]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [11:39:34]ConnectInit Can't connect to host [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41:32]OFD Sender: No OFD packet to send [11:41:37]OFD Sender: No OFD packet to send [11:41:42]OFD Sender: No OFD packet to send [11:41:47]OFD Sender: No OFD packet to send [11:41:52]OFD Sender: No OFD packet to send [11:41:57]OFD Sender: No OFD packet to send [11:42:02]OFD Sender: No OFD packet to send [11:42:07]OFD Sender: No OFD packet to send [11:42:12]OFD Sender: No OFD packet to send [11:42:14]recv_with_timeout no data received [11:42:17]OFD Sender: No OFD packet to send [11:42:22]OFD Sender: No OFD packet to send [11:42:26]recv_with_timeout no data received [11:42:27]OFD Sender: No OFD packet to send [11:42:32]OFD Sender: No OFD packet to send [11:42:37]OFD Sender: No OFD packet to send [11:42:42]OFD Sender: No OFD packet to send [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]OFD Sender: No OFD packet to send [11:43:02]OFD Sender: No OFD packet to send [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:20]recv_with_timeout no data received [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]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:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [11:37:56]RAPDU: 90 00 [11:37:56]wFMCommunicate OK [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 11 00 00 [11:37:56]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [11:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:37:56]wFMCommunicate OK [11:37:56]Detected FM SN is 0000000000871778 [11:37:56]Stored FM SN is 0000000000871778 [11:37:56]wFMCommunicate request_size=9 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 16 00 00 04 D9 BA 00 00 [11:37:56]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [11:37:56]RAPDU: 90 00 [11:37:56]wFMCommunicate OK [11:37:56]FM PIN OK [11:37:56]wFMCommunicate request_size=8 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 14 04 00 03 02 00 01 [11:37:56]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [11:37:56]RAPDU: 90 00 [11:37:56]wFMCommunicate OK [11:37:56]wFMCommunicate request_size=13 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [11:37:56]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [11:37:56]RAPDU: 90 00 [11:37:56]wFMCommunicate OK [11:37:56]wFMCommunicate request_size=4 [11:37:56]MH_SAM_APDU [11:37:56]CAPDU: 80 11 00 00 [11:37:56]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:56]Read from MH i2c: E2 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [11:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:37:56]wFMCommunicate OK [11:37:56]DocumentArchiveInit [11:37:56]Start Httpd... [11:37:56]Httpd thread 3067632996 created [11:37:56]Write to MH i2c: 01 00 00 0F 00 0F [11:37:56]Write i2c OK [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 [11:37:56]MH_I2C_Read... [11:37:56]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [11:37:56]MH Int Process started [11:37:56]Allocated Socket 8 [11:37:56]Bind OK [11:37:56]Listen OK [11:37:56]httpd running on port 8080 [11:37:56]Waiting for new connection... [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:06]accept exits with 9 [11:38:06]New connection [11:38:06]New thread 3067346276 created [11:38:06]Waiting for new connection... [11:38:06] Sock 9.Parse request [11:38:06]Sock 9.Check first char [11:38:06]Sock 9.First char is OK [11:38:06]request: POST /json_proto HTTP/1.0 [11:38:06]Method: POST [11:38:06]URL: /json_proto [11:38:06]Method is POST - this is cgi request [11:38:06]url: /json_proto [11:38:06]query_string will be loaded in cgi processing [11:38:06]execute_cgi json_proto POST (null) [11:38:06]execute_cgi path=json_proto method=POST [11:38:06]POST find Content-Length [11:38:06]Host: 172.17.44.131:8080 [11:38:06]Content-Length: 215 [11:38:06]Content-Type: application/json [11:38:06] [11:38:06]POST finish read [11:38:06]Found Content-Length = 215 [11:38:06]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" ] } } [11:38:06]execute_script... [11:38:06]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" ] } } [11:38:06]POST & json_proto [11:38:06]process_json_proto [11:38:06]json parsed OK: [11:38:06]protocol is kg_v1.0 [11:38:06]action value=get_value [11:38:06]process_action get_value [11:38:06]cmd_get_value [11:38:06]process_action get_value done [11:38:06]requested_data is exist [11:38:06]produce_requested_data [11:38:06]requested_item kkm.sn is exist - process it [11:38:06]requested_item kkm.ver is exist - process it [11:38:06]requested_item fm.sn is exist - process it [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 11 00 00 [11:38:06]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 17 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [11:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:38:06]wFMCommunicate OK [11:38:06]requested_item fd.num is exist - process it [11:38:06]SAM_PROTO_GetFieldsCounters [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 00 00 [11:38:06]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 62 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D3 B9 02 00 0E 04 04 00 D6 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 4C [11:38: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D3 B9 02 00 0E 04 04 00 D6 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 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetFieldsCounters done [11:38:06]requested_item shift.num is exist - process it [11:38:06]requested_item shift.opened is exist - process it [11:38:06]req_shift_opened [11:38:06]FM_GetShiftState [11:38:06]SAM_PROTO_GetShiftState [11:38:06]wFMCommunicate request_size=4 [11:38:06]MH_SAM_APDU [11:38:06]CAPDU: 80 13 01 00 [11:38:06]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [11:38:06]Write i2c OK [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 [11:38:06]MH_I2C_Read... [11:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:06]Read from MH i2c: E2 0E 00 [11:38:06]MH_I2C_Read... [11:38:06]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [11:38:06]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:38:06]wFMCommunicate OK [11:38:06]SAM_PROTO_GetShiftState done [11:38:06]FM_GetShiftState done [11:38:06]req_shift_opened done [11:38:06]requested_item shift.open_date is exist - process it [11:38:06]req_shift_open_date [11:38:06]req_shift_open_date done [11:38:06]produce_requested_data done [11:38:06]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178643,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [11:38:06]process_action_free get_value [11:38:06]json_value_free [11:38:06]json_value_free done [11:38:06]process_json_proto returns [11:38:06]Send response to host [11:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178643,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [11:38:06]free response buf [11:38:06]execute_script done [1[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:13]recv_with_timeout no data received [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:28]recv_with_timeout no data received [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:43]recv_with_timeout no data received [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:27]recv_with_timeout no data received [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]recv_with_timeout no data received [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:25]recv_with_timeout no data received [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:57]recv_with_timeout no data received [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:52:20]ConnectInit Can't connect to host [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:05]recv_with_timeout no data received [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:53]recv_with_timeout no data received [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:17]recv_with_timeout no data received [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:12]recv_with_timeout no data received [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:35]accept exits with 9 [11:57:35]New connection [11:57:35]New thread 3067346276 created [11:57:35]Thread 3067202916 joined [11:57:35]Waiting for new connection... [11:57:35] Sock 9.Parse request [11:57:35]Sock 9.Check first char [11:57:35]Sock 9.First char is OK [11:57:35]request: POST /json_proto HTTP/1.0 [11:57:35]Method: POST [11:57:35]URL: /json_proto [11:57:35]Method is POST - this is cgi request [11:57:35]url: /json_proto [11:57:35]query_string will be loaded in cgi processing [11:57:35]execute_cgi json_proto POST (null) [11:57:35]execute_cgi path=json_proto method=POST [11:57:35]POST find Content-Length [11:57:35]Host: 172.17.44.131:8080 [11:57:35]Content-Length: 679 [11:57:35]Content-Type: application/json [11:57:35] [11:57:35]POST finish read [11:57:35]Found Content-Length = 679 [11:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:35]execute_script... [11:57: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)294215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:35]POST & json_proto [11:57:35]process_json_proto [11:57:35]json parsed OK: [11:57:35]protocol is kg_v1.0 [11:57:35]action value=close_receipt [11:57:35]process_action close_receipt [11:57:35]cmd_close_receipt [11:57:35]MH_GetDate [11:57:35]Write to MH i2c: F0 00 00 1D 00 0C [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 09 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 09 00 1D 00 00 30 79 C8 66 4F 53 BE 66 B2 [11:57:35]GetLastDocTimeStamp 1724411046 [11:57:35]current date 1724414256 [11:57:35]FM_GetShiftState [11:57:35]SAM_PROTO_GetShiftState [11:57:35]wFMCommunicate request_size=4 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 13 01 00 [11:57:35]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:35]Read from MH i2c: E2 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 0E 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [11:57:35]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:57:35]wFMCommunicate OK [11:57:35]SAM_PROTO_GetShiftState done [11:57:35]FM_GetShiftState done [11:57:35]opened in 1724371660 [11:57:35]opened+sec_in_day 1724458060 [11:57:35]quantity*price = 140055 [11:57:35]sum+1 = 140057 [11:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 104 23.08.2024 11:57 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178644 ФПД: 148219117235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T115736&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178644&fm=148219117235&tin=02508201610067®Number=0000000000092561&sum=140000 [11:57:36]StoreToDocumentArchive [11:57:36]shift 470 fd 178644 [11:57:36]save to /storage/0470/doc_00178644 [11:57:36]save last doc name /storage/0470/doc_00178644 to /storage/kkm_last_doc_name [11:57:36]save OK [11:57:36]Clear old archive folders... [11:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:36]tlvbuf is 011BEC30 [11:57:36]SAM_PROTO_ClearQueue [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 09 00 00 [11:57:36]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]SAM_PROTO_ClearQueue done [11:57:36]KKMCreateOFDPacket [11:57:36]OFDProtocolAddRootSTLVToBuf [11:57:36]FM_MakeSignedData [11:57:36]FM_MakeSignedData [11:57:36]SAM_PROTO_SignData [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 01 02 [11:57:36]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=255 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 30 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D4 B9 02 00 35 04 06 00 00 22 82 8C [11:57:36]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 30 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D4 B9 02 00 35 04 06 00 00 22 82 8C 00 00 47 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:57:37]RAPDU: 90 00 [11:57:37]wFMCommunicate OK [11:57:37]wFMCommunicate request_size=7 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 0D 02 02 02 3E B3 [11:57:37]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 3E B3 00 00 9D [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:57:37]RAPDU: 90 00 [11:57:37]wFMCommunicate OK [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 0D 03 02 [11:57:37]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0B 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 0B 00 2F 00 00 36 A4 AE CB 76 BD 65 73 90 00 09 [11:57:37]RAPDU: 36 A4 AE CB 76 BD 65 73 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_SignData done [11:57:37]FM_MakeSignedData done [11:57:37]CreateOFDProtocolMessage [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 11 00 00 [11:57:37]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [11:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:57:37]wFMCommunicate OK [11:57:37]CreateOFDProtocolMessage done [11:57:37]OFDSenderStorePacket 178644 [11:57:37]StoreOFDPacket docnum=178644 [11:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 FC 88 04 01 AF 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 30 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D4 B9 02 00 35 04 06 00 00 22 82 8C 3E B3 36 A4 AE CB 76 BD 65 73 [11:57:37]CheckFolder [11:57:37]dirname=/storage/ofd_packets [11:57:37]CheckFolder done [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00178644 [11:57:37]NVStorageSaveData ofd_packets/00178644 [11:57:37]File name is /storage/ofd_packets/00178644 [11:57:37]Write 298 bytes [11:57:37]NVStorageSaveData done [11:57:37]OFDSenderStorePacket done [11:57:37]KKMCreateOFDPacket done [11:57:37]NVStorageSaveData kkm_last_timestamp [11:57:37]File name is /storage/kkm_last_timestamp [11:57:37]Write 4 bytes [11:57:37]NVStorageSaveData done [11:57:37]ExternCall_PrintAddStr [11:57:37]wPrintStart [11:57:37]Write to MH i2c: 01 00 00 31 00 31 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:57:37]RasterBufferAndPrint [11:57:37]line Счет N : (1)294215 [11:57:37]line ИНН: 02508201610067 [11:57:37]line Контрольно-Кассовый Чек [11:57:37]line ПРОДАЖА [11:57:37]line ТРК (МРК, ГНК) : 21 [11:57:37]line Товар: 2710194800 [11:57:37]line ДТ-К-5 [11:57:37]line 18.380 * 76.20 [11:57:37]line = 1400.56 [11:57:37]line НДС 12% НСП 1% [11:57:37]line > о реализуемом товаре [11:57:37]line ОКРУГЛЕНИЕ: -0.56 [11:57:37]line ИТОГО: 1400.00 [11:57:37]line Внесено: 1400.00 [11:57:37]line СДАЧА: 0.00 [11:57:37]line НСП 1% : 12.39 [11:57:37]line НДС 12% : 148.73 [11:57:37]line Наличными: 1400.00 [11:57:37]line Безнал.: 0.00 [11:57:37]line Место: АЗС № 130 "Партнер Нефть" [11:57:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:57:37]line СНО: Общий режим [11:57:37]line Чек 104 23.08.2024 11:57 [11:57:37]line Смена: 470 ФФД: 1.0 [11:57:37]line ЗНМ: 0300000071 [11:57:37]line РНМ: 0000000000092561 [11:57:37]line Версия ККМ: 001 [11:57:37]line ФМ: 0000000000871778 [11:57:37]line ФД: 178644 [11:57:37]line ФПД: 148219117235 [11:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T115736&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178644&fm=148219117235&tin=02508201610067®Number=0000000000092561&sum=140000 [11:57:37]written 0, free lines is 4095 [11:57:37]OFD Sender: Processing packet 178644 [packets to send 498, broken 497] [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00178644 [11:57:37]OFD Sender: To server: pG, [11:57:37]CommunicateWithHost lk.salyk.kg:30040 [11:57:37]ConnectInit lk.salyk.kg [11:57:37]Write to MH i2c: 01 00 00 5C 00 5C [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E9 0C 58 [11:57:37]RasterBufferAndPrint [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]written 0, free lines is 3311 [11:57:37]MH_Cut [11:57:37]Write to MH i2c: D1 01 00 63 00 01 35 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 01 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 01 00 63 00 00 34 [11:57:37]Write to MH i2c: 01 00 00 64 00 64 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:38]*** Cut start [11:57:38]*** Partial cut [11:57:38]*** CUTSNS_PIN = 1 [11:57:38]*** CUTSNS_PIN = 0 [11:57:38]*** Brake cut motor [11:57:38]Read from MH i2c: 01 [11:57:38]MH_I2C_Read... [11:57:38]*** Stop cut motor [11:57:38]*** Cut end [11:57:38]Read from MH i2c: 01 07 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [11:57:38]process_action close_receipt done [11:57:38]requested_data is exist [11:57:38]produce_requested_data [11:57:38]requested_item fm.sn is exist - process it [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 11 00 00 [11:57:38]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 17 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [11:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:57:38]wFMCommunicate OK [11:57:38]requested_item fd.num is exist - process it [11:57:38]SAM_PROTO_GetFieldsCounters [11:57:38]wFMCommunicate request_size=4 [11:57:38]MH_SAM_APDU [11:57:38]CAPDU: 80 13 00 00 [11:57:38]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [11:57:38]Write i2c OK [11:57:38]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 62 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D4 B9 02 00 0E 04 04 00 D6 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 A5 [11:57: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D4 B9 02 00 0E 04 04 00 D6 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 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_GetFieldsCounters done [11:57:39]requested_item shift.num is exist - process it [11:57:39]requested_item shift.opened is exist - process it [11:57:39]req_shift_opened [11:57:39]FM_GetShiftState [11:57:39]SAM_PROTO_GetShiftState [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 13 01 00 [11:57:39]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0E 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BB [11:57:39]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_GetShiftState done [11:57:39]FM_GetShiftState done [11:57:39]req_shift_opened done [11:57:39]requested_item shift.open_date is exist - process it [11:57:39]req_shift_open_date [11:57:39]req_shift_open_date done [11:57:39]produce_requested_data done [11:57:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178644,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [11:57:39]process_action_free close_receipt [11:57:39]json_value_free [11:57:39]json_value_free done [11:57:39]process_json_proto returns [11:57:39]Send response to host [11:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178644,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [11:57:39]free response buf [11:57:39]execute_script done [11:57:39]execute_script returns [11:57:39]free content buf [11:57:39]Sock 9.Close socket [11:57:39]Sock 9.Thread stoped [11:57:39]Connected sock=11 [11:57:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 FC 88 04 01 AF 2C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 30 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D4 B9 02 00 35 04 06 00 00 22 82 8C 3E B3 36 A4 AE CB 76 BD 65 73 [11:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CE 02 47 00 94 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 31 37 37 38 10 04 04 00 D4 B9 02 00 F4 03 04 00 D9 24 C8 66 B6 04 01 00 00 50 4E 12 C2 20 0E 38 C8 [11:57:40]CommunicateWithHost err = 0 [11:57:40]CheckOFDResponse [11:57:40]1017 (14) - 77093643461234 [11:57:40]1041 (16) - 0000000000871778 [11:57:40]1040 (4) - 178644 [11:57:40]1012 (4) - 23.08.2024 05:57 [11:57:40]1206 (1) - 0 [11:57:40]OFD Sender: Remove packet 178644 [11:57:40]ProducePacketName [11:57:40]name=ofd_packets/00178644 [11:57:40]NVStorageDeleteData [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]recv_with_timeout no data received [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:10]recv_with_timeout no data received [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:33]accept exits with 10 [11:58:33]New connection [11:58:33]New thread 3067202916 created [11:58:33]Thread 3067346276 joined [11:58:33]Waiting for new connection... [11:58:33] Sock 10.Parse request [11:58:33]Sock 10.Check first char [11:58:33]Sock 10.First char is OK [11:58:33]request: POST /json_proto HTTP/1.0 [11:58:33]Method: POST [11:58:33]URL: /json_proto [11:58:33]Method is POST - this is cgi request [11:58:33]url: /json_proto [11:58:33]query_string will be loaded in cgi processing [11:58:33]execute_cgi json_proto POST (null) [11:58:33]execute_cgi path=json_proto method=POST [11:58:33]POST find Content-Length [11:58:33]Host: 172.17.44.131:8080 [11:58:33]Content-Length: 751 [11:58:33]Content-Type: application/json [11:58:33] [11:58:33]POST finish read [11:58:33]Found Content-Length = 751 [11:58:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:33]execute_script... [11:58: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)294214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 80.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116596", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:33]POST & json_proto [11:58:33]process_json_proto [11:58:33]json parsed OK: [11:58:33]protocol is kg_v1.0 [11:58:33]action value=close_receipt [11:58:33]process_action close_receipt [11:58:33]cmd_close_receipt [11:58:33]MH_GetDate [11:58:33]Write to MH i2c: F0 00 00 68 00 57 [11:58:33]Write i2c OK [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: F0 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: F0 09 00 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: F0 09 00 68 00 00 6A 79 C8 66 4F 53 BE 66 37 [11:58:33]GetLastDocTimeStamp 1724414256 [11:58:33]current date 1724414314 [11:58:33]FM_GetShiftState [11:58:33]SAM_PROTO_GetShiftState [11:58:33]wFMCommunicate request_size=4 [11:58:33]MH_SAM_APDU [11:58:33]CAPDU: 80 13 01 00 [11:58:33]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [11:58:33]Write i2c OK [11:58:33]MH_I2C_Read... [11:58:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:33]Read from MH i2c: E2 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: E2 0E 00 [11:58:33]MH_I2C_Read... [11:58:33]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BD [11:58:33]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:58:33]wFMCommunicate OK [11:58:33]SAM_PROTO_GetShiftState done [11:58:33]FM_GetShiftState done [11:58:33]opened in 1724371660 [11:58:33]opened+sec_in_day 1724458060 [11:58:33]quantity*price = 0 [11:58:33]sum+1 = 1 [11:58:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 105 23.08.2024 11:58 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116596 ФМ: 0000000000871778 ФД: 178645 ФПД: 132060131959213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T115834&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178645&fm=132060131959213&tin=02508201610067®Number=0000000000092561&sum=0 [11:58:34]StoreToDocumentArchive [11:58:34]shift 470 fd 178645 [11:58:34]save to /storage/0470/doc_00178645 [11:58:34]save last doc name /storage/0470/doc_00178645 to /storage/kkm_last_doc_name [11:58:34]save OK [11:58:34]Clear old archive folders... [11:58:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:58:34]tlvbuf is 011DD370 [11:58:34]SAM_PROTO_ClearQueue [11:58:34]wFMCommunicate request_size=4 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 09 00 00 [11:58:34]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:58:34]RAPDU: 90 00 [11:58:34]wFMCommunicate OK [11:58:34]SAM_PROTO_ClearQueue done [11:58:34]KKMCreateOFDPacket [11:58:34]OFDProtocolAddRootSTLVToBuf [11:58:34]FM_MakeSignedData [11:58:34]FM_MakeSignedData [11:58:34]SAM_PROTO_SignData [11:58:34]wFMCommunicate request_size=4 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 0D 01 02 [11:58:34]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:58:34]RAPDU: 90 00 [11:58:34]wFMCommunicate OK [11:58:34]wFMCommunicate request_size=255 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6A 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D5 B9 02 00 35 04 06 00 78 1B A5 41 [11:58:34]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6A 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D5 B9 02 00 35 04 06 00 78 1B A5 41 00 00 69 [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:58:34]RAPDU: 90 00 [11:58:34]wFMCommunicate OK [11:58:34]wFMCommunicate request_size=7 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 0D 02 02 02 21 AD [11:58:34]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 21 AD 00 00 C5 [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:34]Read from MH i2c: E2 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 [11:58:34]MH_I2C_Read... [11:58:34]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [11:58:34]RAPDU: 90 00 [11:58:34]wFMCommunicate OK [11:58:34]wFMCommunicate request_size=4 [11:58:34]MH_SAM_APDU [11:58:34]CAPDU: 80 0D 03 02 [11:58:34]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [11:58:34]Write i2c OK [11:58:34]MH_I2C_Read... [11:58:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:35]Read from MH i2c: E2 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 0B 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 0B 00 7A 00 00 B0 FF E1 AD 7A F6 A9 4C 90 00 98 [11:58:35]RAPDU: B0 FF E1 AD 7A F6 A9 4C 90 00 [11:58:35]wFMCommunicate OK [11:58:35]SAM_PROTO_SignData done [11:58:35]FM_MakeSignedData done [11:58:35]CreateOFDProtocolMessage [11:58:35]wFMCommunicate request_size=4 [11:58:35]MH_SAM_APDU [11:58:35]CAPDU: 80 11 00 00 [11:58:35]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:35]Read from MH i2c: E2 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 17 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4E [11:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:58:35]wFMCommunicate OK [11:58:35]CreateOFDProtocolMessage done [11:58:35]OFDSenderStorePacket 178645 [11:58:35]StoreOFDPacket docnum=178645 [11:58:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A9 90 04 01 CA 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6A 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D5 B9 02 00 35 04 06 00 78 1B A5 41 21 AD B0 FF E1 AD 7A F6 A9 4C [11:58:35]CheckFolder [11:58:35]dirname=/storage/ofd_packets [11:58:35]CheckFolder done [11:58:35]ProducePacketName [11:58:35]name=ofd_packets/00178645 [11:58:35]NVStorageSaveData ofd_packets/00178645 [11:58:35]File name is /storage/ofd_packets/00178645 [11:58:35]Write 298 bytes [11:58:35]NVStorageSaveData done [11:58:35]OFDSenderStorePacket done [11:58:35]KKMCreateOFDPacket done [11:58:35]NVStorageSaveData kkm_last_timestamp [11:58:35]File name is /storage/kkm_last_timestamp [11:58:35]Write 4 bytes [11:58:35]NVStorageSaveData done [11:58:35]ExternCall_PrintAddStr [11:58:35]wPrintStart [11:58:35]Write to MH i2c: 01 00 00 7C 00 7C [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 07 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [11:58:35]RasterBufferAndPrint [11:58:35]line Счет N : (1)294214 [11:58:35]line ИНН: 02508201610067 [11:58:35]line Контрольно-Кассовый Чек [11:58:35]line ПРОДАЖА [11:58:35]line ТРК (МРК, ГНК) : 64 [11:58:35]line Товар: 2710194800 [11:58:35]line ДТ-К-5 [11:58:35]line 80.000 * 0.00 [11:58:35]line = 0.00 [11:58:35]line НДС 12% НСП 1% [11:58:35]line > о реализуемом товаре [11:58:35]line ИТОГО: 0.00 [11:58:35]line НСП 1% : 0.00 [11:58:35]line НДС 12% : 0.00 [11:58:35]line Наличными: 0.00 [11:58:35]line Безнал.: 0.00 [11:58:35]line Место: АЗС № 130 "Партнер Нефть" [11:58:35]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [11:58:35]line СНО: Общий режим [11:58:35]line Чек 105 23.08.2024 11:58 [11:58:35]line Смена: 470 ФФД: 1.0 [11:58:35]line ЗНМ: 0300000071 [11:58:35]line РНМ: 0000000000092561 [11:58:35]line Версия ККМ: 001 [11:58:35]line Талоны: ТК ГПНА Online [11:58:35]line 30116596 [11:58:35]line ФМ: 0000000000871778 [11:58:35]line ФД: 178645 [11:58:35]line ФПД: 132060131959213 [11:58:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T115834&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178645&fm=132060131959213&tin=02508201610067®Number=0000000000092561&sum=0 [11:58:35]OFD Sender: Processing packet 178645 [packets to send 498, broken 497] [11:58:35]ProducePacketName [11:58:35]name=ofd_packets/00178645 [11:58:35]OFD Sender: To server: pG, [11:58:35]CommunicateWithHost lk.salyk.kg:30040 [11:58:35]ConnectInit lk.salyk.kg [11:58:35]written 0, free lines is 4095 [11:58:35]Write to MH i2c: 01 00 00 A6 00 A6 [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 07 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 EA 0C A3 [11:58:35]RasterBufferAndPrint [11:58:35]line [11:58:35]line [11:58:35]line [11:58:35]line [11:58:35]line [11:58:35]written 0, free lines is 3312 [11:58:35]MH_Cut [11:58:35]Write to MH i2c: D1 01 00 AD 00 01 7F [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: D1 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: D1 01 00 [11:58:35]MH_I2C_Read... [11:58:35]Read from MH i2c: D1 01 00 AD 00 00 7E [11:58:35]Write to MH i2c: 01 00 00 AE 00 AE [11:58:35]Write i2c OK [11:58:35]MH_I2C_Read... [11:58:36]*** Cut start [11:58:36]*** Partial cut [11:58:36]*** CUTSNS_PIN = 1 [11:58:36]Connected sock=9 [11:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A9 90 04 01 CA 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 6A 79 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D5 B9 02 00 35 04 06 00 78 1B A5 41 21 AD B0 FF E1 AD 7A F6 A9 4C [11:58:36]*** CUTSNS_PIN = 0 [11:58:36]*** Brake cut motor [11:58:37]Read from MH i2c: 01 [11:58:37]MH_I2C_Read... [11:58:37]*** Stop cut motor [11:58:37]*** Cut end [11:58:37]Read from MH i2c: 01 07 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [11:58:37]process_action close_receipt done [11:58:37]requested_data is exist [11:58:37]produce_requested_data [11:58:37]requested_item fm.sn is exist - process it [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 11 00 00 [11:58:37]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 17 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [11:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [11:58:37]wFMCommunicate OK [11:58:37]requested_item fd.num is exist - process it [11:58:37]SAM_PROTO_GetFieldsCounters [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 13 00 00 [11:58:37]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 62 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D5 B9 02 00 0E 04 04 00 D6 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 F3 [11:58: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D5 B9 02 00 0E 04 04 00 D6 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 [11:58:37]wFMCommunicate OK [11:58:37]SAM_PROTO_GetFieldsCounters done [11:58:37]requested_item shift.num is exist - process it [11:58:37]requested_item shift.opened is exist - process it [11:58:37]req_shift_opened [11:58:37]FM_GetShiftState [11:58:37]SAM_PROTO_GetShiftState [11:58:37]wFMCommunicate request_size=4 [11:58:37]MH_SAM_APDU [11:58:37]CAPDU: 80 13 01 00 [11:58:37]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [11:58:37]Write i2c OK [11:58:37]MH_I2C_Read... [11:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:37]Read from MH i2c: E2 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 0E 00 [11:58:37]MH_I2C_Read... [11:58:37]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 05 [11:58:37]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [11:58:37]wFMCommunicate OK [11:58:37]SAM_PROTO_GetShiftState done [11:58:37]FM_GetShiftState done [11:58:37]req_shift_opened done [11:58:37]requested_item shift.open_date is exist - process it [11:58:37]req_shift_open_date [11:58:37]req_shift_open_date done [11:58:37]produce_requested_data done [11:58:37]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178645,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [11:58:37]process_action_free close_receipt [11:58:37]json_value_free [11:58:37]json_value_free done [11:58:37]process_json_proto returns [11:58:37]Send response to host [11:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178645,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [11:58:37]free response buf [11:58:37]execute_script done [11:58:37]execute_script returns [11:58:37]free content buf [11:58:37]Sock 10.Close socket [11:58:37]Sock 10.Thread stoped [11:58:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CB 91 47 00 ED 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 31 37 37 38 10 04 04 00 D5 B9 02 00 F4 03 04 00 13 25 C8 66 B6 04 01 00 00 6B 3D 14 0E 06 3C 7B 5F [11:58:37]CommunicateWithHost err = 0 [11:58:37]CheckOFDResponse [11:58:37]1017 (14) - 77093643461234 [11:58:37]1041 (16) - 0000000000871778 [11:58:37]1040 (4) - 178645 [11:58:37]1012 (4) - 23.08.2024 05:58 [11:58:37]1206 (1) - 0 [11:58:37]OFD Sender: Remove packet 178645 [11:58:37]ProducePacketName [11:58:37]name=ofd_packets/00178645 [11:58:37]NVStorageDeleteData [11:58:38]OFD Sender: No OFD packet to send [11:58:42]recv_with_timeout no data received [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:13]recv_with_timeout no data received [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:26]recv_with_timeout no data received [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:43]recv_with_timeout no data received [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:25]recv_with_timeout no data received [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:58]recv_with_timeout no data received [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:40]recv_with_timeout no data received [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08: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]recv_with_timeout no data received [12:09:19]OFD Sender: No OFD packet to send [12:09:23]accept exits with 7 [12:09:23]New connection [12:09:23]New thread 3067346276 created [12:09:23]Thread 3067202916 joined [12:09:23]Waiting for new connection... [12:09:23] Sock 7.Parse request [12:09:23]Sock 7.Check first char [12:09:23]Sock 7.First char is OK [12:09:23]request: POST /json_proto HTTP/1.0 [12:09:23]Method: POST [12:09:23]URL: /json_proto [12:09:23]Method is POST - this is cgi request [12:09:23]url: /json_proto [12:09:23]query_string will be loaded in cgi processing [12:09:23]execute_cgi json_proto POST (null) [12:09:23]execute_cgi path=json_proto method=POST [12:09:23]POST find Content-Length [12:09:23]Host: 172.17.44.131:8080 [12:09:23]Content-Length: 677 [12:09:23]Content-Type: application/json [12:09:23] [12:09:23]POST finish read [12:09:23]Found Content-Length = 677 [12:09:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294222", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:09:23]execute_script... [12:09: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)294222", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [12:09:23]POST & json_proto [12:09:23]process_json_proto [12:09:23]json parsed OK: [12:09:23]protocol is kg_v1.0 [12:09:23]action value=close_receipt [12:09:23]process_action close_receipt [12:09:23]cmd_close_receipt [12:09:23]MH_GetDate [12:09:23]Write to MH i2c: F0 00 00 B2 00 A1 [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: F0 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: F0 09 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: F0 09 00 B2 00 00 F4 7B C8 66 4F 53 BE 66 0D [12:09:23]GetLastDocTimeStamp 1724414314 [12:09:23]current date 1724414964 [12:09:23]FM_GetShiftState [12:09:23]SAM_PROTO_GetShiftState [12:09:23]wFMCommunicate request_size=4 [12:09:23]MH_SAM_APDU [12:09:23]CAPDU: 80 13 01 00 [12:09:23]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [12:09:23]Write i2c OK [12:09:23]MH_I2C_Read... [12:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:23]Read from MH i2c: E2 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 0E 00 [12:09:23]MH_I2C_Read... [12:09:23]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 07 [12:09:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [12:09:23]wFMCommunicate OK [12:09:23]SAM_PROTO_GetShiftState done [12:09:23]FM_GetShiftState done [12:09:23]opened in 1724371660 [12:09:23]opened+sec_in_day 1724458060 [12:09:23]quantity*price = 40002 [12:09:23]sum+1 = 40003 [12:09:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 106 23.08.2024 12:09 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178646 ФПД: 15361468200297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T120924&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178646&fm=15361468200297&tin=02508201610067®Number=0000000000092561&sum=40000 [12:09:24]StoreToDocumentArchive [12:09:24]shift 470 fd 178646 [12:09:24]save to /storage/0470/doc_00178646 [12:09:24]save last doc name /storage/0470/doc_00178646 to /storage/kkm_last_doc_name [12:09:24]save OK [12:09:24]Clear old archive folders... [12:09:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:24]tlvbuf is 011A8E20 [12:09:24]SAM_PROTO_ClearQueue [12:09:24]wFMCommunicate request_size=4 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 09 00 00 [12:09:24]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [12:09:24]RAPDU: 90 00 [12:09:24]wFMCommunicate OK [12:09:24]SAM_PROTO_ClearQueue done [12:09:24]KKMCreateOFDPacket [12:09:24]OFDProtocolAddRootSTLVToBuf [12:09:24]FM_MakeSignedData [12:09:24]FM_MakeSignedData [12:09:24]SAM_PROTO_SignData [12:09:24]wFMCommunicate request_size=4 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 0D 01 02 [12:09:24]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:24]Read from MH i2c: E2 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 [12:09:24]MH_I2C_Read... [12:09:24]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:09:24]RAPDU: 90 00 [12:09:24]wFMCommunicate OK [12:09:24]wFMCommunicate request_size=255 [12:09:24]MH_SAM_APDU [12:09:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F4 7B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D6 B9 02 00 35 04 06 00 0D [12:09:24]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F4 7B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D6 B9 02 00 35 04 06 00 0D 00 00 1E [12:09:24]Write i2c OK [12:09:24]MH_I2C_Read... [12:09:24]OFD Sender: No OFD packet to send [12:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [12:09:25]RAPDU: 90 00 [12:09:25]wFMCommunicate OK [12:09:25]wFMCommunicate request_size=10 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 0D 02 02 05 F8 9E DA F5 69 [12:09:25]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 F8 9E DA F5 69 00 00 15 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [12:09:25]RAPDU: 90 00 [12:09:25]wFMCommunicate OK [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 0D 03 02 [12:09:25]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 0B 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 0B 00 C4 00 00 95 57 AE C5 06 BD AF 82 90 00 93 [12:09:25]RAPDU: 95 57 AE C5 06 BD AF 82 90 00 [12:09:25]wFMCommunicate OK [12:09:25]SAM_PROTO_SignData done [12:09:25]FM_MakeSignedData done [12:09:25]CreateOFDProtocolMessage [12:09:25]wFMCommunicate request_size=4 [12:09:25]MH_SAM_APDU [12:09:25]CAPDU: 80 11 00 00 [12:09:25]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:25]Read from MH i2c: E2 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 17 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [12:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:09:25]wFMCommunicate OK [12:09:25]CreateOFDProtocolMessage done [12:09:25]OFDSenderStorePacket 178646 [12:09:25]StoreOFDPacket docnum=178646 [12:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9F 24 07 01 13 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F4 7B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D6 B9 02 00 35 04 06 00 0D F8 9E DA F5 69 95 57 AE C5 06 BD AF 82 [12:09:25]CheckFolder [12:09:25]dirname=/storage/ofd_packets [12:09:25]CheckFolder done [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00178646 [12:09:25]NVStorageSaveData ofd_packets/00178646 [12:09:25]File name is /storage/ofd_packets/00178646 [12:09:25]Write 301 bytes [12:09:25]NVStorageSaveData done [12:09:25]OFDSenderStorePacket done [12:09:25]KKMCreateOFDPacket done [12:09:25]NVStorageSaveData kkm_last_timestamp [12:09:25]File name is /storage/kkm_last_timestamp [12:09:25]Write 4 bytes [12:09:25]NVStorageSaveData done [12:09:25]ExternCall_PrintAddStr [12:09:25]wPrintStart [12:09:25]Write to MH i2c: 01 00 00 C6 00 C6 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [12:09:25]RasterBufferAndPrint [12:09:25]line Счет N : (1)294222 [12:09:25]line ИНН: 02508201610067 [12:09:25]line Контрольно-Кассовый Чек [12:09:25]line ПРОДАЖА [12:09:25]line ТРК (МРК, ГНК) : 32 [12:09:25]line Товар: 2710124130 [12:09:25]line Аи-92-К-5 [12:09:25]line 5.900 * 67.80 [12:09:25]line = 400.02 [12:09:25]line НДС 12% НСП 1% [12:09:25]line > о реализуемом товаре [12:09:25]line ОКРУГЛЕНИЕ: -0.02 [12:09:25]line ИТОГО: 400.00 [12:09:25]line Внесено: 400.00 [12:09:25]line СДАЧА: 0.00 [12:09:25]line НСП 1% : 3.54 [12:09:25]line НДС 12% : 42.48 [12:09:25]line Наличными: 400.00 [12:09:25]line Безнал.: 0.00 [12:09:25]line Место: АЗС № 130 "Партнер Нефть" [12:09:25]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [12:09:25]line СНО: Общий режим [12:09:25]line Чек 106 23.08.2024 12:09 [12:09:25]line Смена: 470 ФФД: 1.0 [12:09:25]line ЗНМ: 0300000071 [12:09:25]line РНМ: 0000000000092561 [12:09:25]line Версия ККМ: 001 [12:09:25]line ФМ: 0000000000871778 [12:09:25]line ФД: 178646 [12:09:25]line ФПД: 15361468200297 [12:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T120924&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178646&fm=15361468200297&tin=02508201610067®Number=0000000000092561&sum=40000 [12:09:25]OFD Sender: Processing packet 178646 [packets to send 498, broken 497] [12:09:25]ProducePacketName [12:09:25]name=ofd_packets/00178646 [12:09:25]OFD Sender: To server: pG, [12:09:25]CommunicateWithHost lk.salyk.kg:30040 [12:09:25]ConnectInit lk.salyk.kg [12:09:25]written 0, free lines is 4095 [12:09:25]Write to MH i2c: 01 00 00 F1 00 F1 [12:09:25]Write i2c OK [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 [12:09:25]MH_I2C_Read... [12:09:25]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 E1 0C E5 [12:09:25]RasterBufferAndPrint [12:09:25]line [12:09:25]line [12:09:25]line [12:09:25]line [12:09:25]line [12:09:25]written 0, free lines is 3303 [12:09:26]MH_Cut [12:09:26]Write to MH i2c: D1 01 00 F8 00 01 CA [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: D1 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: D1 01 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: D1 01 00 F8 00 00 C9 [12:09:26]Write to MH i2c: 01 00 00 F9 00 F9 [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** Cut start [12:09:26]*** Partial cut [12:09:26]*** CUTSNS_PIN = 1 [12:09:26]*** CUTSNS_PIN = 0 [12:09:26]*** Brake cut motor [12:09:27]Connected sock=11 [12:09:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9F 24 07 01 13 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 F4 7B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D6 B9 02 00 35 04 06 00 0D F8 9E DA F5 69 95 57 AE C5 06 BD AF 82 [12:09:27]Read from MH i2c: 01 [12:09:27]MH_I2C_Read... [12:09:27]*** Stop cut motor [12:09:27]*** Cut end [12:09:27]Read from MH i2c: 01 07 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [12:09:27]process_action close_receipt done [12:09:27]requested_data is exist [12:09:27]produce_requested_data [12:09:27]requested_item fm.sn is exist - process it [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 11 00 00 [12:09:27]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [12:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:09:27]wFMCommunicate OK [12:09:27]requested_item fd.num is exist - process it [12:09:27]SAM_PROTO_GetFieldsCounters [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 13 00 00 [12:09:27]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 63 50 47 00 D6 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 31 37 37 38 10 04 04 00 D6 B9 02 00 F4 03 04 00 9C 27 C8 66 B6 04 01 00 00 25 E7 E4 90 AF 7F CD 4E [12:09:27]CommunicateWithHost err = 0 [12:09:27]CheckOFDResponse [12:09:27]1017 (14) - 77093643461234 [12:09:27]1041 (16) - 0000000000871778 [12:09:27]1040 (4) - 178646 [12:09:27]1012 (4) - 23.08.2024 06:09 [12:09:27]1206 (1) - 0 [12:09:27]OFD Sender: Remove packet 178646 [12:09:27]ProducePacketName [12:09:27]name=ofd_packets/00178646 [12:09:27]NVStorageDeleteData [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 62 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D6 B9 02 00 0E 04 04 00 D6 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 42 [12:09:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D6 B9 02 00 0E 04 04 00 D6 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 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetFieldsCounters done [12:09:27]requested_item shift.num is exist - process it [12:09:27]requested_item shift.opened is exist - process it [12:09:27]req_shift_opened [12:09:27]FM_GetShiftState [12:09:27]SAM_PROTO_GetShiftState [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 13 01 00 [12:09:27]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 50 [12:09:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_GetShiftState done [12:09:27]FM_GetShiftState done [12:09:27]req_shift_opened done [12:09:27]requested_item shift.open_date is exist - process it [12:09:27]req_shift_open_date [12:09:27]req_shift_open_date done [12:09:27]produce_requested_data done [12:09:27]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178646,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [12:09:27]process_action_free close_receipt [12:09:27]json_value_free [12:09:27]json_value_free done [12:09:27]process_json_proto returns [12:09:27]Send response to host [12:09:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178646,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [12:09:27]free response buf [12:09:27]execute_script done [12:09:27]execute_script returns [12:09:27]free content buf [12:09:27]Sock 7.Close socket [12:09:27]Sock 7.Thread stoped [12:09:27]OFD Sender: No OFD packet to send [12:09:32]OFD Sender: No OFD packet to send [12:09:37]OFD Sender: No OFD packet to send [12:09:42]OFD Sender: No OFD packet to send [12:09:47]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:57]recv_with_timeout no data received [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:07]recv_with_timeout no data received [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:38]recv_with_timeout no data received [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:18:12]ConnectInit Can't connect to host [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:19:36]ConnectInit Can't connect to host [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:11]recv_with_timeout no data received [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:27]recv_with_timeout no data received [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:26:26]ConnectInit Can't connect to host [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:04]recv_with_timeout no data received [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:33]recv_with_timeout no data received [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]recv_with_timeout no data received [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:29:43]ConnectInit Can't connect to host [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:31]OFD Sender: No OFD packet to send [12:30:36]OFD Sender: No OFD packet to send [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:06]OFD Sender: No OFD packet to send [12:31:11]OFD Sender: No OFD packet to send [12:31:16]OFD Sender: No OFD packet to send [12:31:21]OFD Sender: No OFD packet to send [12:31:26]OFD Sender: No OFD packet to send [12:31:31]OFD Sender: No OFD packet to send [12:31:36]OFD Sender: No OFD packet to send [12:31:41]OFD Sender: No OFD packet to send [12:31:46]OFD Sender: No OFD packet to send [12:31:51]OFD Sender: No OFD packet to send [12:31:56]OFD Sender: No OFD packet to send [12:32:01]OFD Sender: No OFD packet to send [12:32:06]OFD Sender: No OFD packet to send [12:32:11]OFD Sender: No OFD packet to send [12:32:16]OFD Sender: No OFD packet to send [12:32:21]OFD Sender: No OFD packet to send [12:32:26]OFD Sender: No OFD packet to send [12:32:31]OFD Sender: No OFD packet to send [12:32:34]recv_with_timeout no data received [12:32:36]OFD Sender: No OFD packet to send [12:32:41]OFD Sender: No OFD packet to send [12:32:46]OFD Sender: No OFD packet to send [12:32:51]OFD Sender: No OFD packet to send [12:32:56]OFD Sender: No OFD packet to send [12:33:01]OFD Sender: No OFD packet to send [12:33:06]OFD Sender: No OFD packet to send [12:33:10]recv_with_timeout no data received [12:33:11]OFD Sender: No OFD packet to send [12:33:16]OFD Sender: No OFD packet to send [12:33:21]OFD Sender: No OFD packet to send [12:33:26]OFD Sender: No OFD packet to send [12:33:28]recv_with_timeout no data received [12:33:31]OFD Sender: No OFD packet to send [12:33:36]OFD Sender: No OFD packet to send [12:33:41]OFD Sender: No OFD packet to send [12:33:46]OFD Sender: No OFD packet to send [12:33:47]recv_with_timeout no data received [12:33:51]OFD Sender: No OFD packet to send [12:33:56]OFD Sender: No OFD packet to send [12:34:01]OFD Sender: No OFD packet to send [12:34:06]OFD Sender: No OFD packet to send [12:34:11]OFD Sender: No OFD packet to send [12:34:16]OFD Sender: No OFD packet to send [12:34:18]recv_with_timeout no data received [12:34:21]OFD Sender: No OFD packet to send [12:34:26]OFD Sender: No OFD packet to send [12:34:31]OFD Sender: No OFD packet to send [12:34:36]OFD Sender: No OFD packet to send [12:34:41]OFD Sender: No OFD packet to send [12:34:46]OFD Sender: No OFD packet to send [12:34:51]OFD Sender: No OFD packet to send [12:34:52]recv_with_timeout no data received [12:34:56]OFD Sender: No OFD packet to send [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:24]recv_with_timeout no data received [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]recv_with_timeout no data received [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:31]OFD Sender: No OFD packet to send [12:36:36]OFD Sender: No OFD packet to send [12:36:41]OFD Sender: No OFD packet to send [12:36:44]recv_with_timeout no data received [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:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]recv_with_timeout no data received [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:13]accept exits with 9 [12:40:13]New connection [12:40:13]New thread 3067202916 created [12:40:13]Thread 3067346276 joined [12:40:13]Waiting for new connection... [12:40:13] Sock 9.Parse request [12:40:13]Sock 9.Check first char [12:40:13]Sock 9.First char is OK [12:40:13]request: POST /json_proto HTTP/1.0 [12:40:13]Method: POST [12:40:13]URL: /json_proto [12:40:13]Method is POST - this is cgi request [12:40:13]url: /json_proto [12:40:13]query_string will be loaded in cgi processing [12:40:13]execute_cgi json_proto POST (null) [12:40:13]execute_cgi path=json_proto method=POST [12:40:13]POST find Content-Length [12:40:13]Host: 172.17.44.131:8080 [12:40:13]Content-Length: 679 [12:40:13]Content-Type: application/json [12:40:13] [12:40:13]POST finish read [12:40:13]Found Content-Length = 679 [12:40:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:13]execute_script... [12:40:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:13]POST & json_proto [12:40:13]process_json_proto [12:40:13]json parsed OK: [12:40:13]protocol is kg_v1.0 [12:40:13]action value=close_receipt [12:40:13]process_action close_receipt [12:40:13]cmd_close_receipt [12:40:13]MH_GetDate [12:40:13]Write to MH i2c: F0 00 00 FD 00 EC [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: F0 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: F0 09 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: F0 09 00 FD 00 00 2E 83 C8 66 4F 53 BE 66 9A [12:40:13]GetLastDocTimeStamp 1724414964 [12:40:13]current date 1724416814 [12:40:13]FM_GetShiftState [12:40:13]SAM_PROTO_GetShiftState [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 13 01 00 [12:40:13]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 0E 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 52 [12:40:13]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [12:40:13]wFMCommunicate OK [12:40:13]SAM_PROTO_GetShiftState done [12:40:13]FM_GetShiftState done [12:40:13]opened in 1724371660 [12:40:13]opened+sec_in_day 1724458060 [12:40:13]quantity*price = 200025 [12:40:13]sum+1 = 200026 [12:40:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 107 23.08.2024 12:40 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178647 ФПД: 244058668121543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T124014&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178647&fm=244058668121543&tin=02508201610067®Number=0000000000092561&sum=200000 [12:40:14]StoreToDocumentArchive [12:40:14]shift 470 fd 178647 [12:40:14]save to /storage/0470/doc_00178647 [12:40:14]save last doc name /storage/0470/doc_00178647 to /storage/kkm_last_doc_name [12:40:14]save OK [12:40:14]Clear old archive folders... [12:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:40:14]tlvbuf is 011A89F0 [12:40:14]SAM_PROTO_ClearQueue [12:40:14]wFMCommunicate request_size=4 [12:40:14]MH_SAM_APDU [12:40:14]CAPDU: 80 09 00 00 [12:40:14]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:14]Read from MH i2c: E2 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: E2 03 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [12:40:14]RAPDU: 90 00 [12:40:14]wFMCommunicate OK [12:40:14]SAM_PROTO_ClearQueue done [12:40:14]KKMCreateOFDPacket [12:40:14]OFDProtocolAddRootSTLVToBuf [12:40:14]FM_MakeSignedData [12:40:14]FM_MakeSignedData [12:40:14]SAM_PROTO_SignData [12:40:14]wFMCommunicate request_size=4 [12:40:14]MH_SAM_APDU [12:40:14]CAPDU: 80 0D 01 02 [12:40:14]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:14]Read from MH i2c: E2 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: E2 03 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:40:14]RAPDU: 90 00 [12:40:14]wFMCommunicate OK [12:40:14]wFMCommunicate request_size=255 [12:40:14]MH_SAM_APDU [12:40:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2E 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D7 B9 02 00 35 04 06 00 DD F8 56 37 [12:40:14]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2E 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D7 B9 02 00 35 04 06 00 DD F8 56 37 00 00 17 [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 03 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [12:40:15]RAPDU: 90 00 [12:40:15]wFMCommunicate OK [12:40:15]wFMCommunicate request_size=7 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 0D 02 02 02 BD C7 [12:40:15]Write to MH i2c: E2 0A 00 0E 01 80 0D 02 02 02 00 BD C7 00 00 11 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 03 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [12:40:15]RAPDU: 90 00 [12:40:15]wFMCommunicate OK [12:40:15]wFMCommunicate request_size=4 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 0D 03 02 [12:40:15]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 0B 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 0B 00 0F 01 00 AA BF 62 A5 08 44 6D 52 90 00 07 [12:40:15]RAPDU: AA BF 62 A5 08 44 6D 52 90 00 [12:40:15]wFMCommunicate OK [12:40:15]SAM_PROTO_SignData done [12:40:15]FM_MakeSignedData done [12:40:15]CreateOFDProtocolMessage [12:40:15]wFMCommunicate request_size=4 [12:40:15]MH_SAM_APDU [12:40:15]CAPDU: 80 11 00 00 [12:40:15]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:15]Read from MH i2c: E2 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 17 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [12:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:40:15]wFMCommunicate OK [12:40:15]CreateOFDProtocolMessage done [12:40:15]OFDSenderStorePacket 178647 [12:40:15]StoreOFDPacket docnum=178647 [12:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D2 8B 04 01 D8 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2E 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D7 B9 02 00 35 04 06 00 DD F8 56 37 BD C7 AA BF 62 A5 08 44 6D 52 [12:40:15]CheckFolder [12:40:15]dirname=/storage/ofd_packets [12:40:15]CheckFolder done [12:40:15]ProducePacketName [12:40:15]name=ofd_packets/00178647 [12:40:15]NVStorageSaveData ofd_packets/00178647 [12:40:15]File name is /storage/ofd_packets/00178647 [12:40:15]Write 298 bytes [12:40:15]NVStorageSaveData done [12:40:15]OFDSenderStorePacket done [12:40:15]KKMCreateOFDPacket done [12:40:15]NVStorageSaveData kkm_last_timestamp [12:40:15]File name is /storage/kkm_last_timestamp [12:40:15]Write 4 bytes [12:40:15]NVStorageSaveData done [12:40:15]ExternCall_PrintAddStr [12:40:15]wPrintStart [12:40:15]Write to MH i2c: 01 00 00 11 01 12 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 07 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [12:40:15]RasterBufferAndPrint [12:40:15]line Счет N : (1)294252 [12:40:15]line ИНН: 02508201610067 [12:40:15]line Контрольно-Кассовый Чек [12:40:15]line ПРОДАЖА [12:40:15]line ТРК (МРК, ГНК) : 21 [12:40:15]line Товар: 2710194800 [12:40:15]line ДТ-К-5 [12:40:15]line 26.250 * 76.20 [12:40:15]line = 2000.25 [12:40:15]line НДС 12% НСП 1% [12:40:15]line > о реализуемом товаре [12:40:15]line ОКРУГЛЕНИЕ: -0.25 [12:40:15]line ИТОГО: 2000.00 [12:40:15]line Внесено: 2000.00 [12:40:15]line СДАЧА: 0.00 [12:40:15]line НСП 1% : 17.70 [12:40:15]line НДС 12% : 212.42 [12:40:15]line Наличными: 2000.00 [12:40:15]line Безнал.: 0.00 [12:40:15]line Место: АЗС № 130 "Партнер Нефть" [12:40:15]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [12:40:15]line СНО: Общий режим [12:40:15]line Чек 107 23.08.2024 12:40 [12:40:15]line Смена: 470 ФФД: 1.0 [12:40:15]line ЗНМ: 0300000071 [12:40:15]line РНМ: 0000000000092561 [12:40:15]line Версия ККМ: 001 [12:40:15]line ФМ: 0000000000871778 [12:40:15]line ФД: 178647 [12:40:15]line ФПД: 244058668121543 [12:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T124014&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178647&fm=244058668121543&tin=02508201610067®Number=0000000000092561&sum=200000 [12:40:15]OFD Sender: Processing packet 178647 [packets to send 498, broken 497] [12:40:15]ProducePacketName [12:40:15]name=ofd_packets/00178647 [12:40:15]OFD Sender: To server: pG, [12:40:15]CommunicateWithHost lk.salyk.kg:30040 [12:40:15]ConnectInit lk.salyk.kg [12:40:15]written 0, free lines is 4095 [12:40:16]Write to MH i2c: 01 00 00 3C 01 3D [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 07 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 E3 0C 33 [12:40:16]RasterBufferAndPrint [12:40:16]line [12:40:16]line [12:40:16]line [12:40:16]line [12:40:16]line [12:40:16]written 0, free lines is 3305 [12:40:16]MH_Cut [12:40:16]Write to MH i2c: D1 01 00 43 01 01 16 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: D1 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: D1 01 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: D1 01 00 43 01 00 15 [12:40:16]Write to MH i2c: 01 00 00 44 01 45 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** Cut start [12:40:16]*** Partial cut [12:40:16]*** CUTSNS_PIN = 1 [12:40:16]*** CUTSNS_PIN = 0 [12:40:17]*** Brake cut motor [12:40:17]Read from MH i2c: 01 [12:40:17]MH_I2C_Read... [12:40:17]*** Stop cut motor [12:40:17]*** Cut end [12:40:17]Read from MH i2c: 01 07 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [12:40:17]process_action close_receipt done [12:40:17]requested_data is exist [12:40:17]produce_requested_data [12:40:17]requested_item fm.sn is exist - process it [12:40:17]wFMCommunicate request_size=4 [12:40:17]MH_SAM_APDU [12:40:17]CAPDU: 80 11 00 00 [12:40:17]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:17]Read from MH i2c: E2 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 17 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [12:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:40:17]wFMCommunicate OK [12:40:17]requested_item fd.num is exist - process it [12:40:17]SAM_PROTO_GetFieldsCounters [12:40:17]wFMCommunicate request_size=4 [12:40:17]MH_SAM_APDU [12:40:17]CAPDU: 80 13 00 00 [12:40:17]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:17]Read from MH i2c: E2 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 62 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D7 B9 02 00 0E 04 04 00 D6 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 92 [12:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D7 B9 02 00 0E 04 04 00 D6 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 [12:40:17]wFMCommunicate OK [12:40:17]SAM_PROTO_GetFieldsCounters done [12:40:17]requested_item shift.num is exist - process it [12:40:17]requested_item shift.opened is exist - process it [12:40:17]req_shift_opened [12:40:17]FM_GetShiftState [12:40:17]SAM_PROTO_GetShiftState [12:40:17]wFMCommunicate request_size=4 [12:40:17]MH_SAM_APDU [12:40:17]CAPDU: 80 13 01 00 [12:40:17]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [12:40:17]Write i2c OK [12:40:17]MH_I2C_Read... [12:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:17]Read from MH i2c: E2 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 0E 00 [12:40:17]MH_I2C_Read... [12:40:17]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9C [12:40:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [12:40:17]wFMCommunicate OK [12:40:17]SAM_PROTO_GetShiftState done [12:40:17]FM_GetShiftState done [12:40:17]req_shift_opened done [12:40:17]requested_item shift.open_date is exist - process it [12:40:17]req_shift_open_date [12:40:17]req_shift_open_date done [12:40:17]produce_requested_data done [12:40:17]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178647,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [12:40:17]process_action_free close_receipt [12:40:17]json_value_free [12:40:17]json_value_free done [12:40:17]process_json_proto returns [12:40:17]Send response to host [12:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178647,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [12:40:17]free response buf [12:40:17]execute_script done [12:40:17]execute_script returns [12:40:17]free content buf [12:40:17]Sock 9.Close socket [12:40:17]Sock 9.Thread stoped [12:40:19]Connected sock=11 [12:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D2 8B 04 01 D8 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 2E 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D7 B9 02 00 35 04 06 00 DD F8 56 37 BD C7 AA BF 62 A5 08 44 6D 52 [12:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9B 73 47 00 17 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 31 37 37 38 10 04 04 00 D7 B9 02 00 F4 03 04 00 D9 2E C8 66 B6 04 01 00 00 37 41 83 7E F0 32 AD BD [12:40:22]CommunicateWithHost err = 0 [12:40:22]CheckOFDResponse [12:40:22]1017 (14) - 77093643461234 [12:40:22]1041 (16) - 0000000000871778 [12:40:22]1040 (4) - 178647 [12:40:22]1012 (4) - 23.08.2024 06:40 [12:40:22]1206 (1) - 0 [12:40:22]OFD Sender: Remove packet 178647 [12:40:22]ProducePacketName [12:40:22]name=ofd_packets/00178647 [12:40:22]NVStorageDeleteData [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:29]recv_with_timeout no data received [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:34]accept exits with 10 [12:42:34]New connection [12:42:34]New thread 3067346276 created [12:42:34]Thread 3067202916 joined [12:42:34]Waiting for new connection... [12:42:34] Sock 10.Parse request [12:42:34]Sock 10.Check first char [12:42:34]Sock 10.First char is OK [12:42:34]request: POST /json_proto HTTP/1.0 [12:42:34]Method: POST [12:42:34]URL: /json_proto [12:42:34]Method is POST - this is cgi request [12:42:34]url: /json_proto [12:42:34]query_string will be loaded in cgi processing [12:42:34]execute_cgi json_proto POST (null) [12:42:34]execute_cgi path=json_proto method=POST [12:42:34]POST find Content-Length [12:42:34]Host: 172.17.44.131:8080 [12:42:34]Content-Length: 679 [12:42:34]Content-Type: application/json [12:42:34] [12:42:34]POST finish read [12:42:34]Found Content-Length = 679 [12:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:34]execute_script... [12:42: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)294254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:34]POST & json_proto [12:42:34]process_json_proto [12:42:34]json parsed OK: [12:42:34]protocol is kg_v1.0 [12:42:34]action value=close_receipt [12:42:34]process_action close_receipt [12:42:34]cmd_close_receipt [12:42:34]MH_GetDate [12:42:34]Write to MH i2c: F0 00 00 48 01 38 [12:42:34]Write i2c OK [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: F0 [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: F0 09 00 [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: F0 09 00 48 01 00 BA 83 C8 66 4F 53 BE 66 72 [12:42:34]GetLastDocTimeStamp 1724416814 [12:42:34]current date 1724416954 [12:42:34]FM_GetShiftState [12:42:34]SAM_PROTO_GetShiftState [12:42:34]wFMCommunicate request_size=4 [12:42:34]MH_SAM_APDU [12:42:34]CAPDU: 80 13 01 00 [12:42:34]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [12:42:34]Write i2c OK [12:42:34]MH_I2C_Read... [12:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:34]Read from MH i2c: E2 [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: E2 0E 00 [12:42:34]MH_I2C_Read... [12:42:34]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9E [12:42:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [12:42:34]wFMCommunicate OK [12:42:34]SAM_PROTO_GetShiftState done [12:42:34]FM_GetShiftState done [12:42:34]opened in 1724371660 [12:42:34]opened+sec_in_day 1724458060 [12:42:34]quantity*price = 150037 [12:42:34]sum+1 = 150039 [12:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 108 23.08.2024 12:42 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178648 ФПД: 276805023245788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T124235&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178648&fm=276805023245788&tin=02508201610067®Number=0000000000092561&sum=150000 [12:42:35]StoreToDocumentArchive [12:42:35]shift 470 fd 178648 [12:42:35]save to /storage/0470/doc_00178648 [12:42:35]save last doc name /storage/0470/doc_00178648 to /storage/kkm_last_doc_name [12:42:35]save OK [12:42:35]Clear old archive folders... [12:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:42:35]tlvbuf is 011EF910 [12:42:35]SAM_PROTO_ClearQueue [12:42:35]wFMCommunicate request_size=4 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 09 00 00 [12:42:35]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [12:42:35]RAPDU: 90 00 [12:42:35]wFMCommunicate OK [12:42:35]SAM_PROTO_ClearQueue done [12:42:35]KKMCreateOFDPacket [12:42:35]OFDProtocolAddRootSTLVToBuf [12:42:35]FM_MakeSignedData [12:42:35]FM_MakeSignedData [12:42:35]SAM_PROTO_SignData [12:42:35]wFMCommunicate request_size=4 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 0D 01 02 [12:42:35]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [12:42:35]RAPDU: 90 00 [12:42:35]wFMCommunicate OK [12:42:35]wFMCommunicate request_size=255 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BB 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D8 B9 02 00 35 04 06 00 FB C0 B1 15 [12:42:35]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BB 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D8 B9 02 00 35 04 06 00 FB C0 B1 15 00 00 99 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [12:42:35]RAPDU: 90 00 [12:42:35]wFMCommunicate OK [12:42:35]wFMCommunicate request_size=7 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 0D 02 02 02 25 DC [12:42:35]Write to MH i2c: E2 0A 00 59 01 80 0D 02 02 02 00 25 DC 00 00 D9 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [12:42:35]RAPDU: 90 00 [12:42:35]wFMCommunicate OK [12:42:35]wFMCommunicate request_size=4 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 0D 03 02 [12:42:35]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 0B 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 0B 00 5A 01 00 10 93 97 DA C3 9D B4 F9 90 00 F8 [12:42:35]RAPDU: 10 93 97 DA C3 9D B4 F9 90 00 [12:42:35]wFMCommunicate OK [12:42:35]SAM_PROTO_SignData done [12:42:35]FM_MakeSignedData done [12:42:35]CreateOFDProtocolMessage [12:42:35]wFMCommunicate request_size=4 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 11 00 00 [12:42:35]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 17 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [12:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [12:42:35]wFMCommunicate OK [12:42:35]CreateOFDProtocolMessage done [12:42:35]OFDSenderStorePacket 178648 [12:42:35]StoreOFDPacket docnum=178648 [12:44:19]ConnectInit Can't connect to host [12:44:20]OFD Sender: Processing packet 178648 [packets to send 498, broken 497] [12:44:20]ProducePacketName [12:44:20]name=ofd_packets/00178648 [12:44:20]OFD Sender: To server: pG, [12:44:20]CommunicateWithHost lk.salyk.kg:30040 [12:44:20]ConnectInit lk.salyk.kg [12:44:25]ConnectInit Can't take IP for lk.salyk.kg [12:44:25]CommunicateWithHost connect error [12:44:25]CommunicateWithHost err = -1 [12:44:25]OFD Sender: Server communicate error [12:44:30]OFD Sender: Processing packet 178648 [packets to send 498, broken 497] [12:44:30]ProducePacketName [12:44:30]name=ofd_packets/00178648 [12:44:30]OFD Sender: To server: pG, [12:44:30]CommunicateWithHost lk.salyk.kg:30040 [12:44:30]ConnectInit lk.salyk.kg [12:44:31]recv_with_timeout no data received [12:44:47]Connected sock=9 [12: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 31 37 37 38 0C 01 00 00 E6 E0 04 01 6F D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BB 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D8 B9 02 00 35 04 06 00 FB C0 B1 15 25 DC 10 93 97 DA C3 9D B4 F9 [12:44:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 53 2D 47 00 7A 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 31 37 37 38 10 04 04 00 D8 B9 02 00 F4 03 04 00 E5 2F C8 66 B6 04 01 00 00 A9 B4 21 03 48 66 B2 14 [12:44:49]CommunicateWithHost err = 0 [12:44:49]CheckOFDResponse [12:44:49]1017 (14) - 77093643461234 [12:44:49]1041 (16) - 0000000000871778 [12:44:49]1040 (4) - 178648 [12:44:49]1012 (4) - 23.08.2024 06:44 [12:44:49]1206 (1) - 0 [12:44:49]OFD Sender: Remove packet 178648 [12:44:49]ProducePacketName [12:44:49]name=ofd_packets/00178648 [12:44:49]NVStorageDeleteData [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:17]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 E6 E0 04 01 6F D5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 BB 83 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D8 B9 02 00 35 04 06 00 FB C0 B1 15 25 DC 10 93 97 DA C3 9D B4 F9 [12:42:35]CheckFolder [12:42:35]dirname=/storage/ofd_packets [12:42:35]CheckFolder done [12:42:35]ProducePacketName [12:42:35]name=ofd_packets/00178648 [12:42:35]NVStorageSaveData ofd_packets/00178648 [12:42:35]File name is /storage/ofd_packets/00178648 [12:42:35]Write 298 bytes [12:42:35]NVStorageSaveData done [12:42:35]OFDSenderStorePacket done [12:42:35]KKMCreateOFDPacket done [12:42:35]NVStorageSaveData kkm_last_timestamp [12:42:35]File name is /storage/kkm_last_timestamp [12:42:35]Write 4 bytes [12:42:35]NVStorageSaveData done [12:42:36]ExternCall_PrintAddStr [12:42:36]wPrintStart [12:42:36]Write to MH i2c: 01 00 00 5C 01 5D [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: 01 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: 01 07 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [12:42:36]RasterBufferAndPrint [12:42:36]line Счет N : (1)294254 [12:42:36]line ИНН: 02508201610067 [12:42:36]line Контрольно-Кассовый Чек [12:42:36]line ПРОДАЖА [12:42:36]line ТРК (МРК, ГНК) : 64 [12:42:36]line Товар: 2710194800 [12:42:36]line ДТ-К-5 [12:42:36]line 19.690 * 76.20 [12:42:36]line = 1500.38 [12:42:36]line НДС 12% НСП 1% [12:42:36]line > о реализуемом товаре [12:42:36]line ОКРУГЛЕНИЕ: -0.38 [12:42:36]line ИТОГО: 1500.00 [12:42:36]line Внесено: 1500.00 [12:42:36]line СДАЧА: 0.00 [12:42:36]line НСП 1% : 13.28 [12:42:36]line НДС 12% : 159.33 [12:42:36]line Наличными: 1500.00 [12:42:36]line Безнал.: 0.00 [12:42:36]line Место: АЗС № 130 "Партнер Нефть" [12:42:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [12:42:36]line СНО: Общий режим [12:42:36]line Чек 108 23.08.2024 12:42 [12:42:36]line Смена: 470 ФФД: 1.0 [12:42:36]line ЗНМ: 0300000071 [12:42:36]line РНМ: 0000000000092561 [12:42:36]line Версия ККМ: 001 [12:42:36]line ФМ: 0000000000871778 [12:42:36]line ФД: 178648 [12:42:36]line ФПД: 276805023245788 [12:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T124235&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178648&fm=276805023245788&tin=02508201610067®Number=0000000000092561&sum=150000 [12:42:36]OFD Sender: Processing packet 178648 [packets to send 498, broken 497] [12:42:36]ProducePacketName [12:42:36]name=ofd_packets/00178648 [12:42:36]OFD Sender: To server: pG, [12:42:36]CommunicateWithHost lk.salyk.kg:30040 [12:42:36]ConnectInit lk.salyk.kg [12:42:36]written 0, free lines is 4095 [12:42:36]Write to MH i2c: 01 00 00 87 01 88 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: 01 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: 01 07 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 E7 0C 82 [12:42:36]RasterBufferAndPrint [12:42:36]line [12:42:36]line [12:42:36]line [12:42:36]line [12:42:36]line [12:42:36]written 0, free lines is 3306 [12:42:36]MH_Cut [12:42:36]Write to MH i2c: D1 01 00 8E 01 01 61 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: D1 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: D1 01 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: D1 01 00 8E 01 00 60 [12:42:36]Write to MH i2c: 01 00 00 8F 01 90 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:37]*** Cut start [12:42:37]*** Partial cut [12:42:37]*** CUTSNS_PIN = 1 [12:42:37]*** CUTSNS_PIN = 0 [12:42:37]*** Brake cut motor [12:42:38]Read from MH i2c: 01 [12:42:38]MH_I2C_Read... [12:42:38]*** Stop cut motor [12:42:38]*** Cut end [12:42:38]Read from MH i2c: 01 07 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [12:42:38]process_action close_receipt done [12:42:38]requested_data is exist [12:42:38]produce_requested_data [12:42:38]requested_item fm.sn is exist - process it [12:42:38]wFMCommunicate request_size=4 [12:42:38]MH_SAM_APDU [12:42:38]CAPDU: 80 11 00 00 [12:42:38]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_o[12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:44]recv_with_timeout no data received [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:54]recv_with_timeout no data received [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:38]recv_with_timeout no data received [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:14]recv_with_timeout no data received [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:54:28]ConnectInit Can't connect to host [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:22]recv_with_timeout no data received [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:43]recv_with_timeout no data received [12:56:46]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:40]recv_with_timeout no data received [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:58:59]recv_with_timeout no data received [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]recv_with_timeout no data received [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:41]recv_with_timeout no data received [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]recv_with_timeout no data received [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03: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:32]recv_with_timeout no data received [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]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:15]recv_with_timeout no data received [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10: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:49]recv_with_timeout no data received [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:06]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [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:26]accept exits with 7 [13:14:26]New connection [13:14:26]New thread 3067202916 created [13:14:26]Thread 3067346276 joined [13:14:26]Waiting for new connection... [13:14:26] Sock 7.Parse request [13:14:26]Sock 7.Check first char [13:14:26]Sock 7.First char is OK [13:14:26]request: POST /json_proto HTTP/1.0 [13:14:26]Method: POST [13:14:26]URL: /json_proto [13:14:26]Method is POST - this is cgi request [13:14:26]url: /json_proto [13:14:26]query_string will be loaded in cgi processing [13:14:26]execute_cgi json_proto POST (null) [13:14:26]execute_cgi path=json_proto method=POST [13:14:26]POST find Content-Length [13:14:26]Host: 172.17.44.131:8080 [13:14:26]Content-Length: 667 [13:14:26]Content-Type: application/json [13:14:26] [13:14:26]POST finish read [13:14:26]Found Content-Length = 667 [13:14:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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" ] } } [13:14:26]execute_script... [13:14: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)294279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 5.820, "sum" : 400.42, "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" ] } } [13:14:26]POST & json_proto [13:14:26]process_json_proto [13:14:26]json parsed OK: [13:14:26]protocol is kg_v1.0 [13:14:26]action value=close_receipt [13:14:26]process_action close_receipt [13:14:26]cmd_close_receipt [13:14:26]MH_GetDate [13:14:26]Write to MH i2c: F0 00 00 93 01 83 [13:14:26]Write i2c OK [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: F0 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: F0 09 00 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: F0 09 00 93 01 00 33 8B C8 66 4F 53 BE 66 3E [13:14:26]GetLastDocTimeStamp 1724416955 [13:14:26]current date 1724418867 [13:14:26]FM_GetShiftState [13:14:26]SAM_PROTO_GetShiftState [13:14:26]wFMCommunicate request_size=4 [13:14:26]MH_SAM_APDU [13:14:26]CAPDU: 80 13 01 00 [13:14:26]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [13:14:26]Write i2c OK [13:14:26]MH_I2C_Read... [13:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:26]Read from MH i2c: E2 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 0E 00 [13:14:26]MH_I2C_Read... [13:14:26]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E9 [13:14:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:14:26]wFMCommunicate OK [13:14:26]SAM_PROTO_GetShiftState done [13:14:26]FM_GetShiftState done [13:14:26]opened in 1724371660 [13:14:26]opened+sec_in_day 1724458060 [13:14:26]quantity*price = 40041 [13:14:26]sum+1 = 40043 [13:14:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 109 23.08.2024 13:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178649 ФПД: 61529658358882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131427&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178649&fm=61529658358882&tin=02508201610067®Number=0000000000092561&sum=40000 [13:14:27]StoreToDocumentArchive [13:14:27]shift 470 fd 178649 [13:14:27]save to /storage/0470/doc_00178649 [13:14:27]save last doc name /storage/0470/doc_00178649 to /storage/kkm_last_doc_name [13:14:27]save OK [13:14:27]Clear old archive folders... [13:14:27]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:14:27]tlvbuf is 011AA760 [13:14:27]SAM_PROTO_ClearQueue [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 09 00 00 [13:14:27]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [13:14:27]RAPDU: 90 00 [13:14:27]wFMCommunicate OK [13:14:27]SAM_PROTO_ClearQueue done [13:14:27]KKMCreateOFDPacket [13:14:27]OFDProtocolAddRootSTLVToBuf [13:14:27]FM_MakeSignedData [13:14:27]FM_MakeSignedData [13:14:27]SAM_PROTO_SignData [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 0D 01 02 [13:14:27]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [13:14:27]RAPDU: 90 00 [13:14:27]wFMCommunicate OK [13:14:27]wFMCommunicate request_size=255 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 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 6D 00 00 00 F4 03 04 00 33 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D9 B9 02 00 35 04 06 00 37 F5 FD [13:14:27]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 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 6D 00 00 00 F4 03 04 00 33 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D9 B9 02 00 35 04 06 00 37 F5 FD 00 00 6A [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [13:14:27]RAPDU: 90 00 [13:14:27]wFMCommunicate OK [13:14:27]wFMCommunicate request_size=8 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 0D 02 02 03 6D FC 62 [13:14:27]Write to MH i2c: E2 0B 00 A4 01 80 0D 02 02 03 00 6D FC 62 00 00 F0 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [13:14:27]RAPDU: 90 00 [13:14:27]wFMCommunicate OK [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 0D 03 02 [13:14:27]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:27]Read from MH i2c: E2 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 0B 00 [13:14:27]MH_I2C_Read... [13:14:27]Read from MH i2c: E2 0B 00 A5 01 00 3C 40 FB 08 9C 8A 0B 19 90 00 EB [13:14:27]RAPDU: 3C 40 FB 08 9C 8A 0B 19 90 00 [13:14:27]wFMCommunicate OK [13:14:27]SAM_PROTO_SignData done [13:14:27]FM_MakeSignedData done [13:14:27]CreateOFDProtocolMessage [13:14:27]wFMCommunicate request_size=4 [13:14:27]MH_SAM_APDU [13:14:27]CAPDU: 80 11 00 00 [13:14:27]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [13:14:27]Write i2c OK [13:14:27]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 17 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [13:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:14:28]wFMCommunicate OK [13:14:28]CreateOFDProtocolMessage done [13:14:28]OFDSenderStorePacket 178649 [13:14:28]StoreOFDPacket docnum=178649 [13:14:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 7B 83 05 01 BC 49 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 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 6D 00 00 00 F4 03 04 00 33 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D9 B9 02 00 35 04 06 00 37 F5 FD 6D FC 62 3C 40 FB 08 9C 8A 0B 19 [13:14:28]CheckFolder [13:14:28]dirname=/storage/ofd_packets [13:14:28]CheckFolder done [13:14:28]ProducePacketName [13:14:28]name=ofd_packets/00178649 [13:14:28]NVStorageSaveData ofd_packets/00178649 [13:14:28]File name is /storage/ofd_packets/00178649 [13:14:28]Write 299 bytes [13:14:28]NVStorageSaveData done [13:14:28]OFDSenderStorePacket done [13:14:28]KKMCreateOFDPacket done [13:14:28]NVStorageSaveData kkm_last_timestamp [13:14:28]File name is /storage/kkm_last_timestamp [13:14:28]Write 4 bytes [13:14:28]NVStorageSaveData done [13:14:28]ExternCall_PrintAddStr [13:14:28]wPrintStart [13:14:28]Write to MH i2c: 01 00 00 A7 01 A8 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: 01 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: 01 07 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [13:14:28]RasterBufferAndPrint [13:14:28]line Счет N : (1)294279 [13:14:28]line ИНН: 02508201610067 [13:14:28]line Контрольно-Кассовый Чек [13:14:28]line ПРОДАЖА [13:14:28]line ТРК (МРК, ГНК) : 51 [13:14:28]line Товар: 2710124130 [13:14:28]line SU-92-К-5 [13:14:28]line 5.820 * 68.80 [13:14:28]line = 400.42 [13:14:28]line НДС 12% НСП 1% [13:14:28]line > о реализуемом товаре [13:14:28]line ОКРУГЛЕНИЕ: -0.42 [13:14:28]line ИТОГО: 400.00 [13:14:28]line Внесено: 400.00 [13:14:28]line СДАЧА: 0.00 [13:14:28]line НСП 1% : 3.54 [13:14:28]line НДС 12% : 42.52 [13:14:28]line Наличными: 400.00 [13:14:28]line Безнал.: 0.00 [13:14:28]line Место: АЗС № 130 "Партнер Нефть" [13:14:28]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:14:28]line СНО: Общий режим [13:14:28]line Чек 109 23.08.2024 13:14 [13:14:28]line Смена: 470 ФФД: 1.0 [13:14:28]line ЗНМ: 0300000071 [13:14:28]line РНМ: 0000000000092561 [13:14:28]line Версия ККМ: 001 [13:14:28]line ФМ: 0000000000871778 [13:14:28]line ФД: 178649 [13:14:28]line ФПД: 61529658358882 [13:14:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131427&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178649&fm=61529658358882&tin=02508201610067®Number=0000000000092561&sum=40000 [13:14:28]OFD Sender: Processing packet 178649 [packets to send 498, broken 497] [13:14:28]ProducePacketName [13:14:28]name=ofd_packets/00178649 [13:14:28]OFD Sender: To server: pG, [13:14:28]CommunicateWithHost lk.salyk.kg:30040 [13:14:28]ConnectInit lk.salyk.kg [13:14:28]written 0, free lines is 4095 [13:14:28]Write to MH i2c: 01 00 00 D2 01 D3 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: 01 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: 01 07 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 E3 0C C9 [13:14:28]RasterBufferAndPrint [13:14:28]line [13:14:28]line [13:14:28]line [13:14:28]line [13:14:28]line [13:14:28]written 0, free lines is 3305 [13:14:28]MH_Cut [13:14:28]Write to MH i2c: D1 01 00 D9 01 01 AC [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: D1 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: D1 01 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: D1 01 00 D9 01 00 AB [13:14:28]Write to MH i2c: 01 00 00 DA 01 DB [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:29]*** Cut start [13:14:29]*** Partial cut [13:14:29]*** CUTSNS_PIN = 1 [13:14:29]*** CUTSNS_PIN = 0 [13:14:29]*** Brake cut motor [13:14:30]Read from MH i2c: 01 [13:14:30]MH_I2C_Read... [13:14:30]*** Stop cut motor [13:14:30]*** Cut end [13:14:30]Read from MH i2c: 01 07 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [13:14:30]process_action close_receipt done [13:14:30]requested_data is exist [13:14:30]produce_requested_data [13:14:30]requested_item fm.sn is exist - process it [13:14:30]wFMCommunicate request_size=4 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 11 00 00 [13:14:30]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 17 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [13:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:14:30]wFMCommunicate OK [13:14:30]requested_item fd.num is exist - process it [13:14:30]SAM_PROTO_GetFieldsCounters [13:14:30]wFMCommunicate request_size=4 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 13 00 00 [13:14:30]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 62 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D9 B9 02 00 0E 04 04 00 D6 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 30 [13:14: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 D9 B9 02 00 0E 04 04 00 D6 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 [13:14:30]wFMCommunicate OK [13:14:30]SAM_PROTO_GetFieldsCounters done [13:14:30]requested_item shift.num is exist - process it [13:14:30]requested_item shift.opened is exist - process it [13:14:30]req_shift_opened [13:14:30]FM_GetShiftState [13:14:30]SAM_PROTO_GetShiftState [13:14:30]wFMCommunicate request_size=4 [13:14:30]MH_SAM_APDU [13:14:30]CAPDU: 80 13 01 00 [13:14:30]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:30]Read from MH i2c: E2 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 0E 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 32 [13:14:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:14:30]wFMCommunicate OK [13:14:30]SAM_PROTO_GetShiftState done [13:14:30]FM_GetShiftState done [13:14:30]req_shift_opened done [13:14:30]requested_item shift.open_date is exist - process it [13:14:30]req_shift_open_date [13:14:30]req_shift_open_date done [13:14:30]produce_requested_data done [13:14:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178649,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:14:30]process_action_free close_receipt [13:14:30]json_value_free [13:14:30]json_value_free done [13:14:30]process_json_proto returns [13:14:30]Send response to host [13:14:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178649,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:14:30]free response buf [13:14:30]execute_script done [13:14:30]execute_script returns [13:14:30]free content buf [13:14:30]Sock 7.Close socket [13:14:30]Sock 7.Thread stoped [13:14:31]Connected sock=11 [13:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 7B 83 05 01 BC 49 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 16 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 6A 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 9C 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 6D 00 00 00 F4 03 04 00 33 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 D9 B9 02 00 35 04 06 00 37 F5 FD 6D FC 62 3C 40 FB 08 9C 8A 0B 19 [13:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FC EB 47 00 B4 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 31 37 37 38 10 04 04 00 D9 B9 02 00 F4 03 04 00 DC 36 C8 66 B6 04 01 00 00 86 DF 2E E6 D2 BE 08 36 [13:14:31]CommunicateWithHost err = 0 [13:14:31]CheckOFDResponse [13:14:31]1017 (14) - 77093643461234 [13:14:31]1041 (16) - 0000000000871778 [13:14:31]1040 (4) - 178649 [13:14:31]1012 (4) - 23.08.2024 07:14 [13:14:31]1206 (1) - 0 [13:14:31]OFD Sender: Remove packet 178649 [13:14:31]ProducePacketName [13:14:31]name=ofd_packets/00178649 [13:14:31]NVStorageDeleteData [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:14:59]accept exits with 9 [13:14:59]New connection [13:14:59]New thread 3067346276 created [13:14:59]Thread 3067202916 joined [13:14:59]Waiting for new connection... [13:14:59] Sock 9.Parse request [13:14:59]Sock 9.Check first char [13:14:59]Sock 9.First char is OK [13:14:59]request: POST /json_proto HTTP/1.0 [13:14:59]Method: POST [13:14:59]URL: /json_proto [13:14:59]Method is POST - this is cgi request [13:14:59]url: /json_proto [13:14:59]query_string will be loaded in cgi processing [13:14:59]execute_cgi json_proto POST (null) [13:14:59]execute_cgi path=json_proto method=POST [13:14:59]POST find Content-Length [13:14:59]Host: 172.17.44.131:8080 [13:14:59]Content-Length: 674 [13:14:59]Content-Type: application/json [13:14:59] [13:14:59]POST finish read [13:14:59]Found Content-Length = 674 [13:14:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [13:14:59]execute_script... [13: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)294280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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" ] } } [13:14:59]POST & json_proto [13:14:59]process_json_proto [13:14:59]json parsed OK: [13:14:59]protocol is kg_v1.0 [13:14:59]action value=close_receipt [13:14:59]process_action close_receipt [13:14:59]cmd_close_receipt [13:14:59]MH_GetDate [13:14:59]Write to MH i2c: F0 00 00 DE 01 CE [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: F0 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: F0 09 00 [13:14:59]MH_I2C_Read... [13:14:59]Read from MH i2c: F0 09 00 DE 01 00 54 8B C8 66 4F 53 BE 66 AA [13:14:59]GetLastDocTimeStamp 1724418867 [13:14:59]current date 1724418900 [13:14:59]FM_GetShiftState [13:14:59]SAM_PROTO_GetShiftState [13:14:59]wFMCommunicate request_size=4 [13:14:59]MH_SAM_APDU [13:14:59]CAPDU: 80 13 01 00 [13:14:59]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [13:14:59]Write i2c OK [13:14:59]MH_I2C_Read... [13:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:00]Read from MH i2c: E2 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 0E 00 [13:15:00]MH_I2C_Read... [13:15:00]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 34 [13:15:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:15:00]wFMCommunicate OK [13:15:00]SAM_PROTO_GetShiftState done [13:15:00]FM_GetShiftState done [13:15:00]opened in 1724371660 [13:15:00]opened+sec_in_day 1724458060 [13:15:00]quantity*price = 70027 [13:15:00]sum+1 = 70029 [13:15:00]Check (price>sum+1) || (price+1 о реализуемом товаре [13:16:24]line ОКРУГЛЕНИЕ: -0.28 [13:16:24]line ИТОГО: 700.00 [13:16:24]line Внесено: 700.00 [13:16:24]line СДАЧА: 0.00 [13:16:24]line НСП 1% : 6.20 [13:16:24]line НДС 12% : 74.37 [13:16:24]line Наличными: 700.00 [13:16:24]line Безнал.: 0.00 [13:16:24]line Место: АЗС № 130 "Партнер Нефть" [13:16:24]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:16:24]line СНО: Общий режим [13:16:24]line Чек 110 23.08.2024 13:15 [13:16:24]line Смена: 470 ФФД: 1.0 [13:16:24]line ЗНМ: 0300000071 [13:16:24]line РНМ: 0000000000092561 [13:16:24]line Версия ККМ: 001 [13:16:24]line ФМ: 0000000000871778 [13:16:24]line ФД: 178650 [13:16:24]line ФПД: 151558744031158 [13:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131500&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178650&fm=151558744031158&tin=02508201610067®Number=0000000000092561&sum=70000 [13:16:24]written 0, free lines is 4095 [13:16:24]Write to MH i2c: 01 00 00 48 00 48 [13:16:24]Write i2c OK [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: 01 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: 01 07 00 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D6 0C 31 [13:16:24]RasterBufferAndPrint [13:16:24]line [13:16:24]line [13:16:24]line [13:16:24]line [13:16:24]line [13:16:24]written 0, free lines is 3302 [13:16:24]MH_Cut [13:16:24]Write to MH i2c: D1 01 00 4F 00 01 21 [13:16:24]Write i2c OK [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: D1 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: D1 01 00 [13:16:24]MH_I2C_Read... [13:16:24]Read from MH i2c: D1 01 00 4F 00 00 20 [13:16:24]Write to MH i2c: 01 00 00 50 00 50 [13:16:24]Write i2c OK [13:16:24]MH_I2C_Read... [13:16:25]*** Cut start [13:16:25]*** Partial cut [13:16:25]*** CUTSNS_PIN = 1 [13:16:25]*** CUTSNS_PIN = 0 [13:16:25]*** Brake cut motor [13:16:25]Read from MH i2c: 01 [13:16:25]MH_I2C_Read... [13:16:25]*** Stop cut motor [13:16:25]*** Cut end [13:16:25]Read from MH i2c: 01 07 00 [13:16:25]MH_I2C_Read... [13:16:25]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [13:16:25]process_action print_doc done [13:16:25]requested_data is exist [13:16:25]produce_requested_data [13:16:25]produce_requested_data return (null) [13:16:25]process_action_free print_doc [13:16:25]json_value_free [13:16:25]json_value_free done [13:16:25]process_json_proto returns [13:16:25]Send response to host [13:16:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [13:16:25]free response buf [13:16:25]execute_script done [13:16:25]execute_script returns [13:16:25]free content buf [13:16:25]Sock 7.Close socket [13:16:25]Sock 7.Thread stoped [13:16:26]accept exits with 10 [13:16:26]New connection [13:16:26]New thread 3066678628 created [13:16:26]Thread 3066821988 joined [13:16:26]Waiting for new connection... [13:16:26] Sock 10.Parse request [13:16:26]Sock 10.Check first char [13:16:26]Sock 10.First char is OK [13:16:26]request: POST /json_proto HTTP/1.0 [13:16:26]Method: POST [13:16:26]URL: /json_proto [13:16:26]Method is POST - this is cgi request [13:16:26]url: /json_proto [13:16:26]query_string will be loaded in cgi processing [13:16:26]execute_cgi json_proto POST (null) [13:16:26]execute_cgi path=json_proto method=POST [13:16:26]POST find Content-Length [13:16:26]Host: 172.17.44.131:8080 [13:16:26]Content-Length: 681 [13:16:26]Content-Type: application/json [13:16:26] [13:16:26]POST finish read [13:16:26]Found Content-Length = 681 [13:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "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:16:26]execute_script... [13:16: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)294278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "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:16:26]POST & json_proto [13:16:26]process_json_proto [13:16:26]json parsed OK: [13:16:26]protocol is kg_v1.0 [13:16:26]action value=close_receipt [13:16:26]process_action close_receipt [13:16:26]cmd_close_receipt [13:16:26]MH_GetDate [13:16:26]Write to MH i2c: F0 00 00 51 00 40 [13:16:26]Write i2c OK [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: F0 [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: F0 09 00 [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: F0 09 00 51 00 00 AA 8B C8 66 4F 53 BE 66 72 [13:16:26]GetLastDocTimeStamp 1724418900 [13:16:26]current date 1724418986 [13:16:26]FM_GetShiftState [13:16:26]SAM_PROTO_GetShiftState [13:16:26]wFMCommunicate request_size=4 [13:16:26]MH_SAM_APDU [13:16:26]CAPDU: 80 13 01 00 [13:16:26]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [13:16:26]Write i2c OK [13:16:26]MH_I2C_Read... [13:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:26]Read from MH i2c: E2 [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: E2 0E 00 [13:16:26]MH_I2C_Read... [13:16:26]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A6 [13:16:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:16:26]wFMCommunicate OK [13:16:26]SAM_PROTO_GetShiftState done [13:16:26]FM_GetShiftState done [13:16:26]opened in 1724371660 [13:16:26]opened+sec_in_day 1724458060 [13:16:26]quantity*price = 50003 [13:16:26]sum+1 = 50005 [13:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 111 23.08.2024 13:16 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178651 ФПД: 214707706191150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131626&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178651&fm=214707706191150&tin=02508201610067®Number=0000000000092561&sum=50000 [13:16:27]StoreToDocumentArchive [13:16:27]shift 470 fd 178651 [13:16:27]save to /storage/0470/doc_00178651 [13:16:27]save last doc name /storage/0470/doc_00178651 to /storage/kkm_last_doc_name [13:16:27]save OK [13:16:27]Clear old archive folders... [13:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:16:27]tlvbuf is 0147E6B0 [13:16:27]SAM_PROTO_ClearQueue [13:16:27]wFMCommunicate request_size=4 [13:16:27]MH_SAM_APDU [13:16:27]CAPDU: 80 09 00 00 [13:16:27]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [13:16:27]Write i2c OK [13:16:27]MH_I2C_Read... [13:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:27]Read from MH i2c: E2 [13:16:27]MH_I2C_Read... [13:16:27]Read from MH i2c: E2 03 00 [13:16:27]MH_I2C_Read... [13:16:27]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [13:16:27]RAPDU: 90 00 [13:16:27]wFMCommunicate OK [13:16:27]SAM_PROTO_ClearQueue done [13:16:27]KKMCreateOFDPacket [13:16:27]OFDProtocolAddRootSTLVToBuf [13:16:27]FM_MakeSignedData [13:16:27]FM_MakeSignedData [13:16:27]SAM_PROTO_SignData [13:16:27]wFMCommunicate request_size=4 [13:16:27]MH_SAM_APDU [13:16:27]CAPDU: 80 0D 01 02 [13:16:27]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [13:16:27]Write i2c OK [13:16:27]MH_I2C_Read... [13:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:27]Read from MH i2c: E2 [13:16:27]MH_I2C_Read... [13:16:27]Read from MH i2c: E2 03 00 [13:16:27]MH_I2C_Read... [13:16:27]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [13:16:27]RAPDU: 90 00 [13:16:27]wFMCommunicate OK [13:16:27]wFMCommunicate request_size=255 [13:16:27]MH_SAM_APDU [13:16:27]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DB B9 02 00 35 04 06 00 C3 46 [13:16:27]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DB B9 02 00 35 04 06 00 C3 46 00 00 C1 [13:16:27]Write i2c OK [13:16:27]MH_I2C_Read... [13:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:28]Read from MH i2c: E2 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 03 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [13:16:28]RAPDU: 90 00 [13:16:28]wFMCommunicate OK [13:16:28]wFMCommunicate request_size=9 [13:16:28]MH_SAM_APDU [13:16:28]CAPDU: 80 0D 02 02 04 88 8E DD 2E [13:16:28]Write to MH i2c: E2 0C 00 62 00 80 0D 02 02 04 00 88 8E DD 2E 00 00 05 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:28]Read from MH i2c: E2 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 03 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [13:16:28]RAPDU: 90 00 [13:16:28]wFMCommunicate OK [13:16:28]wFMCommunicate request_size=4 [13:16:28]MH_SAM_APDU [13:16:28]CAPDU: 80 0D 03 02 [13:16:28]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:28]Read from MH i2c: E2 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 0B 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 0B 00 63 00 00 6F 11 4E 1B 91 46 62 6F 90 00 70 [13:16:28]RAPDU: 6F 11 4E 1B 91 46 62 6F 90 00 [13:16:28]wFMCommunicate OK [13:16:28]SAM_PROTO_SignData done [13:16:28]FM_MakeSignedData done [13:16:28]CreateOFDProtocolMessage [13:16:28]wFMCommunicate request_size=4 [13:16:28]MH_SAM_APDU [13:16:28]CAPDU: 80 11 00 00 [13:16:28]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:28]Read from MH i2c: E2 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 17 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [13:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:16:28]wFMCommunicate OK [13:16:28]CreateOFDProtocolMessage done [13:16:28]OFDSenderStorePacket 178651 [13:16:28]StoreOFDPacket docnum=178651 [13:16:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 51 7D 06 01 97 AA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DB B9 02 00 35 04 06 00 C3 46 88 8E DD 2E 6F 11 4E 1B 91 46 62 6F [13:16:28]CheckFolder [13:16:28]dirname=/storage/ofd_packets [13:16:28]CheckFolder done [13:16:28]ProducePacketName [13:16:28]name=ofd_packets/00178651 [13:16:28]NVStorageSaveData ofd_packets/00178651 [13:16:28]File name is /storage/ofd_packets/00178651 [13:16:28]Write 300 bytes [13:16:28]NVStorageSaveData done [13:16:28]OFDSenderStorePacket done [13:16:28]KKMCreateOFDPacket done [13:16:28]NVStorageSaveData kkm_last_timestamp [13:16:28]File name is /storage/kkm_last_timestamp [13:16:28]Write 4 bytes [13:16:28]NVStorageSaveData done [13:16:28]ExternCall_PrintAddStr [13:16:28]wPrintStart [13:16:28]Write to MH i2c: 01 00 00 65 00 65 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: 01 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: 01 07 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [13:16:28]RasterBufferAndPrint [13:16:28]line Счет N : (1)294278 [13:16:28]line ИНН: 02508201610067 [13:16:28]line Контрольно-Кассовый Чек [13:16:28]line ПРОДАЖА [13:16:28]line ТРК (МРК, ГНК) : 81 [13:16:28]line Товар: 2711129700 [13:16:28]line ГАЗ-К-5 [13:16:28]line 13.370 * 37.40 [13:16:28]line = 500.04 [13:16:28]line НДС 12% НСП 1% [13:16:28]line > о реализуемом товаре [13:16:28]line ОКРУГЛЕНИЕ: -0.04 [13:16:28]line ИТОГО: 500.00 [13:16:28]line Внесено: 500.00 [13:16:28]line СДАЧА: 0.00 [13:16:28]line НСП 1% : 4.42 [13:16:28]line НДС 12% : 53.10 [13:16:28]line Наличными: 500.00 [13:16:28]line Безнал.: 0.00 [13:16:28]line Место: АЗС № 130 "Партнер Нефть" [13:16:28]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:16:28]line СНО: Общий режим [13:16:28]line Чек 111 23.08.2024 13:16 [13:16:28]line Смена: 470 ФФД: 1.0 [13:16:28]line ЗНМ: 0300000071 [13:16:28]line РНМ: 0000000000092561 [13:16:28]line Версия ККМ: 001 [13:16:28]line ФМ: 0000000000871778 [13:16:28]line ФД: 178651 [13:16:28]line ФПД: 214707706191150 [13:16:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T131626&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178651&fm=214707706191150&tin=02508201610067®Number=0000000000092561&sum=50000 [13:16:28]OFD Sender: Processing packet 178651 [packets to send 498, broken 497] [13:16:28]ProducePacketName [13:16:28]name=ofd_packets/00178651 [13:16:28]OFD Sender: To server: pG, [13:16:28]CommunicateWithHost lk.salyk.kg:30040 [13:16:28]ConnectInit lk.salyk.kg [13:16:28]written 0, free lines is 4095 [13:16:28]Write to MH i2c: 01 00 00 90 00 90 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: 01 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: 01 07 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D3 0C 76 [13:16:28]RasterBufferAndPrint [13:16:28]line [13:16:28]line [13:16:28]line [13:16:28]line [13:16:28]line [13:16:28]written 0, free lines is 3304 [13:16:28]MH_Cut [13:16:28]Write to MH i2c: D1 01 00 97 00 01 69 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: D1 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: D1 01 00 [13:16:28]MH_I2C_Read... [13:16:28]Read from MH i2c: D1 01 00 97 00 00 68 [13:16:28]Write to MH i2c: 01 00 00 98 00 98 [13:16:28]Write i2c OK [13:16:28]MH_I2C_Read... [13:16:29]*** Cut start [13:16:29]*** Partial cut [13:16:29]*** CUTSNS_PIN = 1 [13:16:29]*** CUTSNS_PIN = 0 [13:16:29]*** Brake cut motor [13:16:30]Read from MH i2c: 01 [13:16:30]MH_I2C_Read... [13:16:30]*** Stop cut motor [13:16:30]*** Cut end [13:16:30]Read from MH i2c: 01 07 00 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [13:16:30]process_action close_receipt done [13:16:30]requested_data is exist [13:16:30]produce_requested_data [13:16:30]requested_item fm.sn is exist - process it [13:16:30]wFMCommunicate request_size=4 [13:16:30]MH_SAM_APDU [13:16:30]CAPDU: 80 11 00 00 [13:16:30]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [13:16:30]Write i2c OK [13:16:30]MH_I2C_Read... [13:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:30]Read from MH i2c: E2 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: E2 17 00 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6C [13:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:16:30]wFMCommunicate OK [13:16:30]requested_item fd.num is exist - process it [13:16:30]SAM_PROTO_GetFieldsCounters [13:16:30]wFMCommunicate request_size=4 [13:16:30]MH_SAM_APDU [13:16:30]CAPDU: 80 13 00 00 [13:16:30]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [13:16:30]Write i2c OK [13:16:30]MH_I2C_Read... [13:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:30]Read from MH i2c: E2 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: E2 62 00 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DB B9 02 00 0E 04 04 00 D6 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 F5 [13:16: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DB B9 02 00 0E 04 04 00 D6 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 [13:16:30]wFMCommunicate OK [13:16:30]SAM_PROTO_GetFieldsCounters done [13:16:30]requested_item shift.num is exist - process it [13:16:30]requested_item shift.opened is exist - process it [13:16:30]req_shift_opened [13:16:30]FM_GetShiftState [13:16:30]SAM_PROTO_GetShiftState [13:16:30]wFMCommunicate request_size=4 [13:16:30]MH_SAM_APDU [13:16:30]CAPDU: 80 13 01 00 [13:16:30]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [13:16:30]Write i2c OK [13:16:30]MH_I2C_Read... [13:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:30]Read from MH i2c: E2 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: E2 0E 00 [13:16:30]MH_I2C_Read... [13:16:30]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 EF [13:16:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:16:30]wFMCommunicate OK [13:16:30]SAM_PROTO_GetShiftState done [13:16:30]FM_GetShiftState done [13:16:30]req_shift_opened done [13:16:30]requested_item shift.open_date is exist - process it [13:16:30]req_shift_open_date [13:16:30]req_shift_open_date done [13:16:30]produce_requested_data done [13:16:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178651,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:16:30]process_action_free close_receipt [13:16:30]json_value_free [13:16:30]json_value_free done [13:16:30]process_json_proto returns [13:16:30]Send response to host [13:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178651,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:16:30]free response buf [13:16:30]execute_script done [13:16:30]execute_script returns [13:16:30]free content buf [13:16:30]Sock 10.Close socket [13:16:30]Sock 10.Thread stoped [13:16:33]recv_with_timeout no data received [13:16:44]Connected sock=11 [13:16:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 51 7D 06 01 97 AA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 8B C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DB B9 02 00 35 04 06 00 C3 46 88 8E DD 2E 6F 11 4E 1B 91 46 62 6F [13:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D9 AD 47 00 EC B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DB B9 02 00 F4 03 04 00 63 37 C8 66 B6 04 01 00 00 F9 8C FC 46 DD 18 33 8A [13:16:46]CommunicateWithHost err = 0 [13:16:46]CheckOFDResponse [13:16:46]1017 (14) - 77093643461234 [13:16:46]1041 (16) - 0000000000871778 [13:16:46]1040 (4) - 178651 [13:16:46]1012 (4) - 23.08.2024 07:16 [13:16:46]1206 (1) - 0 [13:16:46]OFD Sender: Remove packet 178651 [13:16:46]ProducePacketName [13:16:46]name=ofd_packets/00178651 [13:16:46]NVStorageDeleteData [13:16:46]OFD Sender: No OFD packet to send [13:16:51]OFD Sender: No OFD packet to send [13:16:56]OFD Sender: No OFD packet to send [13:17:01]OFD Sender: No OFD packet to send [13:17:06]OFD Sender: No OFD packet to send [13:17:11]OFD Sender: No OFD packet to send [13:17:16]OFD Sender: No OFD packet to send [13:17:21]OFD Sender: No OFD packet to send [13:17:26]OFD Sender: No OFD packet to send [13:17:31]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:01]recv_with_timeout no data received [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:12]recv_with_timeout no data received [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:37]recv_with_timeout no data received [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]recv_with_timeout no data received [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:46]recv_with_timeout no data received [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:56]recv_with_timeout no data received [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:15]recv_with_timeout no data received [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:27]accept exits with 7 [13:20:27]New connection [13:20:27]New thread 3066821988 created [13:20:27]Thread 3066678628 joined [13:20:27]Waiting for new connection... [13:20:27] Sock 7.Parse request [13:20:27]Sock 7.Check first char [13:20:27]Sock 7.First char is OK [13:20:27]request: POST /json_proto HTTP/1.0 [13:20:27]Method: POST [13:20:27]URL: /json_proto [13:20:27]Method is POST - this is cgi request [13:20:27]url: /json_proto [13:20:27]query_string will be loaded in cgi processing [13:20:27]execute_cgi json_proto POST (null) [13:20:27]execute_cgi path=json_proto method=POST [13:20:27]POST find Content-Length [13:20:27]Host: 172.17.44.131:8080 [13:20:27]Content-Length: 801 [13:20:27]Content-Type: application/json [13:20:27] [13:20:27]POST finish read [13:20:27]Found Content-Length = 801 [13:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:27]execute_script... [13:20: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)294283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 131.100, "sum" : 9989.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9989.82 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:27]POST & json_proto [13:20:27]process_json_proto [13:20:27]json parsed OK: [13:20:27]protocol is kg_v1.0 [13:20:27]action value=close_receipt [13:20:27]process_action close_receipt [13:20:27]cmd_close_receipt [13:20:27]MH_GetDate [13:20:27]Write to MH i2c: F0 00 00 9C 00 8B [13:20:27]Write i2c OK [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: F0 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: F0 09 00 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: F0 09 00 9C 00 00 9B 8C C8 66 4F 53 BE 66 AF [13:20:27]GetLastDocTimeStamp 1724418986 [13:20:27]current date 1724419227 [13:20:27]FM_GetShiftState [13:20:27]SAM_PROTO_GetShiftState [13:20:27]wFMCommunicate request_size=4 [13:20:27]MH_SAM_APDU [13:20:27]CAPDU: 80 13 01 00 [13:20:27]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [13:20:27]Write i2c OK [13:20:27]MH_I2C_Read... [13:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:27]Read from MH i2c: E2 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 0E 00 [13:20:27]MH_I2C_Read... [13:20:27]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F1 [13:20:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:20:27]wFMCommunicate OK [13:20:27]SAM_PROTO_GetShiftState done [13:20:27]FM_GetShiftState done [13:20:27]opened in 1724371660 [13:20:27]opened+sec_in_day 1724458060 [13:20:27]quantity*price = 998982 [13:20:27]sum+1 = 998983 [13:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.82 НСП 1% : 88.40 НДС 12% : 1060.87 Наличными: 0.00 Безнал.: 9989.82 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 112 23.08.2024 13:20 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178652 ФПД: 179840696588527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132027&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178652&fm=179840696588527&tin=02508201610067®Number=0000000000092561&sum=998982 [13:20:28]StoreToDocumentArchive [13:20:28]shift 470 fd 178652 [13:20:28]save to /storage/0470/doc_00178652 [13:20:28]save last doc name /storage/0470/doc_00178652 to /storage/kkm_last_doc_name [13:20:28]save OK [13:20:28]Clear old archive folders... [13:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:20:28]tlvbuf is 014CE2E0 [13:20:28]SAM_PROTO_ClearQueue [13:20:28]wFMCommunicate request_size=4 [13:20:28]MH_SAM_APDU [13:20:28]CAPDU: 80 09 00 00 [13:20:28]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [13:20:28]Write i2c OK [13:20:28]MH_I2C_Read... [13:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:28]Read from MH i2c: E2 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: E2 03 00 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [13:20:28]RAPDU: 90 00 [13:20:28]wFMCommunicate OK [13:20:28]SAM_PROTO_ClearQueue done [13:20:28]KKMCreateOFDPacket [13:20:28]OFDProtocolAddRootSTLVToBuf [13:20:28]FM_MakeSignedData [13:20:28]FM_MakeSignedData [13:20:28]SAM_PROTO_SignData [13:20:28]wFMCommunicate request_size=4 [13:20:28]MH_SAM_APDU [13:20:28]CAPDU: 80 0D 01 02 [13:20:28]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [13:20:28]Write i2c OK [13:20:28]MH_I2C_Read... [13:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:28]Read from MH i2c: E2 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: E2 03 00 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [13:20:28]RAPDU: 90 00 [13:20:28]wFMCommunicate OK [13:20:28]wFMCommunicate request_size=255 [13:20:28]MH_SAM_APDU [13:20:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 9B 8C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DC B9 02 00 35 04 06 00 A3 90 6C D6 [13:20:28]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 9B 8C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DC B9 02 00 35 04 06 00 A3 90 6C D6 00 00 9A [13:20:28]Write i2c OK [13:20:28]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [13:20:29]RAPDU: 90 00 [13:20:29]wFMCommunicate OK [13:20:29]wFMCommunicate request_size=7 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 0D 02 02 02 18 EF [13:20:29]Write to MH i2c: E2 0A 00 AD 00 80 0D 02 02 02 00 18 EF 00 00 32 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [13:20:29]RAPDU: 90 00 [13:20:29]wFMCommunicate OK [13:20:29]wFMCommunicate request_size=4 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 0D 03 02 [13:20:29]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 0B 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 0B 00 AE 00 00 E1 3E C8 99 06 1E D5 E4 90 00 87 [13:20:29]RAPDU: E1 3E C8 99 06 1E D5 E4 90 00 [13:20:29]wFMCommunicate OK [13:20:29]SAM_PROTO_SignData done [13:20:29]FM_MakeSignedData done [13:20:29]CreateOFDProtocolMessage [13:20:29]wFMCommunicate request_size=4 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 11 00 00 [13:20:29]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 17 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [13:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:20:29]wFMCommunicate OK [13:20:29]CreateOFDProtocolMessage done [13:20:29]OFDSenderStorePacket 178652 [13:20:29]StoreOFDPacket docnum=178652 [13:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 C0 6C 04 01 62 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 9B 8C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DC B9 02 00 35 04 06 00 A3 90 6C D6 18 EF E1 3E C8 99 06 1E D5 E4 [13:20:29]CheckFolder [13:20:29]dirname=/storage/ofd_packets [13:20:29]CheckFolder done [13:20:29]ProducePacketName [13:20:29]name=ofd_packets/00178652 [13:20:29]NVStorageSaveData ofd_packets/00178652 [13:20:29]File name is /storage/ofd_packets/00178652 [13:20:29]Write 298 bytes [13:20:29]NVStorageSaveData done [13:20:29]OFDSenderStorePacket done [13:20:29]KKMCreateOFDPacket done [13:20:29]NVStorageSaveData kkm_last_timestamp [13:20:29]File name is /storage/kkm_last_timestamp [13:20:29]Write 4 bytes [13:20:29]NVStorageSaveData done [13:20:29]ExternCall_PrintAddStr [13:20:29]wPrintStart [13:20:29]Write to MH i2c: 01 00 00 B0 00 B0 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: 01 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: 01 07 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [13:20:29]RasterBufferAndPrint [13:20:29]line Счет N : (1)294283 [13:20:29]line ИНН: 02508201610067 [13:20:29]line Контрольно-Кассовый Чек [13:20:29]line ПРОДАЖА [13:20:29]line ТРК (МРК, ГНК) : 21 [13:20:29]line Товар: 2710194800 [13:20:29]line ДТ-К-5 [13:20:29]line 131.100 * 76.20 [13:20:29]line = 9989.82 [13:20:29]line НДС 12% НСП 1% [13:20:29]line > о реализуемом товаре [13:20:29]line ИТОГО: 9989.82 [13:20:29]line НСП 1% : 88.40 [13:20:29]line НДС 12% : 1060.87 [13:20:29]line Наличными: 0.00 [13:20:29]line Безнал.: 9989.82 [13:20:29]line Место: АЗС № 130 "Партнер Нефть" [13:20:29]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:20:29]line СНО: Общий режим [13:20:29]line Чек 112 23.08.2024 13:20 [13:20:29]line Смена: 470 ФФД: 1.0 [13:20:29]line ЗНМ: 0300000071 [13:20:29]line РНМ: 0000000000092561 [13:20:29]line Версия ККМ: 001 [13:20:29]line Платежная система: O! деньги [13:20:29]line ФМ: 0000000000871778 [13:20:29]line ФД: 178652 [13:20:29]line ФПД: 179840696588527 [13:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132027&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178652&fm=179840696588527&tin=02508201610067®Number=0000000000092561&sum=998982 [13:20:29]written 0, free lines is 4095 [13:20:29]OFD Sender: Processing packet 178652 [packets to send 498, broken 497] [13:20:29]ProducePacketName [13:20:29]name=ofd_packets/00178652 [13:20:29]OFD Sender: To server: pG, [13:20:29]CommunicateWithHost lk.salyk.kg:30040 [13:20:29]ConnectInit lk.salyk.kg [13:20:29]Write to MH i2c: 01 00 00 DA 00 DA [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: 01 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: 01 07 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 FC 0C E9 [13:20:29]RasterBufferAndPrint [13:20:29]line [13:20:29]line [13:20:29]line [13:20:29]line [13:20:29]line [13:20:29]written 0, free lines is 3331 [13:20:29]MH_Cut [13:20:29]Write to MH i2c: D1 01 00 E1 00 01 B3 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: D1 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: D1 01 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: D1 01 00 E1 00 00 B2 [13:20:29]Write to MH i2c: 01 00 00 E2 00 E2 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]Connected sock=9 [13:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 C0 6C 04 01 62 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C 00 02 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 46 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 9B 8C C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DC B9 02 00 35 04 06 00 A3 90 6C D6 18 EF E1 3E C8 99 06 1E D5 E4 [13:20:30]*** Cut start [13:20:30]*** Partial cut [13:20:30]*** CUTSNS_PIN = 1 [13:20:30]*** CUTSNS_PIN = 0 [13:20:30]*** Brake cut motor [13:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 19 D6 47 00 8D 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 31 37 37 38 10 04 04 00 DC B9 02 00 F4 03 04 00 43 38 C8 66 B6 04 01 00 00 E1 3B 3E D6 E9 D2 55 99 [13:20:30]CommunicateWithHost err = 0 [13:20:30]CheckOFDResponse [13:20:30]1017 (14) - 77093643461234 [13:20:30]1041 (16) - 0000000000871778 [13:20:30]1040 (4) - 178652 [13:20:30]1012 (4) - 23.08.2024 07:20 [13:20:30]1206 (1) - 0 [13:20:30]OFD Sender: Remove packet 178652 [13:20:30]ProducePacketName [13:20:30]name=ofd_packets/00178652 [13:20:30]NVStorageDeleteData [13:20:30]Read from MH i2c: 01 [13:20:30]MH_I2C_Read... [13:20:30]*** Stop cut motor [13:20:30]*** Cut end [13:20:30]Read from MH i2c: 01 07 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [13:20:30]process_action close_receipt done [13:20:30]requested_data is exist [13:20:30]produce_requested_data [13:20:30]requested_item fm.sn is exist - process it [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 11 00 00 [13:20:30]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 17 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B6 [13:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:20:30]wFMCommunicate OK [13:20:30]requested_item fd.num is exist - process it [13:20:30]SAM_PROTO_GetFieldsCounters [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 13 00 00 [13:20:30]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 62 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DC B9 02 00 0E 04 04 00 D6 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 43 [13: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DC B9 02 00 0E 04 04 00 D6 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 [13:20:31]wFMCommunicate OK [13:20:31]SAM_PROTO_GetFieldsCounters done [13:20:31]requested_item shift.num is exist - process it [13:20:31]requested_item shift.opened is exist - process it [13:20:31]req_shift_opened [13:20:31]FM_GetShiftState [13:20:31]SAM_PROTO_GetShiftState [13:20:31]wFMCommunicate request_size=4 [13:20:31]MH_SAM_APDU [13:20:31]CAPDU: 80 13 01 00 [13:20:31]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [13:20:31]Write i2c OK [13:20:31]MH_I2C_Read... [13:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:31]Read from MH i2c: E2 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 0E 00 [13:20:31]MH_I2C_Read... [13:20:31]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 39 [13:20:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:20:31]wFMCommunicate OK [13:20:31]SAM_PROTO_GetShiftState done [13:20:31]FM_GetShiftState done [13:20:31]req_shift_opened done [13:20:31]requested_item shift.open_date is exist - process it [13:20:31]req_shift_open_date [13:20:31]req_shift_open_date done [13:20:31]produce_requested_data done [13:20:31]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178652,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:20:31]process_action_free close_receipt [13:20:31]json_value_free [13:20:31]json_value_free done [13:20:31]process_json_proto returns [13:20:31]Send response to host [13:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178652,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:20:31]free response buf [13:20:31]execute_script done [13:20:31]execute_script returns [13:20:31]free content buf [13:20:31]Sock 7.Close socket [13:20:31]Sock 7.Thread stoped [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:47]recv_with_timeout no data received [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:30]recv_with_timeout no data received [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:55]accept exits with 10 [13:22:55]New connection [13:22:55]New thread 3066678628 created [13:22:55]Thread 3066821988 joined [13:22:55]Waiting for new connection... [13:22:55] Sock 10.Parse request [13:22:55]Sock 10.Check first char [13:22:55]Sock 10.First char is OK [13:22:55]request: POST /json_proto HTTP/1.0 [13:22:55]Method: POST [13:22:55]URL: /json_proto [13:22:55]Method is POST - this is cgi request [13:22:55]url: /json_proto [13:22:55]query_string will be loaded in cgi processing [13:22:55]execute_cgi json_proto POST (null) [13:22:55]execute_cgi path=json_proto method=POST [13:22:55]POST find Content-Length [13:22:55]Host: 172.17.44.131:8080 [13:22:55]Content-Length: 677 [13:22:55]Content-Type: application/json [13:22:55] [13:22:55]POST finish read [13:22:55]Found Content-Length = 677 [13:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294288", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:22:55]execute_script... [13:22: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)294288", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:22:55]POST & json_proto [13:22:55]process_json_proto [13:22:55]json parsed OK: [13:22:55]protocol is kg_v1.0 [13:22:55]action value=close_receipt [13:22:55]process_action close_receipt [13:22:55]cmd_close_receipt [13:22:55]MH_GetDate [13:22:55]Write to MH i2c: F0 00 00 E6 00 D5 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 09 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: F0 09 00 E6 00 00 2F 8D C8 66 4F 53 BE 66 8E [13:22:55]GetLastDocTimeStamp 1724419227 [13:22:55]current date 1724419375 [13:22:55]FM_GetShiftState [13:22:55]SAM_PROTO_GetShiftState [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 01 00 [13:22:55]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3B [13:22:55]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetShiftState done [13:22:55]FM_GetShiftState done [13:22:55]opened in 1724371660 [13:22:55]opened+sec_in_day 1724458060 [13:22:55]quantity*price = 50036 [13:22:55]sum+1 = 50037 [13:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 113 23.08.2024 13:22 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178653 ФПД: 119953477889785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132255&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178653&fm=119953477889785&tin=02508201610067®Number=0000000000092561&sum=50000 [13:22:56]StoreToDocumentArchive [13:22:56]shift 470 fd 178653 [13:22:56]save to /storage/0470/doc_00178653 [13:22:56]save last doc name /storage/0470/doc_00178653 to /storage/kkm_last_doc_name [13:22:56]save OK [13:22:56]Clear old archive folders... [13:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:56]tlvbuf is 014ECF70 [13:22:56]SAM_PROTO_ClearQueue [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 09 00 00 [13:22:56]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_ClearQueue done [13:22:56]KKMCreateOFDPacket [13:22:56]OFDProtocolAddRootSTLVToBuf [13:22:56]FM_MakeSignedData [13:22:56]FM_MakeSignedData [13:22:56]SAM_PROTO_SignData [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 01 02 [13:22:56]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=255 [13:22:56]MH_SAM_APDU [13:22: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 71 00 00 00 F4 03 04 00 2F 8D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DD B9 02 00 35 04 06 00 6D [13:22:56]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 71 00 00 00 F4 03 04 00 2F 8D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DD B9 02 00 35 04 06 00 6D 00 00 28 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:56]OFD Sender: No OFD packet to send [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=10 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 02 02 05 18 D8 70 6E F9 [13:22:56]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 18 D8 70 6E F9 00 00 42 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [13:22:56]RAPDU: 90 00 [13:22:56]wFMCommunicate OK [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 0D 03 02 [13:22:56]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0B 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0B 00 F8 00 00 FA 30 98 28 B7 B4 3A D8 90 00 DB [13:22:56]RAPDU: FA 30 98 28 B7 B4 3A D8 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_SignData done [13:22:56]FM_MakeSignedData done [13:22:56]CreateOFDProtocolMessage [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 11 00 00 [13:22:56]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CC [13:22:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:22:56]wFMCommunicate OK [13:22:56]CreateOFDProtocolMessage done [13:22:56]OFDSenderStorePacket 178653 [13:22:56]StoreOFDPacket docnum=178653 [13:24:41]ConnectInit Can't connect to host [13:24:45]ConnectInit Can't take IP for lk.salyk.kg [13:24:45]CommunicateWithHost connect error [13:24:45]CommunicateWithHost err = -1 [13:24:45]OFD Sender: Server communicate error [13:24:50]OFD Sender: Processing packet 178653 [packets to send 498, broken 497] [13:24:50]ProducePacketName [13:24:50]name=ofd_packets/00178653 [13:24:50]OFD Sender: To server: pG, [13:24:50]CommunicateWithHost lk.salyk.kg:30040 [13:24:50]ConnectInit lk.salyk.kg [13:27:08]ConnectInit Can't connect to host [13:27:08]CommunicateWithHost connect error [13:27:08]CommunicateWithHost err = -1 [13:27:08]OFD Sender: Server communicate error [13:27:13]OFD Sender: Processing packet 178653 [packets to send 498, broken 497] [13:27:13]ProducePacketName [13:27:13]name=ofd_packets/00178653 [13:27:13]OFD Sender: To server: pG, [13:27:13]CommunicateWithHost lk.salyk.kg:30040 [13:27:13]ConnectInit lk.salyk.kg [13:27:15]Connected sock=10 [13:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 47 93 07 01 AC 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 71 00 00 00 F4 03 04 00 2F 8D C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DD B9 02 00 35 04 06 00 6D 18 D8 70 6E F9 FA 30 98 28 B7 B4 3A D8 [13:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 48 B7 47 00 C0 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 31 37 37 38 10 04 04 00 DD B9 02 00 F4 03 04 00 D9 39 C8 66 B6 04 01 00 00 F9 BF 7F E3 BA E5 20 71 [13:27:16]CommunicateWithHost err = 0 [13:27:16]CheckOFDResponse [13:27:16]1017 (14) - 77093643461234 [13:27:16]1041 (16) - 0000000000871778 [13:27:16]1040 (4) - 178653 [13:27:16]1012 (4) - 23.08.2024 07:27 [13:27:16]1206 (1) - 0 [13:27:16]OFD Sender: Remove packet 178653 [13:27:16]ProducePacketName [13:27:16]name=ofd_packets/00178653 [13:27:16]NVStorageDeleteData [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:40]recv_with_timeout no data received [13:27:41]OFD Sender: No OFD packet to send [13:27:46]OFD Sender: No OFD packet to send [13:27:51]recv_with_timeout no data received [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:08]recv_with_timeout no data received [13:28:11]OFD Sender: No OFD packet to send [13:28:16]OFD Sender: No OFD packet to send [13:28:21]OFD Sender: No OFD packet to send [13:28:22]accept exits with 7 [13:28:22]New connection [13:28:22]New thread 3066821988 created [13:28:22]Thread 3066678628 joined [13:28:22]Waiting for new connection... [13:28:22] Sock 7.Parse request [13:28:22]Sock 7.Check first char [13:28:22]Sock 7.First char is OK [13:28:22]request: POST /json_proto HTTP/1.0 [13:28:22]Method: POST [13:28:22]URL: /json_proto [13:28:22]Method is POST - this is cgi request [13:28:22]url: /json_proto [13:28:22]query_string will be loaded in cgi processing [13:28:22]execute_cgi json_proto POST (null) [13:28:22]execute_cgi path=json_proto method=POST [13:28:22]POST find Content-Length [13:28:22]Host: 172.17.44.131:8080 [13:28:22]Content-Length: 813 [13:28:22]Content-Type: application/json [13:28:22] [13:28:22]POST finish read [13:28:22]Found Content-Length = 813 [13:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:22]execute_script... [13:28: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)294294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:22]POST & json_proto [13:28:22]process_json_proto [13:28:22]json parsed OK: [13:28:22]protocol is kg_v1.0 [13:28:22]action value=close_receipt [13:28:22]process_action close_receipt [13:28:22]cmd_close_receipt [13:28:22]MH_GetDate [13:28:22]Write to MH i2c: F0 00 00 31 01 21 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 09 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 09 00 31 01 00 76 8E C8 66 4F 53 BE 66 22 [13:28:22]GetLastDocTimeStamp 1724419375 [13:28:22]current date 1724419702 [13:28:22]FM_GetShiftState [13:28:22]SAM_PROTO_GetShiftState [13:28:22]wFMCommunicate request_size=4 [13:28:22]MH_SAM_APDU [13:28:22]CAPDU: 80 13 01 00 [13:28:22]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:22]Read from MH i2c: E2 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: E2 0E 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 87 [13:28:22]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:28:22]wFMCommunicate OK [13:28:22]SAM_PROTO_GetShiftState done [13:28:22]FM_GetShiftState done [13:28:22]opened in 1724371660 [13:28:22]opened+sec_in_day 1724458060 [13:28:22]quantity*price = 50063 [13:28:22]sum+1 = 50064 [13:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 114 23.08.2024 13:28 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178654 ФПД: 115184203011173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132822&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178654&fm=115184203011173&tin=02508201610067®Number=0000000000092561&sum=50063 [13:28:23]StoreToDocumentArchive [13:28:23]shift 470 fd 178654 [13:28:23]save to /storage/0470/doc_00178654 [13:28:23]save last doc name /storage/0470/doc_00178654 to /storage/kkm_last_doc_name [13:28:23]save OK [13:28:23]Clear old archive folders... [13:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:23]tlvbuf is 014F0330 [13:28:23]SAM_PROTO_ClearQueue [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 09 00 00 [13:28:23]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]SAM_PROTO_ClearQueue done [13:28:23]KKMCreateOFDPacket [13:28:23]OFDProtocolAddRootSTLVToBuf [13:28:23]FM_MakeSignedData [13:28:23]FM_MakeSignedData [13:28:23]SAM_PROTO_SignData [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 01 02 [13:28:23]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]wFMCommunicate request_size=255 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 76 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DE B9 02 00 35 04 06 00 68 C2 69 81 [13:28:23]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 76 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DE B9 02 00 35 04 06 00 68 C2 69 81 00 00 76 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]wFMCommunicate request_size=7 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 02 02 02 14 65 [13:28:23]Write to MH i2c: E2 0A 00 42 01 80 0D 02 02 02 00 14 65 00 00 3A [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 03 02 [13:28:23]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 0B 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 0B 00 43 01 00 B4 1E DC 3B 2D C5 8F 0B 90 00 35 [13:28:23]RAPDU: B4 1E DC 3B 2D C5 8F 0B 90 00 [13:28:23]wFMCommunicate OK [13:28:23]SAM_PROTO_SignData done [13:28:23]FM_MakeSignedData done [13:28:23]CreateOFDProtocolMessage [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 11 00 00 [13:28:23]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 17 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 18 [13:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:28:23]wFMCommunicate OK [13:28:23]CreateOFDProtocolMessage done [13:28:23]OFDSenderStorePacket 178654 [13:28:23]StoreOFDPacket docnum=178654 [13:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 44 A3 04 01 B3 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 76 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DE B9 02 00 35 04 06 00 68 C2 69 81 14 65 B4 1E DC 3B 2D C5 8F 0B [13:28:23]CheckFolder [13:28:23]dirname=/storage/ofd_packets [13:28:23]CheckFolder done [13:28:23]ProducePacketName [13:28:23]name=ofd_packets/00178654 [13:28:23]NVStorageSaveData ofd_packets/00178654 [13:28:23]File name is /storage/ofd_packets/00178654 [13:28:23]Write 298 bytes [13:28:23]NVStorageSaveData done [13:28:23]OFDSenderStorePacket done [13:28:23]KKMCreateOFDPacket done [13:28:23]NVStorageSaveData kkm_last_timestamp [13:28:23]File name is /storage/kkm_last_timestamp [13:28:23]Write 4 bytes [13:28:23]NVStorageSaveData done [13:28:23]ExternCall_PrintAddStr [13:28:23]wPrintStart [13:28:23]Write to MH i2c: 01 00 00 45 01 46 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: 01 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: 01 07 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [13:28:23]RasterBufferAndPrint [13:28:23]line Счет N : (1)294294 [13:28:23]line ИНН: 02508201610067 [13:28:23]line Контрольно-Кассовый Чек [13:28:23]line ПРОДАЖА [13:28:23]line ТРК (МРК, ГНК) : 11 [13:28:23]line Товар: 2710194800 [13:28:23]line ДТ-К-5 [13:28:23]line 6.570 * 76.20 [13:28:23]line = 500.63 [13:28:23]line НДС 12% НСП 1% [13:28:23]line > о реализуемом товаре [13:28:23]line ИТОГО: 500.63 [13:28:23]line НСП 1% : 4.43 [13:28:23]line НДС 12% : 53.16 [13:28:23]line Наличными: 0.00 [13:28:23]line Безнал.: 500.63 [13:28:23]line Место: АЗС № 130 "Партнер Нефть" [13:28:23]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:28:23]line СНО: Общий режим [13:28:23]line Чек 114 23.08.2024 13:28 [13:28:23]line Смена: 470 ФФД: 1.0 [13:28:23]line ЗНМ: 0300000071 [13:28:23]line РНМ: 0000000000092561 [13:28:23]line Версия ККМ: 001 [13:28:23]line Платежная система: Бакай Банк [13:28:23]line ФМ: 0000000000871778 [13:28:23]line ФД: 178654 [13:28:23]line ФПД: 115184203011173 [13:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132822&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178654&fm=115184203011173&tin=02508201610067®Number=0000000000092561&sum=50063 [13:28:24]OFD Sender: Processing packet 178654 [packets to send 498, broken 497] [13:28:24]ProducePacketName [13:28:24]name=ofd_packets/00178654 [13:28:24]OFD Sender: To server: pG, [13:28:24]CommunicateWithHost lk.salyk.kg:30040 [13:28:24]ConnectInit lk.salyk.kg [13:28:24]written 0, free lines is 4095 [13:28:24]Write to MH i2c: 01 00 00 6F 01 70 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 E0 0C 63 [13:28:24]RasterBufferAndPrint [13:28:24]line [13:28:24]line [13:28:24]line [13:28:24]line [13:28:24]line [13:28:24]written 0, free lines is 3302 [13:28:24]MH_Cut [13:28:24]Write to MH i2c: D1 01 00 76 01 01 49 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: D1 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: D1 01 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: D1 01 00 76 01 00 48 [13:28:24]Write to MH i2c: 01 00 00 77 01 78 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:25]*** Cut start [13:28:25]*** Partial cut [13:28:25]*** CUTSNS_PIN = 1 [13:28:25]*** CUTSNS_PIN = 0 [13:28:25]*** Brake cut motor [13:28:25]Connected sock=10 [13:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 44 A3 04 01 B3 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F 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 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 76 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DE B9 02 00 35 04 06 00 68 C2 69 81 14 65 B4 1E DC 3B 2D C5 8F 0B [13:28:25]Read from MH i2c: 01 [13:28:25]MH_I2C_Read... [13:28:25]*** Stop cut motor [13:28:25]*** Cut end [13:28:25]Read from MH i2c: 01 07 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [13:28:25]process_action close_receipt done [13:28:25]requested_data is exist [13:28:25]produce_requested_data [13:28:25]requested_item fm.sn is exist - process it [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 11 00 00 [13:28:25]Write to MH i2c: E2 08 00 78 01 80 11 00 00 00 00 00 00 F3 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 17 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 17 00 78 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4C [13:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:28:25]wFMCommunicate OK [13:28:25]requested_item fd.num is exist - process it [13:28:25]SAM_PROTO_GetFieldsCounters [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 13 00 00 [13:28:25]Write to MH i2c: E2 08 00 79 01 80 13 00 00 00 00 00 00 F6 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 62 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 62 00 79 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DE B9 02 00 0E 04 04 00 D6 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 E1 [13:28: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DE B9 02 00 0E 04 04 00 D6 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 [13:28:26]wFMCommunicate OK [13:28:26]SAM_PROTO_GetFieldsCounters done [13:28:26]requested_item shift.num is exist - process it [13:28:26]requested_item shift.opened is exist - process it [13:28:26]req_shift_opened [13:28:26]FM_GetShiftState [13:28:26]SAM_PROTO_GetShiftState [13:28:26]wFMCommunicate request_size=4 [13:28:26]MH_SAM_APDU [13:28:26]CAPDU: 80 13 01 00 [13:28:26]Write to MH i2c: E2 08 00 7A 01 80 13 01 00 00 00 00 00 F8 [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 0E 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 0E 00 7A 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CF [13:28:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:28:26]wFMCommunicate OK [13:28:26]SAM_PROTO_GetShiftState done [13:28:26]FM_GetShiftState done [13:28:26]req_shift_opened done [13:28:26]requested_item shift.open_date is exist - process it [13:28:26]req_shift_open_date [13:28:26]req_shift_open_date done [13:28:26]produce_requested_data done [13:28:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178654,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:28:26]process_action_free close_receipt [13:28:26]json_value_free [13:28:26]json_value_free done [13:28:26]process_json_proto returns [13:28:26]Send response to host [13:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178654,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:28:26]free response buf [13:28:26]execute_script done [13:28:26]execute_script returns [13:28:26]free content buf [13:28:26]Sock 7.Close socket [13:28:26]Sock 7.Thread stoped [13:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 12 71 47 00 E4 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DE B9 02 00 F4 03 04 00 1F 3A C8 66 B6 04 01 00 00 84 A0 49 28 28 25 EF D4 [13:28:27]CommunicateWithHost err = 0 [13:28:27]CheckOFDResponse [13:28:27]1017 (14) - 77093643461234 [13:28:27]1041 (16) - 0000000000871778 [13:28:27]1040 (4) - 178654 [13:28:27]1012 (4) - 23.08.2024 07:28 [13:28:27]1206 (1) - 0 [13:28:27]OFD Sender: Remove packet 178654 [13:28:27]ProducePacketName [13:28:27]name=ofd_packets/00178654 [13:28:27]NVStorageDeleteData [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:46]recv_with_timeout no data received [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:28:59]accept exits with 9 [13:28:59]New connection [13:28:59]New thread 3066678628 created [13:28:59]Thread 3066821988 joined [13:28:59]Waiting for new connection... [13:28:59] Sock 9.Parse request [13:28:59]Sock 9.Check first char [13:28:59]Sock 9.First char is OK [13:28:59]request: POST /json_proto HTTP/1.0 [13:28:59]Method: POST [13:28:59]URL: /json_proto [13:28:59]Method is POST - this is cgi request [13:28:59]url: /json_proto [13:28:59]query_string will be loaded in cgi processing [13:28:59]execute_cgi json_proto POST (null) [13:28:59]execute_cgi path=json_proto method=POST [13:28:59]POST find Content-Length [13:28:59]Host: 172.17.44.131:8080 [13:28:59]Content-Length: 677 [13:28:59]Content-Type: application/json [13:28:59] [13:28:59]POST finish read [13:28:59]Found Content-Length = 677 [13:28:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294295", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:28:59]execute_script... [13:28:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294295", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:28:59]POST & json_proto [13:28:59]process_json_proto [13:28:59]json parsed OK: [13:28:59]protocol is kg_v1.0 [13:28:59]action value=close_receipt [13:28:59]process_action close_receipt [13:28:59]cmd_close_receipt [13:28:59]MH_GetDate [13:28:59]Write to MH i2c: F0 00 00 7B 01 6B [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: F0 09 00 7B 01 00 9B 8E C8 66 4F 53 BE 66 91 [13:28:59]GetLastDocTimeStamp 1724419702 [13:28:59]current date 1724419739 [13:28:59]FM_GetShiftState [13:28:59]SAM_PROTO_GetShiftState [13:28:59]wFMCommunicate request_size=4 [13:28:59]MH_SAM_APDU [13:28:59]CAPDU: 80 13 01 00 [13:28:59]Write to MH i2c: E2 08 00 7C 01 80 13 01 00 00 00 00 00 FA [13:28:59]Write i2c OK [13:28:59]MH_I2C_Read... [13:28:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:59]Read from MH i2c: E2 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 [13:28:59]MH_I2C_Read... [13:28:59]Read from MH i2c: E2 0E 00 7C 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D1 [13:28:59]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:28:59]wFMCommunicate OK [13:28:59]SAM_PROTO_GetShiftState done [13:28:59]FM_GetShiftState done [13:28:59]opened in 1724371660 [13:28:59]opened+sec_in_day 1724458060 [13:28:59]quantity*price = 50036 [13:28:59]sum+1 = 50037 [13:28:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 115 23.08.2024 13:28 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178655 ФПД: 235065448292130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132859&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178655&fm=235065448292130&tin=02508201610067®Number=0000000000092561&sum=50000 [13:29:00]StoreToDocumentArchive [13:29:00]shift 470 fd 178655 [13:29:00]save to /storage/0470/doc_00178655 [13:29:00]save last doc name /storage/0470/doc_00178655 to /storage/kkm_last_doc_name [13:29:00]save OK [13:29:00]Clear old archive folders... [13:29:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:00]tlvbuf is 0147E040 [13:29:00]SAM_PROTO_ClearQueue [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 09 00 00 [13:29:00]Write to MH i2c: E2 08 00 89 01 80 09 00 00 00 00 00 00 FC [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]SAM_PROTO_ClearQueue done [13:29:00]KKMCreateOFDPacket [13:29:00]OFDProtocolAddRootSTLVToBuf [13:29:00]FM_MakeSignedData [13:29:00]FM_MakeSignedData [13:29:00]SAM_PROTO_SignData [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 01 02 [13:29:00]Write to MH i2c: E2 08 00 8A 01 80 0D 01 02 00 00 00 00 04 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=255 [13:29:00]MH_SAM_APDU [13:29: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 73 00 00 00 F4 03 04 00 9B 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DF B9 02 00 35 04 06 00 D5 [13:29:00]Write to MH i2c: E2 02 01 8B 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 73 00 00 00 F4 03 04 00 9B 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DF B9 02 00 35 04 06 00 D5 00 00 97 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=10 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 02 02 05 CA 70 8B 5F 22 [13:29:00]Write to MH i2c: E2 0D 00 8C 01 80 0D 02 02 05 00 CA 70 8B 5F 22 00 00 57 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [13:29:00]RAPDU: 90 00 [13:29:00]wFMCommunicate OK [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 0D 03 02 [13:29:00]Write to MH i2c: E2 08 00 8D 01 80 0D 03 02 00 00 00 00 09 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 0B 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 0B 00 8D 01 00 D1 41 67 BE CE 86 DA D7 90 00 46 [13:29:00]RAPDU: D1 41 67 BE CE 86 DA D7 90 00 [13:29:00]wFMCommunicate OK [13:29:00]SAM_PROTO_SignData done [13:29:00]FM_MakeSignedData done [13:29:00]CreateOFDProtocolMessage [13:29:00]wFMCommunicate request_size=4 [13:29:00]MH_SAM_APDU [13:29:00]CAPDU: 80 11 00 00 [13:29:00]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:00]Read from MH i2c: E2 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 17 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 62 [13:29:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:29:00]wFMCommunicate OK [13:29:00]CreateOFDProtocolMessage done [13:29:00]OFDSenderStorePacket 178655 [13:29:00]StoreOFDPacket docnum=178655 [13:29:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 07 9E 07 01 A5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 73 00 00 00 F4 03 04 00 9B 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DF B9 02 00 35 04 06 00 D5 CA 70 8B 5F 22 D1 41 67 BE CE 86 DA D7 [13:29:00]CheckFolder [13:29:00]dirname=/storage/ofd_packets [13:29:00]CheckFolder done [13:29:00]ProducePacketName [13:29:00]name=ofd_packets/00178655 [13:29:00]NVStorageSaveData ofd_packets/00178655 [13:29:00]File name is /storage/ofd_packets/00178655 [13:29:00]Write 301 bytes [13:29:00]NVStorageSaveData done [13:29:00]OFDSenderStorePacket done [13:29:00]KKMCreateOFDPacket done [13:29:00]NVStorageSaveData kkm_last_timestamp [13:29:00]File name is /storage/kkm_last_timestamp [13:29:00]Write 4 bytes [13:29:00]NVStorageSaveData done [13:29:00]ExternCall_PrintAddStr [13:29:00]wPrintStart [13:29:00]Write to MH i2c: 01 00 00 8F 01 90 [13:29:00]Write i2c OK [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 07 00 [13:29:00]MH_I2C_Read... [13:29:00]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [13:29:00]RasterBufferAndPrint [13:29:00]line Счет N : (1)294295 [13:29:00]line ИНН: 02508201610067 [13:29:00]line Контрольно-Кассовый Чек [13:29:00]line ПРОДАЖА [13:29:00]line ТРК (МРК, ГНК) : 62 [13:29:00]line Товар: 2710124130 [13:29:00]line Аи-92-К-5 [13:29:00]line 7.380 * 67.80 [13:29:00]line = 500.36 [13:29:00]line НДС 12% НСП 1% [13:29:00]line > о реализуемом товаре [13:29:00]line ОКРУГЛЕНИЕ: -0.36 [13:29:00]line ИТОГО: 500.00 [13:29:00]line Внесено: 500.00 [13:29:00]line СДАЧА: 0.00 [13:29:00]line НСП 1% : 4.43 [13:29:00]line НДС 12% : 53.14 [13:29:00]line Наличными: 500.00 [13:29:00]line Безнал.: 0.00 [13:29:00]line Место: АЗС № 130 "Партнер Нефть" [13:29:00]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:29:00]line СНО: Общий режим [13:29:00]line Чек 115 23.08.2024 13:28 [13:29:00]line Смена: 470 ФФД: 1.0 [13:29:00]line ЗНМ: 0300000071 [13:29:00]line РНМ: 0000000000092561 [13:29:00]line Версия ККМ: 001 [13:29:00]line ФМ: 0000000000871778 [13:29:00]line ФД: 178655 [13:29:00]line ФПД: 235065448292130 [13:29:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T132859&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178655&fm=235065448292130&tin=02508201610067®Number=0000000000092561&sum=50000 [13:29:00]written 0, free lines is 4095 [13:29:00]OFD Sender: Processing packet 178655 [packets to send 498, broken 497] [13:29:00]ProducePacketName [13:29:00]name=ofd_packets/00178655 [13:29:00]OFD Sender: To server: pG, [13:29:00]CommunicateWithHost lk.salyk.kg:30040 [13:29:00]ConnectInit lk.salyk.kg [13:29:01]Write to MH i2c: 01 00 00 BA 01 BB [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 DF 0C AD [13:29:01]RasterBufferAndPrint [13:29:01]line [13:29:01]line [13:29:01]line [13:29:01]line [13:29:01]line [13:29:01]written 0, free lines is 3299 [13:29:01]MH_Cut [13:29:01]Write to MH i2c: D1 01 00 C1 01 01 94 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: D1 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: D1 01 00 [13:29:01]MH_I2C_Read... [13:29:01]Read from MH i2c: D1 01 00 C1 01 00 93 [13:29:01]Write to MH i2c: 01 00 00 C2 01 C3 [13:29:01]Write i2c OK [13:29:01]MH_I2C_Read... [13:29:01]*** Cut start [13:29:01]*** Partial cut [13:29:01]*** CUTSNS_PIN = 1 [13:29:02]*** CUTSNS_PIN = 0 [13:29:02]*** Brake cut motor [13:29:02]Read from MH i2c: 01 [13:29:02]MH_I2C_Read... [13:29:02]*** Stop cut motor [13:29:02]*** Cut end [13:29:02]Read from MH i2c: 01 07 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: 01 07 00 C2 01 00 00 00 00 00 FF 0F D8 [13:29:02]process_action close_receipt done [13:29:02]requested_data is exist [13:29:02]produce_requested_data [13:29:02]requested_item fm.sn is exist - process it [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 11 00 00 [13:29:02]Write to MH i2c: E2 08 00 C3 01 80 11 00 00 00 00 00 00 3E [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 17 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 17 00 C3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 97 [13:29:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:29:02]wFMCommunicate OK [13:29:02]requested_item fd.num is exist - process it [13:29:02]SAM_PROTO_GetFieldsCounters [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 13 00 00 [13:29:02]Write to MH i2c: E2 08 00 C4 01 80 13 00 00 00 00 00 00 41 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 62 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 62 00 C4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DF B9 02 00 0E 04 04 00 D6 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 30 [13:29: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 DF B9 02 00 0E 04 04 00 D6 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 [13:29:02]wFMCommunicate OK [13:29:02]SAM_PROTO_GetFieldsCounters done [13:29:02]requested_item shift.num is exist - process it [13:29:02]requested_item shift.opened is exist - process it [13:29:02]req_shift_opened [13:29:02]FM_GetShiftState [13:29:02]SAM_PROTO_GetShiftState [13:29:02]wFMCommunicate request_size=4 [13:29:02]MH_SAM_APDU [13:29:02]CAPDU: 80 13 01 00 [13:29:02]Write to MH i2c: E2 08 00 C5 01 80 13 01 00 00 00 00 00 43 [13:29:02]Write i2c OK [13:29:02]MH_I2C_Read... [13:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:02]Read from MH i2c: E2 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 0E 00 [13:29:02]MH_I2C_Read... [13:29:02]Read from MH i2c: E2 0E 00 C5 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1A [13:29:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:29:02]wFMCommunicate OK [13:29:02]SAM_PROTO_GetShiftState done [13:29:02]FM_GetShiftState done [13:29:02]req_shift_opened done [13:29:02]requested_item shift.open_date is exist - process it [13:29:02]req_shift_open_date [13:29:02]req_shift_open_date done [13:29:02]produce_requested_data done [13:29:02]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178655,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:29:02]process_action_free close_receipt [13:29:02]json_value_free [13:29:02]json_value_free done [13:29:02]process_json_proto returns [13:29:02]Send response to host [13:29:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178655,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:29:02]free response buf [13:29:02]execute_script done [13:29:02]execute_script returns [13:29:02]free content buf [13:29:02]Sock 9.Close socket [13:29:02]Sock 9.Thread stoped [13:29:02]Connected sock=11 [13:29:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 07 9E 07 01 A5 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 73 00 00 00 F4 03 04 00 9B 8E C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 DF B9 02 00 35 04 06 00 D5 CA 70 8B 5F 22 D1 41 67 BE CE 86 DA D7 [13:29:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 19 E5 47 00 36 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 31 37 37 38 10 04 04 00 DF B9 02 00 F4 03 04 00 44 3A C8 66 B6 04 01 00 00 C5 42 58 AD 60 7F 98 DF [13:29:03]CommunicateWithHost err = 0 [13:29:03]CheckOFDResponse [13:29:03]1017 (14) - 77093643461234 [13:29:03]1041 (16) - 0000000000871778 [13:29:03]1040 (4) - 178655 [13:29:03]1012 (4) - 23.08.2024 07:29 [13:29:03]1206 (1) - 0 [13:29:03]OFD Sender: Remove packet 178655 [13:29:03]ProducePacketName [13:29:03]name=ofd_packets/00178655 [13:29:03]NVStorageDeleteData [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:55]recv_with_timeout no data received [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:14]recv_with_timeout no data received [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:01]accept exits with 7 [13:31:01]New connection [13:31:01]New thread 3066821988 created [13:31:01]Thread 3066678628 joined [13:31:01]Waiting for new connection... [13:31:01] Sock 7.Parse request [13:31:01]Sock 7.Check first char [13:31:01]Sock 7.First char is OK [13:31:01]request: POST /json_proto HTTP/1.0 [13:31:01]Method: POST [13:31:01]URL: /json_proto [13:31:01]Method is POST - this is cgi request [13:31:01]url: /json_proto [13:31:01]query_string will be loaded in cgi processing [13:31:01]execute_cgi json_proto POST (null) [13:31:01]execute_cgi path=json_proto method=POST [13:31:01]POST find Content-Length [13:31:01]Host: 172.17.44.131:8080 [13:31:01]Content-Length: 672 [13:31:01]Content-Type: application/json [13:31:01] [13:31:01]POST finish read [13:31:01]Found Content-Length = 672 [13:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 29.070, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:01]execute_script... [13:31: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)294299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 29.070, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:01]POST & json_proto [13:31:01]process_json_proto [13:31:01]json parsed OK: [13:31:01]protocol is kg_v1.0 [13:31:01]action value=close_receipt [13:31:01]process_action close_receipt [13:31:01]cmd_close_receipt [13:31:01]MH_GetDate [13:31:01]Write to MH i2c: F0 00 00 C6 01 B6 [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: F0 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: F0 09 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: F0 09 00 C6 01 00 15 8F C8 66 4F 53 BE 66 57 [13:31:01]GetLastDocTimeStamp 1724419739 [13:31:01]current date 1724419861 [13:31:01]FM_GetShiftState [13:31:01]SAM_PROTO_GetShiftState [13:31:01]wFMCommunicate request_size=4 [13:31:01]MH_SAM_APDU [13:31:01]CAPDU: 80 13 01 00 [13:31:01]Write to MH i2c: E2 08 00 C7 01 80 13 01 00 00 00 00 00 45 [13:31:01]Write i2c OK [13:31:01]MH_I2C_Read... [13:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:01]Read from MH i2c: E2 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 0E 00 [13:31:01]MH_I2C_Read... [13:31:01]Read from MH i2c: E2 0E 00 C7 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1C [13:31:01]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:31:01]wFMCommunicate OK [13:31:01]SAM_PROTO_GetShiftState done [13:31:01]FM_GetShiftState done [13:31:01]opened in 1724371660 [13:31:01]opened+sec_in_day 1724458060 [13:31:01]quantity*price = 200001 [13:31:01]sum+1 = 200003 [13:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 116 23.08.2024 13:31 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178656 ФПД: 189012299330813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T133101&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178656&fm=189012299330813&tin=02508201610067®Number=0000000000092561&sum=200000 [13:31:02]StoreToDocumentArchive [13:31:02]shift 470 fd 178656 [13:31:02]save to /storage/0470/doc_00178656 [13:31:02]save last doc name /storage/0470/doc_00178656 to /storage/kkm_last_doc_name [13:31:02]save OK [13:31:02]Clear old archive folders... [13:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=249 [13:31:02]tlvbuf is 01482F80 [13:31:02]SAM_PROTO_ClearQueue [13:31:02]wFMCommunicate request_size=4 [13:31:02]MH_SAM_APDU [13:31:02]CAPDU: 80 09 00 00 [13:31:02]Write to MH i2c: E2 08 00 D4 01 80 09 00 00 00 00 00 00 47 [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:02]Read from MH i2c: E2 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 03 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [13:31:02]RAPDU: 90 00 [13:31:02]wFMCommunicate OK [13:31:02]SAM_PROTO_ClearQueue done [13:31:02]KKMCreateOFDPacket [13:31:02]OFDProtocolAddRootSTLVToBuf [13:31:02]FM_MakeSignedData [13:31:02]FM_MakeSignedData [13:31:02]SAM_PROTO_SignData [13:31:02]wFMCommunicate request_size=4 [13:31:02]MH_SAM_APDU [13:31:02]CAPDU: 80 0D 01 02 [13:31:02]Write to MH i2c: E2 08 00 D5 01 80 0D 01 02 00 00 00 00 4F [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:02]Read from MH i2c: E2 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 03 00 [13:31:02]MH_I2C_Read... [13:31:02]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [13:31:02]RAPDU: 90 00 [13:31:02]wFMCommunicate OK [13:31:02]wFMCommunicate request_size=255 [13:31:02]MH_SAM_APDU [13:31:02]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 8F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E0 B9 02 00 35 04 06 00 AB E7 DA [13:31:02]Write to MH i2c: E2 02 01 D6 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 8F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E0 B9 02 00 35 04 06 00 AB E7 DA 00 00 5F [13:31:02]Write i2c OK [13:31:02]MH_I2C_Read... [13:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:03]Read from MH i2c: E2 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 03 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [13:31:03]RAPDU: 90 00 [13:31:03]wFMCommunicate OK [13:31:03]wFMCommunicate request_size=8 [13:31:03]MH_SAM_APDU [13:31:03]CAPDU: 80 0D 02 02 03 F5 B4 FD [13:31:03]Write to MH i2c: E2 0B 00 D7 01 80 0D 02 02 03 00 F5 B4 FD 00 00 FE [13:31:03]Write i2c OK [13:31:03]MH_I2C_Read... [13:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:03]Read from MH i2c: E2 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 03 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [13:31:03]RAPDU: 90 00 [13:31:03]wFMCommunicate OK [13:31:03]wFMCommunicate request_size=4 [13:31:03]MH_SAM_APDU [13:31:03]CAPDU: 80 0D 03 02 [13:31:03]Write to MH i2c: E2 08 00 D8 01 80 0D 03 02 00 00 00 00 54 [13:31:03]Write i2c OK [13:31:03]MH_I2C_Read... [13:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:03]Read from MH i2c: E2 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 0B 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 0B 00 D8 01 00 0B 05 3E B3 09 92 86 2C 90 00 A3 [13:31:03]RAPDU: 0B 05 3E B3 09 92 86 2C 90 00 [13:31:03]wFMCommunicate OK [13:31:03]SAM_PROTO_SignData done [13:31:03]FM_MakeSignedData done [13:31:03]CreateOFDProtocolMessage [13:31:03]wFMCommunicate request_size=4 [13:31:03]MH_SAM_APDU [13:31:03]CAPDU: 80 11 00 00 [13:31:03]Write to MH i2c: E2 08 00 D9 01 80 11 00 00 00 00 00 00 54 [13:31:03]Write i2c OK [13:31:03]MH_I2C_Read... [13:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:03]Read from MH i2c: E2 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 17 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: E2 17 00 D9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AD [13:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:31:03]wFMCommunicate OK [13:31:03]CreateOFDProtocolMessage done [13:31:03]OFDSenderStorePacket 178656 [13:31:03]StoreOFDPacket docnum=178656 [13:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 DC B2 05 01 EC CC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 8F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E0 B9 02 00 35 04 06 00 AB E7 DA F5 B4 FD 0B 05 3E B3 09 92 86 2C [13:31:03]CheckFolder [13:31:03]dirname=/storage/ofd_packets [13:31:03]CheckFolder done [13:31:03]ProducePacketName [13:31:03]name=ofd_packets/00178656 [13:31:03]NVStorageSaveData ofd_packets/00178656 [13:31:03]File name is /storage/ofd_packets/00178656 [13:31:03]Write 299 bytes [13:31:03]NVStorageSaveData done [13:31:03]OFDSenderStorePacket done [13:31:03]KKMCreateOFDPacket done [13:31:03]NVStorageSaveData kkm_last_timestamp [13:31:03]File name is /storage/kkm_last_timestamp [13:31:03]Write 4 bytes [13:31:03]NVStorageSaveData done [13:31:03]ExternCall_PrintAddStr [13:31:03]wPrintStart [13:31:03]Write to MH i2c: 01 00 00 DA 01 DB [13:31:03]Write i2c OK [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: 01 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: 01 07 00 [13:31:03]MH_I2C_Read... [13:31:03]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [13:31:03]RasterBufferAndPrint [13:31:03]line Счет N : (1)294299 [13:31:03]line ИНН: 02508201610067 [13:31:03]line Контрольно-Кассовый Чек [13:31:03]line ПРОДАЖА [13:31:03]line ТРК (МРК, ГНК) : 51 [13:31:03]line Товар: 2710124130 [13:31:03]line SU-92-К-5 [13:31:03]line 29.070 * 68.80 [13:31:03]line = 2000.02 [13:31:03]line НДС 12% НСП 1% [13:31:03]line > о реализуемом товаре [13:31:03]line ОКРУГЛЕНИЕ: -0.02 [13:31:03]line ИТОГО: 2000.00 [13:31:03]line Внесено: 2000.00 [13:31:03]line СДАЧА: 0.00 [13:31:03]line НСП 1% : 17.70 [13:31:03]line НДС 12% : 212.39 [13:31:03]line Наличными: 2000.00 [13:31:03]line Безнал.: 0.00 [13:31:03]line Место: АЗС № 130 "Партнер Нефть" [13:31:03]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:31:03]line СНО: Общий режим [13:31:03]line Чек 116 23.08.2024 13:31 [13:31:03]line Смена: 470 ФФД: 1.0 [13:31:03]line ЗНМ: 0300000071 [13:31:03]line РНМ: 0000000000092561 [13:31:03]line Версия ККМ: 001 [13:31:03]line ФМ: 0000000000871778 [13:31:03]line ФД: 178656 [13:31:03]line ФПД: 189012299330813 [13:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T133101&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178656&fm=189012299330813&tin=02508201610067®Number=0000000000092561&sum=200000 [13:31:03]OFD Sender: Processing packet 178656 [packets to send 498, broken 497] [13:31:03]ProducePacketName [13:31:03]name=ofd_packets/00178656 [13:31:03]OFD Sender: To server: pG, [13:31:03]CommunicateWithHost lk.salyk.kg:30040 [13:31:03]ConnectInit lk.salyk.kg [13:31:03]written 0, free lines is 4095 [13:31:04]Write to MH i2c: 01 00 00 05 02 07 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 07 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 E1 0C FB [13:31:04]RasterBufferAndPrint [13:31:04]line [13:31:04]line [13:31:04]line [13:31:04]line [13:31:04]line [13:31:04]written 0, free lines is 3303 [13:31:04]MH_Cut [13:31:04]Write to MH i2c: D1 01 00 0C 02 01 E0 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: D1 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: D1 01 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: D1 01 00 0C 02 00 DF [13:31:04]Write to MH i2c: 01 00 00 0D 02 0F [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** Cut start [13:31:04]*** Partial cut [13:31:04]*** CUTSNS_PIN = 1 [13:31:04]*** CUTSNS_PIN = 0 [13:31:04]*** Brake cut motor [13:31:05]Read from MH i2c: 01 [13:31:05]MH_I2C_Read... [13:31:05]*** Stop cut motor [13:31:05]*** Cut end [13:31:05]Read from MH i2c: 01 07 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: 01 07 00 0D 02 00 00 00 00 00 FF 0F 24 [13:31:05]process_action close_receipt done [13:31:05]requested_data is exist [13:31:05]produce_requested_data [13:31:05]requested_item fm.sn is exist - process it [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 11 00 00 [13:31:05]Write to MH i2c: E2 08 00 0E 02 80 11 00 00 00 00 00 00 8A [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 17 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 17 00 0E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [13:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:31:05]wFMCommunicate OK [13:31:05]requested_item fd.num is exist - process it [13:31:05]SAM_PROTO_GetFieldsCounters [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 13 00 00 [13:31:05]Write to MH i2c: E2 08 00 0F 02 80 13 00 00 00 00 00 00 8D [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 62 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 62 00 0F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E0 B9 02 00 0E 04 04 00 D6 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 80 [13:31: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E0 B9 02 00 0E 04 04 00 D6 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 [13:31:05]wFMCommunicate OK [13:31:05]SAM_PROTO_GetFieldsCounters done [13:31:05]requested_item shift.num is exist - process it [13:31:05]requested_item shift.opened is exist - process it [13:31:05]req_shift_opened [13:31:05]FM_GetShiftState [13:31:05]SAM_PROTO_GetShiftState [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 13 01 00 [13:31:05]Write to MH i2c: E2 08 00 10 02 80 13 01 00 00 00 00 00 8F [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 0E 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 0E 00 10 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [13:31:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:31:05]wFMCommunicate OK [13:31:05]SAM_PROTO_GetShiftState done [13:31:05]FM_GetShiftState done [13:31:05]req_shift_opened done [13:31:05]requested_item shift.open_date is exist - process it [13:31:05]req_shift_open_date [13:31:05]req_shift_open_date done [13:31:05]produce_requested_data done [13:31:05]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178656,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:31:05]process_action_free close_receipt [13:31:05]json_value_free [13:31:05]json_value_free done [13:31:05]process_json_proto returns [13:31:05]Send response to host [13:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178656,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:31:05]free response buf [13:31:05]execute_script done [13:31:05]execute_script returns [13:31:05]free content buf [13:31:05]Sock 7.Close socket [13:31:05]Sock 7.Thread stoped [13:31:06]Connected sock=11 [13:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 DC B2 05 01 EC CC 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 8F C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E0 B9 02 00 35 04 06 00 AB E7 DA F5 B4 FD 0B 05 3E B3 09 92 86 2C [13:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 2B C5 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 31 37 37 38 10 04 04 00 E0 B9 02 00 F4 03 04 00 C0 3A C8 66 B6 04 01 00 00 BA 41 23 70 9C 87 70 D3 [13:31:08]CommunicateWithHost err = 0 [13:31:08]CheckOFDResponse [13:31:08]1017 (14) - 77093643461234 [13:31:08]1041 (16) - 0000000000871778 [13:31:08]1040 (4) - 178656 [13:31:08]1012 (4) - 23.08.2024 07:31 [13:31:08]1206 (1) - 0 [13:31:08]OFD Sender: Remove packet 178656 [13:31:08]ProducePacketName [13:31:08]name=ofd_packets/00178656 [13:31:08]NVStorageDeleteData [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:00]recv_with_timeout no data received [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]accept exits with 9 [13:38:05]New connection [13:38:05]New thread 3066678628 created [13:38:05]Thread 3066821988 joined [13:38:05]Waiting for new connection... [13:38:05] Sock 9.Parse request [13:38:05]Sock 9.Check first char [13:38:05]Sock 9.First char is OK [13:38:05]request: POST /json_proto HTTP/1.0 [13:38:05]Method: POST [13:38:05]URL: /json_proto [13:38:05]Method is POST - this is cgi request [13:38:05]url: /json_proto [13:38:05]query_string will be loaded in cgi processing [13:38:05]execute_cgi json_proto POST (null) [13:38:05]execute_cgi path=json_proto method=POST [13:38:05]POST find Content-Length [13:38:05]Host: 172.17.44.131:8080 [13:38:05]Content-Length: 816 [13:38:05]Content-Type: application/json [13:38:05] [13:38:05]POST finish read [13:38:05]Found Content-Length = 816 [13:38:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294305", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:05]execute_script... [13:38: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)294305", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.36 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:05]POST & json_proto [13:38:05]process_json_proto [13:38:05]json parsed OK: [13:38:05]protocol is kg_v1.0 [13:38:05]action value=close_receipt [13:38:05]process_action close_receipt [13:38:05]cmd_close_receipt [13:38:05]MH_GetDate [13:38:05]Write to MH i2c: F0 00 00 11 02 02 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: F0 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: F0 09 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: F0 09 00 11 02 00 BD 90 C8 66 4F 53 BE 66 4C [13:38:05]GetLastDocTimeStamp 1724419861 [13:38:05]current date 1724420285 [13:38:05]FM_GetShiftState [13:38:05]SAM_PROTO_GetShiftState [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 13 01 00 [13:38:05]Write to MH i2c: E2 08 00 12 02 80 13 01 00 00 00 00 00 91 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0E 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0E 00 12 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 68 [13:38:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_GetShiftState done [13:38:05]FM_GetShiftState done [13:38:05]opened in 1724371660 [13:38:05]opened+sec_in_day 1724458060 [13:38:05]quantity*price = 50036 [13:38:05]sum+1 = 50037 [13:38:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.36 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.36 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 117 23.08.2024 13:38 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178657 ФПД: 182734217852065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T133805&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178657&fm=182734217852065&tin=02508201610067®Number=0000000000092561&sum=50036 [13:38:06]StoreToDocumentArchive [13:38:06]shift 470 fd 178657 [13:38:06]save to /storage/0470/doc_00178657 [13:38:06]save last doc name /storage/0470/doc_00178657 to /storage/kkm_last_doc_name [13:38:06]save OK [13:38:06]Clear old archive folders... [13:38:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:06]tlvbuf is 014E6CD0 [13:38:06]SAM_PROTO_ClearQueue [13:38:06]wFMCommunicate request_size=4 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 09 00 00 [13:38:06]Write to MH i2c: E2 08 00 1F 02 80 09 00 00 00 00 00 00 93 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [13:38:06]RAPDU: 90 00 [13:38:06]wFMCommunicate OK [13:38:06]SAM_PROTO_ClearQueue done [13:38:06]KKMCreateOFDPacket [13:38:06]OFDProtocolAddRootSTLVToBuf [13:38:06]FM_MakeSignedData [13:38:06]FM_MakeSignedData [13:38:06]SAM_PROTO_SignData [13:38:06]wFMCommunicate request_size=4 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 0D 01 02 [13:38:06]Write to MH i2c: E2 08 00 20 02 80 0D 01 02 00 00 00 00 9B [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [13:38:06]RAPDU: 90 00 [13:38:06]wFMCommunicate OK [13:38:06]wFMCommunicate request_size=255 [13:38:06]MH_SAM_APDU [13:38: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 90 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E1 B9 02 00 35 04 06 00 A6 [13:38:06]Write to MH i2c: E2 02 01 21 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 90 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E1 B9 02 00 35 04 06 00 A6 00 00 6F [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [13:38:06]RAPDU: 90 00 [13:38:06]wFMCommunicate OK [13:38:06]wFMCommunicate request_size=10 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 0D 02 02 05 32 20 24 B4 A1 [13:38:06]Write to MH i2c: E2 0D 00 22 02 80 0D 02 02 05 00 32 20 24 B4 A1 00 00 73 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [13:38:06]RAPDU: 90 00 [13:38:06]wFMCommunicate OK [13:38:06]wFMCommunicate request_size=4 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 0D 03 02 [13:38:06]Write to MH i2c: E2 08 00 23 02 80 0D 03 02 00 00 00 00 A0 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:06]Read from MH i2c: E2 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 0B 00 [13:38:06]MH_I2C_Read... [13:38:06]Read from MH i2c: E2 0B 00 23 02 00 41 E0 30 A4 51 51 87 36 90 00 F5 [13:38:06]RAPDU: 41 E0 30 A4 51 51 87 36 90 00 [13:38:06]wFMCommunicate OK [13:38:06]SAM_PROTO_SignData done [13:38:06]FM_MakeSignedData done [13:38:06]CreateOFDProtocolMessage [13:38:06]wFMCommunicate request_size=4 [13:38:06]MH_SAM_APDU [13:38:06]CAPDU: 80 11 00 00 [13:38:06]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [13:38:06]Write i2c OK [13:38:06]MH_I2C_Read... [13:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:07]Read from MH i2c: E2 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: E2 17 00 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F9 [13:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:38:07]wFMCommunicate OK [13:38:07]CreateOFDProtocolMessage done [13:38:07]OFDSenderStorePacket 178657 [13:38:19]1041 (16) - 0000000000871778 [13:38:19]1040 (4) - 178657 [13:38:19]1012 (4) - 23.08.2024 07:38 [13:38:19]1206 (1) - 0 [13:38:19]OFD Sender: Remove packet 178657 [13:38:19]ProducePacketName [13:38:19]name=ofd_packets/00178657 [13:38:19]NVStorageDeleteData [13:38:19]OFD Sender: No OFD packet to send [13:38:24]OFD Sender: No OFD packet to send [13:38:29]OFD Sender: No OFD packet to send [13:38:32]recv_with_timeout no data received [13:38:34]OFD Sender: No OFD packet to send [13:38:39]OFD Sender: No OFD packet to send [13:38:44]OFD Sender: No OFD packet to send [13:38:49]OFD Sender: No OFD packet to send [13:38:51]recv_with_timeout no data received [13:38:54]OFD Sender: No OFD packet to send [13:38:07]StoreOFDPacket docnum=178657 [13:38:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 4C 85 07 01 F5 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 90 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E1 B9 02 00 35 04 06 00 A6 32 20 24 B4 A1 41 E0 30 A4 51 51 87 36 [13:38:07]CheckFolder [13:38:07]dirname=/storage/ofd_packets [13:38:07]CheckFolder done [13:38:07]ProducePacketName [13:38:07]name=ofd_packets/00178657 [13:38:07]NVStorageSaveData ofd_packets/00178657 [13:38:07]File name is /storage/ofd_packets/00178657 [13:38:07]Write 301 bytes [13:38:07]NVStorageSaveData done [13:38:07]OFDSenderStorePacket done [13:38:07]KKMCreateOFDPacket done [13:38:07]NVStorageSaveData kkm_last_timestamp [13:38:07]File name is /storage/kkm_last_timestamp [13:38:07]Write 4 bytes [13:38:07]NVStorageSaveData done [13:38:07]ExternCall_PrintAddStr [13:38:07]wPrintStart [13:38:07]Write to MH i2c: 01 00 00 25 02 27 [13:38:07]Write i2c OK [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: 01 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: 01 07 00 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [13:38:07]RasterBufferAndPrint [13:38:07]line Счет N : (1)294305 [13:38:07]line ИНН: 02508201610067 [13:38:07]line Контрольно-Кассовый Чек [13:38:07]line ПРОДАЖА [13:38:07]line ТРК (МРК, ГНК) : 52 [13:38:07]line Товар: 2710124130 [13:38:07]line Аи-92-К-5 [13:38:07]line 7.380 * 67.80 [13:38:07]line = 500.36 [13:38:07]line НДС 12% НСП 1% [13:38:07]line > о реализуемом товаре [13:38:07]line ИТОГО: 500.36 [13:38:07]line НСП 1% : 4.43 [13:38:07]line НДС 12% : 53.14 [13:38:07]line Наличными: 0.00 [13:38:07]line Безнал.: 500.36 [13:38:07]line Место: АЗС № 130 "Партнер Нефть" [13:38:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [13:38:07]line СНО: Общий режим [13:38:07]line Чек 117 23.08.2024 13:38 [13:38:07]line Смена: 470 ФФД: 1.0 [13:38:07]line ЗНМ: 0300000071 [13:38:07]line РНМ: 0000000000092561 [13:38:07]line Версия ККМ: 001 [13:38:07]line Платежная система: Бакай Банк [13:38:07]line ФМ: 0000000000871778 [13:38:07]line ФД: 178657 [13:38:07]line ФПД: 182734217852065 [13:38:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T133805&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178657&fm=182734217852065&tin=02508201610067®Number=0000000000092561&sum=50036 [13:38:07]written 0, free lines is 4095 [13:38:07]OFD Sender: Processing packet 178657 [packets to send 498, broken 497] [13:38:07]ProducePacketName [13:38:07]name=ofd_packets/00178657 [13:38:07]OFD Sender: To server: pG, [13:38:07]CommunicateWithHost lk.salyk.kg:30040 [13:38:07]ConnectInit lk.salyk.kg [13:38:07]Write to MH i2c: 01 00 00 4F 02 51 [13:38:07]Write i2c OK [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: 01 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: 01 07 00 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 ED 0C 51 [13:38:07]RasterBufferAndPrint [13:38:07]line [13:38:07]line [13:38:07]line [13:38:07]line [13:38:07]line [13:38:07]written 0, free lines is 3315 [13:38:07]MH_Cut [13:38:07]Write to MH i2c: D1 01 00 56 02 01 2A [13:38:07]Write i2c OK [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: D1 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: D1 01 00 [13:38:07]MH_I2C_Read... [13:38:07]Read from MH i2c: D1 01 00 56 02 00 29 [13:38:07]Write to MH i2c: 01 00 00 57 02 59 [13:38:07]Write i2c OK [13:38:07]MH_I2C_Read... [13:38:08]*** Cut start [13:38:08]*** Partial cut [13:38:08]*** CUTSNS_PIN = 1 [13:38:08]*** CUTSNS_PIN = 0 [13:38:08]*** Brake cut motor [13:38:08]Read from MH i2c: 01 [13:38:08]MH_I2C_Read... [13:38:08]*** Stop cut motor [13:38:08]*** Cut end [13:38:08]Read from MH i2c: 01 07 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [13:38:08]process_action close_receipt done [13:38:08]requested_data is exist [13:38:08]produce_requested_data [13:38:08]requested_item fm.sn is exist - process it [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 11 00 00 [13:38:08]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2D [13:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [13:38:08]wFMCommunicate OK [13:38:08]requested_item fd.num is exist - process it [13:38:08]SAM_PROTO_GetFieldsCounters [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 00 00 [13:38:08]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E1 B9 02 00 0E 04 04 00 D6 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 CE [13:38:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E1 B9 02 00 0E 04 04 00 D6 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 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetFieldsCounters done [13:38:08]requested_item shift.num is exist - process it [13:38:08]requested_item shift.opened is exist - process it [13:38:08]req_shift_opened [13:38:08]FM_GetShiftState [13:38:08]SAM_PROTO_GetShiftState [13:38:08]wFMCommunicate request_size=4 [13:38:08]MH_SAM_APDU [13:38:08]CAPDU: 80 13 01 00 [13:38:08]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [13:38:08]Write i2c OK [13:38:08]MH_I2C_Read... [13:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:08]Read from MH i2c: E2 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 [13:38:08]MH_I2C_Read... [13:38:08]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B0 [13:38:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [13:38:08]wFMCommunicate OK [13:38:08]SAM_PROTO_GetShiftState done [13:38:08]FM_GetShiftState done [13:38:08]req_shift_opened done [13:38:08]requested_item shift.open_date is exist - process it [13:38:08]req_shift_open_date [13:38:08]req_shift_open_date done [13:38:08]produce_requested_data done [13:38:08]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178657,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [13:38:08]process_action_free close_receipt [13:38:08]json_value_free [13:38:08]json_value_free done [13:38:08]process_json_proto returns [13:38:08]Send response to host [13:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178657,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [13:38:08]free response buf [13:38:08]execute_script done [13:38:08]execute_script returns [13:38:08]free content buf [13:38:08]Sock 9.Close socket [13:38:08]Sock 9.Thread stoped [13:38:15]Connected sock=11 [13: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 31 37 37 38 0F 01 00 00 4C 85 07 01 F5 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 74 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 BD 90 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E1 B9 02 00 35 04 06 00 A6 32 20 24 B4 A1 41 E0 30 A4 51 51 87 36 [13:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 85 15 47 00 86 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 31 37 37 38 10 04 04 00 E1 B9 02 00 F4 03 04 00 6C 3C C8 66 B6 04 01 00 00 FD C5 59 11 C3 A1 76 33 [13:38:19]CommunicateWithHost err = 0 [13:38:19]CheckOFDResponse [13:38:19]1017 (14) - 77093643461234 [13:38:59]OFD Sender: No OFD packet to send [13:39:04]OFD Sender: No OFD packet to send [13:39:09]OFD Sender: No OFD packet to send [13:39:14]OFD Sender: No OFD packet to send [13:39:19]OFD Sender: No OFD packet to send [13:39:24]OFD Sender: No OFD packet to send [13:39:29]OFD Sender: No OFD packet to send [13:39:34]OFD Sender: No OFD packet to send [13:39:39]OFD Sender: No OFD packet to send [13:39:44]OFD Sender: No OFD packet to send [13:39:49]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:19]recv_with_timeout no data received [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:29]recv_with_timeout no data received [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:03]recv_with_timeout no data received [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:05]recv_with_timeout no data received [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:39]recv_with_timeout no data received [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]recv_with_timeout no data received [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:22]recv_with_timeout no data received [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:53:58]recv_with_timeout no data received [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:16]recv_with_timeout no data received [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:55:58]recv_with_timeout no data received [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:09]recv_with_timeout no data received [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:15]recv_with_timeout no data received [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:20]recv_with_timeout no data received [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:08]recv_with_timeout no data received [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [14:01:18]ConnectInit Can't connect to host [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:53]OFD Sender: No OFD packet to send [14:01:58]OFD Sender: No OFD packet to send [14:02:03]OFD Sender: No OFD packet to send [14:02:08]OFD Sender: No OFD packet to send [14:02:13]OFD Sender: No OFD packet to send [14:02:18]OFD Sender: No OFD packet to send [14:02:23]OFD Sender: No OFD packet to send [14:02:28]OFD Sender: No OFD packet to send [14:02:33]OFD Sender: No OFD packet to send [14:02:38]OFD Sender: No OFD packet to send [14:02:43]OFD Sender: No OFD packet to send [14:02:48]OFD Sender: No OFD packet to send [14:02:53]OFD Sender: No OFD packet to send [14:02:58]OFD Sender: No OFD packet to send [14:03:03]OFD Sender: No OFD packet to send [14:03:08]OFD Sender: No OFD packet to send [14:03:13]OFD Sender: No OFD packet to send [14:03:16]recv_with_timeout no data received [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:57]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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]recv_with_timeout no data received [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:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]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:34]recv_with_timeout no data received [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:55]ConnectInit Can't connect to host [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:38]recv_with_timeout no data received [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]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:26]recv_with_timeout no data received [14:13:29]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:14:58]recv_with_timeout no data received [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:22]recv_with_timeout no data received [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:15:59]recv_with_timeout no data received [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:45]recv_with_timeout no data received [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:06]recv_with_timeout no data received [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:17:59]accept exits with 10 [14:17:59]New connection [14:17:59]New thread 3066821988 created [14:17:59]Thread 3066678628 joined [14:17:59]Waiting for new connection... [14:17:59] Sock 10.Parse request [14:17:59]Sock 10.Check first char [14:17:59]Sock 10.First char is OK [14:17:59]request: POST /json_proto HTTP/1.0 [14:17:59]Method: POST [14:17:59]URL: /json_proto [14:17:59]Method is POST - this is cgi request [14:17:59]url: /json_proto [14:17:59]query_string will be loaded in cgi processing [14:17:59]execute_cgi json_proto POST (null) [14:17:59]execute_cgi path=json_proto method=POST [14:17:59]POST find Content-Length [14:17:59]Host: 172.17.44.131:8080 [14:17:59]Content-Length: 678 [14:17:59]Content-Type: application/json [14:17:59] [14:17:59]POST finish read [14:17:59]Found Content-Length = 678 [14:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:17:59]execute_script... [14:17: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)294329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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:17:59]POST & json_proto [14:17:59]process_json_proto [14:17:59]json parsed OK: [14:17:59]protocol is kg_v1.0 [14:17:59]action value=close_receipt [14:17:59]process_action close_receipt [14:17:59]cmd_close_receipt [14:17:59]MH_GetDate [14:17:59]Write to MH i2c: F0 00 00 5B 02 4C [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: F0 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: F0 09 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: F0 09 00 5B 02 00 18 9A C8 66 4F 53 BE 66 FB [14:17:59]GetLastDocTimeStamp 1724420285 [14:17:59]current date 1724422680 [14:17:59]FM_GetShiftState [14:17:59]SAM_PROTO_GetShiftState [14:17:59]wFMCommunicate request_size=4 [14:17:59]MH_SAM_APDU [14:17:59]CAPDU: 80 13 01 00 [14:17:59]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [14:17:59]Write i2c OK [14:17:59]MH_I2C_Read... [14:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:59]Read from MH i2c: E2 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 0E 00 [14:17:59]MH_I2C_Read... [14:17:59]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B2 [14:17:59]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:17:59]wFMCommunicate OK [14:17:59]SAM_PROTO_GetShiftState done [14:17:59]FM_GetShiftState done [14:17:59]opened in 1724371660 [14:17:59]opened+sec_in_day 1724458060 [14:17:59]quantity*price = 80061 [14:17:59]sum+1 = 80063 [14:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 118 23.08.2024 14:18 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178658 ФПД: 35130625834661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T141800&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178658&fm=35130625834661&tin=02508201610067®Number=0000000000092561&sum=80000 [14:18:01]StoreToDocumentArchive [14:18:01]shift 470 fd 178658 [14:18:01]save to /storage/0470/doc_00178658 [14:18:01]save last doc name /storage/0470/doc_00178658 to /storage/kkm_last_doc_name [14:18:01]save OK [14:18:01]Clear old archive folders... [14:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:01]tlvbuf is 014F1D90 [14:18:01]SAM_PROTO_ClearQueue [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 09 00 00 [14:18:01]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_ClearQueue done [14:18:01]KKMCreateOFDPacket [14:18:01]OFDProtocolAddRootSTLVToBuf [14:18:01]FM_MakeSignedData [14:18:01]FM_MakeSignedData [14:18:01]SAM_PROTO_SignData [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 01 02 [14:18:01]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]wFMCommunicate request_size=255 [14:18:01]MH_SAM_APDU [14:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 76 00 00 00 F4 03 04 00 18 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E2 B9 02 00 35 04 06 00 1F [14:18:01]Write to MH i2c: E2 02 01 6B 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 76 00 00 00 F4 03 04 00 18 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E2 B9 02 00 35 04 06 00 1F 00 00 CE [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]wFMCommunicate request_size=10 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 02 02 05 F3 7C 79 3E A5 [14:18:01]Write to MH i2c: E2 0D 00 6C 02 80 0D 02 02 05 00 F3 7C 79 3E A5 00 00 BD [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 03 02 [14:18:01]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0B 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0B 00 6D 02 00 D5 09 DA 51 6F 1E BA 44 90 00 7F [14:18:01]RAPDU: D5 09 DA 51 6F 1E BA 44 90 00 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_SignData done [14:18:01]FM_MakeSignedData done [14:18:01]CreateOFDProtocolMessage [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 11 00 00 [14:18:01]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 17 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 43 [14:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:18:01]wFMCommunicate OK [14:18:01]CreateOFDProtocolMessage done [14:18:01]OFDSenderStorePacket 178658 [14:18:01]StoreOFDPacket docnum=178658 [14:18:48]ProducePacketName [14:18:48]name=ofd_packets/00178659 [14:18:48]OFD Sender: To server: pG, [14:18:48]CommunicateWithHost lk.salyk.kg:30040 [14:18:48]ConnectInit lk.salyk.kg [14:18:50]accept exits with 10 [14:18:50]New connection [14:18:50]New thread 3066821988 created [14:18:50]Thread 3066678628 joined [14:18:50]Waiting for new connection... [14:18:50] Sock 10.Parse request [14:18:50]Sock 10.Check first char [14:18:50]Sock 10.First char is OK [14:18:50]request: POST /json_proto HTTP/1.0 [14:18:50]Method: POST [14:18:50]URL: /json_proto [14:18:50]Method is POST - this is cgi request [14:18:50]url: /json_proto [14:18:50]query_string will be loaded in cgi processing [14:18:50]execute_cgi json_proto POST (null) [14:18:50]execute_cgi path=json_proto method=POST [14:18:50]POST find Content-Length [14:18:50]Host: 172.17.44.131:8080 [14:18:50]Content-Length: 792 [14:18:50]Content-Type: application/json [14:18:50] [14:18:50]POST finish read [14:18:50]Found Content-Length = 792 [14:18:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294328", "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" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81542", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:50]execute_script... [14:18:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294328", "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" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A81542", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:50]POST & json_proto [14:18:50]process_json_proto [14:18:50]json parsed OK: [14:18:50]protocol is kg_v1.0 [14:18:50]action value=close_receipt [14:18:50]process_action close_receipt [14:18:50]cmd_close_receipt [14:18:50]MH_GetDate [14:18:50]Write to MH i2c: F0 00 00 F1 02 E2 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 09 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: F0 09 00 F1 02 00 4B 9A C8 66 4F 53 BE 66 C4 [14:18:50]GetLastDocTimeStamp 1724422697 [14:18:50]current date 1724422731 [14:18:50]FM_GetShiftState [14:18:50]SAM_PROTO_GetShiftState [14:18:50]wFMCommunicate request_size=4 [14:18:50]MH_SAM_APDU [14:18:50]CAPDU: 80 13 01 00 [14:18:50]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [14:18:50]Write i2c OK [14:18:50]MH_I2C_Read... [14:18:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:50]Read from MH i2c: E2 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 [14:18:50]MH_I2C_Read... [14:18:50]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 48 [14:18:50]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:18:50]wFMCommunicate OK [14:18:50]SAM_PROTO_GetShiftState done [14:18:50]FM_GetShiftState done [14:18:50]opened in 1724371660 [14:18:50]opened+sec_in_day 1724458060 [14:18:50]quantity*price = 0 [14:18:50]sum+1 = 1 [14:18:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 120 23.08.2024 14:18 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливная Карта 81542 ФМ: 0000000000871778 ФД: 178660 ФПД: 240964416933425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T141851&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178660&fm=240964416933425&tin=02508201610067®Number=0000000000092561&sum=0 [14:18:52]StoreToDocumentArchive [14:18:52]shift 470 fd 178660 [14:18:52]save to /storage/0470/doc_00178660 [14:18:52]save last doc name /storage/0470/doc_00178660 to /storage/kkm_last_doc_name [14:18:52]save OK [14:18:52]Clear old archive folders... [14:18:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:52]tlvbuf is 014D8440 [14:18:52]SAM_PROTO_ClearQueue [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 09 00 00 [14:18:52]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [14:18:52]RAPDU: 90 00 [14:18:52]wFMCommunicate OK [14:18:52]SAM_PROTO_ClearQueue done [14:18:52]KKMCreateOFDPacket [14:18:52]OFDProtocolAddRootSTLVToBuf [14:18:52]FM_MakeSignedData [14:18:52]FM_MakeSignedData [14:18:52]SAM_PROTO_SignData [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 0D 01 02 [14:18:52]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [14:18:52]RAPDU: 90 00 [14:18:52]wFMCommunicate OK [14:18:52]wFMCommunicate request_size=255 [14:18:52]MH_SAM_APDU [14:18: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 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 4B 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E4 B9 02 00 35 04 06 00 DB [14:18:52]Write to MH i2c: E2 02 01 01 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 4B 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E4 B9 02 00 35 04 06 00 DB 00 00 79 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [14:18:52]RAPDU: 90 00 [14:18:52]wFMCommunicate OK [14:18:52]wFMCommunicate request_size=10 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 0D 02 02 05 27 E6 79 8E 31 [14:18:52]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 27 E6 79 8E 31 00 00 CE [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [14:18:52]RAPDU: 90 00 [14:18:52]wFMCommunicate OK [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 0D 03 02 [14:18:52]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 0B 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 0B 00 03 03 00 33 5C F0 E9 72 78 7B 4B 90 00 9A [14:18:52]RAPDU: 33 5C F0 E9 72 78 7B 4B 90 00 [14:18:52]wFMCommunicate OK [14:18:52]SAM_PROTO_SignData done [14:18:52]FM_MakeSignedData done [14:18:52]CreateOFDProtocolMessage [14:18:52]wFMCommunicate request_size=4 [14:18:52]MH_SAM_APDU [14:18:52]CAPDU: 80 11 00 00 [14:18:52]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:52]Read from MH i2c: E2 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 17 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DA [14:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:18:52]wFMCommunicate OK [14:18:52]CreateOFDProtocolMessage done [14:18:52]OFDSenderStorePacket 178660 [14:18:52]StoreOFDPacket docnum=178660 [14:18:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E9 15 07 01 02 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 4B 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E4 B9 02 00 35 04 06 00 DB 27 E6 79 8E 31 33 5C F0 E9 72 78 7B 4B [14:18:52]CheckFolder [14:18:52]dirname=/storage/ofd_packets [14:18:52]CheckFolder done [14:18:52]ProducePacketName [14:18:52]name=ofd_packets/00178660 [14:18:52]NVStorageSaveData ofd_packets/00178660 [14:18:52]File name is /storage/ofd_packets/00178660 [14:18:52]Write 301 bytes [14:18:52]NVStorageSaveData done [14:18:52]OFDSenderStorePacket done [14:18:52]KKMCreateOFDPacket done [14:18:52]NVStorageSaveData kkm_last_timestamp [14:18:52]File name is /storage/kkm_last_timestamp [14:18:52]Write 4 bytes [14:18:52]NVStorageSaveData done [14:18:52]ExternCall_PrintAddStr [14:18:52]wPrintStart [14:18:52]Write to MH i2c: 01 00 00 05 03 08 [14:18:52]Write i2c OK [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 [14:18:52]MH_I2C_Read... [14:18:52]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [14:18:52]RasterBufferAndPrint [14:18:52]line Счет N : (1)294328 [14:18:52]line ИНН: 02508201610067 [14:18:52]line Контрольно-Кассовый Чек [14:18:52]line ПРОДАЖА [14:18:52]line ТРК (МРК, ГНК) : 52 [14:18:52]line Товар: 2710124130 [14:18:52]line Аи-92-К-5 [14:18:52]line 50.000 * 0.00 [14:18:52]line = 0.00 [14:18:52]line НДС 12% НСП 1% [14:18:52]line > о реализуемом товаре [14:18:52]line ИТОГО: 0.00 [14:18:52]line НСП 1% : 0.00 [14:18:52]line НДС 12% : 0.00 [14:18:52]line Наличными: 0.00 [14:18:52]line Безнал.: 0.00 [14:18:52]line Место: АЗС № 130 "Партнер Нефть" [14:18:52]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [14:18:52]line СНО: Общий режим [14:18:52]line Чек 120 23.08.2024 14:18 [14:18:52]line Смена: 470 ФФД: 1.0 [14:18:52]line ЗНМ: 0300000071 [14:18:52]line РНМ: 0000000000092561 [14:18:52]line Версия ККМ: 001 [14:18:52]line Талоны: Топливная Карта [14:18:52]line 81542 [14:18:52]line ФМ: 0000000000871778 [14:18:52]line ФД: 178660 [14:18:52]line ФПД: 240964416933425 [14:18:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T141851&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178660&fm=240964416933425&tin=02508201610067®Number=0000000000092561&sum=0 [14:18:52]written 0, free lines is 4095 [14:18:53]Write to MH i2c: 01 00 00 2F 03 32 [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 EE 0C 33 [14:18:53]RasterBufferAndPrint [14:18:53]line [14:18:53]line [14:18:53]line [14:18:53]line [14:18:53]line [14:18:53]written 0, free lines is 3322 [14:18:53]MH_Cut [14:18:53]Write to MH i2c: D1 01 00 36 03 01 0B [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: D1 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: D1 01 00 [14:18:53]MH_I2C_Read... [14:18:53]Read from MH i2c: D1 01 00 36 03 00 0A [14:18:53]Write to MH i2c: 01 00 00 37 03 3A [14:18:53]Write i2c OK [14:18:53]MH_I2C_Read... [14:18:53]ConnectInit Can't take IP for lk.salyk.kg [14:18:53]CommunicateWithHost connect error [14:18:53]CommunicateWithHost err = -1 [14:18:53]OFD Sender: Server communicate error [14:18:53]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:18:53]ProducePacketName [14:18:53]name=ofd_packets/00178659 [14:18:53]OFD Sender: To server: pG, [14:18:53]CommunicateWithHost lk.salyk.kg:30040 [14:18:53]ConnectInit lk.salyk.kg [14:18:53]*** Cut start [14:18:53]*** Partial cut [14:18:53]*** CUTSNS_PIN = 1 [14:18:53]*** CUTSNS_PIN = 0 [14:18:54]*** Brake cut motor [14:18:54]Read from MH i2c: 01 [14:18:54]MH_I2C_Read... [14:18:54]*** Stop cut motor [14:18:54]*** Cut end [14:18:54]Read from MH i2c: 01 07 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [14:18:54]process_action close_receipt done [14:18:54]requested_data is exist [14:18:54]produce_requested_data [14:18:54]requested_item fm.sn is exist - process it [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 11 00 00 [14:18:54]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 17 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 0E [14:18:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:18:54]wFMCommunicate OK [14:18:54]requested_item fd.num is exist - process it [14:18:54]SAM_PROTO_GetFieldsCounters [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 13 00 00 [14:18:54]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 62 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E4 B9 02 00 0E 04 04 00 D6 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 BB [14:18:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E4 B9 02 00 0E 04 04 00 D6 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:18:54]wFMCommunicate OK [14:18:54]SAM_PROTO_GetFieldsCounters done [14:18:54]requested_item shift.num is exist - process it [14:18:54]requested_item shift.opened is exist - process it [14:18:54]req_shift_opened [14:18:54]FM_GetShiftState [14:18:54]SAM_PROTO_GetShiftState [14:18:54]wFMCommunicate request_size=4 [14:18:54]MH_SAM_APDU [14:18:54]CAPDU: 80 13 01 00 [14:18:54]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [14:18:54]Write i2c OK [14:18:54]MH_I2C_Read... [14:18:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:54]Read from MH i2c: E2 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 0E 00 [14:18:54]MH_I2C_Read... [14:18:54]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 91 [14:18:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:18:54]wFMCommunicate OK [14:18:54]SAM_PROTO_GetShiftState done [14:18:54]FM_GetShiftState done [14:18:54]req_shift_opened done [14:18:54]requested_item shift.open_date is exist - process it [14:18:54]req_shift_open_date [14:18:54]req_shift_open_date done [14:18:54]produce_requested_data done [14:18:54]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178660,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [14:18:54]process_action_free close_receipt [14:18:54]json_value_free [14:18:54]json_value_free done [14:18:54]process_json_proto returns [14:18:54]Send response to host [14:18:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178660,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [14:18:54]free response buf [14:18:54]execute_script done [14:18:54]execute_script returns [14:18:54]free content buf [14:18:54]Sock 10.Close socket [14:18:54]Sock 10.Thread stoped [14:18:58]recv_with_timeout no data received [14:18:58]ConnectInit Can't take IP for lk.salyk.kg [14:18:58]CommunicateWithHost connect error [14:18:58]CommunicateWithHost err = -1 [14:18:58]OFD Sender: Server communicate error [14:19:03]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:19:03]ProducePacketName [14:19:03]name=ofd_packets/00178659 [14:19:03]OFD Sender: To server: pG, [14:19:03]CommunicateWithHost lk.salyk.kg:30040 [14:19:03]ConnectInit lk.salyk.kg [14:19:08]ConnectInit Can't take IP for lk.salyk.kg [14:19:08]CommunicateWithHost connect error [14:19:08]CommunicateWithHost err = -1 [14:19:08]OFD Sender: Server communicate error [14:19:12]int [14:19:12]Write to MH i2c: 01 00 00 3B 03 3E [14:19:12]*** FLAG_PRN_KEY set [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: 01 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: 01 07 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: 01 07 00 3B 03 00 08 00 00 00 FF 0F 5B [14:19:12]state=0 [14:19:12]Key pressed [14:19:12]Feed [14:19:12]Write to MH i2c: D8 00 00 3C 03 16 [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: D8 [14:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D9 D6 07 01 68 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 76 00 00 00 F4 03 04 00 18 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E2 B9 02 00 35 04 06 00 1F F3 7C 79 3E A5 D5 09 DA 51 6F 1E BA 44 [14:18:01]CheckFolder [14:18:01]dirname=/storage/ofd_packets [14:18:01]CheckFolder done [14:18:01]ProducePacketName [14:18:01]name=ofd_packets/00178658 [14:18:01]NVStorageSaveData ofd_packets/00178658 [14:18:01]File name is /storage/ofd_packets/00178658 [14:18:01]Write 301 bytes [14:18:01]NVStorageSaveData done [14:18:01]OFDSenderStorePacket done [14:18:01]KKMCreateOFDPacket done [14:18:01]NVStorageSaveData kkm_last_timestamp [14:18:01]File name is /storage/kkm_last_timestamp [14:18:01]Write 4 bytes [14:18:01]NVStorageSaveData done [14:18:01]ExternCall_PrintAddStr [14:18:01]wPrintStart [14:18:01]Write to MH i2c: 01 00 00 6F 02 71 [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 07 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [14:18:01]RasterBufferAndPrint [14:18:01]line Счет N : (1)294329 [14:18:01]line ИНН: 02508201610067 [14:18:01]line Контрольно-Кассовый Чек [14:18:01]line ПРОДАЖА [14:18:01]line ТРК (МРК, ГНК) : 33 [14:18:01]line Товар: 2710124500 [14:18:01]line Аи-95-К-5 [14:18:01]line 10.790 * 74.20 [14:18:01]line = 800.62 [14:18:01]line НДС 12% НСП 1% [14:18:01]line > о реализуемом товаре [14:18:01]line ОКРУГЛЕНИЕ: -0.62 [14:18:01]line ИТОГО: 800.00 [14:18:01]line Внесено: 800.00 [14:18:01]line СДАЧА: 0.00 [14:18:01]line НСП 1% : 7.08 [14:18:01]line НДС 12% : 85.02 [14:18:01]line Наличными: 800.00 [14:18:01]line Безнал.: 0.00 [14:18:01]line Место: АЗС № 130 "Партнер Нефть" [14:18:01]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [14:18:01]line СНО: Общий режим [14:18:01]line Чек 118 23.08.2024 14:18 [14:18:01]line Смена: 470 ФФД: 1.0 [14:18:01]line ЗНМ: 0300000071 [14:18:01]line РНМ: 0000000000092561 [14:18:01]line Версия ККМ: 001 [14:18:01]line ФМ: 0000000000871778 [14:18:01]line ФД: 178658 [14:18:01]line ФПД: 35130625834661 [14:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T141800&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178658&fm=35130625834661&tin=02508201610067®Number=0000000000092561&sum=80000 [14:18:01]written 0, free lines is 4095 [14:18:01]OFD Sender: Processing packet 178658 [packets to send 498, broken 497] [14:18:01]ProducePacketName [14:18:01]name=ofd_packets/00178658 [14:18:01]OFD Sender: To server: pG, [14:18:01]CommunicateWithHost lk.salyk.kg:30040 [14:18:01]ConnectInit lk.salyk.kg [14:18:02]Write to MH i2c: 01 00 00 9A 02 9C [14:18:02]Write i2c OK [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: 01 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: 01 07 00 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 DC 0C 8B [14:18:02]RasterBufferAndPrint [14:18:02]line [14:18:02]line [14:18:02]line [14:18:02]line [14:18:02]line [14:18:02]written 0, free lines is 3298 [14:18:02]MH_Cut [14:18:02]Write to MH i2c: D1 01 00 A1 02 01 75 [14:18:02]Write i2c OK [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: D1 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: D1 01 00 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: D1 01 00 A1 02 00 74 [14:18:02]Write to MH i2c: 01 00 00 A2 02 A4 [14:18:02]Write i2c OK [14:18:02]MH_I2C_Read... [14:18:02]*** Cut start [14:18:02]*** Partial cut [14:18:02]*** CUTSNS_PIN = 1 [14:18:02]*** CUTSNS_PIN = 0 [14:18:02]*** Brake cut motor [14:18:03]Read from MH i2c: 01 [14:18:03]MH_I2C_Read... [14:18:03]*** Stop cut motor [14:18:03]*** Cut end [14:18:03]Read from MH i2c: 01 07 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [14:18:03]process_action close_receipt done [14:18:03]requested_data is exist [14:18:03]produce_requested_data [14:18:03]requested_item fm.sn is exist - process it [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 11 00 00 [14:18:03]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 17 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 78 [14:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:18:03]wFMCommunicate OK [14:18:03]requested_item fd.num is exist - process it [14:18:03]SAM_PROTO_GetFieldsCounters [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 13 00 00 [14:18:03]Write to MH i2c: E2 08 00 A4 02 80 13 00 00 00 00 00 00 22 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 62 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 62 00 A4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E2 B9 02 00 0E 04 04 00 D6 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 1D [14:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E2 B9 02 00 0E 04 04 00 D6 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:18:03]wFMCommunicate OK [14:18:03]SAM_PROTO_GetFieldsCounters done [14:18:03]requested_item shift.num is exist - process it [14:18:03]requested_item shift.opened is exist - process it [14:18:03]req_shift_opened [14:18:03]FM_GetShiftState [14:18:03]SAM_PROTO_GetShiftState [14:18:03]wFMCommunicate request_size=4 [14:18:03]MH_SAM_APDU [14:18:03]CAPDU: 80 13 01 00 [14:18:03]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [14:18:03]Write i2c OK [14:18:03]MH_I2C_Read... [14:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:03]Read from MH i2c: E2 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 0E 00 [14:18:03]MH_I2C_Read... [14:18:03]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 FB [14:18:03]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:18:03]wFMCommunicate OK [14:18:03]SAM_PROTO_GetShiftState done [14:18:03]FM_GetShiftState done [14:18:03]req_shift_opened done [14:18:03]requested_item shift.open_date is exist - process it [14:18:03]req_shift_open_date [14:18:03]req_shift_open_date done [14:18:03]produce_requested_data done [14:18:03]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178658,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [14:18:03]process_action_free close_receipt [14:18:03]json_value_free [14:18:03]json_value_free done [14:18:03]process_json_proto returns [14:18:03]Send response to host [14:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178658,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [14:18:03]free response buf [14:18:03]execute_script done [14:18:03]execute_script returns [14:18:03]free content buf [14:18:03]Sock 10.Close socket [14:18:03]Sock 10.Thread stoped [14:18:12]Connected sock=11 [14:18:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D9 D6 07 01 68 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 76 00 00 00 F4 03 04 00 18 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E2 B9 02 00 35 04 06 00 1F F3 7C 79 3E A5 D5 09 DA 51 6F 1E BA 44 [14:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 29 D0 47 00 3B 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 31 37 37 38 10 04 04 00 E2 B9 02 00 F4 03 04 00 CC 45 C8 66 B6 04 01 00 00 B1 7F 6A 53 B9 69 AF 01 [14:18:15]CommunicateWithHost err = 0 [14:18:15]CheckOFDResponse [14:18:15]1017 (14) - 77093643461234 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: D8 01 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: D8 01 00 3C 03 00 17 [14:19:12]int [14:19:12]Write to MH i2c: 01 00 00 3D 03 40 [14:19:12]Write i2c OK [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: 01 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: 01 07 00 [14:19:12]MH_I2C_Read... [14:19:12]Read from MH i2c: 01 07 00 3D 03 00 48 00 00 00 3C 00 CB [14:19:12]state=2 [14:19:12]Key pressed [14:19:13]int [14:19:13]Write to MH i2c: 01 00 00 3E 03 41 [14:19:13]*** FLAG_PRN_KEY reset [14:19:13]Write i2c OK [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: 01 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: 01 07 00 [14:19:13]MH_I2C_Read... [14:19:13]Read from MH i2c: 01 07 00 3E 03 00 00 00 00 00 FF 0F 56 [14:19:13]state=2 [14:19:13]Stop feed [14:19:13]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:19:13]ProducePacketName [14:19:13]name=ofd_packets/00178659 [14:19:13]OFD Sender: To server: pG, [14:19:13]CommunicateWithHost lk.salyk.kg:30040 [14:19:13]ConnectInit lk.salyk.kg [14:19:18]ConnectInit Can't take IP for lk.salyk.kg [14:19:18]CommunicateWithHost connect error [14:19:18]CommunicateWithHost err = -1 [14:19:18]OFD Sender: Server communicate error [14:19:23]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:19:23]ProducePacketName [14:19:23]name=ofd_packets/00178659 [14:19:23]OFD Sender: To server: pG, [14:19:23]CommunicateWithHost lk.salyk.kg:30040 [14:19:23]ConnectInit lk.salyk.kg [14:19:28]ConnectInit Can't take IP for lk.salyk.kg [14:19:28]CommunicateWithHost connect error [14:19:28]CommunicateWithHost err = -1 [14:19:28]OFD Sender: Server communicate error [14:19:33]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:19:33]ProducePacketName [14:19:33]name=ofd_packets/00178659 [14:19:33]OFD Sender: To server: pG, [14:19:33]CommunicateWithHost lk.salyk.kg:30040 [14:19:33]ConnectInit lk.salyk.kg [14:19:35]ConnectInit Can't connect to host [14:19:38]ConnectInit Can't take IP for lk.salyk.kg [14:19:38]CommunicateWithHost connect error [14:19:38]CommunicateWithHost err = -1 [14:19:38]OFD Sender: Server communicate error [14:19:40]ConnectInit Can't connect to host [14:19:43]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:19:43]ProducePacketName [14:19:43]name=ofd_packets/00178659 [14:19:43]OFD Sender: To server: pG, [14:19:43]CommunicateWithHost lk.salyk.kg:30040 [14:19:43]ConnectInit lk.salyk.kg [14:19:45]ConnectInit Can't connect to host [14:19:48]ConnectInit Can't take IP for lk.salyk.kg [14:19:48]CommunicateWithHost connect error [14:19:48]CommunicateWithHost err = -1 [14:19:48]OFD Sender: Server communicate error [14:19:53]OFD Sender: Processing packet 178659 [packets to send 499, broken 497] [14:19:53]ProducePacketName [14:19:53]name=ofd_packets/00178659 [14:19:53]OFD Sender: To server: pG, [14:19:53]CommunicateWithHost lk.salyk.kg:30040 [14:19:53]ConnectInit lk.salyk.kg [14:19:55]recv_with_timeout no data received [14:20:00]Connected sock=9 [14:20:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 09 3E 06 01 6A B0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 29 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E3 B9 02 00 35 04 06 00 36 B6 AA E7 05 55 10 F4 FC 7E 05 9B 95 E7 [14:20:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A2 80 47 00 3F 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 31 37 37 38 10 04 04 00 E3 B9 02 00 F4 03 04 00 36 46 C8 66 B6 04 01 00 00 D7 8A 94 EF FE BE 6C 9A [14:20:02]CommunicateWithHost err = 0 [14:20:02]CheckOFDResponse [14:20:02]1017 (14) - 77093643461234 [14:20:02]1041 (16) - 0000000000871778 [14:20:02]1040 (4) - 178659 [14:20:02]1012 (4) - 23.08.2024 08:20 [14:20:02]1206 (1) - 0 [14:20:02]OFD Sender: Remove packet 178659 [14:20:02]ProducePacketName [14:20:02]name=ofd_packets/00178659 [14:20:02]NVStorageDeleteData [14:20:02]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:20:02]ProducePacketName [14:20:02]name=ofd_packets/00178660 [14:20:02]OFD Sender: To server: pG, [14:20:02]CommunicateWithHost lk.salyk.kg:30040 [14:20:02]ConnectInit lk.salyk.kg [14:20:07]recv_with_timeout no data received [14:20:07]ConnectInit Can't take IP for lk.salyk.kg [14:20:07]CommunicateWithHost connect error [14:20:07]CommunicateWithHost err = -1 [14:20:07]OFD Sender: Server communicate error [14:20:12]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:20:12]ProducePacketName [14:20:12]name=ofd_packets/00178660 [14:20:12]OFD Sender: To server: pG, [14:20:12]CommunicateWithHost lk.salyk.kg:30040 [14:20:12]ConnectInit lk.salyk.kg [14:20:17]ConnectInit Can't take IP for lk.salyk.kg [14:20:17]CommunicateWithHost connect error [14:20:17]CommunicateWithHost err = -1 [14:20:17]OFD Sender: Server communicate error [14:20:22]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:20:22]ProducePacketName [14:20:22]name=ofd_packets/00178660 [14:20:22]OFD Sender: To server: pG, [14:20:22]CommunicateWithHost lk.salyk.kg:30040 [14:20:22]ConnectInit lk.salyk.kg [14:20:27]ConnectInit Can't take IP for lk.salyk.kg [14:20:27]CommunicateWithHost connect error [14:20:27]CommunicateWithHost err = -1 [14:20:27]OFD Sender: Server communicate error [14:20:27]recv_with_timeout no data received [14:20:32]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:20:32]ProducePacketName [14:20:32]name=ofd_packets/00178660 [14:20:32]OFD Sender: To server: pG, [14:20:32]CommunicateWithHost lk.salyk.kg:30040 [14:20:32]ConnectInit lk.salyk.kg [14:20:37]ConnectInit Can't take IP for lk.salyk.kg [14:20:37]CommunicateWithHost connect error [14:20:37]CommunicateWithHost err = -1 [14:20:37]OFD Sender: Server communicate error [14:20:42]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:20:42]ProducePacketName [14:20:42]name=ofd_packets/00178660 [14:20:42]OFD Sender: To server: pG, [14:20:42]CommunicateWithHost lk.salyk.kg:30040 [14:20:42]ConnectInit lk.salyk.kg [14:20:47]ConnectInit Can't take IP for lk.salyk.kg [14:20:47]CommunicateWithHost connect error [14:20:47]CommunicateWithHost err = -1 [14:20:47]OFD Sender: Server communicate error [14:20:52]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:20:52]ProducePacketName [14:20:52]name=ofd_packets/00178660 [14:20:52]OFD Sender: To server: pG, [14:20:52]CommunicateWithHost lk.salyk.kg:30040 [14:20:52]ConnectInit lk.salyk.kg [14:20:57]ConnectInit Can't take IP for lk.salyk.kg [14:20:57]CommunicateWithHost connect error [14:20:57]CommunicateWithHost err = -1 [14:20:57]OFD Sender: Server communicate error [14:21:02]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:21:02]ProducePacketName [14:21:02]name=ofd_packets/00178660 [14:21:02]OFD Sender: To server: pG, [14:21:02]CommunicateWithHost lk.salyk.kg:30040 [14:21:02]ConnectInit lk.salyk.kg [14:21:05]recv_with_timeout no data received [14:21:07]ConnectInit Can't take IP for lk.salyk.kg [14:21:07]CommunicateWithHost connect error [14:21:07]CommunicateWithHost err = -1 [14:21:07]OFD Sender: Server communicate error [14:21:12]OFD Sender: Processing packet 178660 [packets to send 498, broken 497] [14:21:12]ProducePacketName [14:21:12]name=ofd_packets/00178660 [14:21:12]OFD Sender: To server: pG, [14:21:12]CommunicateWithHost lk.salyk.kg:30040 [14:21:12]ConnectInit lk.salyk.kg [14:21:14]Connected sock=7 [14:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E9 15 07 01 02 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 4B 9A C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E4 B9 02 00 35 04 06 00 DB 27 E6 79 8E 31 33 5C F0 E9 72 78 7B 4B [14:21:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 91 92 47 00 65 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E4 B9 02 00 F4 03 04 00 7F 46 C8 66 B6 04 01 00 00 61 63 6C AE C7 AD 36 72 [14:21:14]CommunicateWithHost err = 0 [14:21:14]CheckOFDResponse [14:21:14]1017 (14) - 77093643461234 [14:21:14]1041 (16) - 0000000000871778 [14:21:14]1040 (4) - 178660 [14:21:14]1012 (4) - 23.08.2024 08:21 [14:21:14]1206 (1) - 0 [14:21:14]OFD Sender: Remove packet 178660 [14:21:14]ProducePacketName [14:21:14]name=ofd_packets/00178660 [14:21:14]NVStorageDeleteData [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:00]recv_with_timeout no data received [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:49]recv_with_timeout no data received [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:12]recv_with_timeout no data received [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:26]recv_with_timeout no data received [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:47]recv_with_timeout no data received [14:23:50]OFD Sender: No OFD packet to send [14:25:00]ConnectInit Can't connect to host [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:03]recv_with_timeout no data received [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:08]recv_with_timeout no data received [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:29]recv_with_timeout no data received [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:20]recv_with_timeout no data received [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:27]OFD Sender: No OFD packet to send [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:47]recv_with_timeout no data received [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:03]recv_with_timeout no data received [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]recv_with_timeout no data received [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [14:35:32]OFD Sender: No OFD packet to send [14:35:37]OFD Sender: No OFD packet to send [14:35:42]OFD Sender: No OFD packet to send [14:35:42]recv_with_timeout no data received [14:35:47]OFD Sender: No OFD packet to send [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:36]recv_with_timeout no data received [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:34]recv_with_timeout no data received [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:52]recv_with_timeout no data received [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]recv_with_timeout no data received [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:33]recv_with_timeout no data received [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:01]recv_with_timeout no data received [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]recv_with_timeout no data received [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:23]OFD Sender: No OFD packet to send [14:45:28]OFD Sender: No OFD packet to send [14:45:33]OFD Sender: No OFD packet to send [14:45:38]OFD Sender: No OFD packet to send [14:45:43]OFD Sender: No OFD packet to send [14:45:48]OFD Sender: No OFD packet to send [14:45:53]OFD Sender: No OFD packet to send [14:45:58]OFD Sender: No OFD packet to send [14:46:00]accept exits with 12 [14:46:00]New connection [14:46:00]New thread 3066678628 created [14:46:00]Thread 3066821988 joined [14:46:00]Waiting for new connection... [14:46:00] Sock 12.Parse request [14:46:00]Sock 12.Check first char [14:46:00]Sock 12.First char is OK [14:46:00]request: POST /json_proto HTTP/1.0 [14:46:00]Method: POST [14:46:00]URL: /json_proto [14:46:00]Method is POST - this is cgi request [14:46:00]url: /json_proto [14:46:00]query_string will be loaded in cgi processing [14:46:00]execute_cgi json_proto POST (null) [14:46:00]execute_cgi path=json_proto method=POST [14:46:00]POST find Content-Length [14:46:00]Host: 172.17.44.131:8080 [14:46:00]Content-Length: 819 [14:46:00]Content-Type: application/json [14:46:00] [14:46:00]POST finish read [14:46:00]Found Content-Length = 819 [14:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.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" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:00]execute_script... [14:46: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)294352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 24.260, "sum" : 1800.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" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:00]POST & json_proto [14:46:00]process_json_proto [14:46:00]json parsed OK: [14:46:00]protocol is kg_v1.0 [14:46:00]action value=close_receipt [14:46:00]process_action close_receipt [14:46:00]cmd_close_receipt [14:46:00]MH_GetDate [14:46:00]Write to MH i2c: F0 00 00 3F 03 31 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: F0 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: F0 09 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: F0 09 00 3F 03 00 A9 A0 C8 66 4F 53 BE 66 77 [14:46:00]GetLastDocTimeStamp 1724422731 [14:46:00]current date 1724424361 [14:46:00]FM_GetShiftState [14:46:00]SAM_PROTO_GetShiftState [14:46:00]wFMCommunicate request_size=4 [14:46:00]MH_SAM_APDU [14:46:00]CAPDU: 80 13 01 00 [14:46:00]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [14:46:00]Write i2c OK [14:46:00]MH_I2C_Read... [14:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:00]Read from MH i2c: E2 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 0E 00 [14:46:00]MH_I2C_Read... [14:46:00]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 97 [14:46:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:46:00]wFMCommunicate OK [14:46:00]SAM_PROTO_GetShiftState done [14:46:00]FM_GetShiftState done [14:46:00]opened in 1724371660 [14:46:00]opened+sec_in_day 1724458060 [14:46:00]quantity*price = 180009 [14:46:00]sum+1 = 180010 [14:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре [14:46:12]line ИТОГО: 0.00 [14:46:12]line НСП 1% : 0.00 [14:46:12]line НДС 12% : 0.00 [14:46:12]line Наличными: 0.00 [14:46:12]line Безнал.: 0.00 [14:46:12]line Место: АЗС № 130 "Партнер Нефть" [14:46:12]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [14:46:12]line СНО: Общий режим [14:46:12]line Чек 122 23.08.2024 14:46 [14:46:12]line Смена: 470 ФФД: 1.0 [14:46:12]line ЗНМ: 0300000071 [14:46:12]line РНМ: 0000000000092561 [14:46:12]line Версия ККМ: 001 [14:46:12]line Талоны: ТК ГПНА Online [14:46:12]line 30116596 [14:46:12]line ФМ: 0000000000871778 [14:46:12]line ФД: 178662 [14:46:12]line ФПД: 698516349959 [14:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T144611&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178662&fm=698516349959&tin=02508201610067®Number=0000000000092561&sum=0 [14:46:12]written 0, free lines is 4095 [14:46:13]Write to MH i2c: 01 00 00 C7 03 CA [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 07 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 EC 0C C9 [14:46:13]RasterBufferAndPrint [14:46:13]line [14:46:13]line [14:46:13]line [14:46:13]line [14:46:13]line [14:46:13]written 0, free lines is 3320 [14:46:13]MH_Cut [14:46:13]Write to MH i2c: D1 01 00 CE 03 01 A3 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: D1 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: D1 01 00 [14:46:13]MH_I2C_Read... [14:46:13]Read from MH i2c: D1 01 00 CE 03 00 A2 [14:46:13]Write to MH i2c: 01 00 00 CF 03 D2 [14:46:13]Write i2c OK [14:46:13]MH_I2C_Read... [14:46:14]*** Cut start [14:46:14]*** Partial cut [14:46:14]*** CUTSNS_PIN = 1 [14:46:14]*** CUTSNS_PIN = 0 [14:46:14]*** Brake cut motor [14:46:14]Read from MH i2c: 01 [14:46:14]MH_I2C_Read... [14:46:14]*** Stop cut motor [14:46:14]*** Cut end [14:46:14]Read from MH i2c: 01 07 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: 01 07 00 CF 03 00 00 00 00 00 FF 0F E7 [14:46:14]process_action close_receipt done [14:46:14]requested_data is exist [14:46:14]produce_requested_data [14:46:14]requested_item fm.sn is exist - process it [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 11 00 00 [14:46:14]Write to MH i2c: E2 08 00 D0 03 80 11 00 00 00 00 00 00 4D [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 17 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 17 00 D0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A6 [14:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:46:14]wFMCommunicate OK [14:46:14]requested_item fd.num is exist - process it [14:46:14]SAM_PROTO_GetFieldsCounters [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 13 00 00 [14:46:14]Write to MH i2c: E2 08 00 D1 03 80 13 00 00 00 00 00 00 50 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 62 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 62 00 D1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E6 B9 02 00 0E 04 04 00 D6 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 5B [14:46: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E6 B9 02 00 0E 04 04 00 D6 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:46:14]wFMCommunicate OK [14:46:14]SAM_PROTO_GetFieldsCounters done [14:46:14]requested_item shift.num is exist - process it [14:46:14]requested_item shift.opened is exist - process it [14:46:14]req_shift_opened [14:46:14]FM_GetShiftState [14:46:14]SAM_PROTO_GetShiftState [14:46:14]wFMCommunicate request_size=4 [14:46:14]MH_SAM_APDU [14:46:14]CAPDU: 80 13 01 00 [14:46:14]Write to MH i2c: E2 08 00 D2 03 80 13 01 00 00 00 00 00 52 [14:46:14]Write i2c OK [14:46:14]MH_I2C_Read... [14:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:14]Read from MH i2c: E2 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 0E 00 [14:46:14]MH_I2C_Read... [14:46:14]Read from MH i2c: E2 0E 00 D2 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 29 [14:46:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:46:14]wFMCommunicate OK [14:46:14]SAM_PROTO_GetShiftState done [14:46:14]FM_GetShiftState done [14:46:14]req_shift_opened done [14:46:14]requested_item shift.open_date is exist - process it [14:46:14]req_shift_open_date [14:46:14]req_shift_open_date done [14:46:14]produce_requested_data done [14:46:14]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178662,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [14:46:14]process_action_free close_receipt [14:46:14]json_value_free [14:46:14]json_value_free done [14:46:14]process_json_proto returns [14:46:14]Send response to host [14:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178662,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [14:46:14]free response buf [14:46:14]execute_script done [14:46:14]execute_script returns [14:46:14]free content buf [14:46:14]Sock 7.Close socket [14:46:14]Sock 7.Thread stoped [14:46:20]recv_with_timeout no data received [14:46:32]Connected sock=10 [14:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 49 02 07 01 1C 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 A0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E5 B9 02 00 35 04 06 00 87 2A 15 67 CA 06 1E B0 C2 86 17 9E F5 D7 [14:46:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 82 41 47 00 56 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E5 B9 02 00 F4 03 04 00 71 4C C8 66 B6 04 01 00 00 F9 0E 00 18 F8 D3 73 28 [14:46:36]CommunicateWithHost err = 0 [14:46:36]CheckOFDResponse [14:46:36]1017 (14) - 77093643461234 [14:46:36]1041 (16) - 0000000000871778 [14:46:36]1040 (4) - 178661 [14:46:36]1012 (4) - 23.08.2024 08:46 [14:46:36]1206 (1) - 0 [14:46:36]OFD Sender: Remove packet 178661 [14:46:36]ProducePacketName [14:46:36]name=ofd_packets/00178661 [14:46:36]NVStorageDeleteData [14:46:37]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:46:37]ProducePacketName [14:46:37]name=ofd_packets/00178662 [14:46:37]OFD Sender: To server: pG, [14:46:37]CommunicateWithHost lk.salyk.kg:30040 [14:46:37]ConnectInit lk.salyk.kg [14:46:40]recv_with_timeout no data received [14:46:42]ConnectInit Can't take IP for lk.salyk.kg [14:46:42]CommunicateWithHost connect error [14:46:42]CommunicateWithHost err = -1 [14:46:42]OFD Sender: Server communicate error [14:46:42]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:46:42]ProducePacketName [14:46:42]name=ofd_packets/00178662 [14:46:42]OFD Sender: To server: pG, [14:46:42]CommunicateWithHost lk.salyk.kg:30040 [14:46:42]ConnectInit lk.salyk.kg [14:46:47]ConnectInit Can't take IP for lk.salyk.kg [14:46:47]CommunicateWithHost connect error [14:46:47]CommunicateWithHost err = -1 [14:46:47]OFD Sender: Server communicate error [14:46:52]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:46:52]ProducePacketName [14:46:52]name=ofd_packets/00178662 [14:46:52]OFD Sender: To server: pG, [14:46:52]CommunicateWithHost lk.salyk.kg:30040 [14:46:52]ConnectInit lk.salyk.kg [14:46:57]ConnectInit Can't take IP for lk.salyk.kg [14:46:57]CommunicateWithHost connect error [14:46:57]CommunicateWithHost err = -1 [14:46:57]OFD Sender: Server communicate error [14:47:02]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00178662 [14:47:02]OFD Sender: To server: pG, [14:47:02]CommunicateWithHost lk.salyk.kg:30040 [14:47:02]ConnectInit lk.salyk.kg [14:47:07]ConnectInit Can't take IP for lk.salyk.kg [14:47:07]CommunicateWithHost connect error [14:47:07]CommunicateWithHost err = -1 [14:47:07]OFD Sender: Server communicate error [14:47:12]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:47:12]ProducePacketName [14:47:12]name=ofd_packets/00178662 [14:47:12]OFD Sender: To server: pG, [14:47:12]CommunicateWithHost lk.salyk.kg:30040 [14:47:12]ConnectInit lk.salyk.kg [14:47:17]ConnectInit Can't connect to host [14:47:17]ConnectInit Can't take IP for lk.salyk.kg [14:47:17]CommunicateWithHost connect error [14:47:17]CommunicateWithHost err = -1 [14:47:17]OFD Sender: Server communicate error [14:47:22]ConnectInit Can't connect to host [14:47:22]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:47:22]ProducePacketName [14:47:22]name=ofd_packets/00178662 [14:47:22]OFD Sender: To server: pG, [14:47:22]CommunicateWithHost lk.salyk.kg:30040 [14:47:22]ConnectInit lk.salyk.kg [14:47:27]ConnectInit Can't take IP for lk.salyk.kg [14:47:27]CommunicateWithHost connect error [14:47:27]CommunicateWithHost err = -1 [14:47:27]OFD Sender: Server communicate error [14:47:28]ConnectInit Can't connect to host [14:47:32]OFD Sender: Processing packet 178662 [packets to send 498, broken 497] [14:47:32]ProducePacketName [14:47:32]name=ofd_packets/00178662 [14:47:32]OFD Sender: To server: pG, [14:47:32]CommunicateWithHost lk.salyk.kg:30040 [14:47:32]ConnectInit lk.salyk.kg [14:47:34]Connected sock=7 [14:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 5B 2C 04 01 EC B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B2 2A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 B3 A0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E6 B9 02 00 35 04 06 00 00 A2 A2 D1 A4 07 81 08 A3 E6 46 92 4E F6 [14:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1C 26 47 00 BD 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 31 37 37 38 10 04 04 00 E6 B9 02 00 F4 03 04 00 AC 4C C8 66 B6 04 01 00 00 6A 15 F3 88 53 95 D5 D9 [14:47:37]CommunicateWithHost err = 0 [14:47:37]CheckOFDResponse [14:47:37]1017 (14) - 77093643461234 [14:47:37]1041 (16) - 0000000000871778 [14:47:37]1040 (4) - 178662 [14:47:37]1012 (4) - 23.08.2024 08:47 [14:47:37]1206 (1) - 0 [14:47:37]OFD Sender: Remove packet 178662 [14:47:37]ProducePacketName [14:47:37]name=ofd_packets/00178662 [14:47:37]NVStorageDeleteData [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:56]recv_with_timeout no data received [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:55]recv_with_timeout no data received [14:49:58]OFD Sender: No OFD packet to send [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [14:46:01]RAPDU: 90 00 [14:46:01]wFMCommunicate OK [14:46:01]wFMCommunicate request_size=13 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 15 02 00 08 F4 03 04 00 A9 A0 C8 66 [14:46:01]Write to MH i2c: E2 10 00 49 03 80 15 02 00 08 00 F4 03 04 00 A9 A0 C8 66 00 00 4E [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [14:46:01]RAPDU: 90 00 [14:46:01]wFMCommunicate OK [14:46:01]wFMCommunicate request_size=25 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [14:46:01]Write to MH i2c: E2 1C 00 4A 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 2D [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:01]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [14:46:01]Read from MH i2c: E2 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 [14:46:01]MH_I2C_Read... [14:46:01]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [14:46:01]RAPDU: 90 00 [14:46:01]wFMCommunicate OK [14:46:01]wFMCommunicate request_size=4 [14:46:01]MH_SAM_APDU [14:46:01]CAPDU: 80 15 03 00 [14:46:01]Write to MH i2c: E2 08 00 4B 03 80 15 03 00 00 00 00 00 CF [14:46:01]Write i2c OK [14:46:01]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 40 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 40 00 4B 03 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E5 B9 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 79 00 00 00 35 04 06 00 87 2A 15 67 CA 06 90 00 B8 [14:46:02]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E5 B9 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 79 00 00 00 35 04 06 00 87 2A 15 67 CA 06 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_ProcessDocument answer len = 59 [14:46:02]SAM_PROTO_ProcessDocument done [14:46:02]SetTLVBufToDocument [14:46:02]Processing tag 1209 (04B9) [14:46:02]Malloc new data [14:46:02]Processing tag 1041 (0411) [14:46:02]Processing tag 1040 (0410) [14:46:02]Malloc new data [14:46:02]Processing tag 1038 (040E) [14:46:02]Malloc new data [14:46:02]Processing tag 1042 (0412) [14:46:02]Malloc new data [14:46:02]Processing tag 1077 (0435) [14:46:02]Malloc new data [14:46:02]SetTLVBufToDocument err=0 [14:46:02]KKMLoadAndSignReceiptData store KKM data [14:46:02]KKMLoadAndSignReceiptData err=0 [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 11 00 00 [14:46:02]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 22 [14:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:46:02]wFMCommunicate OK [14:46:02]Счет N : (1)294352 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 43 Товар: 2710124500 Аи-95-К-5 24.260 * 74.20 = 1800.09 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1800.09 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.09 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 121 23.08.2024 14:46 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178661 ФПД: 148614817499654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T144601&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178661&fm=148614817499654&tin=02508201610067®Number=0000000000092561&sum=180009 [14:46:02]StoreToDocumentArchive [14:46:02]shift 470 fd 178661 [14:46:02]save to /storage/0470/doc_00178661 [14:46:02]save last doc name /storage/0470/doc_00178661 to /storage/kkm_last_doc_name [14:46:02]save OK [14:46:02]Clear old archive folders... [14:46:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:02]tlvbuf is 014DBA50 [14:46:02]SAM_PROTO_ClearQueue [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 09 00 00 [14:46:02]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_ClearQueue done [14:46:02]KKMCreateOFDPacket [14:46:02]OFDProtocolAddRootSTLVToBuf [14:46:02]FM_MakeSignedData [14:46:02]FM_MakeSignedData [14:46:02]SAM_PROTO_SignData [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 01 02 [14:46:02]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]wFMCommunicate request_size=255 [14:46:02]MH_SAM_APDU [14:46: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 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 A0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E5 B9 02 00 35 04 06 00 87 [14:46:02]Write to MH i2c: E2 02 01 4F 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 A9 A0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E5 B9 02 00 35 04 06 00 87 00 00 F7 [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]wFMCommunicate request_size=10 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 02 02 05 2A 15 67 CA 06 [14:46:02]Write to MH i2c: E2 0D 00 50 03 80 0D 02 02 05 00 2A 15 67 CA 06 00 00 4D [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [14:46:02]RAPDU: 90 00 [14:46:02]wFMCommunicate OK [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 0D 03 02 [14:46:02]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0B 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 0B 00 51 03 00 1E B0 C2 86 17 9E F5 D7 90 00 67 [14:46:02]RAPDU: 1E B0 C2 86 17 9E F5 D7 90 00 [14:46:02]wFMCommunicate OK [14:46:02]SAM_PROTO_SignData done [14:46:02]FM_MakeSignedData done [14:46:02]CreateOFDProtocolMessage [14:46:02]wFMCommunicate request_size=4 [14:46:02]MH_SAM_APDU [14:46:02]CAPDU: 80 11 00 00 [14:46:02]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [14:46:02]Write i2c OK [14:46:02]MH_I2C_Read... [14:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:02]Read from MH i2c: E2 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 [14:46:02]MH_I2C_Read... [14:46:02]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 28 [14:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:46:02]wFMCommunicate OK [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:57]recv_with_timeout no data received [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:21]recv_with_timeout no data received [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:36]recv_with_timeout no data received [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:55]recv_with_timeout no data received [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:16]recv_with_timeout no data received [14:52:18]OFD Sender: No OFD packet to send [14:53:07]ConnectInit Can't connect to host [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:00]recv_with_timeout no data received [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:41]accept exits with 9 [14:56:41]New connection [14:56:41]New thread 3066678628 created [14:56:41]Thread 3066821988 joined [14:56:41]Waiting for new connection... [14:56:41] Sock 9.Parse request [14:56:41]Sock 9.Check first char [14:56:41]Sock 9.First char is OK [14:56:41]request: POST /json_proto HTTP/1.0 [14:56:41]Method: POST [14:56:41]URL: /json_proto [14:56:41]Method is POST - this is cgi request [14:56:41]url: /json_proto [14:56:41]query_string will be loaded in cgi processing [14:56:41]execute_cgi json_proto POST (null) [14:56:41]execute_cgi path=json_proto method=POST [14:56:41]POST find Content-Length [14:56:41]Host: 172.17.44.131:8080 [14:56:41]Content-Length: 682 [14:56:41]Content-Type: application/json [14:56:41] [14:56:41]POST finish read [14:56:41]Found Content-Length = 682 [14:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:41]execute_script... [14:56:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:41]POST & json_proto [14:56:41]process_json_proto [14:56:41]json parsed OK: [14:56:41]protocol is kg_v1.0 [14:56:41]action value=close_receipt [14:56:41]process_action close_receipt [14:56:41]cmd_close_receipt [14:56:41]MH_GetDate [14:56:41]Write to MH i2c: F0 00 00 D3 03 C5 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: F0 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: F0 09 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: F0 09 00 D3 03 00 29 A3 C8 66 4F 53 BE 66 8E [14:56:41]GetLastDocTimeStamp 1724424371 [14:56:41]current date 1724425001 [14:56:41]FM_GetShiftState [14:56:41]SAM_PROTO_GetShiftState [14:56:41]wFMCommunicate request_size=4 [14:56:41]MH_SAM_APDU [14:56:41]CAPDU: 80 13 01 00 [14:56:41]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [14:56:41]Write i2c OK [14:56:41]MH_I2C_Read... [14:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:41]Read from MH i2c: E2 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 0E 00 [14:56:41]MH_I2C_Read... [14:56:41]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 2B [14:56:41]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:56:41]wFMCommunicate OK [14:56:41]SAM_PROTO_GetShiftState done [14:56:41]FM_GetShiftState done [14:56:41]opened in 1724371660 [14:56:41]opened+sec_in_day 1724458060 [14:56:41]quantity*price = 100021 [14:56:41]sum+1 = 100023 [14:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 123 23.08.2024 14:56 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178663 ФПД: 168372342852390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T145641&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178663&fm=168372342852390&tin=02508201610067®Number=0000000000092561&sum=100000 [14:56:42]StoreToDocumentArchive [14:56:42]shift 470 fd 178663 [14:56:42]save to /storage/0470/doc_00178663 [14:56:42]save last doc name /storage/0470/doc_00178663 to /storage/kkm_last_doc_name [14:56:42]save OK [14:56:42]Clear old archive folders... [14:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:42]tlvbuf is 014FF740 [14:56:42]SAM_PROTO_ClearQueue [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 09 00 00 [14:56:42]Write to MH i2c: E2 08 00 E1 03 80 09 00 00 00 00 00 00 56 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [14:56:42]RAPDU: 90 00 [14:56:42]wFMCommunicate OK [14:56:42]SAM_PROTO_ClearQueue done [14:56:42]KKMCreateOFDPacket [14:56:42]OFDProtocolAddRootSTLVToBuf [14:56:42]FM_MakeSignedData [14:56:42]FM_MakeSignedData [14:56:42]SAM_PROTO_SignData [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 0D 01 02 [14:56:42]Write to MH i2c: E2 08 00 E2 03 80 0D 01 02 00 00 00 00 5E [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 E2 03 00 90 00 59 [14:56:42]RAPDU: 90 00 [14:56:42]wFMCommunicate OK [14:56:42]wFMCommunicate request_size=255 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E7 B9 02 00 35 04 06 00 99 [14:56:42]Write to MH i2c: E2 02 01 E3 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E7 B9 02 00 35 04 06 00 99 00 00 95 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [14:56:42]RAPDU: 90 00 [14:56:42]wFMCommunicate OK [14:56:42]wFMCommunicate request_size=10 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 0D 02 02 05 22 3D AF 8B 26 [14:56:42]Write to MH i2c: E2 0D 00 E4 03 80 0D 02 02 05 00 22 3D AF 8B 26 00 00 2A [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [14:56:42]RAPDU: 90 00 [14:56:42]wFMCommunicate OK [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 0D 03 02 [14:56:42]Write to MH i2c: E2 08 00 E5 03 80 0D 03 02 00 00 00 00 63 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 0B 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 0B 00 E5 03 00 54 0E 8F 53 A8 3B 07 0F 90 00 A1 [14:56:42]RAPDU: 54 0E 8F 53 A8 3B 07 0F 90 00 [14:56:42]wFMCommunicate OK [14:56:42]SAM_PROTO_SignData done [14:56:42]FM_MakeSignedData done [14:56:42]CreateOFDProtocolMessage [14:56:42]wFMCommunicate request_size=4 [14:56:42]MH_SAM_APDU [14:56:42]CAPDU: 80 11 00 00 [14:56:42]Write to MH i2c: E2 08 00 E6 03 80 11 00 00 00 00 00 00 63 [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:42]Read from MH i2c: E2 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 17 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: E2 17 00 E6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BC [14:56:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:56:42]wFMCommunicate OK [14:56:42]CreateOFDProtocolMessage done [14:56:42]OFDSenderStorePacket 178663 [14:56:42]StoreOFDPacket docnum=178663 [14:56:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8C 8C 07 01 56 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E7 B9 02 00 35 04 06 00 99 22 3D AF 8B 26 54 0E 8F 53 A8 3B 07 0F [14:56:42]CheckFolder [14:56:42]dirname=/storage/ofd_packets [14:56:42]CheckFolder done [14:56:42]ProducePacketName [14:56:42]name=ofd_packets/00178663 [14:56:42]NVStorageSaveData ofd_packets/00178663 [14:56:42]File name is /storage/ofd_packets/00178663 [14:56:42]Write 301 bytes [14:56:42]NVStorageSaveData done [14:56:42]OFDSenderStorePacket done [14:56:42]KKMCreateOFDPacket done [14:56:42]NVStorageSaveData kkm_last_timestamp [14:56:42]File name is /storage/kkm_last_timestamp [14:56:42]Write 4 bytes [14:56:42]NVStorageSaveData done [14:56:42]ExternCall_PrintAddStr [14:56:42]wPrintStart [14:56:42]Write to MH i2c: 01 00 00 E7 03 EA [14:56:42]Write i2c OK [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 07 00 [14:56:42]MH_I2C_Read... [14:56:42]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [14:56:42]RasterBufferAndPrint [14:56:42]line Счет N : (1)294359 [14:56:42]line ИНН: 02508201610067 [14:56:42]line Контрольно-Кассовый Чек [14:56:42]line ПРОДАЖА [14:56:42]line ТРК (МРК, ГНК) : 43 [14:56:42]line Товар: 2710124500 [14:56:42]line Аи-95-К-5 [14:56:42]line 13.480 * 74.20 [14:56:42]line = 1000.22 [14:56:42]line НДС 12% НСП 1% [14:56:42]line > о реализуемом товаре [14:56:42]line ОКРУГЛЕНИЕ: -0.22 [14:56:42]line ИТОГО: 1000.00 [14:56:42]line Внесено: 1000.00 [14:56:42]line СДАЧА: 0.00 [14:56:42]line НСП 1% : 8.85 [14:56:42]line НДС 12% : 106.22 [14:56:42]line Наличными: 1000.00 [14:56:42]line Безнал.: 0.00 [14:56:42]line Место: АЗС № 130 "Партнер Нефть" [14:56:42]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [14:56:42]line СНО: Общий режим [14:56:42]line Чек 123 23.08.2024 14:56 [14:56:42]line Смена: 470 ФФД: 1.0 [14:56:42]line ЗНМ: 0300000071 [14:56:42]line РНМ: 0000000000092561 [14:56:42]line Версия ККМ: 001 [14:56:42]line ФМ: 0000000000871778 [14:56:42]line ФД: 178663 [14:56:42]line ФПД: 168372342852390 [14:56:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T145641&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178663&fm=168372342852390&tin=02508201610067®Number=0000000000092561&sum=100000 [14:56:43]OFD Sender: Processing packet 178663 [packets to send 498, broken 497] [14:56:43]ProducePacketName [14:56:43]name=ofd_packets/00178663 [14:56:43]OFD Sender: To server: pG, [14:56:43]CommunicateWithHost lk.salyk.kg:30040 [14:56:43]ConnectInit lk.salyk.kg [14:56:43]written 0, free lines is 4095 [14:56:43]Connected sock=7 [14:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8C 8C 07 01 56 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 29 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E7 B9 02 00 35 04 06 00 99 22 3D AF 8B 26 54 0E 8F 53 A8 3B 07 0F [14:56:43]Write to MH i2c: 01 00 00 12 04 16 [14:56:43]Write i2c OK [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: 01 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: 01 07 00 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 FB 0C 24 [14:56:43]RasterBufferAndPrint [14:56:43]line [14:56:43]line [14:56:43]line [14:56:43]line [14:56:43]line [14:56:43]written 0, free lines is 3329 [14:56:43]MH_Cut [14:56:43]Write to MH i2c: D1 01 00 19 04 01 EF [14:56:43]Write i2c OK [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: D1 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: D1 01 00 [14:56:43]MH_I2C_Read... [14:56:43]Read from MH i2c: D1 01 00 19 04 00 EE [14:56:43]Write to MH i2c: 01 00 00 1A 04 1E [14:56:43]Write i2c OK [14:56:43]MH_I2C_Read... [14:56:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D0 D6 47 00 CD F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E7 B9 02 00 F4 03 04 00 D1 4E C8 66 B6 04 01 00 00 11 16 4A AD 4D C5 4D 5C [14:56:43]CommunicateWithHost err = 0 [14:56:43]CheckOFDResponse [14:56:43]1017 (14) - 77093643461234 [14:56:43]1041 (16) - 0000000000871778 [14:56:43]1040 (4) - 178663 [14:56:43]1012 (4) - 23.08.2024 08:56 [14:56:43]1206 (1) - 0 [14:56:43]OFD Sender: Remove packet 178663 [14:56:43]ProducePacketName [14:56:43]name=ofd_packets/00178663 [14:56:43]NVStorageDeleteData [14:56:44]*** Cut start [14:56:44]*** Partial cut [14:56:44]*** CUTSNS_PIN = 1 [14:56:44]*** CUTSNS_PIN = 0 [14:56:44]OFD Sender: No OFD packet to send [14:56:44]*** Brake cut motor [14:56:44]Read from MH i2c: 01 [14:56:44]MH_I2C_Read... [14:56:44]*** Stop cut motor [14:56:44]*** Cut end [14:56:44]Read from MH i2c: 01 07 00 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: 01 07 00 1A 04 00 00 00 00 00 FF 0F 33 [14:56:44]process_action close_receipt done [14:56:44]requested_data is exist [14:56:44]produce_requested_data [14:56:44]requested_item fm.sn is exist - process it [14:56:44]wFMCommunicate request_size=4 [14:56:44]MH_SAM_APDU [14:56:44]CAPDU: 80 11 00 00 [14:56:44]Write to MH i2c: E2 08 00 1B 04 80 11 00 00 00 00 00 00 99 [14:56:44]Write i2c OK [14:56:44]MH_I2C_Read... [14:56:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:44]Read from MH i2c: E2 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 17 00 [14:56:44]MH_I2C_Read... [14:56:44]Read from MH i2c: E2 17 00 1B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F2 [14:56:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:56:44]wFMCommunicate OK [14:56:44]requested_item fd.num is exist - process it [14:56:44]SAM_PROTO_GetFieldsCounters [14:56:44]wFMCommunicate request_size=4 [14:56:44]MH_SAM_APDU [14:56:44]CAPDU: 80 13 00 00 [14:56:44]Write to MH i2c: E2 08 00 1C 04 80 13 00 00 00 00 00 00 9C [14:56:44]Write i2c OK [14:56:44]MH_I2C_Read... [14:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:45]Read from MH i2c: E2 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: E2 62 00 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: E2 62 00 1C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E7 B9 02 00 0E 04 04 00 D6 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 AB [14:56:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E7 B9 02 00 0E 04 04 00 D6 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:56:45]wFMCommunicate OK [14:56:45]SAM_PROTO_GetFieldsCounters done [14:56:45]requested_item shift.num is exist - process it [14:56:45]requested_item shift.opened is exist - process it [14:56:45]req_shift_opened [14:56:45]FM_GetShiftState [14:56:45]SAM_PROTO_GetShiftState [14:56:45]wFMCommunicate request_size=4 [14:56:45]MH_SAM_APDU [14:56:45]CAPDU: 80 13 01 00 [14:56:45]Write to MH i2c: E2 08 00 1D 04 80 13 01 00 00 00 00 00 9E [14:56:45]Write i2c OK [14:56:45]MH_I2C_Read... [14:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:45]Read from MH i2c: E2 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: E2 0E 00 [14:56:45]MH_I2C_Read... [14:56:45]Read from MH i2c: E2 0E 00 1D 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 75 [14:56:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:56:45]wFMCommunicate OK [14:56:45]SAM_PROTO_GetShiftState done [14:56:45]FM_GetShiftState done [14:56:45]req_shift_opened done [14:56:45]requested_item shift.open_date is exist - process it [14:56:45]req_shift_open_date [14:56:45]req_shift_open_date done [14:56:45]produce_requested_data done [14:56:45]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178663,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [14:56:45]process_action_free close_receipt [14:56:45]json_value_free [14:56:45]json_value_free done [14:56:45]process_json_proto returns [14:56:45]Send response to host [14:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178663,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [14:56:45]free response buf [14:56:45]execute_script done [14:56:45]execute_script returns [14:56:45]free content buf [14:56:45]Sock 9.Close socket [14:56:45]Sock 9.Thread stoped [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:06]recv_with_timeout no data received [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:47]accept exits with 10 [14:58:47]New connection [14:58:47]New thread 3066821988 created [14:58:47]Thread 3066678628 joined [14:58:47]Waiting for new connection... [14:58:47] Sock 10.Parse request [14:58:47]Sock 10.Check first char [14:58:47]Sock 10.First char is OK [14:58:47]request: POST /json_proto HTTP/1.0 [14:58:47]Method: POST [14:58:47]URL: /json_proto [14:58:47]Method is POST - this is cgi request [14:58:47]url: /json_proto [14:58:47]query_string will be loaded in cgi processing [14:58:47]execute_cgi json_proto POST (null) [14:58:47]execute_cgi path=json_proto method=POST [14:58:47]POST find Content-Length [14:58:47]Host: 172.17.44.131:8080 [14:58:47]Content-Length: 667 [14:58:47]Content-Type: application/json [14:58:47] [14:58:47]POST finish read [14:58:47]Found Content-Length = 667 [14:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:47]execute_script... [14:58: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)294362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:47]POST & json_proto [14:58:47]process_json_proto [14:58:47]json parsed OK: [14:58:47]protocol is kg_v1.0 [14:58:47]action value=close_receipt [14:58:47]process_action close_receipt [14:58:47]cmd_close_receipt [14:58:47]MH_GetDate [14:58:47]Write to MH i2c: F0 00 00 1E 04 11 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: F0 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: F0 09 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: F0 09 00 1E 04 00 A8 A3 C8 66 4F 53 BE 66 59 [14:58:47]GetLastDocTimeStamp 1724425001 [14:58:47]current date 1724425128 [14:58:47]FM_GetShiftState [14:58:47]SAM_PROTO_GetShiftState [14:58:47]wFMCommunicate request_size=4 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 13 01 00 [14:58:47]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 0E 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 77 [14:58:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:58:47]wFMCommunicate OK [14:58:47]SAM_PROTO_GetShiftState done [14:58:47]FM_GetShiftState done [14:58:47]opened in 1724371660 [14:58:47]opened+sec_in_day 1724458060 [14:58:47]quantity*price = 50017 [14:58:47]sum+1 = 50019 [14:58:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 124 23.08.2024 14:58 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178664 ФПД: 193081896043392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T145848&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178664&fm=193081896043392&tin=02508201610067®Number=0000000000092561&sum=50000 [14:58:48]StoreToDocumentArchive [14:58:48]shift 470 fd 178664 [14:58:48]save to /storage/0470/doc_00178664 [14:58:48]save last doc name /storage/0470/doc_00178664 to /storage/kkm_last_doc_name [14:58:48]save OK [14:58:48]Clear old archive folders... [14:58:48]ProcessDocumentItem done err = 0, tmpTLVsize=249 [14:58:48]tlvbuf is 014E8330 [14:58:48]SAM_PROTO_ClearQueue [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 09 00 00 [14:58:48]Write to MH i2c: E2 08 00 2C 04 80 09 00 00 00 00 00 00 A2 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 03 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 03 00 2C 04 00 90 00 A4 [14:58:48]RAPDU: 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_ClearQueue done [14:58:48]KKMCreateOFDPacket [14:58:48]OFDProtocolAddRootSTLVToBuf [14:58:48]FM_MakeSignedData [14:58:48]FM_MakeSignedData [14:58:48]SAM_PROTO_SignData [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 0D 01 02 [14:58:48]Write to MH i2c: E2 08 00 2D 04 80 0D 01 02 00 00 00 00 AA [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 03 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 03 00 2D 04 00 90 00 A5 [14:58:48]RAPDU: 90 00 [14:58:48]wFMCommunicate OK [14:58:48]wFMCommunicate request_size=255 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A8 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E8 B9 02 00 35 04 06 00 AF 9B 61 [14:58:48]Write to MH i2c: E2 02 01 2E 04 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A8 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E8 B9 02 00 35 04 06 00 AF 9B 61 00 00 E3 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:49]Read from MH i2c: E2 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 03 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [14:58:49]RAPDU: 90 00 [14:58:49]wFMCommunicate OK [14:58:49]wFMCommunicate request_size=8 [14:58:49]MH_SAM_APDU [14:58:49]CAPDU: 80 0D 02 02 03 D3 83 80 [14:58:49]Write to MH i2c: E2 0B 00 2F 04 80 0D 02 02 03 00 D3 83 80 00 00 89 [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 [14:58:49]MH_I2C_Read... [14:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:49]Read from MH i2c: E2 03 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [14:58:49]RAPDU: 90 00 [14:58:49]wFMCommunicate OK [14:58:49]wFMCommunicate request_size=4 [14:58:49]MH_SAM_APDU [14:58:49]CAPDU: 80 0D 03 02 [14:58:49]Write to MH i2c: E2 08 00 30 04 80 0D 03 02 00 00 00 00 AF [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:49]Read from MH i2c: E2 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 0B 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 0B 00 30 04 00 4F 76 B3 64 52 53 EB 27 90 00 43 [14:58:49]RAPDU: 4F 76 B3 64 52 53 EB 27 90 00 [14:58:49]wFMCommunicate OK [14:58:49]SAM_PROTO_SignData done [14:58:49]FM_MakeSignedData done [14:58:49]CreateOFDProtocolMessage [14:58:49]wFMCommunicate request_size=4 [14:58:49]MH_SAM_APDU [14:58:49]CAPDU: 80 11 00 00 [14:58:49]Write to MH i2c: E2 08 00 31 04 80 11 00 00 00 00 00 00 AF [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:49]Read from MH i2c: E2 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 17 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: E2 17 00 31 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 08 [14:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:58:49]wFMCommunicate OK [14:58:49]CreateOFDProtocolMessage done [14:58:49]OFDSenderStorePacket 178664 [14:58:49]StoreOFDPacket docnum=178664 [14:58:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 F5 2F 05 01 AA F0 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A8 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E8 B9 02 00 35 04 06 00 AF 9B 61 D3 83 80 4F 76 B3 64 52 53 EB 27 [14:58:49]CheckFolder [14:58:49]dirname=/storage/ofd_packets [14:58:49]CheckFolder done [14:58:49]ProducePacketName [14:58:49]name=ofd_packets/00178664 [14:58:49]NVStorageSaveData ofd_packets/00178664 [14:58:49]File name is /storage/ofd_packets/00178664 [14:58:49]Write 299 bytes [14:58:49]NVStorageSaveData done [14:58:49]OFDSenderStorePacket done [14:58:49]KKMCreateOFDPacket done [14:58:49]NVStorageSaveData kkm_last_timestamp [14:58:49]File name is /storage/kkm_last_timestamp [14:58:49]Write 4 bytes [14:58:49]NVStorageSaveData done [14:58:49]ExternCall_PrintAddStr [14:58:49]wPrintStart [14:58:49]Write to MH i2c: 01 00 00 32 04 36 [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: 01 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: 01 07 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 FF 0F 4B [14:58:49]RasterBufferAndPrint [14:58:49]line Счет N : (1)294362 [14:58:49]line ИНН: 02508201610067 [14:58:49]line Контрольно-Кассовый Чек [14:58:49]line ПРОДАЖА [14:58:49]line ТРК (МРК, ГНК) : 61 [14:58:49]line Товар: 2710124130 [14:58:49]line SU-92-К-5 [14:58:49]line 7.270 * 68.80 [14:58:49]line = 500.18 [14:58:49]line НДС 12% НСП 1% [14:58:49]line > о реализуемом товаре [14:58:49]line ОКРУГЛЕНИЕ: -0.18 [14:58:49]line ИТОГО: 500.00 [14:58:49]line Внесено: 500.00 [14:58:49]line СДАЧА: 0.00 [14:58:49]line НСП 1% : 4.43 [14:58:49]line НДС 12% : 53.12 [14:58:49]line Наличными: 500.00 [14:58:49]line Безнал.: 0.00 [14:58:49]line Место: АЗС № 130 "Партнер Нефть" [14:58:49]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [14:58:49]line СНО: Общий режим [14:58:49]line Чек 124 23.08.2024 14:58 [14:58:49]line Смена: 470 ФФД: 1.0 [14:58:49]line ЗНМ: 0300000071 [14:58:49]line РНМ: 0000000000092561 [14:58:49]line Версия ККМ: 001 [14:58:49]line ФМ: 0000000000871778 [14:58:49]line ФД: 178664 [14:58:49]line ФПД: 193081896043392 [14:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T145848&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178664&fm=193081896043392&tin=02508201610067®Number=0000000000092561&sum=50000 [14:58:49]written 0, free lines is 4095 [14:58:49]OFD Sender: Processing packet 178664 [packets to send 498, broken 497] [14:58:49]ProducePacketName [14:58:49]name=ofd_packets/00178664 [14:58:49]OFD Sender: To server: pG, [14:58:49]CommunicateWithHost lk.salyk.kg:30040 [14:58:49]ConnectInit lk.salyk.kg [14:58:49]Write to MH i2c: 01 00 00 5D 04 61 [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: 01 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: 01 07 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 EB 0C 5F [14:58:49]RasterBufferAndPrint [14:58:49]line [14:58:49]line [14:58:49]line [14:58:49]line [14:58:49]line [14:58:49]written 0, free lines is 3313 [14:58:49]MH_Cut [14:58:49]Write to MH i2c: D1 01 00 64 04 01 3A [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: D1 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: D1 01 00 [14:58:49]MH_I2C_Read... [14:58:49]Read from MH i2c: D1 01 00 64 04 00 39 [14:58:49]Write to MH i2c: 01 00 00 65 04 69 [14:58:49]Write i2c OK [14:58:49]MH_I2C_Read... [14:58:50]*** Cut start [14:58:50]*** Partial cut [14:58:50]*** CUTSNS_PIN = 1 [14:58:50]*** CUTSNS_PIN = 0 [14:58:50]*** Brake cut motor [14:58:50]Read from MH i2c: 01 [14:58:51]MH_I2C_Read... [14:58:51]*** Stop cut motor [14:58:51]*** Cut end [14:58:51]Read from MH i2c: 01 07 00 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 FF 0F 7E [14:58:51]process_action close_receipt done [14:58:51]requested_data is exist [14:58:51]produce_requested_data [14:58:51]requested_item fm.sn is exist - process it [14:58:51]wFMCommunicate request_size=4 [14:58:51]MH_SAM_APDU [14:58:51]CAPDU: 80 11 00 00 [14:58:51]Write to MH i2c: E2 08 00 66 04 80 11 00 00 00 00 00 00 E4 [14:58:51]Write i2c OK [14:58:51]MH_I2C_Read... [14:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:51]Read from MH i2c: E2 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: E2 17 00 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: E2 17 00 66 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3D [14:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [14:58:51]wFMCommunicate OK [14:58:51]requested_item fd.num is exist - process it [14:58:51]SAM_PROTO_GetFieldsCounters [14:58:51]wFMCommunicate request_size=4 [14:58:51]MH_SAM_APDU [14:58:51]CAPDU: 80 13 00 00 [14:58:51]Write to MH i2c: E2 08 00 67 04 80 13 00 00 00 00 00 00 E7 [14:58:51]Write i2c OK [14:58:51]MH_I2C_Read... [14:58:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:51]Read from MH i2c: E2 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: E2 62 00 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: E2 62 00 67 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E8 B9 02 00 0E 04 04 00 D6 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 FA [14:58: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E8 B9 02 00 0E 04 04 00 D6 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:58:51]wFMCommunicate OK [14:58:51]SAM_PROTO_GetFieldsCounters done [14:58:51]requested_item shift.num is exist - process it [14:58:51]requested_item shift.opened is exist - process it [14:58:51]req_shift_opened [14:58:51]FM_GetShiftState [14:58:51]SAM_PROTO_GetShiftState [14:58:51]wFMCommunicate request_size=4 [14:58:51]MH_SAM_APDU [14:58:51]CAPDU: 80 13 01 00 [14:58:51]Write to MH i2c: E2 08 00 68 04 80 13 01 00 00 00 00 00 E9 [14:58:51]Write i2c OK [14:58:51]MH_I2C_Read... [14:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:51]Read from MH i2c: E2 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: E2 0E 00 [14:58:51]MH_I2C_Read... [14:58:51]Read from MH i2c: E2 0E 00 68 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C0 [14:58:51]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [14:58:51]wFMCommunicate OK [14:58:51]SAM_PROTO_GetShiftState done [14:58:51]FM_GetShiftState done [14:58:51]req_shift_opened done [14:58:51]requested_item shift.open_date is exist - process it [14:58:51]req_shift_open_date [14:58:51]req_shift_open_date done [14:58:51]produce_requested_data done [14:58:51]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178664,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [14:58:51]process_action_free close_receipt [14:58:51]json_value_free [14:58:51]json_value_free done [14:58:51]process_json_proto returns [14:58:51]Send response to host [14:58:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178664,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [14:58:51]free response buf [14:58:51]execute_script done [14:58:51]execute_script returns [14:58:51]free content buf [14:58:51]Sock 10.Close socket [14:58:51]Sock 10.Thread stoped [14:58:55]Connected sock=11 [14:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 F5 2F 05 01 AA F0 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 A8 A3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E8 B9 02 00 35 04 06 00 AF 9B 61 D3 83 80 4F 76 B3 64 52 53 EB 27 [14:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 69 48 47 00 7F 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 31 37 37 38 10 04 04 00 E8 B9 02 00 F4 03 04 00 57 4F C8 66 B6 04 01 00 00 99 76 74 AF 3C 80 98 25 [14:58:58]CommunicateWithHost err = 0 [14:58:58]CheckOFDResponse [14:58:58]1017 (14) - 77093643461234 [14:58:58]1041 (16) - 0000000000871778 [14:58:58]1040 (4) - 178664 [14:58:58]1012 (4) - 23.08.2024 08:59 [14:58:58]1206 (1) - 0 [14:58:58]OFD Sender: Remove packet 178664 [14:58:58]ProducePacketName [14:58:58]name=ofd_packets/00178664 [14:58:58]NVStorageDeleteData [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:04]recv_with_timeout no data received [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 [14:59:59]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:15]accept exits with 9 [15:01:15]New connection [15:01:15]New thread 3066678628 created [15:01:15]Thread 3066821988 joined [15:01:15]Waiting for new connection... [15:01:15] Sock 9.Parse request [15:01:15]Sock 9.Check first char [15:01:15]Sock 9.First char is OK [15:01:15]request: POST /json_proto HTTP/1.0 [15:01:15]Method: POST [15:01:15]URL: /json_proto [15:01:15]Method is POST - this is cgi request [15:01:15]url: /json_proto [15:01:15]query_string will be loaded in cgi processing [15:01:15]execute_cgi json_proto POST (null) [15:01:15]execute_cgi path=json_proto method=POST [15:01:15]POST find Content-Length [15:01:15]Host: 172.17.44.131:8080 [15:01:15]Content-Length: 677 [15:01:15]Content-Type: application/json [15:01:15] [15:01:15]POST finish read [15:01:15]Found Content-Length = 677 [15:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294366", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:01:15]execute_script... [15:01:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294366", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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:01:15]POST & json_proto [15:01:15]process_json_proto [15:01:15]json parsed OK: [15:01:15]protocol is kg_v1.0 [15:01:15]action value=close_receipt [15:01:15]process_action close_receipt [15:01:15]cmd_close_receipt [15:01:15]MH_GetDate [15:01:15]Write to MH i2c: F0 00 00 69 04 5C [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 09 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: F0 09 00 69 04 00 3B A4 C8 66 4F 53 BE 66 38 [15:01:15]GetLastDocTimeStamp 1724425128 [15:01:15]current date 1724425275 [15:01:15]FM_GetShiftState [15:01:15]SAM_PROTO_GetShiftState [15:01:15]wFMCommunicate request_size=4 [15:01:15]MH_SAM_APDU [15:01:15]CAPDU: 80 13 01 00 [15:01:15]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [15:01:15]Write i2c OK [15:01:15]MH_I2C_Read... [15:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:15]Read from MH i2c: E2 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 0E 00 [15:01:15]MH_I2C_Read... [15:01:15]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C2 [15:01:15]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:01:15]wFMCommunicate OK [15:01:15]SAM_PROTO_GetShiftState done [15:01:15]FM_GetShiftState done [15:01:15]opened in 1724371660 [15:01:15]opened+sec_in_day 1724458060 [15:01:15]quantity*price = 40002 [15:01:15]sum+1 = 40003 [15:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 125 23.08.2024 15:01 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178665 ФПД: 255097552951277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T150115&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178665&fm=255097552951277&tin=02508201610067®Number=0000000000092561&sum=40000 [15:01:16]StoreToDocumentArchive [15:01:16]shift 470 fd 178665 [15:01:16]save to /storage/0470/doc_00178665 [15:01:16]save last doc name /storage/0470/doc_00178665 to /storage/kkm_last_doc_name [15:01:16]save OK [15:01:16]Clear old archive folders... [15:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:16]tlvbuf is 0150AE30 [15:01:16]SAM_PROTO_ClearQueue [15:01:16]wFMCommunicate request_size=4 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 09 00 00 [15:01:16]Write to MH i2c: E2 08 00 77 04 80 09 00 00 00 00 00 00 ED [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 77 04 00 90 00 EF [15:01:16]RAPDU: 90 00 [15:01:16]wFMCommunicate OK [15:01:16]SAM_PROTO_ClearQueue done [15:01:16]KKMCreateOFDPacket [15:01:16]OFDProtocolAddRootSTLVToBuf [15:01:16]FM_MakeSignedData [15:01:16]FM_MakeSignedData [15:01:16]SAM_PROTO_SignData [15:01:16]wFMCommunicate request_size=4 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 0D 01 02 [15:01:16]Write to MH i2c: E2 08 00 78 04 80 0D 01 02 00 00 00 00 F5 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 78 04 00 90 00 F0 [15:01:16]RAPDU: 90 00 [15:01:16]wFMCommunicate OK [15:01:16]wFMCommunicate request_size=255 [15:01:16]MH_SAM_APDU [15:01: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E9 B9 02 00 35 04 06 00 E8 [15:01:16]Write to MH i2c: E2 02 01 79 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E9 B9 02 00 35 04 06 00 E8 00 00 4A [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [15:01:16]RAPDU: 90 00 [15:01:16]wFMCommunicate OK [15:01:16]wFMCommunicate request_size=10 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 0D 02 02 05 02 87 06 D7 ED [15:01:16]Write to MH i2c: E2 0D 00 7A 04 80 0D 02 02 05 00 02 87 06 D7 ED 00 00 55 [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:16]Read from MH i2c: E2 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 [15:01:16]MH_I2C_Read... [15:01:16]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [15:01:16]RAPDU: 90 00 [15:01:16]wFMCommunicate OK [15:01:16]wFMCommunicate request_size=4 [15:01:16]MH_SAM_APDU [15:01:16]CAPDU: 80 0D 03 02 [15:01:16]Write to MH i2c: E2 08 00 7B 04 80 0D 03 02 00 00 00 00 FA [15:01:16]Write i2c OK [15:01:16]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 0B 00 7B 04 00 D9 04 B8 A3 7C 23 D0 0B 90 00 AD [15:01:17]RAPDU: D9 04 B8 A3 7C 23 D0 0B 90 00 [15:01:17]wFMCommunicate OK [15:01:17]SAM_PROTO_SignData done [15:01:17]FM_MakeSignedData done [15:01:17]CreateOFDProtocolMessage [15:01:17]wFMCommunicate request_size=4 [15:01:17]MH_SAM_APDU [15:01:17]CAPDU: 80 11 00 00 [15:01:17]Write to MH i2c: E2 08 00 7C 04 80 11 00 00 00 00 00 00 FA [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:17]Read from MH i2c: E2 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 17 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: E2 17 00 7C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 53 [15:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:01:17]wFMCommunicate OK [15:01:17]CreateOFDProtocolMessage done [15:01:17]OFDSenderStorePacket 178665 [15:01:17]StoreOFDPacket docnum=178665 [15:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 EC F2 07 01 A4 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E9 B9 02 00 35 04 06 00 E8 02 87 06 D7 ED D9 04 B8 A3 7C 23 D0 0B [15:01:17]CheckFolder [15:01:17]dirname=/storage/ofd_packets [15:01:17]CheckFolder done [15:01:17]ProducePacketName [15:01:17]name=ofd_packets/00178665 [15:01:17]NVStorageSaveData ofd_packets/00178665 [15:01:17]File name is /storage/ofd_packets/00178665 [15:01:17]Write 301 bytes [15:01:17]NVStorageSaveData done [15:01:17]OFDSenderStorePacket done [15:01:17]KKMCreateOFDPacket done [15:01:17]NVStorageSaveData kkm_last_timestamp [15:01:17]File name is /storage/kkm_last_timestamp [15:01:17]Write 4 bytes [15:01:17]NVStorageSaveData done [15:01:17]ExternCall_PrintAddStr [15:01:17]wPrintStart [15:01:17]Write to MH i2c: 01 00 00 7D 04 81 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 FF 0F 96 [15:01:17]RasterBufferAndPrint [15:01:17]line Счет N : (1)294366 [15:01:17]line ИНН: 02508201610067 [15:01:17]line Контрольно-Кассовый Чек [15:01:17]line ПРОДАЖА [15:01:17]line ТРК (МРК, ГНК) : 52 [15:01:17]line Товар: 2710124130 [15:01:17]line Аи-92-К-5 [15:01:17]line 5.900 * 67.80 [15:01:17]line = 400.02 [15:01:17]line НДС 12% НСП 1% [15:01:17]line > о реализуемом товаре [15:01:17]line ОКРУГЛЕНИЕ: -0.02 [15:01:17]line ИТОГО: 400.00 [15:01:17]line Внесено: 400.00 [15:01:17]line СДАЧА: 0.00 [15:01:17]line НСП 1% : 3.54 [15:01:17]line НДС 12% : 42.48 [15:01:17]line Наличными: 400.00 [15:01:17]line Безнал.: 0.00 [15:01:17]line Место: АЗС № 130 "Партнер Нефть" [15:01:17]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:01:17]line СНО: Общий режим [15:01:17]line Чек 125 23.08.2024 15:01 [15:01:17]line Смена: 470 ФФД: 1.0 [15:01:17]line ЗНМ: 0300000071 [15:01:17]line РНМ: 0000000000092561 [15:01:17]line Версия ККМ: 001 [15:01:17]line ФМ: 0000000000871778 [15:01:17]line ФД: 178665 [15:01:17]line ФПД: 255097552951277 [15:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T150115&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178665&fm=255097552951277&tin=02508201610067®Number=0000000000092561&sum=40000 [15:01:17]written 0, free lines is 4095 [15:01:17]OFD Sender: Processing packet 178665 [packets to send 498, broken 497] [15:01:17]ProducePacketName [15:01:17]name=ofd_packets/00178665 [15:01:17]OFD Sender: To server: pG, [15:01:17]CommunicateWithHost lk.salyk.kg:30040 [15:01:17]ConnectInit lk.salyk.kg [15:01:17]Write to MH i2c: 01 00 00 A8 04 AC [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 E0 0C 9F [15:01:17]RasterBufferAndPrint [15:01:17]line [15:01:17]line [15:01:17]line [15:01:17]line [15:01:17]line [15:01:17]written 0, free lines is 3302 [15:01:17]MH_Cut [15:01:17]Write to MH i2c: D1 01 00 AF 04 01 85 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: D1 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: D1 01 00 [15:01:17]MH_I2C_Read... [15:01:17]Read from MH i2c: D1 01 00 AF 04 00 84 [15:01:17]Write to MH i2c: 01 00 00 B0 04 B4 [15:01:17]Write i2c OK [15:01:17]MH_I2C_Read... [15:01:18]Connected sock=11 [15:01:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 EC F2 07 01 A4 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 3B A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 E9 B9 02 00 35 04 06 00 E8 02 87 06 D7 ED D9 04 B8 A3 7C 23 D0 0B [15:01:18]*** Cut start [15:01:18]*** Partial cut [15:01:18]*** CUTSNS_PIN = 1 [15:01:18]*** CUTSNS_PIN = 0 [15:01:18]*** Brake cut motor [15:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 27 71 47 00 75 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 31 37 37 38 10 04 04 00 E9 B9 02 00 F4 03 04 00 E3 4F C8 66 B6 04 01 00 00 B3 90 3D A3 A2 32 A9 E1 [15:01:18]CommunicateWithHost err = 0 [15:01:18]CheckOFDResponse [15:01:18]1017 (14) - 77093643461234 [15:01:18]1041 (16) - 0000000000871778 [15:01:18]1040 (4) - 178665 [15:01:18]1012 (4) - 23.08.2024 09:01 [15:01:18]1206 (1) - 0 [15:01:18]OFD Sender: Remove packet 178665 [15:01:18]ProducePacketName [15:01:18]name=ofd_packets/00178665 [15:01:18]NVStorageDeleteData [15:01:19]Read from MH i2c: 01 [15:01:19]MH_I2C_Read... [15:01:19]*** Stop cut motor [15:01:19]*** Cut end [15:01:19]Read from MH i2c: 01 07 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: 01 07 00 B0 04 00 00 00 00 00 FF 0F C9 [15:01:19]process_action close_receipt done [15:01:19]requested_data is exist [15:01:19]produce_requested_data [15:01:19]requested_item fm.sn is exist - process it [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 11 00 00 [15:01:19]Write to MH i2c: E2 08 00 B1 04 80 11 00 00 00 00 00 00 2F [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 17 00 B1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 88 [15:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:01:19]wFMCommunicate OK [15:01:19]requested_item fd.num is exist - process it [15:01:19]SAM_PROTO_GetFieldsCounters [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 13 00 00 [15:01:19]Write to MH i2c: E2 08 00 B2 04 80 13 00 00 00 00 00 00 32 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 62 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 62 00 B2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E9 B9 02 00 0E 04 04 00 D6 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 49 [15:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 E9 B9 02 00 0E 04 04 00 D6 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:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_GetFieldsCounters done [15:01:19]requested_item shift.num is exist - process it [15:01:19]requested_item shift.opened is exist - process it [15:01:19]req_shift_opened [15:01:19]FM_GetShiftState [15:01:19]SAM_PROTO_GetShiftState [15:01:19]wFMCommunicate request_size=4 [15:01:19]MH_SAM_APDU [15:01:19]CAPDU: 80 13 01 00 [15:01:19]Write to MH i2c: E2 08 00 B3 04 80 13 01 00 00 00 00 00 34 [15:01:19]Write i2c OK [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 [15:01:19]MH_I2C_Read... [15:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:19]Read from MH i2c: E2 0E 00 [15:01:19]MH_I2C_Read... [15:01:19]Read from MH i2c: E2 0E 00 B3 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 0B [15:01:19]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:01:19]wFMCommunicate OK [15:01:19]SAM_PROTO_GetShiftState done [15:01:19]FM_GetShiftState done [15:01:19]req_shift_opened done [15:01:19]requested_item shift.open_date is exist - process it [15:01:19]req_shift_open_date [15:01:19]req_shift_open_date done [15:01:19]produce_requested_data done [15:01:19]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178665,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:01:19]process_action_free close_receipt [15:01:19]json_value_free [15:01:19]json_value_free done [15:01:19]process_json_proto returns [15:01:19]Send response to host [15:01:19]OFD Sender: No OFD packet to send [15:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178665,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:01:19]free response buf [15:01:19]execute_script done [15:01:19]execute_script returns [15:01:19]free content buf [15:01:19]Sock 9.Close socket [15:01:19]Sock 9.Thread stoped [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:02]recv_with_timeout no data received [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:16]accept exits with 10 [15:04:16]New connection [15:04:16]New thread 3066821988 created [15:04:16]Thread 3066678628 joined [15:04:16]Waiting for new connection... [15:04:16] Sock 10.Parse request [15:04:16]Sock 10.Check first char [15:04:16]Sock 10.First char is OK [15:04:16]request: POST /json_proto HTTP/1.0 [15:04:16]Method: POST [15:04:16]URL: /json_proto [15:04:16]Method is POST - this is cgi request [15:04:16]url: /json_proto [15:04:16]query_string will be loaded in cgi processing [15:04:16]execute_cgi json_proto POST (null) [15:04:16]execute_cgi path=json_proto method=POST [15:04:16]POST find Content-Length [15:04:16]Host: 172.17.44.131:8080 [15:04:16]Content-Length: 672 [15:04:16]Content-Type: application/json [15:04:16] [15:04:16]POST finish read [15:04:16]Found Content-Length = 672 [15:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 36.340, "sum" : 2500.19, "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" ] } } [15:04:16]execute_script... [15:04: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)294367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 36.340, "sum" : 2500.19, "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" ] } } [15:04:16]POST & json_proto [15:04:16]process_json_proto [15:04:16]json parsed OK: [15:04:16]protocol is kg_v1.0 [15:04:16]action value=close_receipt [15:04:16]process_action close_receipt [15:04:16]cmd_close_receipt [15:04:16]MH_GetDate [15:04:16]Write to MH i2c: F0 00 00 B4 04 A7 [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: F0 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: F0 09 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: F0 09 00 B4 04 00 F1 A4 C8 66 4F 53 BE 66 39 [15:04:16]GetLastDocTimeStamp 1724425275 [15:04:16]current date 1724425457 [15:04:16]FM_GetShiftState [15:04:16]SAM_PROTO_GetShiftState [15:04:16]wFMCommunicate request_size=4 [15:04:16]MH_SAM_APDU [15:04:16]CAPDU: 80 13 01 00 [15:04:16]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [15:04:16]Write i2c OK [15:04:16]MH_I2C_Read... [15:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:16]Read from MH i2c: E2 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 0E 00 [15:04:16]MH_I2C_Read... [15:04:16]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 0D [15:04:16]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:04:16]wFMCommunicate OK [15:04:16]SAM_PROTO_GetShiftState done [15:04:16]FM_GetShiftState done [15:04:16]opened in 1724371660 [15:04:16]opened+sec_in_day 1724458060 [15:04:16]quantity*price = 250019 [15:04:16]sum+1 = 250020 [15:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.51 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 126 23.08.2024 15:04 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178666 ФПД: 11645184102486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T150417&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178666&fm=11645184102486&tin=02508201610067®Number=0000000000092561&sum=250000 [15:04:17]StoreToDocumentArchive [15:04:17]shift 470 fd 178666 [15:04:17]save to /storage/0470/doc_00178666 [15:04:17]save last doc name /storage/0470/doc_00178666 to /storage/kkm_last_doc_name [15:04:17]save OK [15:04:17]Clear old archive folders... [15:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:04:17]tlvbuf is 0147E500 [15:04:17]SAM_PROTO_ClearQueue [15:04:17]wFMCommunicate request_size=4 [15:04:17]MH_SAM_APDU [15:04:17]CAPDU: 80 09 00 00 [15:04:17]Write to MH i2c: E2 08 00 C2 04 80 09 00 00 00 00 00 00 38 [15:04:17]Write i2c OK [15:04:17]MH_I2C_Read... [15:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:17]Read from MH i2c: E2 [15:04:17]MH_I2C_Read... [15:04:17]Read from MH i2c: E2 03 00 [15:04:17]MH_I2C_Read... [15:04:17]Read from MH i2c: E2 03 00 C2 04 00 90 00 3A [15:04:17]RAPDU: 90 00 [15:04:17]wFMCommunicate OK [15:04:17]SAM_PROTO_ClearQueue done [15:04:17]KKMCreateOFDPacket [15:04:17]OFDProtocolAddRootSTLVToBuf [15:04:17]FM_MakeSignedData [15:04:17]FM_MakeSignedData [15:04:17]SAM_PROTO_SignData [15:04:17]wFMCommunicate request_size=4 [15:04:17]MH_SAM_APDU [15:04:17]CAPDU: 80 0D 01 02 [15:04:17]Write to MH i2c: E2 08 00 C3 04 80 0D 01 02 00 00 00 00 40 [15:04:17]Write i2c OK [15:04:17]MH_I2C_Read... [15:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:17]Read from MH i2c: E2 [15:04:17]MH_I2C_Read... [15:04:17]Read from MH i2c: E2 03 00 [15:04:17]MH_I2C_Read... [15:04:17]Read from MH i2c: E2 03 00 C3 04 00 90 00 3B [15:04:17]RAPDU: 90 00 [15:04:17]wFMCommunicate OK [15:04:17]wFMCommunicate request_size=255 [15:04:17]MH_SAM_APDU [15:04:17]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 8D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 A3 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 B7 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 7E 00 00 00 F4 03 04 00 F1 A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EA B9 02 00 35 04 06 00 0A 97 5B [15:04:17]Write to MH i2c: E2 02 01 C4 04 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 8D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 A3 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 B7 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 7E 00 00 00 F4 03 04 00 F1 A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EA B9 02 00 35 04 06 00 0A 97 5B 00 00 43 [15:04:17]Write i2c OK [15:04:17]MH_I2C_Read... [15:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:18]Read from MH i2c: E2 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 03 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [15:04:18]RAPDU: 90 00 [15:04:18]wFMCommunicate OK [15:04:18]wFMCommunicate request_size=8 [15:04:18]MH_SAM_APDU [15:04:18]CAPDU: 80 0D 02 02 03 0F D0 56 [15:04:18]Write to MH i2c: E2 0B 00 C5 04 80 0D 02 02 03 00 0F D0 56 00 00 7E [15:04:18]Write i2c OK [15:04:18]MH_I2C_Read... [15:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:18]Read from MH i2c: E2 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 03 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [15:04:18]RAPDU: 90 00 [15:04:18]wFMCommunicate OK [15:04:18]wFMCommunicate request_size=4 [15:04:18]MH_SAM_APDU [15:04:18]CAPDU: 80 0D 03 02 [15:04:18]Write to MH i2c: E2 08 00 C6 04 80 0D 03 02 00 00 00 00 45 [15:04:18]Write i2c OK [15:04:18]MH_I2C_Read... [15:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:18]Read from MH i2c: E2 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 0B 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 0B 00 C6 04 00 FA 3C BF FC 4A C8 E1 66 90 00 90 [15:04:18]RAPDU: FA 3C BF FC 4A C8 E1 66 90 00 [15:04:18]wFMCommunicate OK [15:04:18]SAM_PROTO_SignData done [15:04:18]FM_MakeSignedData done [15:04:18]CreateOFDProtocolMessage [15:04:18]wFMCommunicate request_size=4 [15:04:18]MH_SAM_APDU [15:04:18]CAPDU: 80 11 00 00 [15:04:18]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [15:04:18]Write i2c OK [15:04:18]MH_I2C_Read... [15:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:18]Read from MH i2c: E2 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 17 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 9E [15:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:04:18]wFMCommunicate OK [15:04:18]CreateOFDProtocolMessage done [15:04:18]OFDSenderStorePacket 178666 [15:04:18]StoreOFDPacket docnum=178666 [15:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 63 EA 05 01 97 A7 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 8D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 A3 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 B7 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 7E 00 00 00 F4 03 04 00 F1 A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EA B9 02 00 35 04 06 00 0A 97 5B 0F D0 56 FA 3C BF FC 4A C8 E1 66 [15:04:18]CheckFolder [15:04:18]dirname=/storage/ofd_packets [15:04:18]CheckFolder done [15:04:18]ProducePacketName [15:04:18]name=ofd_packets/00178666 [15:04:18]NVStorageSaveData ofd_packets/00178666 [15:04:18]File name is /storage/ofd_packets/00178666 [15:04:18]Write 299 bytes [15:04:18]NVStorageSaveData done [15:04:18]OFDSenderStorePacket done [15:04:18]KKMCreateOFDPacket done [15:04:18]NVStorageSaveData kkm_last_timestamp [15:04:18]File name is /storage/kkm_last_timestamp [15:04:18]Write 4 bytes [15:04:18]NVStorageSaveData done [15:04:18]ExternCall_PrintAddStr [15:04:18]wPrintStart [15:04:18]Write to MH i2c: 01 00 00 C8 04 CC [15:04:18]Write i2c OK [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: 01 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: 01 07 00 [15:04:18]MH_I2C_Read... [15:04:18]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 FF 0F E1 [15:04:18]RasterBufferAndPrint [15:04:18]line Счет N : (1)294367 [15:04:18]line ИНН: 02508201610067 [15:04:18]line Контрольно-Кассовый Чек [15:04:18]line ПРОДАЖА [15:04:18]line ТРК (МРК, ГНК) : 61 [15:04:18]line Товар: 2710124130 [15:04:18]line SU-92-К-5 [15:04:18]line 36.340 * 68.80 [15:04:18]line = 2500.19 [15:04:18]line НДС 12% НСП 1% [15:04:18]line > о реализуемом товаре [15:04:18]line ОКРУГЛЕНИЕ: -0.19 [15:04:18]line ИТОГО: 2500.00 [15:04:18]line Внесено: 2500.00 [15:04:18]line СДАЧА: 0.00 [15:04:18]line НСП 1% : 22.13 [15:04:18]line НДС 12% : 265.51 [15:04:18]line Наличными: 2500.00 [15:04:18]line Безнал.: 0.00 [15:04:18]line Место: АЗС № 130 "Партнер Нефть" [15:04:18]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:04:18]line СНО: Общий режим [15:04:18]line Чек 126 23.08.2024 15:04 [15:04:18]line Смена: 470 ФФД: 1.0 [15:04:18]line ЗНМ: 0300000071 [15:04:18]line РНМ: 0000000000092561 [15:04:18]line Версия ККМ: 001 [15:04:18]line ФМ: 0000000000871778 [15:04:18]line ФД: 178666 [15:04:18]line ФПД: 11645184102486 [15:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T150417&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178666&fm=11645184102486&tin=02508201610067®Number=0000000000092561&sum=250000 [15:04:18]OFD Sender: Processing packet 178666 [packets to send 498, broken 497] [15:04:18]ProducePacketName [15:04:18]name=ofd_packets/00178666 [15:04:18]OFD Sender: To server: pG, [15:04:18]CommunicateWithHost lk.salyk.kg:30040 [15:04:18]ConnectInit lk.salyk.kg [15:04:18]written 0, free lines is 4095 [15:04:19]Write to MH i2c: 01 00 00 F3 04 F7 [15:04:19]Write i2c OK [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: 01 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: 01 07 00 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 E6 0C F0 [15:04:19]RasterBufferAndPrint [15:04:19]line [15:04:19]line [15:04:19]line [15:04:19]line [15:04:19]line [15:04:19]written 0, free lines is 3309 [15:04:19]MH_Cut [15:04:19]Write to MH i2c: D1 01 00 FA 04 01 D0 [15:04:19]Write i2c OK [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: D1 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: D1 01 00 [15:04:19]MH_I2C_Read... [15:04:19]Read from MH i2c: D1 01 00 FA 04 00 CF [15:04:19]Write to MH i2c: 01 00 00 FB 04 FF [15:04:19]Write i2c OK [15:04:19]MH_I2C_Read... [15:04:19]*** Cut start [15:04:19]*** Partial cut [15:04:19]*** CUTSNS_PIN = 1 [15:04:19]*** CUTSNS_PIN = 0 [15:04:19]*** Brake cut motor [15:04:20]Read from MH i2c: 01 [15:04:20]MH_I2C_Read... [15:04:20]*** Stop cut motor [15:04:20]*** Cut end [15:04:20]Read from MH i2c: 01 07 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [15:04:20]process_action close_receipt done [15:04:20]requested_data is exist [15:04:20]produce_requested_data [15:04:20]requested_item fm.sn is exist - process it [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 11 00 00 [15:04:20]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 17 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D3 [15:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:04:20]wFMCommunicate OK [15:04:20]requested_item fd.num is exist - process it [15:04:20]SAM_PROTO_GetFieldsCounters [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 13 00 00 [15:04:20]Write to MH i2c: E2 08 00 FD 04 80 13 00 00 00 00 00 00 7D [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 62 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 62 00 FD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EA B9 02 00 0E 04 04 00 D6 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 98 [15:04: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EA B9 02 00 0E 04 04 00 D6 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:04:20]wFMCommunicate OK [15:04:20]SAM_PROTO_GetFieldsCounters done [15:04:20]requested_item shift.num is exist - process it [15:04:20]requested_item shift.opened is exist - process it [15:04:20]req_shift_opened [15:04:20]FM_GetShiftState [15:04:20]SAM_PROTO_GetShiftState [15:04:20]wFMCommunicate request_size=4 [15:04:20]MH_SAM_APDU [15:04:20]CAPDU: 80 13 01 00 [15:04:20]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [15:04:20]Write i2c OK [15:04:20]MH_I2C_Read... [15:04:20]Connected sock=9 [15:04:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 63 EA 05 01 97 A7 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 8D 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 A3 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 B7 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 7E 00 00 00 F4 03 04 00 F1 A4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EA B9 02 00 35 04 06 00 0A 97 5B 0F D0 56 FA 3C BF FC 4A C8 E1 66 [15:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:20]Read from MH i2c: E2 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 0E 00 [15:04:20]MH_I2C_Read... [15:04:20]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 56 [15:04:20]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:04:20]wFMCommunicate OK [15:04:20]SAM_PROTO_GetShiftState done [15:04:20]FM_GetShiftState done [15:04:20]req_shift_opened done [15:04:20]requested_item shift.open_date is exist - process it [15:04:20]req_shift_open_date [15:04:20]req_shift_open_date done [15:04:20]produce_requested_data done [15:04:20]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178666,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:04:20]process_action_free close_receipt [15:04:20]json_value_free [15:04:20]json_value_free done [15:04:20]process_json_proto returns [15:04:20]Send response to host [15:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178666,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:04:20]free response buf [15:04:20]execute_script done [15:04:20]execute_script returns [15:04:20]free content buf [15:04:20]Sock 10.Close socket [15:04:20]Sock 10.Thread stoped [15:04:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 BF CE 47 00 16 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EA B9 02 00 F4 03 04 00 9A 50 C8 66 B6 04 01 00 00 7A 36 90 AC A5 A3 0D 4F [15:04:22]CommunicateWithHost err = 0 [15:04:22]CheckOFDResponse [15:04:22]1017 (14) - 77093643461234 [15:04:22]1041 (16) - 0000000000871778 [15:04:22]1040 (4) - 178666 [15:04:22]1012 (4) - 23.08.2024 09:04 [15:04:22]1206 (1) - 0 [15:04:22]OFD Sender: Remove packet 178666 [15:04:22]ProducePacketName [15:04:22]name=ofd_packets/00178666 [15:04:22]NVStorageDeleteData [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:36]recv_with_timeout no data received [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:46]recv_with_timeout no data received [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:56]accept exits with 7 [15:05:56]New connection [15:05:56]New thread 3066678628 created [15:05:56]Thread 3066821988 joined [15:05:56]Waiting for new connection... [15:05:56] Sock 7.Parse request [15:05:56]Sock 7.Check first char [15:05:56]Sock 7.First char is OK [15:05:56]request: POST /json_proto HTTP/1.0 [15:05:56]Method: POST [15:05:56]URL: /json_proto [15:05:56]Method is POST - this is cgi request [15:05:56]url: /json_proto [15:05:56]query_string will be loaded in cgi processing [15:05:56]execute_cgi json_proto POST (null) [15:05:56]execute_cgi path=json_proto method=POST [15:05:56]POST find Content-Length [15:05:56]Host: 172.17.44.131:8080 [15:05:56]Content-Length: 682 [15:05:56]Content-Type: application/json [15:05:56] [15:05:56]POST finish read [15:05:56]Found Content-Length = 682 [15:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:56]execute_script... [15:05: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)294369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:56]POST & json_proto [15:05:56]process_json_proto [15:05:56]json parsed OK: [15:05:56]protocol is kg_v1.0 [15:05:56]action value=close_receipt [15:05:56]process_action close_receipt [15:05:56]cmd_close_receipt [15:05:56]MH_GetDate [15:05:56]Write to MH i2c: F0 00 00 FF 04 F2 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: F0 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: F0 09 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: F0 09 00 FF 04 00 54 A5 C8 66 4F 53 BE 66 E8 [15:05:56]GetLastDocTimeStamp 1724425457 [15:05:56]current date 1724425556 [15:05:56]FM_GetShiftState [15:05:56]SAM_PROTO_GetShiftState [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 13 01 00 [15:05:56]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0E 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 59 [15:05:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:05:56]wFMCommunicate OK [15:05:56]SAM_PROTO_GetShiftState done [15:05:56]FM_GetShiftState done [15:05:56]opened in 1724371660 [15:05:56]opened+sec_in_day 1724458060 [15:05:56]quantity*price = 100021 [15:05:56]sum+1 = 100023 [15:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 127 23.08.2024 15:05 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178667 ФПД: 234493237898092 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T150556&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178667&fm=234493237898092&tin=02508201610067®Number=0000000000092561&sum=100000 [15:05:57]StoreToDocumentArchive [15:05:57]shift 470 fd 178667 [15:05:57]save to /storage/0470/doc_00178667 [15:05:57]save last doc name /storage/0470/doc_00178667 to /storage/kkm_last_doc_name [15:05:57]save OK [15:05:57]Clear old archive folders... [15:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:57]tlvbuf is 0151A090 [15:05:57]SAM_PROTO_ClearQueue [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 09 00 00 [15:05:57]Write to MH i2c: E2 08 00 0D 05 80 09 00 00 00 00 00 00 84 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [15:05:57]RAPDU: 90 00 [15:05:57]wFMCommunicate OK [15:05:57]SAM_PROTO_ClearQueue done [15:05:57]KKMCreateOFDPacket [15:05:57]OFDProtocolAddRootSTLVToBuf [15:05:57]FM_MakeSignedData [15:05:57]FM_MakeSignedData [15:05:57]SAM_PROTO_SignData [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 0D 01 02 [15:05:57]Write to MH i2c: E2 08 00 0E 05 80 0D 01 02 00 00 00 00 8C [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [15:05:57]RAPDU: 90 00 [15:05:57]wFMCommunicate OK [15:05:57]wFMCommunicate request_size=255 [15:05:57]MH_SAM_APDU [15:05: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 54 A5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EB B9 02 00 35 04 06 00 D5 [15:05:57]Write to MH i2c: E2 02 01 0F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 54 A5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EB B9 02 00 35 04 06 00 D5 00 00 34 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [15:05:57]RAPDU: 90 00 [15:05:57]wFMCommunicate OK [15:05:57]wFMCommunicate request_size=10 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 0D 02 02 05 45 36 25 AB 6C [15:05:57]Write to MH i2c: E2 0D 00 10 05 80 0D 02 02 05 00 45 36 25 AB 6C 00 00 50 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [15:05:57]RAPDU: 90 00 [15:05:57]wFMCommunicate OK [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 0D 03 02 [15:05:57]Write to MH i2c: E2 08 00 11 05 80 0D 03 02 00 00 00 00 91 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 0B 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 0B 00 11 05 00 7C 85 04 A5 74 2D FA 82 90 00 59 [15:05:57]RAPDU: 7C 85 04 A5 74 2D FA 82 90 00 [15:05:57]wFMCommunicate OK [15:05:57]SAM_PROTO_SignData done [15:05:57]FM_MakeSignedData done [15:05:57]CreateOFDProtocolMessage [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 11 00 00 [15:05:57]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:58]Read from MH i2c: E2 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 17 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 EA [15:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:05:58]wFMCommunicate OK [15:05:58]CreateOFDProtocolMessage done [15:05:58]OFDSenderStorePacket 178667 [15:05:58]StoreOFDPacket docnum=178667 [15:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 21 9F 07 01 AE 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 54 A5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EB B9 02 00 35 04 06 00 D5 45 36 25 AB 6C 7C 85 04 A5 74 2D FA 82 [15:05:58]CheckFolder [15:05:58]dirname=/storage/ofd_packets [15:05:58]CheckFolder done [15:05:58]ProducePacketName [15:05:58]name=ofd_packets/00178667 [15:05:58]NVStorageSaveData ofd_packets/00178667 [15:05:58]File name is /storage/ofd_packets/00178667 [15:05:58]Write 301 bytes [15:05:58]NVStorageSaveData done [15:05:58]OFDSenderStorePacket done [15:05:58]KKMCreateOFDPacket done [15:05:58]NVStorageSaveData kkm_last_timestamp [15:05:58]File name is /storage/kkm_last_timestamp [15:05:58]Write 4 bytes [15:05:58]NVStorageSaveData done [15:05:58]ExternCall_PrintAddStr [15:05:58]wPrintStart [15:05:58]Write to MH i2c: 01 00 00 13 05 18 [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 07 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [15:05:58]RasterBufferAndPrint [15:05:58]line Счет N : (1)294369 [15:05:58]line ИНН: 02508201610067 [15:05:58]line Контрольно-Кассовый Чек [15:05:58]line ПРОДАЖА [15:05:58]line ТРК (МРК, ГНК) : 43 [15:05:58]line Товар: 2710124500 [15:05:58]line Аи-95-К-5 [15:05:58]line 13.480 * 74.20 [15:05:58]line = 1000.22 [15:05:58]line НДС 12% НСП 1% [15:05:58]line > о реализуемом товаре [15:05:58]line ОКРУГЛЕНИЕ: -0.22 [15:05:58]line ИТОГО: 1000.00 [15:05:58]line Внесено: 1000.00 [15:05:58]line СДАЧА: 0.00 [15:05:58]line НСП 1% : 8.85 [15:05:58]line НДС 12% : 106.22 [15:05:58]line Наличными: 1000.00 [15:05:58]line Безнал.: 0.00 [15:05:58]line Место: АЗС № 130 "Партнер Нефть" [15:05:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:05:58]line СНО: Общий режим [15:05:58]line Чек 127 23.08.2024 15:05 [15:05:58]line Смена: 470 ФФД: 1.0 [15:05:58]line ЗНМ: 0300000071 [15:05:58]line РНМ: 0000000000092561 [15:05:58]line Версия ККМ: 001 [15:05:58]line ФМ: 0000000000871778 [15:05:58]line ФД: 178667 [15:05:58]line ФПД: 234493237898092 [15:05:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T150556&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178667&fm=234493237898092&tin=02508201610067®Number=0000000000092561&sum=100000 [15:05:58]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:05:58]ProducePacketName [15:05:58]name=ofd_packets/00178667 [15:05:58]OFD Sender: To server: pG, [15:05:58]CommunicateWithHost lk.salyk.kg:30040 [15:05:58]ConnectInit lk.salyk.kg [15:05:58]written 0, free lines is 4095 [15:05:58]Write to MH i2c: 01 00 00 3E 05 43 [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 07 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 E7 0C 3D [15:05:58]RasterBufferAndPrint [15:05:58]line [15:05:58]line [15:05:58]line [15:05:58]line [15:05:58]line [15:05:58]written 0, free lines is 3310 [15:05:58]MH_Cut [15:05:58]Write to MH i2c: D1 01 00 45 05 01 1C [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: D1 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: D1 01 00 [15:05:58]MH_I2C_Read... [15:05:58]Read from MH i2c: D1 01 00 45 05 00 1B [15:05:58]Write to MH i2c: 01 00 00 46 05 4B [15:05:58]Write i2c OK [15:05:58]MH_I2C_Read... [15:05:59]*** Cut start [15:05:59]*** Partial cut [15:05:59]*** CUTSNS_PIN = 1 [15:05:59]*** CUTSNS_PIN = 0 [15:05:59]*** Brake cut motor [15:06:00]Read from MH i2c: 01 [15:06:00]MH_I2C_Read... [15:06:00]*** Stop cut motor [15:06:00]*** Cut end [15:06:00]Read from MH i2c: 01 07 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [15:06:00]process_action close_receipt done [15:06:00]requested_data is exist [15:06:00]produce_requested_data [15:06:00]requested_item fm.sn is exist - process it [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 11 00 00 [15:06:00]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 17 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1F [15:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:06:00]wFMCommunicate OK [15:06:00]requested_item fd.num is exist - process it [15:06:00]SAM_PROTO_GetFieldsCounters [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 13 00 00 [15:06:00]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 62 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EB B9 02 00 0E 04 04 00 D6 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 E8 [15:06: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EB B9 02 00 0E 04 04 00 D6 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:06:00]wFMCommunicate OK [15:06:00]SAM_PROTO_GetFieldsCounters done [15:06:00]requested_item shift.num is exist - process it [15:06:00]requested_item shift.opened is exist - process it [15:06:00]req_shift_opened [15:06:00]FM_GetShiftState [15:06:00]SAM_PROTO_GetShiftState [15:06:00]wFMCommunicate request_size=4 [15:06:00]MH_SAM_APDU [15:06:00]CAPDU: 80 13 01 00 [15:06:00]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [15:06:00]Write i2c OK [15:06:00]MH_I2C_Read... [15:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:00]Read from MH i2c: E2 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 0E 00 [15:06:00]MH_I2C_Read... [15:06:00]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A2 [15:06:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:06:00]wFMCommunicate OK [15:06:00]SAM_PROTO_GetShiftState done [15:06:00]FM_GetShiftState done [15:06:00]req_shift_opened done [15:06:00]requested_item shift.open_date is exist - process it [15:06:00]req_shift_open_date [15:06:00]req_shift_open_date done [15:06:00]produce_requested_data done [15:06:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178667,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:06:00]process_action_free close_receipt [15:06:00]json_value_free [15:06:00]json_value_free done [15:06:00]process_json_proto returns [15:06:00]Send response to host [15:06:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178667,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:06:00]free response buf [15:06:00]execute_script done [15:06:00]execute_script returns [15:06:00]free content buf [15:06:00]Sock 7.Close socket [15:06:00]Sock 7.Thread stoped [15:06:03]ConnectInit Can't take IP for lk.salyk.kg [15:06:03]CommunicateWithHost connect error [15:06:03]CommunicateWithHost err = -1 [15:06:03]OFD Sender: Server communicate error [15:06:08]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:06:08]ProducePacketName [15:06:08]name=ofd_packets/00178667 [15:06:08]OFD Sender: To server: pG, [15:06:08]CommunicateWithHost lk.salyk.kg:30040 [15:06:08]ConnectInit lk.salyk.kg [15:06:10]recv_with_timeout no data received [15:06:13]ConnectInit Can't take IP for lk.salyk.kg [15:06:13]CommunicateWithHost connect error [15:06:13]CommunicateWithHost err = -1 [15:06:13]OFD Sender: Server communicate error [15:06:18]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:06:18]ProducePacketName [15:06:18]name=ofd_packets/00178667 [15:06:18]OFD Sender: To server: pG, [15:06:18]CommunicateWithHost lk.salyk.kg:30040 [15:06:18]ConnectInit lk.salyk.kg [15:06:23]ConnectInit Can't take IP for lk.salyk.kg [15:06:23]CommunicateWithHost connect error [15:06:23]CommunicateWithHost err = -1 [15:06:23]OFD Sender: Server communicate error [15:06:28]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:06:28]ProducePacketName [15:06:28]name=ofd_packets/00178667 [15:06:28]OFD Sender: To server: pG, [15:06:28]CommunicateWithHost lk.salyk.kg:30040 [15:06:28]ConnectInit lk.salyk.kg [15:06:29]recv_with_timeout no data received [15:06:33]ConnectInit Can't take IP for lk.salyk.kg [15:06:33]CommunicateWithHost connect error [15:06:33]CommunicateWithHost err = -1 [15:06:33]OFD Sender: Server communicate error [15:06:38]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:06:38]ProducePacketName [15:06:38]name=ofd_packets/00178667 [15:06:38]OFD Sender: To server: pG, [15:06:38]CommunicateWithHost lk.salyk.kg:30040 [15:06:38]ConnectInit lk.salyk.kg [15:06:43]ConnectInit Can't take IP for lk.salyk.kg [15:06:43]CommunicateWithHost connect error [15:06:43]CommunicateWithHost err = -1 [15:06:43]OFD Sender: Server communicate error [15:06:48]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:06:48]ProducePacketName [15:06:48]name=ofd_packets/00178667 [15:06:48]OFD Sender: To server: pG, [15:06:48]CommunicateWithHost lk.salyk.kg:30040 [15:06:48]ConnectInit lk.salyk.kg [15:06:52]recv_with_timeout no data received [15:06:53]ConnectInit Can't take IP for lk.salyk.kg [15:06:53]CommunicateWithHost connect error [15:06:53]CommunicateWithHost err = -1 [15:06:53]OFD Sender: Server communicate error [15:07:38]ConnectInit Can't connect to host [15:07:38]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:07:38]ProducePacketName [15:07:38]name=ofd_packets/00178667 [15:07:38]OFD Sender: To server: pG, [15:07:38]CommunicateWithHost lk.salyk.kg:30040 [15:07:38]ConnectInit lk.salyk.kg [15:07:43]ConnectInit Can't take IP for lk.salyk.kg [15:07:43]CommunicateWithHost connect error [15:07:43]CommunicateWithHost err = -1 [15:07:43]OFD Sender: Server communicate error [15:07:48]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:07:48]ProducePacketName [15:07:48]name=ofd_packets/00178667 [15:07:48]OFD Sender: To server: pG, [15:07:48]CommunicateWithHost lk.salyk.kg:30040 [15:07:48]ConnectInit lk.salyk.kg [15:07:53]ConnectInit Can't take IP for lk.salyk.kg [15:07:53]CommunicateWithHost connect error [15:07:53]CommunicateWithHost err = -1 [15:07:53]OFD Sender: Server communicate error [15:07:58]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:07:58]ProducePacketName [15:07:58]name=ofd_packets/00178667 [15:07:58]OFD Sender: To server: pG, [15:07:58]CommunicateWithHost lk.salyk.kg:30040 [15:07:58]ConnectInit lk.salyk.kg [15:08:03]ConnectInit Can't take IP for lk.salyk.kg [15:08:03]CommunicateWithHost connect error [15:08:03]CommunicateWithHost err = -1 [15:08:03]OFD Sender: Server communicate error [15:08:08]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:08:08]ProducePacketName [15:08:08]name=ofd_packets/00178667 [15:08:08]OFD Sender: To server: pG, [15:08:08]CommunicateWithHost lk.salyk.kg:30040 [15:08:08]ConnectInit lk.salyk.kg [15:08:13]recv_with_timeout no data received [15:08:13]ConnectInit Can't take IP for lk.salyk.kg [15:08:13]CommunicateWithHost connect error [15:08:13]CommunicateWithHost err = -1 [15:08:13]OFD Sender: Server communicate error [15:08:18]OFD Sender: Processing packet 178667 [packets to send 498, broken 497] [15:08:18]ProducePacketName [15:08:18]name=ofd_packets/00178667 [15:08:18]OFD Sender: To server: pG, [15:08:18]CommunicateWithHost lk.salyk.kg:30040 [15:08:18]ConnectInit lk.salyk.kg [15:08:21]Connected sock=9 [15:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 21 9F 07 01 AE 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 54 A5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EB B9 02 00 35 04 06 00 D5 45 36 25 AB 6C 7C 85 04 A5 74 2D FA 82 [15:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9C 5F 47 00 0A 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 31 37 37 38 10 04 04 00 EB B9 02 00 F4 03 04 00 8A 51 C8 66 B6 04 01 00 00 F5 1B DB CD 6D 22 AB 9A [15:08:22]CommunicateWithHost err = 0 [15:08:22]CheckOFDResponse [15:08:22]1017 (14) - 77093643461234 [15:08:22]1041 (16) - 0000000000871778 [15:08:22]1040 (4) - 178667 [15:08:22]1012 (4) - 23.08.2024 09:08 [15:08:22]1206 (1) - 0 [15:08:22]OFD Sender: Remove packet 178667 [15:08:22]ProducePacketName [15:08:22]name=ofd_packets/00178667 [15:08:22]NVStorageDeleteData [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:31]recv_with_timeout no data received [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:02]recv_with_timeout no data received [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:21]recv_with_timeout no data received [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:43]recv_with_timeout no data received [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:34]accept exits with 10 [15:17:34]New connection [15:17:34]New thread 3066821988 created [15:17:34]Thread 3066678628 joined [15:17:34]Waiting for new connection... [15:17:34] Sock 10.Parse request [15:17:34]Sock 10.Check first char [15:17:34]Sock 10.First char is OK [15:17:34]request: POST /json_proto HTTP/1.0 [15:17:34]Method: POST [15:17:34]URL: /json_proto [15:17:34]Method is POST - this is cgi request [15:17:34]url: /json_proto [15:17:34]query_string will be loaded in cgi processing [15:17:34]execute_cgi json_proto POST (null) [15:17:34]execute_cgi path=json_proto method=POST [15:17:34]POST find Content-Length [15:17:34]Host: 172.17.44.131:8080 [15:17:34]Content-Length: 679 [15:17:34]Content-Type: application/json [15:17:34] [15:17:34]POST finish read [15:17:34]Found Content-Length = 679 [15:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:34]execute_script... [15:17:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:34]POST & json_proto [15:17:34]process_json_proto [15:17:34]json parsed OK: [15:17:34]protocol is kg_v1.0 [15:17:34]action value=close_receipt [15:17:34]process_action close_receipt [15:17:34]cmd_close_receipt [15:17:34]MH_GetDate [15:17:34]Write to MH i2c: F0 00 00 4A 05 3E [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: F0 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: F0 09 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: F0 09 00 4A 05 00 0E A8 C8 66 4F 53 BE 66 F1 [15:17:34]GetLastDocTimeStamp 1724425556 [15:17:34]current date 1724426254 [15:17:34]FM_GetShiftState [15:17:34]SAM_PROTO_GetShiftState [15:17:34]wFMCommunicate request_size=4 [15:17:34]MH_SAM_APDU [15:17:34]CAPDU: 80 13 01 00 [15:17:34]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [15:17:34]Write i2c OK [15:17:34]MH_I2C_Read... [15:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:34]Read from MH i2c: E2 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 0E 00 [15:17:34]MH_I2C_Read... [15:17:34]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A4 [15:17:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:17:34]wFMCommunicate OK [15:17:34]SAM_PROTO_GetShiftState done [15:17:34]FM_GetShiftState done [15:17:34]opened in 1724371660 [15:17:34]opened+sec_in_day 1724458060 [15:17:34]quantity*price = 100050 [15:17:34]sum+1 = 100052 [15:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 128 23.08.2024 15:17 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178668 ФПД: 121558457555649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T151735&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178668&fm=121558457555649&tin=02508201610067®Number=0000000000092561&sum=100000 [15:17:35]StoreToDocumentArchive [15:17:35]shift 470 fd 178668 [15:17:35]save to /storage/0470/doc_00178668 [15:17:35]save last doc name /storage/0470/doc_00178668 to /storage/kkm_last_doc_name [15:17:35]save OK [15:17:35]Clear old archive folders... [15:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:17:35]tlvbuf is 0147EB70 [15:17:35]SAM_PROTO_ClearQueue [15:17:35]wFMCommunicate request_size=4 [15:17:35]MH_SAM_APDU [15:17:35]CAPDU: 80 09 00 00 [15:17:35]Write to MH i2c: E2 08 00 58 05 80 09 00 00 00 00 00 00 CF [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:35]Read from MH i2c: E2 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 03 00 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [15:17:35]RAPDU: 90 00 [15:17:35]wFMCommunicate OK [15:17:35]SAM_PROTO_ClearQueue done [15:17:35]KKMCreateOFDPacket [15:17:35]OFDProtocolAddRootSTLVToBuf [15:17:35]FM_MakeSignedData [15:17:35]FM_MakeSignedData [15:17:35]SAM_PROTO_SignData [15:17:35]wFMCommunicate request_size=4 [15:17:35]MH_SAM_APDU [15:17:35]CAPDU: 80 0D 01 02 [15:17:35]Write to MH i2c: E2 08 00 59 05 80 0D 01 02 00 00 00 00 D7 [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:35]Read from MH i2c: E2 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 03 00 [15:17:35]MH_I2C_Read... [15:17:35]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [15:17:35]RAPDU: 90 00 [15:17:35]wFMCommunicate OK [15:17:35]wFMCommunicate request_size=255 [15:17:35]MH_SAM_APDU [15:17:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0F A8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EC B9 02 00 35 04 06 00 6E 8E 88 AE [15:17:35]Write to MH i2c: E2 02 01 5A 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0F A8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EC B9 02 00 35 04 06 00 6E 8E 88 AE 00 00 7A [15:17:35]Write i2c OK [15:17:35]MH_I2C_Read... [15:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 03 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [15:17:36]RAPDU: 90 00 [15:17:36]wFMCommunicate OK [15:17:36]wFMCommunicate request_size=7 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 0D 02 02 02 9A C1 [15:17:36]Write to MH i2c: E2 0A 00 5B 05 80 0D 02 02 02 00 9A C1 00 00 39 [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 03 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [15:17:36]RAPDU: 90 00 [15:17:36]wFMCommunicate OK [15:17:36]wFMCommunicate request_size=4 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 0D 03 02 [15:17:36]Write to MH i2c: E2 08 00 5C 05 80 0D 03 02 00 00 00 00 DC [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 0B 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 0B 00 5C 05 00 0C 83 38 54 A0 EA 7B A7 90 00 A4 [15:17:36]RAPDU: 0C 83 38 54 A0 EA 7B A7 90 00 [15:17:36]wFMCommunicate OK [15:17:36]SAM_PROTO_SignData done [15:17:36]FM_MakeSignedData done [15:17:36]CreateOFDProtocolMessage [15:17:36]wFMCommunicate request_size=4 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 11 00 00 [15:17:36]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 17 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 35 [15:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:17:36]wFMCommunicate OK [15:17:36]CreateOFDProtocolMessage done [15:17:36]OFDSenderStorePacket 178668 [15:17:36]StoreOFDPacket docnum=178668 [15:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 AE 07 04 01 7F AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0F A8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EC B9 02 00 35 04 06 00 6E 8E 88 AE 9A C1 0C 83 38 54 A0 EA 7B A7 [15:17:36]CheckFolder [15:17:36]dirname=/storage/ofd_packets [15:17:36]CheckFolder done [15:17:36]ProducePacketName [15:17:36]name=ofd_packets/00178668 [15:17:36]NVStorageSaveData ofd_packets/00178668 [15:17:36]File name is /storage/ofd_packets/00178668 [15:17:36]Write 298 bytes [15:17:36]NVStorageSaveData done [15:17:36]OFDSenderStorePacket done [15:17:36]KKMCreateOFDPacket done [15:17:36]NVStorageSaveData kkm_last_timestamp [15:17:36]File name is /storage/kkm_last_timestamp [15:17:36]Write 4 bytes [15:17:36]NVStorageSaveData done [15:17:36]ExternCall_PrintAddStr [15:17:36]wPrintStart [15:17:36]Write to MH i2c: 01 00 00 5E 05 63 [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 07 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [15:17:36]RasterBufferAndPrint [15:17:36]line Счет N : (1)294384 [15:17:36]line ИНН: 02508201610067 [15:17:36]line Контрольно-Кассовый Чек [15:17:36]line ПРОДАЖА [15:17:36]line ТРК (МРК, ГНК) : 34 [15:17:36]line Товар: 2710194800 [15:17:36]line ДТ-К-5 [15:17:36]line 13.130 * 76.20 [15:17:36]line = 1000.51 [15:17:36]line НДС 12% НСП 1% [15:17:36]line > о реализуемом товаре [15:17:36]line ОКРУГЛЕНИЕ: -0.51 [15:17:36]line ИТОГО: 1000.00 [15:17:36]line Внесено: 1000.00 [15:17:36]line СДАЧА: 0.00 [15:17:36]line НСП 1% : 8.85 [15:17:36]line НДС 12% : 106.25 [15:17:36]line Наличными: 1000.00 [15:17:36]line Безнал.: 0.00 [15:17:36]line Место: АЗС № 130 "Партнер Нефть" [15:17:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:17:36]line СНО: Общий режим [15:17:36]line Чек 128 23.08.2024 15:17 [15:17:36]line Смена: 470 ФФД: 1.0 [15:17:36]line ЗНМ: 0300000071 [15:17:36]line РНМ: 0000000000092561 [15:17:36]line Версия ККМ: 001 [15:17:36]line ФМ: 0000000000871778 [15:17:36]line ФД: 178668 [15:17:36]line ФПД: 121558457555649 [15:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T151735&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178668&fm=121558457555649&tin=02508201610067®Number=0000000000092561&sum=100000 [15:17:36]OFD Sender: Processing packet 178668 [packets to send 498, broken 497] [15:17:36]ProducePacketName [15:17:36]name=ofd_packets/00178668 [15:17:36]OFD Sender: To server: pG, [15:17:36]CommunicateWithHost lk.salyk.kg:30040 [15:17:36]ConnectInit lk.salyk.kg [15:17:36]written 0, free lines is 4095 [15:17:36]Connected sock=9 [15:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 AE 07 04 01 7F AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 0F A8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EC B9 02 00 35 04 06 00 6E 8E 88 AE 9A C1 0C 83 38 54 A0 EA 7B A7 [15:17:36]Write to MH i2c: 01 00 00 89 05 8E [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 07 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 EE 0C 8F [15:17:36]RasterBufferAndPrint [15:17:36]line [15:17:36]line [15:17:36]line [15:17:36]line [15:17:36]line [15:17:36]written 0, free lines is 3316 [15:17:36]MH_Cut [15:17:36]Write to MH i2c: D1 01 00 90 05 01 67 [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: D1 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: D1 01 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: D1 01 00 90 05 00 66 [15:17:36]Write to MH i2c: 01 00 00 91 05 96 [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:37]*** Cut start [15:17:37]*** Partial cut [15:17:37]*** CUTSNS_PIN = 1 [15:17:37]*** CUTSNS_PIN = 0 [15:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C5 60 47 00 72 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 31 37 37 38 10 04 04 00 EC B9 02 00 F4 03 04 00 B6 53 C8 66 B6 04 01 00 00 5E 5C F1 17 05 09 FF 89 [15:17:37]CommunicateWithHost err = 0 [15:17:37]CheckOFDResponse [15:17:37]1017 (14) - 77093643461234 [15:17:37]1041 (16) - 0000000000871778 [15:17:37]1040 (4) - 178668 [15:17:37]1012 (4) - 23.08.2024 09:17 [15:17:37]1206 (1) - 0 [15:17:37]OFD Sender: Remove packet 178668 [15:17:37]ProducePacketName [15:17:37]name=ofd_packets/00178668 [15:17:37]NVStorageDeleteData [15:17:37]*** Brake cut motor [15:17:38]Read from MH i2c: 01 [15:17:38]MH_I2C_Read... [15:17:38]*** Stop cut motor [15:17:38]*** Cut end [15:17:38]Read from MH i2c: 01 07 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [15:17:38]process_action close_receipt done [15:17:38]requested_data is exist [15:17:38]produce_requested_data [15:17:38]requested_item fm.sn is exist - process it [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 11 00 00 [15:17:38]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6A [15:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:17:38]wFMCommunicate OK [15:17:38]requested_item fd.num is exist - process it [15:17:38]SAM_PROTO_GetFieldsCounters [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 13 00 00 [15:17:38]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]OFD Sender: No OFD packet to send [15:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 62 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EC B9 02 00 0E 04 04 00 D6 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 37 [15:17: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EC B9 02 00 0E 04 04 00 D6 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:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_GetFieldsCounters done [15:17:38]requested_item shift.num is exist - process it [15:17:38]requested_item shift.opened is exist - process it [15:17:38]req_shift_opened [15:17:38]FM_GetShiftState [15:17:38]SAM_PROTO_GetShiftState [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 13 01 00 [15:17:38]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0E 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 ED [15:17:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_GetShiftState done [15:17:38]FM_GetShiftState done [15:17:38]req_shift_opened done [15:17:38]requested_item shift.open_date is exist - process it [15:17:38]req_shift_open_date [15:17:38]req_shift_open_date done [15:17:38]produce_requested_data done [15:17:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178668,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:17:38]process_action_free close_receipt [15:17:38]json_value_free [15:17:38]json_value_free done [15:17:38]process_json_proto returns [15:17:38]Send response to host [15:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178668,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:17:38]free response buf [15:17:38]execute_script done [15:17:38]execute_script returns [15:17:38]free content buf [15:17:38]Sock 10.Close socket [15:17:38]Sock 10.Thread stoped [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]recv_with_timeout no data received [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:23]OFD Sender: No OFD packet to send [15:21:28]OFD Sender: No OFD packet to send [15:21:33]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:29]ConnectInit Can't connect to host [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:32]recv_with_timeout no data received [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:14]accept exits with 7 [15:24:14]New connection [15:24:14]New thread 3066678628 created [15:24:14]Thread 3066821988 joined [15:24:14]Waiting for new connection... [15:24:14] Sock 7.Parse request [15:24:14]Sock 7.Check first char [15:24:14]Sock 7.First char is OK [15:24:14]request: POST /json_proto HTTP/1.0 [15:24:14]Method: POST [15:24:14]URL: /json_proto [15:24:14]Method is POST - this is cgi request [15:24:14]url: /json_proto [15:24:14]query_string will be loaded in cgi processing [15:24:14]execute_cgi json_proto POST (null) [15:24:14]execute_cgi path=json_proto method=POST [15:24:14]POST find Content-Length [15:24:14]Host: 172.17.44.131:8080 [15:24:14]Content-Length: 674 [15:24:14]Content-Type: application/json [15:24:14] [15:24:14]POST finish read [15:24:14]Found Content-Length = 674 [15:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:14]execute_script... [15:24: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)294394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:14]POST & json_proto [15:24:14]process_json_proto [15:24:14]json parsed OK: [15:24:14]protocol is kg_v1.0 [15:24:14]action value=close_receipt [15:24:14]process_action close_receipt [15:24:14]cmd_close_receipt [15:24:14]MH_GetDate [15:24:14]Write to MH i2c: F0 00 00 95 05 89 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: F0 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: F0 09 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: F0 09 00 95 05 00 9F A9 C8 66 4F 53 BE 66 CE [15:24:14]GetLastDocTimeStamp 1724426255 [15:24:14]current date 1724426655 [15:24:14]FM_GetShiftState [15:24:14]SAM_PROTO_GetShiftState [15:24:14]wFMCommunicate request_size=4 [15:24:14]MH_SAM_APDU [15:24:14]CAPDU: 80 13 01 00 [15:24:14]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 EF [15:24:15]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_GetShiftState done [15:24:15]FM_GetShiftState done [15:24:15]opened in 1724371660 [15:24:15]opened+sec_in_day 1724458060 [15:24:15]quantity*price = 50063 [15:24:15]sum+1 = 50064 [15:24:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 129 23.08.2024 15:24 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178669 ФПД: 175388106384511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T152415&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178669&fm=175388106384511&tin=02508201610067®Number=0000000000092561&sum=50000 [15:24:16]StoreToDocumentArchive [15:24:16]shift 470 fd 178669 [15:24:16]save to /storage/0470/doc_00178669 [15:24:16]save last doc name /storage/0470/doc_00178669 to /storage/kkm_last_doc_name [15:24:16]save OK [15:24:16]Clear old archive folders... [15:24:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:24:16]tlvbuf is 0147E620 [15:24:16]SAM_PROTO_ClearQueue [15:24:16]wFMCommunicate request_size=4 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 09 00 00 [15:24:16]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [15:24:16]RAPDU: 90 00 [15:24:16]wFMCommunicate OK [15:24:16]SAM_PROTO_ClearQueue done [15:24:16]KKMCreateOFDPacket [15:24:16]OFDProtocolAddRootSTLVToBuf [15:24:16]FM_MakeSignedData [15:24:16]FM_MakeSignedData [15:24:16]SAM_PROTO_SignData [15:24:16]wFMCommunicate request_size=4 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 0D 01 02 [15:24:16]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [15:24:16]RAPDU: 90 00 [15:24:16]wFMCommunicate OK [15:24:16]wFMCommunicate request_size=255 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F A9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 ED B9 02 00 35 04 06 00 9F 83 B9 C7 [15:24:16]Write to MH i2c: E2 02 01 A5 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F A9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 ED B9 02 00 35 04 06 00 9F 83 B9 C7 00 00 50 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [15:24:16]RAPDU: 90 00 [15:24:16]wFMCommunicate OK [15:24:16]wFMCommunicate request_size=7 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 0D 02 02 02 64 7F [15:24:16]Write to MH i2c: E2 0A 00 A6 05 80 0D 02 02 02 00 64 7F 00 00 0C [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [15:24:16]RAPDU: 90 00 [15:24:16]wFMCommunicate OK [15:24:16]wFMCommunicate request_size=4 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 0D 03 02 [15:24:16]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 0B 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 0B 00 A7 05 00 45 27 D0 3F 41 C7 7B D9 90 00 FF [15:24:16]RAPDU: 45 27 D0 3F 41 C7 7B D9 90 00 [15:24:16]wFMCommunicate OK [15:24:16]SAM_PROTO_SignData done [15:24:16]FM_MakeSignedData done [15:24:16]CreateOFDProtocolMessage [15:24:16]wFMCommunicate request_size=4 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 11 00 00 [15:24:16]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 17 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 80 [15:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:24:16]wFMCommunicate OK [15:24:16]CreateOFDProtocolMessage done [15:24:16]OFDSenderStorePacket 178669 [15:24:16]StoreOFDPacket docnum=178669 [15:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 3C 1B 04 01 EC 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F A9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 ED B9 02 00 35 04 06 00 9F 83 B9 C7 64 7F 45 27 D0 3F 41 C7 7B D9 [15:24:16]CheckFolder [15:24:16]dirname=/storage/ofd_packets [15:24:16]CheckFolder done [15:24:16]ProducePacketName [15:24:16]name=ofd_packets/00178669 [15:24:16]NVStorageSaveData ofd_packets/00178669 [15:24:16]File name is /storage/ofd_packets/00178669 [15:24:16]Write 298 bytes [15:24:16]NVStorageSaveData done [15:24:16]OFDSenderStorePacket done [15:24:16]KKMCreateOFDPacket done [15:24:16]NVStorageSaveData kkm_last_timestamp [15:24:16]File name is /storage/kkm_last_timestamp [15:24:16]Write 4 bytes [15:24:16]NVStorageSaveData done [15:24:16]ExternCall_PrintAddStr [15:24:16]wPrintStart [15:24:16]Write to MH i2c: 01 00 00 A9 05 AE [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 07 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [15:24:16]RasterBufferAndPrint [15:24:16]line Счет N : (1)294394 [15:24:16]line ИНН: 02508201610067 [15:24:16]line Контрольно-Кассовый Чек [15:24:16]line ПРОДАЖА [15:24:16]line ТРК (МРК, ГНК) : 44 [15:24:16]line Товар: 2710194800 [15:24:16]line ДТ-К-5 [15:24:16]line 6.570 * 76.20 [15:24:16]line = 500.63 [15:24:16]line НДС 12% НСП 1% [15:24:16]line > о реализуемом товаре [15:24:16]line ОКРУГЛЕНИЕ: -0.63 [15:24:16]line ИТОГО: 500.00 [15:24:16]line Внесено: 500.00 [15:24:16]line СДАЧА: 0.00 [15:24:16]line НСП 1% : 4.43 [15:24:16]line НДС 12% : 53.16 [15:24:16]line Наличными: 500.00 [15:24:16]line Безнал.: 0.00 [15:24:16]line Место: АЗС № 130 "Партнер Нефть" [15:24:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:24:16]line СНО: Общий режим [15:24:16]line Чек 129 23.08.2024 15:24 [15:24:16]line Смена: 470 ФФД: 1.0 [15:24:16]line ЗНМ: 0300000071 [15:24:16]line РНМ: 0000000000092561 [15:24:16]line Версия ККМ: 001 [15:24:16]line ФМ: 0000000000871778 [15:24:16]line ФД: 178669 [15:24:16]line ФПД: 175388106384511 [15:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T152415&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178669&fm=175388106384511&tin=02508201610067®Number=0000000000092561&sum=50000 [15:24:16]OFD Sender: Processing packet 178669 [packets to send 498, broken 497] [15:24:16]ProducePacketName [15:24:16]name=ofd_packets/00178669 [15:24:16]OFD Sender: To server: pG, [15:24:16]CommunicateWithHost lk.salyk.kg:30040 [15:24:16]ConnectInit lk.salyk.kg [15:24:16]written 0, free lines is 4095 [15:24:17]Write to MH i2c: 01 00 00 D4 05 D9 [15:24:17]Write i2c OK [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: 01 [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: 01 07 00 [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 E0 0C CC [15:24:17]RasterBufferAndPrint [15:24:17]line [15:24:17]line [15:24:17]line [15:24:17]line [15:24:17]line [15:24:17]written 0, free lines is 3302 [15:24:17]MH_Cut [15:24:17]Write to MH i2c: D1 01 00 DB 05 01 B2 [15:24:17]Write i2c OK [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: D1 [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: D1 01 00 [15:24:17]MH_I2C_Read... [15:24:17]Read from MH i2c: D1 01 00 DB 05 00 B1 [15:24:17]Write to MH i2c: 01 00 00 DC 05 E1 [15:24:17]Write i2c OK [15:24:17]MH_I2C_Read... [15:24:18]*** Cut start [15:24:18]*** Partial cut [15:24:18]*** CUTSNS_PIN = 1 [15:24:18]*** CUTSNS_PIN = 0 [15:24:18]*** Brake cut motor [15:24:18]Connected sock=11 [15:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 3C 1B 04 01 EC 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 9F A9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 ED B9 02 00 35 04 06 00 9F 83 B9 C7 64 7F 45 27 D0 3F 41 C7 7B D9 [15:24:18]Read from MH i2c: 01 [15:24:18]MH_I2C_Read... [15:24:18]*** Stop cut motor [15:24:18]*** Cut end [15:24:18]Read from MH i2c: 01 07 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [15:24:18]process_action close_receipt done [15:24:18]requested_data is exist [15:24:18]produce_requested_data [15:24:18]requested_item fm.sn is exist - process it [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 11 00 00 [15:24:18]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:18]Read from MH i2c: E2 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 17 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B5 [15:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:24:18]wFMCommunicate OK [15:24:18]requested_item fd.num is exist - process it [15:24:18]SAM_PROTO_GetFieldsCounters [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 13 00 00 [15:24:18]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:18]Read from MH i2c: E2 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 62 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 ED B9 02 00 0E 04 04 00 D6 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 86 [15:24: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 ED B9 02 00 0E 04 04 00 D6 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:24:18]wFMCommunicate OK [15:24:18]SAM_PROTO_GetFieldsCounters done [15:24:18]requested_item shift.num is exist - process it [15:24:18]requested_item shift.opened is exist - process it [15:24:18]req_shift_opened [15:24:18]FM_GetShiftState [15:24:18]SAM_PROTO_GetShiftState [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 13 01 00 [15:24:18]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:18]Read from MH i2c: E2 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 0E 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 38 [15:24:18]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:24:18]wFMCommunicate OK [15:24:18]SAM_PROTO_GetShiftState done [15:24:18]FM_GetShiftState done [15:24:18]req_shift_opened done [15:24:18]requested_item shift.open_date is exist - process it [15:24:18]req_shift_open_date [15:24:18]req_shift_open_date done [15:24:18]produce_requested_data done [15:24:18]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178669,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:24:18]process_action_free close_receipt [15:24:18]json_value_free [15:24:18]json_value_free done [15:24:18]process_json_proto returns [15:24:18]Send response to host [15:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178669,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:24:18]free response buf [15:24:18]execute_script done [15:24:18]execute_script returns [15:24:18]free content buf [15:24:18]Sock 7.Close socket [15:24:18]Sock 7.Thread stoped [15:24:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 76 10 47 00 38 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 31 37 37 38 10 04 04 00 ED B9 02 00 F4 03 04 00 48 55 C8 66 B6 04 01 00 00 6D E8 E5 7D AE 17 2E 24 [15:24:19]CommunicateWithHost err = 0 [15:24:19]CheckOFDResponse [15:24:19]1017 (14) - 77093643461234 [15:24:19]1041 (16) - 0000000000871778 [15:24:19]1040 (4) - 178669 [15:24:19]1012 (4) - 23.08.2024 09:24 [15:24:19]1206 (1) - 0 [15:24:19]OFD Sender: Remove packet 178669 [15:24:19]ProducePacketName [15:24:19]name=ofd_packets/00178669 [15:24:19]NVStorageDeleteData [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:50]recv_with_timeout no data received [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:03]recv_with_timeout no data received [15:25:05]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:38]recv_with_timeout no data received [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:52]accept exits with 10 [15:27:52]New connection [15:27:52]New thread 3066821988 created [15:27:52]Thread 3066678628 joined [15:27:52]Waiting for new connection... [15:27:52] Sock 10.Parse request [15:27:52]Sock 10.Check first char [15:27:52]Sock 10.First char is OK [15:27:52]request: POST /json_proto HTTP/1.0 [15:27:52]Method: POST [15:27:52]URL: /json_proto [15:27:52]Method is POST - this is cgi request [15:27:52]url: /json_proto [15:27:52]query_string will be loaded in cgi processing [15:27:52]execute_cgi json_proto POST (null) [15:27:52]execute_cgi path=json_proto method=POST [15:27:52]POST find Content-Length [15:27:52]Host: 172.17.44.131:8080 [15:27:52]Content-Length: 677 [15:27:52]Content-Type: application/json [15:27:52] [15:27:52]POST finish read [15:27:52]Found Content-Length = 677 [15:27:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294399", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:27:52]execute_script... [15:27: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)294399", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:27:52]POST & json_proto [15:27:52]process_json_proto [15:27:52]json parsed OK: [15:27:52]protocol is kg_v1.0 [15:27:52]action value=close_receipt [15:27:52]process_action close_receipt [15:27:52]cmd_close_receipt [15:27:52]MH_GetDate [15:27:52]Write to MH i2c: F0 00 00 E0 05 D4 [15:27:52]Write i2c OK [15:27:52]MH_I2C_Read... [15:27:52]Read from MH i2c: F0 [15:27:52]MH_I2C_Read... [15:27:52]Read from MH i2c: F0 09 00 [15:27:52]MH_I2C_Read... [15:27:52]Read from MH i2c: F0 09 00 E0 05 00 79 AA C8 66 4F 53 BE 66 F4 [15:27:52]GetLastDocTimeStamp 1724426655 [15:27:52]current date 1724426873 [15:27:52]FM_GetShiftState [15:27:52]SAM_PROTO_GetShiftState [15:27:52]wFMCommunicate request_size=4 [15:27:52]MH_SAM_APDU [15:27:52]CAPDU: 80 13 01 00 [15:27:52]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [15:27:52]Write i2c OK [15:27:52]MH_I2C_Read... [15:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:52]Read from MH i2c: E2 [15:27:52]MH_I2C_Read... [15:27:52]Read from MH i2c: E2 0E 00 [15:27:52]MH_I2C_Read... [15:27:52]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3A [15:27:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:27:52]wFMCommunicate OK [15:27:52]SAM_PROTO_GetShiftState done [15:27:52]FM_GetShiftState done [15:27:52]opened in 1724371660 [15:27:52]opened+sec_in_day 1724458060 [15:27:52]quantity*price = 50036 [15:27:52]sum+1 = 50037 [15:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 130 23.08.2024 15:27 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178670 ФПД: 139705614483972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T152753&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178670&fm=139705614483972&tin=02508201610067®Number=0000000000092561&sum=50000 [15:27:54]StoreToDocumentArchive [15:27:54]shift 470 fd 178670 [15:27:54]save to /storage/0470/doc_00178670 [15:27:54]save last doc name /storage/0470/doc_00178670 to /storage/kkm_last_doc_name [15:27:54]save OK [15:27:54]Clear old archive folders... [15:27:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:54]tlvbuf is 0147DB20 [15:27:54]SAM_PROTO_ClearQueue [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 09 00 00 [15:27:54]Write to MH i2c: E2 08 00 EE 05 80 09 00 00 00 00 00 00 65 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]SAM_PROTO_ClearQueue done [15:27:54]KKMCreateOFDPacket [15:27:54]OFDProtocolAddRootSTLVToBuf [15:27:54]FM_MakeSignedData [15:27:54]FM_MakeSignedData [15:27:54]SAM_PROTO_SignData [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 01 02 [15:27:54]Write to MH i2c: E2 08 00 EF 05 80 0D 01 02 00 00 00 00 6D [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]wFMCommunicate request_size=255 [15:27:54]MH_SAM_APDU [15:27: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 82 00 00 00 F4 03 04 00 79 AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EE B9 02 00 35 04 06 00 7F [15:27:54]Write to MH i2c: E2 02 01 F0 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 82 00 00 00 F4 03 04 00 79 AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EE B9 02 00 35 04 06 00 7F 00 00 C2 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]wFMCommunicate request_size=10 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 02 02 05 0F BF 86 42 04 [15:27:54]Write to MH i2c: E2 0D 00 F1 05 80 0D 02 02 05 00 0F BF 86 42 04 00 00 14 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [15:27:54]RAPDU: 90 00 [15:27:54]wFMCommunicate OK [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 0D 03 02 [15:27:54]Write to MH i2c: E2 08 00 F2 05 80 0D 03 02 00 00 00 00 72 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 0B 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 0B 00 F2 05 00 9F FB 91 6A 44 C8 3C 64 90 00 B4 [15:27:54]RAPDU: 9F FB 91 6A 44 C8 3C 64 90 00 [15:27:54]wFMCommunicate OK [15:27:54]SAM_PROTO_SignData done [15:27:54]FM_MakeSignedData done [15:27:54]CreateOFDProtocolMessage [15:27:54]wFMCommunicate request_size=4 [15:27:54]MH_SAM_APDU [15:27:54]CAPDU: 80 11 00 00 [15:27:54]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:54]Read from MH i2c: E2 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 17 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CB [15:27:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:27:54]wFMCommunicate OK [15:27:54]CreateOFDProtocolMessage done [15:27:54]OFDSenderStorePacket 178670 [15:27:54]StoreOFDPacket docnum=178670 [15:27:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 2D 3A 07 01 08 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 82 00 00 00 F4 03 04 00 79 AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EE B9 02 00 35 04 06 00 7F 0F BF 86 42 04 9F FB 91 6A 44 C8 3C 64 [15:27:54]CheckFolder [15:27:54]dirname=/storage/ofd_packets [15:27:54]CheckFolder done [15:27:54]ProducePacketName [15:27:54]name=ofd_packets/00178670 [15:27:54]NVStorageSaveData ofd_packets/00178670 [15:27:54]File name is /storage/ofd_packets/00178670 [15:27:54]Write 301 bytes [15:27:54]NVStorageSaveData done [15:27:54]OFDSenderStorePacket done [15:27:54]KKMCreateOFDPacket done [15:27:54]NVStorageSaveData kkm_last_timestamp [15:27:54]File name is /storage/kkm_last_timestamp [15:27:54]Write 4 bytes [15:27:54]NVStorageSaveData done [15:27:54]ExternCall_PrintAddStr [15:27:54]wPrintStart [15:27:54]Write to MH i2c: 01 00 00 F4 05 F9 [15:27:54]OFD Sender: Processing packet 178670 [packets to send 498, broken 497] [15:27:54]ProducePacketName [15:27:54]name=ofd_packets/00178670 [15:27:54]OFD Sender: To server: pG, [15:27:54]CommunicateWithHost lk.salyk.kg:30040 [15:27:54]ConnectInit lk.salyk.kg [15:27:54]Write i2c OK [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: 01 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: 01 07 00 [15:27:54]MH_I2C_Read... [15:27:54]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 FF 0F 0E [15:27:54]RasterBufferAndPrint [15:27:54]line Счет N : (1)294399 [15:27:54]line ИНН: 02508201610067 [15:27:54]line Контрольно-Кассовый Чек [15:27:54]line ПРОДАЖА [15:27:54]line ТРК (МРК, ГНК) : 52 [15:27:54]line Товар: 2710124130 [15:27:54]line Аи-92-К-5 [15:27:54]line 7.380 * 67.80 [15:27:54]line = 500.36 [15:27:54]line НДС 12% НСП 1% [15:27:54]line > о реализуемом товаре [15:27:54]line ОКРУГЛЕНИЕ: -0.36 [15:27:54]line ИТОГО: 500.00 [15:27:54]line Внесено: 500.00 [15:27:54]line СДАЧА: 0.00 [15:27:54]line НСП 1% : 4.43 [15:27:54]line НДС 12% : 53.14 [15:27:54]line Наличными: 500.00 [15:27:54]line Безнал.: 0.00 [15:27:54]line Место: АЗС № 130 "Партнер Нефть" [15:27:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:27:54]line СНО: Общий режим [15:27:54]line Чек 130 23.08.2024 15:27 [15:27:54]line Смена: 470 ФФД: 1.0 [15:27:54]line ЗНМ: 0300000071 [15:27:54]line РНМ: 0000000000092561 [15:27:54]line Версия ККМ: 001 [15:27:54]line ФМ: 0000000000871778 [15:27:54]line ФД: 178670 [15:27:54]line ФПД: 139705614483972 [15:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T152753&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178670&fm=139705614483972&tin=02508201610067®Number=0000000000092561&sum=50000 [15:27:54]written 0, free lines is 4095 [15:27:55]Write to MH i2c: 01 00 00 1F 06 25 [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 07 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 E5 0C 1D [15:27:55]RasterBufferAndPrint [15:27:55]line [15:27:55]line [15:27:55]line [15:27:55]line [15:27:55]line [15:27:55]written 0, free lines is 3307 [15:27:55]MH_Cut [15:27:55]Write to MH i2c: D1 01 00 26 06 01 FE [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: D1 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: D1 01 00 [15:27:55]MH_I2C_Read... [15:27:55]Read from MH i2c: D1 01 00 26 06 00 FD [15:27:55]Write to MH i2c: 01 00 00 27 06 2D [15:27:55]Write i2c OK [15:27:55]MH_I2C_Read... [15:27:55]*** Cut start [15:27:55]*** Partial cut [15:27:55]*** CUTSNS_PIN = 1 [15:27:55]*** CUTSNS_PIN = 0 [15:27:56]*** Brake cut motor [15:27:56]Read from MH i2c: 01 [15:27:56]MH_I2C_Read... [15:27:56]*** Stop cut motor [15:27:56]*** Cut end [15:27:56]Read from MH i2c: 01 07 00 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [15:27:56]process_action close_receipt done [15:27:56]requested_data is exist [15:27:56]produce_requested_data [15:27:56]requested_item fm.sn is exist - process it [15:27:56]wFMCommunicate request_size=4 [15:27:56]MH_SAM_APDU [15:27:56]CAPDU: 80 11 00 00 [15:27:56]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [15:27:56]Write i2c OK [15:27:56]MH_I2C_Read... [15:27:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:56]Read from MH i2c: E2 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: E2 17 00 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 01 [15:27:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:27:56]wFMCommunicate OK [15:27:56]requested_item fd.num is exist - process it [15:27:56]SAM_PROTO_GetFieldsCounters [15:27:56]wFMCommunicate request_size=4 [15:27:56]MH_SAM_APDU [15:27:56]CAPDU: 80 13 00 00 [15:27:56]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [15:27:56]Write i2c OK [15:27:56]MH_I2C_Read... [15:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:56]Read from MH i2c: E2 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: E2 62 00 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EE B9 02 00 0E 04 04 00 D6 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 D6 [15:27: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EE B9 02 00 0E 04 04 00 D6 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:27:56]wFMCommunicate OK [15:27:56]SAM_PROTO_GetFieldsCounters done [15:27:56]requested_item shift.num is exist - process it [15:27:56]requested_item shift.opened is exist - process it [15:27:56]req_shift_opened [15:27:56]FM_GetShiftState [15:27:56]SAM_PROTO_GetShiftState [15:27:56]wFMCommunicate request_size=4 [15:27:56]MH_SAM_APDU [15:27:56]CAPDU: 80 13 01 00 [15:27:56]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [15:27:56]Write i2c OK [15:27:56]MH_I2C_Read... [15:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:56]Read from MH i2c: E2 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: E2 0E 00 [15:27:56]MH_I2C_Read... [15:27:56]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 84 [15:27:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:27:56]wFMCommunicate OK [15:27:56]SAM_PROTO_GetShiftState done [15:27:56]FM_GetShiftState done [15:27:56]req_shift_opened done [15:27:56]requested_item shift.open_date is exist - process it [15:27:56]req_shift_open_date [15:27:56]req_shift_open_date done [15:27:56]produce_requested_data done [15:27:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178670,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:27:56]process_action_free close_receipt [15:27:56]json_value_free [15:27:56]json_value_free done [15:27:56]process_json_proto returns [15:27:56]Send response to host [15:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178670,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:27:56]free response buf [15:27:56]execute_script done [15:27:56]execute_script returns [15:27:56]free content buf [15:27:56]Sock 10.Close socket [15:27:56]Sock 10.Thread stoped [15:27:57]accept exits with 9 [15:27:57]New connection [15:27:57]New thread 3066678628 created [15:27:57]Thread 3066821988 joined [15:27:57]Waiting for new connection... [15:27:57] Sock 9.Parse request [15:27:57]Sock 9.Check first char [15:27:57]Sock 9.First char is OK [15:27:57]request: POST /json_proto HTTP/1.0 [15:27:57]Method: POST [15:27:57]URL: /json_proto [15:27:57]Method is POST - this is cgi request [15:27:57]url: /json_proto [15:27:57]query_string will be loaded in cgi processing [15:27:57]execute_cgi json_proto POST (null) [15:27:57]execute_cgi path=json_proto method=POST [15:27:57]POST find Content-Length [15:27:57]Host: 172.17.44.131:8080 [15:27:57]Content-Length: 667 [15:27:57]Content-Type: application/json [15:27:57] [15:27:57]POST finish read [15:27:57]Found Content-Length = 667 [15:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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:27:57]execute_script... [15:27:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 7.270, "sum" : 500.18, "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:27:57]POST & json_proto [15:27:57]process_json_proto [15:27:57]json parsed OK: [15:27:57]protocol is kg_v1.0 [15:27:57]action value=close_receipt [15:27:57]process_action close_receipt [15:27:57]cmd_close_receipt [15:27:57]MH_GetDate [15:27:57]Write to MH i2c: F0 00 00 2B 06 20 [15:27:57]Write i2c OK [15:27:57]MH_I2C_Read... [15:27:57]Read from MH i2c: F0 [15:27:57]MH_I2C_Read... [15:27:57]Read from MH i2c: F0 09 00 [15:27:57]MH_I2C_Read... [15:27:57]Read from MH i2c: F0 09 00 2B 06 00 7D AA C8 66 4F 53 BE 66 44 [15:27:57]GetLastDocTimeStamp 1724426873 [15:27:57]current date 1724426877 [15:27:57]FM_GetShiftState [15:27:57]SAM_PROTO_GetShiftState [15:27:57]wFMCommunicate request_size=4 [15:27:57]MH_SAM_APDU [15:27:57]CAPDU: 80 13 01 00 [15:27:57]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [15:27:57]Write i2c OK [15:27:57]MH_I2C_Read... [15:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:57]Read from MH i2c: E2 [15:27:57]MH_I2C_Read... [15:27:57]Read from MH i2c: E2 0E 00 [15:27:57]MH_I2C_Read... [15:27:57]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 86 [15:27:57]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:27:57]wFMCommunicate OK [15:27:57]SAM_PROTO_GetShiftState done [15:27:57]FM_GetShiftState done [15:27:57]opened in 1724371660 [15:27:57]opened+sec_in_day 1724458060 [15:27:57]quantity*price = 50017 [15:27:57]sum+1 = 50019 [15:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 131 23.08.2024 15:27 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178671 ФПД: 37421493033417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T152757&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178671&fm=37421493033417&tin=02508201610067®Number=0000000000092561&sum=50000 [15:27:58]StoreToDocumentArchive [15:27:58]shift 470 fd 178671 [15:27:58]save to /storage/0470/doc_00178671 [15:27:58]save last doc name /storage/0470/doc_00178671 to /storage/kkm_last_doc_name [15:27:58]save OK [15:27:58]Clear old archive folders... [15:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:27:58]tlvbuf is 014872C0 [15:27:58]SAM_PROTO_ClearQueue [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 09 00 00 [15:27:58]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 03 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [15:27:58]RAPDU: 90 00 [15:27:58]wFMCommunicate OK [15:27:58]SAM_PROTO_ClearQueue done [15:27:58]KKMCreateOFDPacket [15:27:58]OFDProtocolAddRootSTLVToBuf [15:27:58]FM_MakeSignedData [15:27:58]FM_MakeSignedData [15:27:58]SAM_PROTO_SignData [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 0D 01 02 [15:27:58]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [15:27:59]RAPDU: 90 00 [15:27:59]wFMCommunicate OK [15:27:59]wFMCommunicate request_size=255 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EF B9 02 00 35 04 06 00 22 08 DE [15:27:59]Write to MH i2c: E2 02 01 3B 06 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EF B9 02 00 35 04 06 00 22 08 DE 00 00 39 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [15:27:59]RAPDU: 90 00 [15:27:59]wFMCommunicate OK [15:27:59]wFMCommunicate request_size=8 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 0D 02 02 03 CC 99 C9 [15:27:59]Write to MH i2c: E2 0B 00 3C 06 80 0D 02 02 03 00 CC 99 C9 00 00 F0 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [15:27:59]RAPDU: 90 00 [15:27:59]wFMCommunicate OK [15:27:59]wFMCommunicate request_size=4 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 0D 03 02 [15:27:59]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 0B 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 0B 00 3D 06 00 AB 3B 71 F6 6F 27 5A 0B 90 00 07 [15:27:59]RAPDU: AB 3B 71 F6 6F 27 5A 0B 90 00 [15:27:59]wFMCommunicate OK [15:27:59]SAM_PROTO_SignData done [15:27:59]FM_MakeSignedData done [15:27:59]CreateOFDProtocolMessage [15:27:59]wFMCommunicate request_size=4 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 11 00 00 [15:27:59]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 17 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 17 [15:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:27:59]wFMCommunicate OK [15:27:59]CreateOFDProtocolMessage done [15:27:59]OFDSenderStorePacket 178671 [15:27:59]StoreOFDPacket docnum=178671 [15:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 74 E6 05 01 1E BB 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EF B9 02 00 35 04 06 00 22 08 DE CC 99 C9 AB 3B 71 F6 6F 27 5A 0B [15:27:59]CheckFolder [15:27:59]dirname=/storage/ofd_packets [15:27:59]CheckFolder done [15:27:59]ProducePacketName [15:27:59]name=ofd_packets/00178671 [15:27:59]NVStorageSaveData ofd_packets/00178671 [15:27:59]File name is /storage/ofd_packets/00178671 [15:27:59]Write 299 bytes [15:27:59]NVStorageSaveData done [15:27:59]OFDSenderStorePacket done [15:27:59]KKMCreateOFDPacket done [15:27:59]NVStorageSaveData kkm_last_timestamp [15:27:59]File name is /storage/kkm_last_timestamp [15:27:59]Write 4 bytes [15:27:59]NVStorageSaveData done [15:27:59]ExternCall_PrintAddStr [15:27:59]wPrintStart [15:27:59]Write to MH i2c: 01 00 00 3F 06 45 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: 01 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: 01 07 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [15:27:59]RasterBufferAndPrint [15:27:59]line Счет N : (1)294397 [15:27:59]line ИНН: 02508201610067 [15:27:59]line Контрольно-Кассовый Чек [15:27:59]line ПРОДАЖА [15:27:59]line ТРК (МРК, ГНК) : 41 [15:27:59]line Товар: 2710124130 [15:27:59]line SU-92-К-5 [15:27:59]line 7.270 * 68.80 [15:27:59]line = 500.18 [15:27:59]line НДС 12% НСП 1% [15:27:59]line > о реализуемом товаре [15:27:59]line ОКРУГЛЕНИЕ: -0.18 [15:27:59]line ИТОГО: 500.00 [15:27:59]line Внесено: 500.00 [15:27:59]line СДАЧА: 0.00 [15:27:59]line НСП 1% : 4.43 [15:27:59]line НДС 12% : 53.12 [15:27:59]line Наличными: 500.00 [15:27:59]line Безнал.: 0.00 [15:27:59]line Место: АЗС № 130 "Партнер Нефть" [15:27:59]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:27:59]line СНО: Общий режим [15:27:59]line Чек 131 23.08.2024 15:27 [15:27:59]line Смена: 470 ФФД: 1.0 [15:27:59]line ЗНМ: 0300000071 [15:27:59]line РНМ: 0000000000092561 [15:27:59]line Версия ККМ: 001 [15:27:59]line ФМ: 0000000000871778 [15:27:59]line ФД: 178671 [15:27:59]line ФПД: 37421493033417 [15:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T152757&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178671&fm=37421493033417&tin=02508201610067®Number=0000000000092561&sum=50000 [15:27:59]written 0, free lines is 4095 [15:28:00]Write to MH i2c: 01 00 00 6A 06 70 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 07 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 07 00 6A 06 00 00 00 00 00 DA 0C 5D [15:28:00]RasterBufferAndPrint [15:28:00]line [15:28:00]line [15:28:00]line [15:28:00]line [15:28:00]line [15:28:00]written 0, free lines is 3302 [15:28:00]MH_Cut [15:28:00]Write to MH i2c: D1 01 00 71 06 01 49 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: D1 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: D1 01 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: D1 01 00 71 06 00 48 [15:28:00]Write to MH i2c: 01 00 00 72 06 78 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]*** Cut start [15:28:01]*** Partial cut [15:28:01]*** CUTSNS_PIN = 1 [15:28:01]*** CUTSNS_PIN = 0 [15:28:01]*** Brake cut motor [15:28:01]Connected sock=11 [15:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 2D 3A 07 01 08 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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 82 00 00 00 F4 03 04 00 79 AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 *** Stop cut motor [15:28:01]30 *** Cut end [15:28:01]30 Read from MH i2c: 30 01 38 [15:28:01]37 MH_I2C_Read... [15:28:01]31 Read from MH i2c: 37 01 37 07 38 00 10 [15:28:01]04 MH_I2C_Read... [15:28:01]04 00 EE Read from MH i2c: B9 01 02 07 00 00 35 72 04 06 06 00 00 00 7F 00 0F 00 BF 00 86 FF 42 0F 04 8D 9F [15:28:01]process_action close_receipt done [15:28:01]requested_data is exist [15:28:01]produce_requested_data [15:28:01]requested_item fm.sn is exist - process it [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 11 00 00 [15:28:01]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]FB 91 6A 44 C8 3C 64 [15:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 17 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4C [15:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:28:01]wFMCommunicate OK [15:28:01]requested_item fd.num is exist - process it [15:28:01]SAM_PROTO_GetFieldsCounters [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 13 00 00 [15:28:01]Write to MH i2c: E2 08 00 74 06 80 13 00 00 00 00 00 00 F6 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 62 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 62 00 74 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EF B9 02 00 0E 04 04 00 D6 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 25 [15:28: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 EF B9 02 00 0E 04 04 00 D6 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:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_GetFieldsCounters done [15:28:01]requested_item shift.num is exist - process it [15:28:01]requested_item shift.opened is exist - process it [15:28:01]req_shift_opened [15:28:01]FM_GetShiftState [15:28:01]SAM_PROTO_GetShiftState [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 13 01 00 [15:28:01]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0E 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CF [15:28:01]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:28:01]wFMCommunicate OK [15:28:01]SAM_PROTO_GetShiftState done [15:28:01]FM_GetShiftState done [15:28:01]req_shift_opened done [15:28:01]requested_item shift.open_date is exist - process it [15:28:01]req_shift_open_date [15:28:01]req_shift_open_date done [15:28:01]produce_requested_data done [15:28:01]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178671,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:28:01]process_action_free close_receipt [15:28:01]json_value_free [15:28:01]json_value_free done [15:28:01]process_json_proto returns [15:28:01]Send response to host [15:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178671,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:28:01]free response buf [15:28:02]execute_script done [15:28:02]execute_script returns [15:28:02]free content buf [15:28:02]Sock 9.Close socket [15:28:02]Sock 9.Thread stoped [15:28:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 69 03 47 00 6C 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 31 37 37 38 10 04 04 00 EE B9 02 00 F4 03 04 00 27 56 C8 66 B6 04 01 00 00 D8 D0 31 AF 8A D5 09 D8 [15:28:02]CommunicateWithHost err = 0 [15:28:02]CheckOFDResponse [15:28:02]1017 (14) - 77093643461234 [15:28:02]1041 (16) - 0000000000871778 [15:28:02]1040 (4) - 178670 [15:28:02]1012 (4) - 23.08.2024 09:28 [15:28:02]1206 (1) - 0 [15:28:02]OFD Sender: Remove packet 178670 [15:28:02]ProducePacketName [15:28:02]name=ofd_packets/00178670 [15:28:02]NVStorageDeleteData [15:28:02]OFD Sender: Processing packet 178671 [packets to send 498, broken 497] [15:28:02]ProducePacketName [15:28:02]name=ofd_packets/00178671 [15:28:02]OFD Sender: To server: pG, [15:28:02]CommunicateWithHost lk.salyk.kg:30040 [15:28:02]ConnectInit lk.salyk.kg [15:28:07]ConnectInit Can't take IP for lk.salyk.kg [15:28:07]CommunicateWithHost connect error [15:28:07]CommunicateWithHost err = -1 [15:28:07]OFD Sender: Server communicate error [15:28:08]OFD Sender: Processing packet 178671 [packets to send 498, broken 497] [15:28:08]ProducePacketName [15:28:08]name=ofd_packets/00178671 [15:28:08]OFD Sender: To server: pG, [15:28:08]CommunicateWithHost lk.salyk.kg:30040 [15:28:08]ConnectInit lk.salyk.kg [15:28:14]Connected sock=7 [15:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 74 E6 05 01 1E BB 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 1C 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 62 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 7D AA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EF B9 02 00 35 04 06 00 22 08 DE CC 99 C9 AB 3B 71 F6 6F 27 5A 0B [15:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 92 92 47 00 C1 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 EF B9 02 00 F4 03 04 00 33 56 C8 66 B6 04 01 00 00 35 F2 82 AF AD 4D 3D 29 [15:28:14]CommunicateWithHost err = 0 [15:28:14]CheckOFDResponse [15:28:14]1017 (14) - 77093643461234 [15:28:14]1041 (16) - 0000000000871778 [15:28:14]1040 (4) - 178671 [15:28:14]1012 (4) - 23.08.2024 09:28 [15:28:14]1206 (1) - 0 [15:28:14]OFD Sender: Remove packet 178671 [15:28:14]ProducePacketName [15:28:14]name=ofd_packets/00178671 [15:28:14]NVStorageDeleteData [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:45]recv_with_timeout no data received [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:28:58]recv_with_timeout no data received [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:17]recv_with_timeout no data received [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:51]recv_with_timeout no data received [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:38]accept exits with 10 [15:32:38]New connection [15:32:38]New thread 3066821988 created [15:32:38]Thread 3066678628 joined [15:32:38]Waiting for new connection... [15:32:38] Sock 10.Parse request [15:32:38]Sock 10.Check first char [15:32:38]Sock 10.First char is OK [15:32:38]request: POST /json_proto HTTP/1.0 [15:32:38]Method: POST [15:32:38]URL: /json_proto [15:32:38]Method is POST - this is cgi request [15:32:38]url: /json_proto [15:32:38]query_string will be loaded in cgi processing [15:32:38]execute_cgi json_proto POST (null) [15:32:38]execute_cgi path=json_proto method=POST [15:32:38]POST find Content-Length [15:32:38]Host: 172.17.44.131:8080 [15:32:38]Content-Length: 668 [15:32:38]Content-Type: application/json [15:32:38] [15:32:38]POST finish read [15:32:38]Found Content-Length = 668 [15:32:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:32:38]execute_script... [15:32: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)294404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 10.180, "sum" : 700.38, "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:32:38]POST & json_proto [15:32:38]process_json_proto [15:32:38]json parsed OK: [15:32:38]protocol is kg_v1.0 [15:32:38]action value=close_receipt [15:32:38]process_action close_receipt [15:32:38]cmd_close_receipt [15:32:38]MH_GetDate [15:32:38]Write to MH i2c: F0 00 00 76 06 6B [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: F0 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: F0 09 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: F0 09 00 76 06 00 97 AB C8 66 4F 53 BE 66 AA [15:32:38]GetLastDocTimeStamp 1724426877 [15:32:38]current date 1724427159 [15:32:38]FM_GetShiftState [15:32:38]SAM_PROTO_GetShiftState [15:32:38]wFMCommunicate request_size=4 [15:32:38]MH_SAM_APDU [15:32:38]CAPDU: 80 13 01 00 [15:32:38]Write to MH i2c: E2 08 00 77 06 80 13 01 00 00 00 00 00 FA [15:32:38]Write i2c OK [15:32:38]MH_I2C_Read... [15:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:38]Read from MH i2c: E2 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 0E 00 [15:32:38]MH_I2C_Read... [15:32:38]Read from MH i2c: E2 0E 00 77 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D1 [15:32:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:32:38]wFMCommunicate OK [15:32:38]SAM_PROTO_GetShiftState done [15:32:38]FM_GetShiftState done [15:32:38]opened in 1724371660 [15:32:38]opened+sec_in_day 1724458060 [15:32:38]quantity*price = 70038 [15:32:38]sum+1 = 70039 [15:32:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 132 23.08.2024 15:32 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178672 ФПД: 241205376109622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T153239&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178672&fm=241205376109622&tin=02508201610067®Number=0000000000092561&sum=70000 [15:32:39]StoreToDocumentArchive [15:32:39]shift 470 fd 178672 [15:32:39]save to /storage/0470/doc_00178672 [15:32:39]save last doc name /storage/0470/doc_00178672 to /storage/kkm_last_doc_name [15:32:39]save OK [15:32:39]Clear old archive folders... [15:32:39]ProcessDocumentItem done err = 0, tmpTLVsize=249 [15:32:39]tlvbuf is 0147D080 [15:32:39]SAM_PROTO_ClearQueue [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 09 00 00 [15:32:39]Write to MH i2c: E2 08 00 84 06 80 09 00 00 00 00 00 00 FC [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]SAM_PROTO_ClearQueue done [15:32:39]KKMCreateOFDPacket [15:32:39]OFDProtocolAddRootSTLVToBuf [15:32:39]FM_MakeSignedData [15:32:39]FM_MakeSignedData [15:32:39]SAM_PROTO_SignData [15:32:39]wFMCommunicate request_size=4 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 01 02 [15:32:39]Write to MH i2c: E2 08 00 85 06 80 0D 01 02 00 00 00 00 04 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:39]Read from MH i2c: E2 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 [15:32:39]MH_I2C_Read... [15:32:39]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [15:32:39]RAPDU: 90 00 [15:32:39]wFMCommunicate OK [15:32:39]wFMCommunicate request_size=255 [15:32:39]MH_SAM_APDU [15:32:39]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 84 00 00 00 F4 03 04 00 97 AB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F0 B9 02 00 35 04 06 00 DB 60 00 [15:32:39]Write to MH i2c: E2 02 01 86 06 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 84 00 00 00 F4 03 04 00 97 AB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F0 B9 02 00 35 04 06 00 DB 60 00 00 00 A7 [15:32:39]Write i2c OK [15:32:39]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [15:32:40]RAPDU: 90 00 [15:32:40]wFMCommunicate OK [15:32:40]wFMCommunicate request_size=8 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 0D 02 02 03 C2 CC 36 [15:32:40]Write to MH i2c: E2 0B 00 87 06 80 0D 02 02 03 00 C2 CC 36 00 00 D1 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:40]Read from MH i2c: E2 03 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 03 00 87 06 00 90 00 01 [15:32:40]RAPDU: 90 00 [15:32:40]wFMCommunicate OK [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 0D 03 02 [15:32:40]Write to MH i2c: E2 08 00 88 06 80 0D 03 02 00 00 00 00 09 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 0B 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 0B 00 88 06 00 E4 72 20 3A 4D C2 66 6C 90 00 9B [15:32:40]RAPDU: E4 72 20 3A 4D C2 66 6C 90 00 [15:32:40]wFMCommunicate OK [15:32:40]SAM_PROTO_SignData done [15:32:40]FM_MakeSignedData done [15:32:40]CreateOFDProtocolMessage [15:32:40]wFMCommunicate request_size=4 [15:32:40]MH_SAM_APDU [15:32:40]CAPDU: 80 11 00 00 [15:32:40]Write to MH i2c: E2 08 00 89 06 80 11 00 00 00 00 00 00 09 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:40]Read from MH i2c: E2 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 17 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: E2 17 00 89 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 62 [15:32:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:32:40]wFMCommunicate OK [15:32:40]CreateOFDProtocolMessage done [15:32:40]OFDSenderStorePacket 178672 [15:32:40]StoreOFDPacket docnum=178672 [15:32:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 EA DD 05 01 BA 80 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 84 00 00 00 F4 03 04 00 97 AB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F0 B9 02 00 35 04 06 00 DB 60 00 C2 CC 36 E4 72 20 3A 4D C2 66 6C [15:32:40]CheckFolder [15:32:40]dirname=/storage/ofd_packets [15:32:40]CheckFolder done [15:32:40]ProducePacketName [15:32:40]name=ofd_packets/00178672 [15:32:40]NVStorageSaveData ofd_packets/00178672 [15:32:40]File name is /storage/ofd_packets/00178672 [15:32:40]Write 299 bytes [15:32:40]NVStorageSaveData done [15:32:40]OFDSenderStorePacket done [15:32:40]KKMCreateOFDPacket done [15:32:40]NVStorageSaveData kkm_last_timestamp [15:32:40]File name is /storage/kkm_last_timestamp [15:32:40]Write 4 bytes [15:32:40]NVStorageSaveData done [15:32:40]ExternCall_PrintAddStr [15:32:40]wPrintStart [15:32:40]Write to MH i2c: 01 00 00 8A 06 90 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 8A 06 00 00 00 00 00 FF 0F A5 [15:32:40]RasterBufferAndPrint [15:32:40]line Счет N : (1)294404 [15:32:40]line ИНН: 02508201610067 [15:32:40]line Контрольно-Кассовый Чек [15:32:40]line ПРОДАЖА [15:32:40]line ТРК (МРК, ГНК) : 41 [15:32:40]line Товар: 2710124130 [15:32:40]line SU-92-К-5 [15:32:40]line 10.180 * 68.80 [15:32:40]line = 700.38 [15:32:40]line НДС 12% НСП 1% [15:32:40]line > о реализуемом товаре [15:32:40]line ОКРУГЛЕНИЕ: -0.38 [15:32:40]line ИТОГО: 700.00 [15:32:40]line Внесено: 700.00 [15:32:40]line СДАЧА: 0.00 [15:32:40]line НСП 1% : 6.20 [15:32:40]line НДС 12% : 74.38 [15:32:40]line Наличными: 700.00 [15:32:40]line Безнал.: 0.00 [15:32:40]line Место: АЗС № 130 "Партнер Нефть" [15:32:40]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:32:40]line СНО: Общий режим [15:32:40]line Чек 132 23.08.2024 15:32 [15:32:40]line Смена: 470 ФФД: 1.0 [15:32:40]line ЗНМ: 0300000071 [15:32:40]line РНМ: 0000000000092561 [15:32:40]line Версия ККМ: 001 [15:32:40]line ФМ: 0000000000871778 [15:32:40]line ФД: 178672 [15:32:40]line ФПД: 241205376109622 [15:32:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T153239&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178672&fm=241205376109622&tin=02508201610067®Number=0000000000092561&sum=70000 [15:32:40]written 0, free lines is 4095 [15:32:40]OFD Sender: Processing packet 178672 [packets to send 498, broken 497] [15:32:40]ProducePacketName [15:32:40]name=ofd_packets/00178672 [15:32:40]OFD Sender: To server: pG, [15:32:40]CommunicateWithHost lk.salyk.kg:30040 [15:32:40]ConnectInit lk.salyk.kg [15:32:40]Write to MH i2c: 01 00 00 B5 06 BB [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: 01 07 00 B5 06 00 00 00 00 00 DC 0C AA [15:32:40]RasterBufferAndPrint [15:32:40]line [15:32:40]line [15:32:40]line [15:32:40]line [15:32:40]line [15:32:40]written 0, free lines is 3298 [15:32:40]MH_Cut [15:32:40]Write to MH i2c: D1 01 00 BC 06 01 94 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: D1 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: D1 01 00 [15:32:40]MH_I2C_Read... [15:32:40]Read from MH i2c: D1 01 00 BC 06 00 93 [15:32:40]Write to MH i2c: 01 00 00 BD 06 C3 [15:32:40]Write i2c OK [15:32:40]MH_I2C_Read... [15:32:41]*** Cut start [15:32:41]*** Partial cut [15:32:41]*** CUTSNS_PIN = 1 [15:32:41]*** CUTSNS_PIN = 0 [15:32:41]*** Brake cut motor [15:32:41]Read from MH i2c: 01 [15:32:41]MH_I2C_Read... [15:32:41]*** Stop cut motor [15:32:41]*** Cut end [15:32:41]Read from MH i2c: 01 07 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: 01 07 00 BD 06 00 00 00 00 00 FF 0F D8 [15:32:41]process_action close_receipt done [15:32:41]requested_data is exist [15:32:41]produce_requested_data [15:32:41]requested_item fm.sn is exist - process it [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 11 00 00 [15:32:41]Write to MH i2c: E2 08 00 BE 06 80 11 00 00 00 00 00 00 3E [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:41]Read from MH i2c: E2 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 17 00 [15:32:41]MH_I2C_Read... [15:32:41]Read from MH i2c: E2 17 00 BE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 97 [15:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:32:41]wFMCommunicate OK [15:32:41]requested_item fd.num is exist - process it [15:32:41]SAM_PROTO_GetFieldsCounters [15:32:41]wFMCommunicate request_size=4 [15:32:41]MH_SAM_APDU [15:32:41]CAPDU: 80 13 00 00 [15:32:41]Write to MH i2c: E2 08 00 BF 06 80 13 00 00 00 00 00 00 41 [15:32:41]Write i2c OK [15:32:41]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 62 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 62 00 BF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F0 B9 02 00 0E 04 04 00 D6 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 74 [15:32: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F0 B9 02 00 0E 04 04 00 D6 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:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_GetFieldsCounters done [15:32:42]requested_item shift.num is exist - process it [15:32:42]requested_item shift.opened is exist - process it [15:32:42]req_shift_opened [15:32:42]FM_GetShiftState [15:32:42]SAM_PROTO_GetShiftState [15:32:42]wFMCommunicate request_size=4 [15:32:42]MH_SAM_APDU [15:32:42]CAPDU: 80 13 01 00 [15:32:42]Write to MH i2c: E2 08 00 C0 06 80 13 01 00 00 00 00 00 43 [15:32:42]Write i2c OK [15:32:42]MH_I2C_Read... [15:32:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:42]Read from MH i2c: E2 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0E 00 [15:32:42]MH_I2C_Read... [15:32:42]Read from MH i2c: E2 0E 00 C0 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 1A [15:32:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:32:42]wFMCommunicate OK [15:32:42]SAM_PROTO_GetShiftState done [15:32:42]FM_GetShiftState done [15:32:42]req_shift_opened done [15:32:42]requested_item shift.open_date is exist - process it [15:32:42]req_shift_open_date [15:32:42]req_shift_open_date done [15:32:42]produce_requested_data done [15:32:42]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178672,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:32:42]process_action_free close_receipt [15:32:42]json_value_free [15:32:42]json_value_free done [15:32:42]process_json_proto returns [15:32:42]Send response to host [15:32:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178672,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:32:42]free response buf [15:32:42]execute_script done [15:32:42]execute_script returns [15:32:42]free content buf [15:32:42]Sock 10.Close socket [15:32:42]Sock 10.Thread stoped [15:32:45]ConnectInit Can't take IP for lk.salyk.kg [15:32:45]CommunicateWithHost connect error [15:32:45]CommunicateWithHost err = -1 [15:32:45]OFD Sender: Server communicate error [15:32:50]OFD Sender: Processing packet 178672 [packets to send 498, broken 497] [15:32:50]ProducePacketName [15:32:50]name=ofd_packets/00178672 [15:32:50]OFD Sender: To server: pG, [15:32:50]CommunicateWithHost lk.salyk.kg:30040 [15:32:50]ConnectInit lk.salyk.kg [15:32:55]ConnectInit Can't take IP for lk.salyk.kg [15:32:55]CommunicateWithHost connect error [15:32:55]CommunicateWithHost err = -1 [15:32:55]OFD Sender: Server communicate error [15:33:00]recv_with_timeout no data received [15:33:00]OFD Sender: Processing packet 178672 [packets to send 498, broken 497] [15:33:00]ProducePacketName [15:33:00]name=ofd_packets/00178672 [15:33:00]OFD Sender: To server: pG, [15:33:00]CommunicateWithHost lk.salyk.kg:30040 [15:33:00]ConnectInit lk.salyk.kg [15:33:00]Connected sock=7 [15:33:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 EA DD 05 01 BA 80 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 27 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 96 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 0E 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 84 00 00 00 F4 03 04 00 97 AB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F0 B9 02 00 35 04 06 00 DB 60 00 C2 CC 36 E4 72 20 3A 4D C2 66 6C [15:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D6 DC 47 00 30 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F0 B9 02 00 F4 03 04 00 52 57 C8 66 B6 04 01 00 00 EF 9B 00 D7 19 D6 B5 A6 [15:33:01]CommunicateWithHost err = 0 [15:33:01]CheckOFDResponse [15:33:01]1017 (14) - 77093643461234 [15:33:01]1041 (16) - 0000000000871778 [15:33:01]1040 (4) - 178672 [15:33:01]1012 (4) - 23.08.2024 09:33 [15:33:01]1206 (1) - 0 [15:33:01]OFD Sender: Remove packet 178672 [15:33:01]ProducePacketName [15:33:01]name=ofd_packets/00178672 [15:33:01]NVStorageDeleteData [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:10]recv_with_timeout no data received [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:28]recv_with_timeout no data received [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:37:02]OFD Sender: No OFD packet to send [15:37:05]ConnectInit Can't connect to host [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:15]accept exits with 9 [15:39:15]New connection [15:39:15]New thread 3067538788 created [15:39:15]Thread 3067395428 joined [15:39:15]Waiting for new connection... [15:39:15] Sock 9.Parse request [15:39:15]Sock 9.Check first char [15:39:15]Sock 9.First char is OK [15:39:15]request: POST /json_proto HTTP/1.0 [15:39:15]Method: POST [15:39:15]URL: /json_proto [15:39:15]Method is POST - this is cgi request [15:39:15]url: /json_proto [15:39:15]query_string will be loaded in cgi processing [15:39:15]execute_cgi json_proto POST (null) [15:39:15]execute_cgi path=json_proto method=POST [15:39:15]POST find Content-Length [15:39:15]Host: 172.17.44.131:8080 [15:39:15]Content-Length: 679 [15:39:15]Content-Type: application/json [15:39:15] [15:39:15]POST finish read [15:39:15]Found Content-Length = 679 [15:39:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:15]execute_script... [15:39: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)294410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:15]POST & json_proto [15:39:15]process_json_proto [15:39:15]json parsed OK: [15:39:15]protocol is kg_v1.0 [15:39:15]action value=close_receipt [15:39:15]process_action close_receipt [15:39:15]cmd_close_receipt [15:39:15]MH_GetDate [15:39:15]Write to MH i2c: F0 00 00 1D 00 0C [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 09 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: F0 09 00 1D 00 00 24 AD C8 66 4F 53 BE 66 DA [15:39:15]GetLastDocTimeStamp 1724427159 [15:39:15]current date 1724427556 [15:39:15]FM_GetShiftState [15:39:15]SAM_PROTO_GetShiftState [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 13 01 00 [15:39:15]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [15:39:15]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_GetShiftState done [15:39:15]FM_GetShiftState done [15:39:15]opened in 1724371660 [15:39:15]opened+sec_in_day 1724458060 [15:39:15]quantity*price = 100050 [15:39:15]sum+1 = 100052 [15:39:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 133 23.08.2024 15:39 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178673 ФПД: 170662935463300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T153916&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178673&fm=170662935463300&tin=02508201610067®Number=0000000000092561&sum=100000 [15:39:16]StoreToDocumentArchive [15:39:16]shift 470 fd 178673 [15:39:16]save to /storage/0470/doc_00178673 [15:39:16]save last doc name /storage/0470/doc_00178673 to /storage/kkm_last_doc_name [15:39:16]save OK [15:39:16]Clear old archive folders... [15:39:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:39:16]tlvbuf is 00975C30 [15:39:16]SAM_PROTO_ClearQueue [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 09 00 00 [15:39:16]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_ClearQueue done [15:39:16]KKMCreateOFDPacket [15:39:16]OFDProtocolAddRootSTLVToBuf [15:39:16]FM_MakeSignedData [15:39:16]FM_MakeSignedData [15:39:16]SAM_PROTO_SignData [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 01 02 [15:39:16]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [15:39:16]RAPDU: 90 00 [15:39:16]wFMCommunicate OK [15:39:16]wFMCommunicate request_size=255 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 24 AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F1 B9 02 00 35 04 06 00 9B 37 8F A5 [15:39:16]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 24 AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F1 B9 02 00 35 04 06 00 9B 37 8F A5 00 00 40 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]wFMCommunicate request_size=7 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 02 02 02 05 84 [15:39:17]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 05 84 00 00 35 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [15:39:17]RAPDU: 90 00 [15:39:17]wFMCommunicate OK [15:39:17]wFMCommunicate request_size=4 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 0D 03 02 [15:39:17]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 0B 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 0B 00 2F 00 00 2E 1F 4A 73 1B 99 71 66 90 00 40 [15:39:17]RAPDU: 2E 1F 4A 73 1B 99 71 66 90 00 [15:39:17]wFMCommunicate OK [15:39:17]SAM_PROTO_SignData done [15:39:17]FM_MakeSignedData done [15:39:17]CreateOFDProtocolMessage [15:39:17]wFMCommunicate request_size=4 [15:39:17]MH_SAM_APDU [15:39:17]CAPDU: 80 11 00 00 [15:39:17]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:17]Read from MH i2c: E2 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 17 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [15:39:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:39:17]wFMCommunicate OK [15:39:17]CreateOFDProtocolMessage done [15:39:17]OFDSenderStorePacket 178673 [15:39:17]StoreOFDPacket docnum=178673 [15:39:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 FB 4C 04 01 6E 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 24 AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F1 B9 02 00 35 04 06 00 9B 37 8F A5 05 84 2E 1F 4A 73 1B 99 71 66 [15:39:17]CheckFolder [15:39:17]dirname=/storage/ofd_packets [15:39:17]CheckFolder done [15:39:17]ProducePacketName [15:39:17]name=ofd_packets/00178673 [15:39:17]NVStorageSaveData ofd_packets/00178673 [15:39:17]File name is /storage/ofd_packets/00178673 [15:39:17]Write 298 bytes [15:39:17]NVStorageSaveData done [15:39:17]OFDSenderStorePacket done [15:39:17]KKMCreateOFDPacket done [15:39:17]NVStorageSaveData kkm_last_timestamp [15:39:17]File name is /storage/kkm_last_timestamp [15:39:17]Write 4 bytes [15:39:17]NVStorageSaveData done [15:39:17]ExternCall_PrintAddStr [15:39:17]wPrintStart [15:39:17]Write to MH i2c: 01 00 00 31 00 31 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 07 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [15:39:17]RasterBufferAndPrint [15:39:17]line Счет N : (1)294410 [15:39:17]line ИНН: 02508201610067 [15:39:17]line Контрольно-Кассовый Чек [15:39:17]line ПРОДАЖА [15:39:17]line ТРК (МРК, ГНК) : 64 [15:39:17]line Товар: 2710194800 [15:39:17]line ДТ-К-5 [15:39:17]line 13.130 * 76.20 [15:39:17]line = 1000.51 [15:39:17]line НДС 12% НСП 1% [15:39:17]line > о реализуемом товаре [15:39:17]line ОКРУГЛЕНИЕ: -0.51 [15:39:17]line ИТОГО: 1000.00 [15:39:17]line Внесено: 1000.00 [15:39:17]line СДАЧА: 0.00 [15:39:17]line НСП 1% : 8.85 [15:39:17]line НДС 12% : 106.25 [15:39:17]line Наличными: 1000.00 [15:39:17]line Безнал.: 0.00 [15:39:17]line Место: АЗС № 130 "Партнер Нефть" [15:39:17]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:39:17]line СНО: Общий режим [15:39:17]line Чек 133 23.08.2024 15:39 [15:39:17]line Смена: 470 ФФД: 1.0 [15:39:17]line ЗНМ: 0300000071 [15:39:17]line РНМ: 0000000000092561 [15:39:17]line Версия ККМ: 001 [15:39:17]line ФМ: 0000000000871778 [15:39:17]line ФД: 178673 [15:39:17]line ФПД: 170662935463300 [15:39:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T153916&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178673&fm=170662935463300&tin=02508201610067®Number=0000000000092561&sum=100000 [15:39:17]written 0, free lines is 4095 [15:39:17]OFD Sender: Processing packet 178673 [packets to send 498, broken 497] [15:39:17]ProducePacketName [15:39:17]name=ofd_packets/00178673 [15:39:17]OFD Sender: To server: pG, [15:39:17]CommunicateWithHost lk.salyk.kg:30040 [15:39:17]ConnectInit lk.salyk.kg [15:39:17]Write to MH i2c: 01 00 00 5C 00 5C [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 07 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F7 0C 66 [15:39:17]RasterBufferAndPrint [15:39:17]line [15:39:17]line [15:39:17]line [15:39:17]line [15:39:17]line [15:39:17]written 0, free lines is 3326 [15:39:17]MH_Cut [15:39:17]Write to MH i2c: D1 01 00 63 00 01 35 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 01 00 [15:39:17]MH_I2C_Read... [15:39:17]Read from MH i2c: D1 01 00 63 00 00 34 [15:39:17]Write to MH i2c: 01 00 00 64 00 64 [15:39:17]Write i2c OK [15:39:17]MH_I2C_Read... [15:39:18]*** Cut start [15:39:18]*** Partial cut [15:39:18]*** CUTSNS_PIN = 1 [15:39:18]*** CUTSNS_PIN = 0 [15:39:18]*** Brake cut motor [15:39:19]Read from MH i2c: 01 [15:39:19]MH_I2C_Read... [15:39:19]*** Stop cut motor [15:39:19]*** Cut end [15:39:19]Read from MH i2c: 01 07 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [15:39:19]process_action close_receipt done [15:39:19]requested_data is exist [15:39:19]produce_requested_data [15:39:19]requested_item fm.sn is exist - process it [15:39:19]wFMCommunicate request_size=4 [15:39:19]MH_SAM_APDU [15:39:19]CAPDU: 80 11 00 00 [15:39:19]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:19]Read from MH i2c: E2 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 17 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [15:39:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:39:19]wFMCommunicate OK [15:39:19]requested_item fd.num is exist - process it [15:39:19]SAM_PROTO_GetFieldsCounters [15:39:19]wFMCommunicate request_size=4 [15:39:19]MH_SAM_APDU [15:39:19]CAPDU: 80 13 00 00 [15:39:19]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:19]Read from MH i2c: E2 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 62 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F1 B9 02 00 0E 04 04 00 D6 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 19 [15:39: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F1 B9 02 00 0E 04 04 00 D6 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:39:19]wFMCommunicate OK [15:39:19]SAM_PROTO_GetFieldsCounters done [15:39:19]requested_item shift.num is exist - process it [15:39:19]requested_item shift.opened is exist - process it [15:39:19]req_shift_opened [15:39:19]FM_GetShiftState [15:39:19]SAM_PROTO_GetShiftState [15:39:19]wFMCommunicate request_size=4 [15:39:19]MH_SAM_APDU [15:39:19]CAPDU: 80 13 01 00 [15:39:19]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:19]Read from MH i2c: E2 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 0E 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BB [15:39:19]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:39:19]wFMCommunicate OK [15:39:19]SAM_PROTO_GetShiftState done [15:39:19]FM_GetShiftState done [15:39:19]req_shift_opened done [15:39:19]requested_item shift.open_date is exist - process it [15:39:19]req_shift_open_date [15:39:19]req_shift_open_date done [15:39:19]produce_requested_data done [15:39:19]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178673,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:39:19]process_action_free close_receipt [15:39:19]json_value_free [15:39:19]json_value_free done [15:39:19]process_json_proto returns [15:39:19]Send response to host [15:39:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178673,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:39:19]free response buf [15:39:19]execute_script done [15:39:19]execute_script returns [15:39:19]free content buf [15:39:19]Sock 9.Close socket [15:39:19]Sock 9.Thread stoped [15:39:19]int [15:39:19]Write to MH i2c: 01 00 00 68 00 68 [15:39:19]*** FLAG_PRN_KEY set [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 68 00 00 08 00 00 00 FF 0F 85 [15:39:19]state=0 [15:39:19]Key pressed [15:39:19]Feed [15:39:19]Write to MH i2c: D8 00 00 69 00 40 [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D8 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D8 01 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: D8 01 00 69 00 00 41 [15:39:19]int [15:39:19]Write to MH i2c: 01 00 00 6A 00 6A [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 6A 00 00 48 00 00 00 3C 00 F5 [15:39:19]state=2 [15:39:19]Key pressed [15:39:19]int [15:39:19]Write to MH i2c: 01 00 00 6B 00 6B [15:39:19]*** FLAG_PRN_KEY reset [15:39:19]Write i2c OK [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 [15:39:19]MH_I2C_Read... [15:39:19]Read from MH i2c: 01 07 00 6B 00 00 00 00 00 00 FB 0F 7C [15:39:19]state=2 [15:39:19]Stop feed [15:39:20]recv_with_timeout no data received [15:39:21]accept exits with 10 [15:39:21]New connection [15:39:21]New thread 3067395428 created [15:39:21]Thread 3067538788 joined [15:39:21]Waiting for new connection... [15:39:21] Sock 10.Parse request [15:39:21]Sock 10.Check first char [15:39:21]Sock 10.First char is OK [15:39:21]request: POST /json_proto HTTP/1.0 [15:39:21]Method: POST [15:39:21]URL: /json_proto [15:39:21]Method is POST - this is cgi request [15:39:21]url: /json_proto [15:39:21]query_string will be loaded in cgi processing [15:39:21]execute_cgi json_proto POST (null) [15:39:21]execute_cgi path=json_proto method=POST [15:39:21]POST find Content-Length [15:39:21]Host: 172.17.44.131:8080 [15:39:21]Content-Length: 736 [15:39:21]Content-Type: application/json [15:39:21] [15:39:21]POST finish read [15:39:21]Found Content-Length = 736 [15:39:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 178673, "base_FM": "0000000000871778", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:21]execute_script... [15:39:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 178673, "base_FM": "0000000000871778", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:21]POST & json_proto [15:39:21]process_json_proto [15:39:21]json parsed OK: [15:39:21]protocol is kg_v1.0 [15:39:21]action value=close_receipt [15:39:21]process_action close_receipt [15:39:21]cmd_close_receipt [15:39:21]MH_GetDate [15:39:21]Write to MH i2c: F0 00 00 6C 00 5B [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: F0 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: F0 09 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: F0 09 00 6C 00 00 2A AD C8 66 4F 53 BE 66 2F [15:39:21]GetLastDocTimeStamp 1724427556 [15:39:21]current date 1724427562 [15:39:21]FM_GetShiftState [15:39:21]SAM_PROTO_GetShiftState [15:39:21]wFMCommunicate request_size=4 [15:39:21]MH_SAM_APDU [15:39:21]CAPDU: 80 13 01 00 [15:39:21]Write to MH i2c: E2 08 00 6D 00 80 13 01 00 00 00 00 00 EA [15:39:21]Write i2c OK [15:39:21]MH_I2C_Read... [15:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:21]Read from MH i2c: E2 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 0E 00 [15:39:21]MH_I2C_Read... [15:39:21]Read from MH i2c: E2 0E 00 6D 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C1 [15:39:21]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:39:21]wFMCommunicate OK [15:39:21]SAM_PROTO_GetShiftState done [15:39:21]FM_GetShiftState done [15:39:21]opened in 1724371660 [15:39:21]opened+sec_in_day 1724458060 [15:39:21]quantity*price = 100050 [15:39:21]sum+1 = 100052 [15:39:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 134 23.08.2024 15:39 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФД осн.: 178673 ФМ осн.: 0000000000871778 ФМ: 0000000000871778 ФД: 178674 ФПД: 59261785660296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T153922&type=2&operation_type=1&fn_number=0000000000871778&fd_number=178674&fm=59261785660296&tin=02508201610067®Number=0000000000092561&sum=100000 [15:39:22]StoreToDocumentArchive [15:39:22]shift 470 fd 178674 [15:39:22]save to /storage/0470/doc_00178674 [15:39:22]save last doc name /storage/0470/doc_00178674 to /storage/kkm_last_doc_name [15:39:22]save OK [15:39:22]Clear old archive folders... [15:39:22]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:39:22]tlvbuf is 0097A6B0 [15:39:22]SAM_PROTO_ClearQueue [15:39:22]wFMCommunicate request_size=4 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 09 00 00 [15:39:22]Write to MH i2c: E2 08 00 7C 00 80 09 00 00 00 00 00 00 EE [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 7C 00 00 90 00 F0 [15:39:22]RAPDU: 90 00 [15:39:22]wFMCommunicate OK [15:39:22]SAM_PROTO_ClearQueue done [15:39:22]KKMCreateOFDPacket [15:39:22]OFDProtocolAddRootSTLVToBuf [15:39:22]FM_MakeSignedData [15:39:22]FM_MakeSignedData [15:39:22]SAM_PROTO_SignData [15:39:22]wFMCommunicate request_size=4 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 0D 01 02 [15:39:22]Write to MH i2c: E2 08 00 7D 00 80 0D 01 02 00 00 00 00 F6 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:22]Read from MH i2c: E2 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 [15:39:22]MH_I2C_Read... [15:39:22]Read from MH i2c: E2 03 00 7D 00 00 90 00 F1 [15:39:22]RAPDU: 90 00 [15:39:22]wFMCommunicate OK [15:39:22]wFMCommunicate request_size=255 [15:39:22]MH_SAM_APDU [15:39:22]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 27 04 04 00 F1 B9 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 11 04 10 00 30 30 30 30 [15:39:22]Write to MH i2c: E2 02 01 7E 00 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 27 04 04 00 F1 B9 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 11 04 10 00 30 30 30 30 00 00 84 [15:39:22]Write i2c OK [15:39:22]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 7E 00 00 90 00 F2 [15:39:23]RAPDU: 90 00 [15:39:23]wFMCommunicate OK [15:39:23]wFMCommunicate request_size=35 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F2 B9 02 00 35 04 06 00 35 E5 F5 AE DB 88 [15:39:23]Write to MH i2c: E2 26 00 7F 00 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F2 B9 02 00 35 04 06 00 35 E5 F5 AE DB 88 00 00 BF [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [15:39:23]RAPDU: 90 00 [15:39:23]wFMCommunicate OK [15:39:23]wFMCommunicate request_size=4 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 0D 03 02 [15:39:23]Write to MH i2c: E2 08 00 80 00 80 0D 03 02 00 00 00 00 FB [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 0B 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 0B 00 80 00 00 3D AB 5D ED BA 87 C4 AC 90 00 DF [15:39:23]RAPDU: 3D AB 5D ED BA 87 C4 AC 90 00 [15:39:23]wFMCommunicate OK [15:39:23]SAM_PROTO_SignData done [15:39:23]FM_MakeSignedData done [15:39:23]CreateOFDProtocolMessage [15:39:23]wFMCommunicate request_size=4 [15:39:23]MH_SAM_APDU [15:39:23]CAPDU: 80 11 00 00 [15:39:23]Write to MH i2c: E2 08 00 81 00 80 11 00 00 00 00 00 00 FB [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:23]Read from MH i2c: E2 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 17 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: E2 17 00 81 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 54 [15:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:39:23]wFMCommunicate OK [15:39:23]CreateOFDProtocolMessage done [15:39:23]OFDSenderStorePacket 178674 [15:39:23]StoreOFDPacket docnum=178674 [15:39:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 28 01 00 00 EE FC 20 01 ED 67 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 27 04 04 00 F1 B9 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F2 B9 02 00 35 04 06 00 35 E5 F5 AE DB 88 3D AB 5D ED BA 87 C4 AC [15:39:23]CheckFolder [15:39:23]dirname=/storage/ofd_packets [15:39:23]CheckFolder done [15:39:23]ProducePacketName [15:39:23]name=ofd_packets/00178674 [15:39:23]NVStorageSaveData ofd_packets/00178674 [15:39:23]File name is /storage/ofd_packets/00178674 [15:39:23]Write 326 bytes [15:39:23]NVStorageSaveData done [15:39:23]OFDSenderStorePacket done [15:39:23]KKMCreateOFDPacket done [15:39:23]NVStorageSaveData kkm_last_timestamp [15:39:23]File name is /storage/kkm_last_timestamp [15:39:23]Write 4 bytes [15:39:23]NVStorageSaveData done [15:39:23]ExternCall_PrintAddStr [15:39:23]wPrintStart [15:39:23]Write to MH i2c: 01 00 00 82 00 82 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 07 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 07 00 82 00 00 00 00 00 00 FF 0F 97 [15:39:23]RasterBufferAndPrint [15:39:23]line Счет N : (1)294410 [15:39:23]line ИНН: 02508201610067 [15:39:23]line Контрольно-Кассовый Чек [15:39:23]line ВОЗВРАТ ПРОДАЖИ [15:39:23]line ТРК (МРК, ГНК) : 64 [15:39:23]line Товар: 2710194800 [15:39:23]line ДТ-К-5 [15:39:23]line 13.130 * 76.20 [15:39:23]line = 1000.51 [15:39:23]line НДС 12% НСП 1% [15:39:23]line > о реализуемом товаре [15:39:23]line ОКРУГЛЕНИЕ: -0.51 [15:39:23]line ИТОГО: 1000.00 [15:39:23]line НСП 1% : 8.85 [15:39:23]line НДС 12% : 106.25 [15:39:23]line Наличными: 1000.00 [15:39:23]line Безнал.: 0.00 [15:39:23]line Место: АЗС № 130 "Партнер Нефть" [15:39:23]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [15:39:23]line СНО: Общий режим [15:39:23]line Чек 134 23.08.2024 15:39 [15:39:23]line Смена: 470 ФФД: 1.0 [15:39:23]line ЗНМ: 0300000071 [15:39:23]line РНМ: 0000000000092561 [15:39:23]line Версия ККМ: 001 [15:39:23]line ФД осн.: 178673 [15:39:23]line ФМ осн.: 0000000000871778 [15:39:23]line ФМ: 0000000000871778 [15:39:23]line ФД: 178674 [15:39:23]line ФПД: 59261785660296 [15:39:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T153922&type=2&operation_type=1&fn_number=0000000000871778&fd_number=178674&fm=59261785660296&tin=02508201610067®Number=0000000000092561&sum=100000 [15:39:23]written 0, free lines is 4095 [15:39:23]OFD Sender: Processing packet 178673 [packets to send 499, broken 497] [15:39:23]ProducePacketName [15:39:23]name=ofd_packets/00178673 [15:39:23]OFD Sender: To server: pG, [15:39:23]CommunicateWithHost lk.salyk.kg:30040 [15:39:23]ConnectInit lk.salyk.kg [15:39:23]Write to MH i2c: 01 00 00 AD 00 AD [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 07 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 07 0D C8 [15:39:23]RasterBufferAndPrint [15:39:23]line [15:39:23]line [15:39:23]line [15:39:23]line [15:39:23]line [15:39:23]written 0, free lines is 3350 [15:39:23]MH_Cut [15:39:23]Write to MH i2c: D1 01 00 B4 00 01 86 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: D1 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: D1 01 00 [15:39:23]MH_I2C_Read... [15:39:23]Read from MH i2c: D1 01 00 B4 00 00 85 [15:39:23]Write to MH i2c: 01 00 00 B5 00 B5 [15:39:23]Write i2c OK [15:39:23]MH_I2C_Read... [15:39:24]*** Cut start [15:39:24]*** Partial cut [15:39:24]*** CUTSNS_PIN = 1 [15:39:24]*** CUTSNS_PIN = 0 [15:39:24]*** Brake cut motor [15:39:25]Read from MH i2c: 01 [15:39:25]MH_I2C_Read... [15:39:25]*** Stop cut motor [15:39:25]*** Cut end [15:39:25]Read from MH i2c: 01 07 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: 01 07 00 B5 00 00 00 00 00 00 FF 0F CA [15:39:25]process_action close_receipt done [15:39:25]requested_data is exist [15:39:25]produce_requested_data [15:39:25]requested_item fm.sn is exist - process it [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 11 00 00 [15:39:25]Write to MH i2c: E2 08 00 B6 00 80 11 00 00 00 00 00 00 30 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 17 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 17 00 B6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 89 [15:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:39:25]wFMCommunicate OK [15:39:25]requested_item fd.num is exist - process it [15:39:25]SAM_PROTO_GetFieldsCounters [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 13 00 00 [15:39:25]Write to MH i2c: E2 08 00 B7 00 80 13 00 00 00 00 00 00 33 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 62 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 62 00 B7 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F2 B9 02 00 0E 04 04 00 D6 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 6E [15:39: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F2 B9 02 00 0E 04 04 00 D6 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:39:25]wFMCommunicate OK [15:39:25]SAM_PROTO_GetFieldsCounters done [15:39:25]requested_item shift.num is exist - process it [15:39:25]requested_item shift.opened is exist - process it [15:39:25]req_shift_opened [15:39:25]FM_GetShiftState [15:39:25]SAM_PROTO_GetShiftState [15:39:25]wFMCommunicate request_size=4 [15:39:25]MH_SAM_APDU [15:39:25]CAPDU: 80 13 01 00 [15:39:25]Write to MH i2c: E2 08 00 B8 00 80 13 01 00 00 00 00 00 35 [15:39:25]Write i2c OK [15:39:25]MH_I2C_Read... [15:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:25]Read from MH i2c: E2 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 0E 00 [15:39:25]MH_I2C_Read... [15:39:25]Read from MH i2c: E2 0E 00 B8 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 0C [15:39:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:39:25]wFMCommunicate OK [15:39:25]SAM_PROTO_GetShiftState done [15:39:25]FM_GetShiftState done [15:39:25]req_shift_opened done [15:39:25]requested_item shift.open_date is exist - process it [15:39:25]req_shift_open_date [15:39:25]req_shift_open_date done [15:39:25]produce_requested_data done [15:39:25]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178674,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [15:39:25]process_action_free close_receipt [15:39:25]json_value_free [15:39:25]json_value_free done [15:39:25]process_json_proto returns [15:39:25]Send response to host [15:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178674,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [15:39:25]free response buf [15:39:25]execute_script done [15:39:25]execute_script returns [15:39:25]free content buf [15:39:25]Sock 10.Close socket [15:39:25]Sock 10.Thread stoped [15:39:26]Connected sock=9 [15:39:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 FB 4C 04 01 6E 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 24 AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F1 B9 02 00 35 04 06 00 9B 37 8F A5 05 84 2E 1F 4A 73 1B 99 71 66 [15:39:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AB F4 47 00 D2 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 31 37 37 38 10 04 04 00 F1 B9 02 00 F4 03 04 00 D6 58 C8 66 B6 04 01 00 00 8D 96 D0 68 B5 56 EB 09 [15:39:29]CommunicateWithHost err = 0 [15:39:29]CheckOFDResponse [15:39:29]1017 (14) - 77093643461234 [15:39:29]1041 (16) - 0000000000871778 [15:39:29]1040 (4) - 178673 [15:39:29]1012 (4) - 23.08.2024 09:39 [15:39:29]1206 (1) - 0 [15:39:29]OFD Sender: Remove packet 178673 [15:39:29]ProducePacketName [15:39:29]name=ofd_packets/00178673 [15:39:29]NVStorageDeleteData [15:39:29]OFD Sender: Processing packet 178674 [packets to send 498, broken 497] [15:39:29]ProducePacketName [15:39:29]name=ofd_packets/00178674 [15:39:29]OFD Sender: To server: pG, [15:39:29]CommunicateWithHost lk.salyk.kg:30040 [15:39:29]ConnectInit lk.salyk.kg [15:39:33]Connected sock=9 [15:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 28 01 00 00 EE FC 20 01 ED 67 5A 03 01 00 03 00 14 01 1E 04 01 00 02 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 2A AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 27 04 04 00 F1 B9 02 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F2 B9 02 00 35 04 06 00 35 E5 F5 AE DB 88 3D AB 5D ED BA 87 C4 AC [15:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4B 22 47 00 3A 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 31 37 37 38 10 04 04 00 F2 B9 02 00 F4 03 04 00 DB 58 C8 66 B6 04 01 00 00 77 C1 0C 10 92 0A 82 25 [15:39:35]CommunicateWithHost err = 0 [15:39:35]CheckOFDResponse [15:39:35]1017 (14) - 77093643461234 [15:39:35]1041 (16) - 0000000000871778 [15:39:35]1040 (4) - 178674 [15:39:35]1012 (4) - 23.08.2024 09:39 [15:39:35]1206 (1) - 0 [15:39:35]OFD Sender: Remove packet 178674 [15:39:35]ProducePacketName [15:39:35]name=ofd_packets/00178674 [15:39:35]NVStorageDeleteData [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:02]accept exits with 7 [15:42:02]New connection [15:42:02]New thread 3067538788 created [15:42:02]Thread 3067395428 joined [15:42:02]Waiting for new connection... [15:42:02] Sock 7.Parse request [15:42:02]Sock 7.Check first char [15:42:02]Sock 7.First char is OK [15:42:02]request: POST /json_proto HTTP/1.0 [15:42:02]Method: POST [15:42:02]URL: /json_proto [15:42:02]Method is POST - this is cgi request [15:42:02]url: /json_proto [15:42:02]query_string will be loaded in cgi processing [15:42:02]execute_cgi json_proto POST (null) [15:42:02]execute_cgi path=json_proto method=POST [15:42:02]POST find Content-Length [15:42:02]Host: 172.17.44.131:8080 [15:42:02]Content-Length: 677 [15:42:02]Content-Type: application/json [15:42:02] [15:42:02]POST finish read [15:42:02]Found Content-Length = 677 [15:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294411", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [15:42:02]execute_script... [15:42: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)294411", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [15:42:02]POST & json_proto [15:42:02]process_json_proto [15:42:02]json parsed OK: [15:42:02]protocol is kg_v1.0 [15:42:02]action value=close_receipt [15:42:02]process_action close_receipt [15:42:02]cmd_close_receipt [15:42:02]MH_GetDate [15:42:02]Write to MH i2c: F0 00 00 B9 00 A8 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 09 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: F0 09 00 B9 00 00 CB AD C8 66 4F 53 BE 66 1D [15:42:02]GetLastDocTimeStamp 1724427562 [15:42:02]current date 1724427723 [15:42:02]FM_GetShiftState [15:42:02]SAM_PROTO_GetShiftState [15:42:02]wFMCommunicate request_size=4 [15:42:02]MH_SAM_APDU [15:42:02]CAPDU: 80 13 01 00 [15:42:02]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [15:42:02]Write i2c OK [15:42:02]MH_I2C_Read... [15:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:02]Read from MH i2c: E2 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 [15:42:02]MH_I2C_Read... [15:42:02]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 0E [15:42:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [15:42:02]wFMCommunicate OK [15:42:02]SAM_PROTO_GetShiftState done [15:42:02]FM_GetShiftState done [15:42:02]opened in 1724371660 [15:42:02]opened+sec_in_day 1724458060 [15:42:02]quantity*price = 30035 [15:42:02]sum+1 = 30036 [15:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 135 23.08.2024 15:42 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178675 ФПД: 266822256021365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T154203&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178675&fm=266822256021365&tin=02508201610067®Number=0000000000092561&sum=30000 [15:42:03]StoreToDocumentArchive [15:42:03]shift 470 fd 178675 [15:42:03]save to /storage/0470/doc_00178675 [15:42:03]save last doc name /storage/0470/doc_00178675 to /storage/kkm_last_doc_name [15:42:03]save OK [15:42:03]Clear old archive folders... [15:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:42:03]tlvbuf is 0097D3F0 [15:42:03]SAM_PROTO_ClearQueue [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 09 00 00 [15:42:03]Write to MH i2c: E2 08 00 C7 00 80 09 00 00 00 00 00 00 39 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 C7 00 00 90 00 3B [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]SAM_PROTO_ClearQueue done [15:42:03]KKMCreateOFDPacket [15:42:03]OFDProtocolAddRootSTLVToBuf [15:42:03]FM_MakeSignedData [15:42:03]FM_MakeSignedData [15:42:03]SAM_PROTO_SignData [15:42:03]wFMCommunicate request_size=4 [15:42:03]MH_SAM_APDU [15:42:03]CAPDU: 80 0D 01 02 [15:42:03]Write to MH i2c: E2 08 00 C8 00 80 0D 01 02 00 00 00 00 41 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:03]Read from MH i2c: E2 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 [15:42:03]MH_I2C_Read... [15:42:03]Read from MH i2c: E2 03 00 C8 00 00 90 00 3C [15:42:03]RAPDU: 90 00 [15:42:03]wFMCommunicate OK [15:42:03]wFMCommunicate request_size=255 [15:42:03]MH_SAM_APDU [15:42: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 CB AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F3 B9 02 00 35 04 06 00 F2 [15:42:03]Write to MH i2c: E2 02 01 C9 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 CB AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F3 B9 02 00 35 04 06 00 F2 00 00 87 [15:42:03]Write i2c OK [15:42:03]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [15:42:04]RAPDU: 90 00 [15:42:04]wFMCommunicate OK [15:42:04]wFMCommunicate request_size=10 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 0D 02 02 05 AC 65 C9 CF 75 [15:42:04]Write to MH i2c: E2 0D 00 CA 00 80 0D 02 02 05 00 AC 65 C9 CF 75 00 00 6C [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [15:42:04]RAPDU: 90 00 [15:42:04]wFMCommunicate OK [15:42:04]wFMCommunicate request_size=4 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 0D 03 02 [15:42:04]Write to MH i2c: E2 08 00 CB 00 80 0D 03 02 00 00 00 00 46 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 0B 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 0B 00 CB 00 00 E1 81 A6 C0 6E 35 C4 56 90 00 CC [15:42:04]RAPDU: E1 81 A6 C0 6E 35 C4 56 90 00 [15:42:04]wFMCommunicate OK [15:42:04]SAM_PROTO_SignData done [15:42:04]FM_MakeSignedData done [15:42:04]CreateOFDProtocolMessage [15:42:04]wFMCommunicate request_size=4 [15:42:04]MH_SAM_APDU [15:42:04]CAPDU: 80 11 00 00 [15:42:04]Write to MH i2c: E2 08 00 CC 00 80 11 00 00 00 00 00 00 46 [15:42:04]Write i2c OK [15:42:04]MH_I2C_Read... [15:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:04]Read from MH i2c: E2 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 17 00 [15:42:04]MH_I2C_Read... [15:42:04]Read from MH i2c: E2 17 00 CC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 9F [15:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [15:42:04]wFMCommunicate OK [15:42:04]CreateOFDProtocolMessage done [15:42:04]OFDSenderStorePacket 178675 [15:42:04]StoreOFDPacket docnum=178675 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:05:12]RAPDU: 90 00 [16:05:12]wFMCommunicate OK [16:05:12]wFMCommunicate request_size=4 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 80 11 00 00 [16:05:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 17 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [16:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:05:12]wFMCommunicate OK [16:05:12]Detected FM SN is 0000000000871778 [16:05:12]Stored FM SN is 0000000000871778 [16:05:12]wFMCommunicate request_size=9 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 80 16 00 00 04 D9 BA 00 00 [16:05:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:05:12]RAPDU: 90 00 [16:05:12]wFMCommunicate OK [16:05:12]FM PIN OK [16:05:12]wFMCommunicate request_size=8 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 80 14 04 00 03 02 00 01 [16:05:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:05:12]RAPDU: 90 00 [16:05:12]wFMCommunicate OK [16:05:12]wFMCommunicate request_size=13 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:05:12]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:05:12]RAPDU: 90 00 [16:05:12]wFMCommunicate OK [16:05:12]wFMCommunicate request_size=4 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 80 11 00 00 [16:05:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:12]Read from MH i2c: E2 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 17 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [16:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:05:12]wFMCommunicate OK [16:05:12]DocumentArchiveInit [16:05:12]Start Httpd... [16:05:12]Httpd thread 3067530596 created [16:05:12]Write to MH i2c: 01 00 00 0F 00 0F [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 07 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:05:12]MH Int Process started [16:05:12]Allocated Socket 7 [16:05:12]Bind OK [16:05:12]Listen OK [16:05:12]httpd running on port 8080 [16:05:12]Waiting for new connection... [16:05:13]OFD Sender: Processing packet 178675 [packets to send 498, broken 497] [16:05:13]ProducePacketName [16:05:13]name=ofd_packets/00178675 [16:05:13]OFD Sender: To server: pG, [16:05:13]CommunicateWithHost lk.salyk.kg:30040 [16:05:13]ConnectInit lk.salyk.kg [16:05:32]recv_with_timeout no data received [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 679913+1723749199=1724429112 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 38 B3 C8 66 4F 53 BE 66 DE [16:05:12]Current date/time: 23.08.2024 16:05 [16:05:12]FM_Init [16:05:12]wFMConnect [16:05:12]MH_SAM_On [16:05:12]Write to MH i2c: E0 00 00 08 00 E7 [16:05:12]Write i2c OK [16:05:12]MH_I2C_Read... [16:05:12]*** iso7816_init finished! [16:05:12]*** atr: [16:05:12]*** 0F 3B D5 18 FF 81 91 FE [16:05:12]*** 1F C3 80 73 C8 21 10 0A [16:05:12]*** 00 00 00 00 00 00 00 00 [16:05:12]*** 00 00 00 00 00 00 00 00 [16:05:12]*** 00 00 00 00 00 00 00 00 [16:05:12]*** 00 00 00 00 00 00 00 00 [16:05:12]*** 00 00 00 00 00 00 00 00 [16:05:12]*** 00 00 00 00 00 00 00 00 [16:05:12]Read from MH i2c: E0 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E0 10 00 [16:05:12]MH_I2C_Read... [16:05:12]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:05:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:05:12]wFMCommunicate request_size=10 [16:05:12]MH_SAM_APDU [16:05:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:05:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:05:47]recv_with_timeout no data received [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 680342+1723749199=1724429541 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 E6 B4 C8 66 4F 53 BE 66 8D [16:12:22]Current date/time: 23.08.2024 16:12 [16:12:22]FM_Init [16:12:22]wFMConnect [16:12:22]MH_SAM_On [16:12:22]Write to MH i2c: E0 00 00 08 00 E7 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_init finished! [16:12:22]*** atr: [16:12:22]*** 0F 3B D5 18 FF 81 91 FE [16:12:22]*** 1F C3 80 73 C8 21 10 0A [16:12:22]*** 00 00 00 00 00 00 00 00 [16:12:22]*** 00 00 00 00 00 00 00 00 [16:12:22]*** 00 00 00 00 00 00 00 00 [16:12:22]*** 00 00 00 00 00 00 00 00 [16:12:22]*** 00 00 00 00 00 00 00 00 [16:12:22]*** 00 00 00 00 00 00 00 00 [16:12:22]Read from MH i2c: E0 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E0 10 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [16:12:22]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [16:12:22]wFMCommunicate request_size=10 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [16:12:22]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [16:12:22]RAPDU: 90 00 [16:12:22]wFMCommunicate OK [16:12:22]wFMCommunicate request_size=4 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 11 00 00 [16:12:22]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 17 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [16:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:12:22]wFMCommunicate OK [16:12:22]Detected FM SN is 0000000000871778 [16:12:22]Stored FM SN is 0000000000871778 [16:12:22]wFMCommunicate request_size=9 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 16 00 00 04 D9 BA 00 00 [16:12:22]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [16:12:22]RAPDU: 90 00 [16:12:22]wFMCommunicate OK [16:12:22]FM PIN OK [16:12:22]wFMCommunicate request_size=8 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 14 04 00 03 02 00 01 [16:12:22]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [16:12:22]RAPDU: 90 00 [16:12:22]wFMCommunicate OK [16:12:22]wFMCommunicate request_size=13 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [16:12:22]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [16:12:22]RAPDU: 90 00 [16:12:22]wFMCommunicate OK [16:12:22]wFMCommunicate request_size=4 [16:12:22]MH_SAM_APDU [16:12:22]CAPDU: 80 11 00 00 [16:12:22]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:22]Read from MH i2c: E2 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 17 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [16:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:12:22]wFMCommunicate OK [16:12:22]DocumentArchiveInit [16:12:22]Start Httpd... [16:12:22]Httpd thread 3067092324 created [16:12:22]Write to MH i2c: 01 00 00 0F 00 0F [16:12:22]Write i2c OK [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: 01 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: 01 07 00 [16:12:22]MH_I2C_Read... [16:12:22]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [16:12:22]MH Int Process started [16:12:22]Allocated Socket 6 [16:12:22]Bind OK [16:12:22]Listen OK [16:12:22]httpd running on port 8080 [16:12:22]Waiting for new connection... [16:12:23]OFD Sender: Processing packet 178675 [packets to send 498, broken 497] [16:12:23]ProducePacketName [16:12:23]name=ofd_packets/00178675 [16:12:23]OFD Sender: To server: pG, [16:12:23]CommunicateWithHost lk.salyk.kg:30040 [16:12:23]ConnectInit lk.salyk.kg [16:12:24]Connected sock=8 [16:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 51 01 07 01 77 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 CB AD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F3 B9 02 00 35 04 06 00 F2 AC 65 C9 CF 75 E1 81 A6 C0 6E 35 C4 56 [16:12:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 14 95 47 00 7E 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 31 37 37 38 10 04 04 00 F3 B9 02 00 F4 03 04 00 8E 60 C8 66 B6 04 01 00 00 5C 5B A2 5B 81 9F 3E CA [16:12:25]CommunicateWithHost err = 0 [16:12:25]CheckOFDResponse [16:12:25]1017 (14) - 77093643461234 [16:12:25]1041 (16) - 0000000000871778 [16:12:25]1040 (4) - 178675 [16:12:25]1012 (4) - 23.08.2024 10:12 [16:12:25]1206 (1) - 0 [16:12:25]OFD Sender: Remove packet 178675 [16:12:25]ProducePacketName [16:12:25]name=ofd_packets/00178675 [16:12:25]NVStorageDeleteData [16:12:25]OFD Sender: No OFD packet to send [16:12:30]accept exits with 7 [16:12:30]New connection [16:12:30]New thread 3066805604 created [16:12:30]Waiting for new connection... [16:12:30] Sock 7.Parse request [16:12:30]Sock 7.Check first char [16:12:30]Sock 7.First char is OK [16:12:30]request: POST /json_proto HTTP/1.0 [16:12:30]Method: POST [16:12:30]URL: /json_proto [16:12:30]Method is POST - this is cgi request [16:12:30]url: /json_proto [16:12:30]query_string will be loaded in cgi processing [16:12:30]execute_cgi json_proto POST (null) [16:12:30]execute_cgi path=json_proto method=POST [16:12:30]POST find Content-Length [16:12:30]Host: 172.17.44.131:8080 [16:12:30]Content-Length: 215 [16:12:30]Content-Type: application/json [16:12:30] [16:12:30]POST finish read [16:12:30]Found Content-Length = 215 [16:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:30]execute_script... [16:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:30]POST & json_proto [16:12:30]process_json_proto [16:12:30]json parsed OK: [16:12:30]protocol is kg_v1.0 [16:12:30]action value=get_value [16:12:30]process_action get_value [16:12:30]cmd_get_value [16:12:30]process_action get_value done [16:12:30]requested_data is exist [16:12:30]produce_requested_data [16:12:30]requested_item kkm.sn is exist - process it [16:12:30]requested_item kkm.ver is exist - process it [16:12:30]requested_item fm.sn is exist - process it [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 11 00 00 [16:12:30]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 17 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [16:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:12:30]wFMCommunicate OK [16:12:30]requested_item fd.num is exist - process it [16:12:30]SAM_PROTO_GetFieldsCounters [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 13 00 00 [16:12:30]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 62 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F3 B9 02 00 0E 04 04 00 D6 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 CC [16:12: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F3 B9 02 00 0E 04 04 00 D6 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 [16:12:30]wFMCommunicate OK [16:12:30]SAM_PROTO_GetFieldsCounters done [16:12:30]requested_item shift.num is exist - process it [16:12:30]requested_item shift.opened is exist - process it [16:12:30]req_shift_opened [16:12:30]FM_GetShiftState [16:12:30]SAM_PROTO_GetShiftState [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 13 01 00 [16:12:30]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 0E 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [16:12:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:12:30]wFMCommunicate OK [16:12:30]SAM_PROTO_GetShiftState done [16:12:30]FM_GetShiftState done [16:12:30]req_shift_opened done [16:12:30]requested_item shift.open_date is exist - process it [16:12:30]req_shift_open_date [16:12:30]req_shift_open_date done [16:12:30]produce_requested_data done [16:12:30]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178675,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:12:30]process_action_free get_value [16:12:30]json_value_free [16:12:30]json_value_free done [16:12:30]process_json_proto returns [16:12:30]Send response to host [16:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178675,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:12:30]free response buf [16:12:30]execute_script done [16:12:30]execute_script returns [16:12:30]free content buf [16:12:30]Sock 7.Close socket [16:12:30]Sock 7.Thread stoped [16:12:30]accept exits with 8 [16:12:30]New connection [16:12:30]New thread 3066662244 created [16:12:30]Thread 3066805604 joined [16:12:30]Waiting for new connection... [16:12:30] Sock 8.Parse request [16:12:30]Sock 8.Check first char [16:12:30]Sock 8.First char is OK [16:12:30]request: POST /json_proto HTTP/1.0 [16:12:30]Method: POST [16:12:30]URL: /json_proto [16:12:30]Method is POST - this is cgi request [16:12:30]url: /json_proto [16:12:30]query_string will be loaded in cgi processing [16:12:30]execute_cgi json_proto POST (null) [16:12:30]execute_cgi path=json_proto method=POST [16:12:30]POST find Content-Length [16:12:30]Host: 172.17.44.131:8080 [16:12:30]Content-Length: 331 [16:12:30]Content-Type: application/json [16:12:30] [16:12:30]POST finish read [16:12:30]Found Content-Length = 331 [16:12:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:12:30]execute_script... [16:12:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:12:30]POST & json_proto [16:12:30]process_json_proto [16:12:30]json parsed OK: [16:12:30]protocol is kg_v1.0 [16:12:30]action value=get_value [16:12:30]process_action get_value [16:12:30]cmd_get_value [16:12:30]process_action get_value done [16:12:30]requested_data is exist [16:12:30]produce_requested_data [16:12:30]requested_item fm.sale.total is exist - process it [16:12:30]SAM_PROTO_GetFMData [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 13 03 00 [16:12:30]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [16:12:30]OFD Sender: No OFD packet to send [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 FD 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 47 B6 02 00 69 04 A4 00 6F 04 04 00 B0 B4 02 00 B1 04 05 00 80 8B F8 2A 05 70 04 05 00 C3 CE 90 14 04 72 04 05 00 BD BC 67 16 01 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 2F 7E 86 8C 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 83 AD B5 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 CE [16:12:31]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 47 B6 02 00 69 04 A4 00 6F 04 04 00 B0 B4 02 00 B1 04 05 00 80 8B F8 2A 05 70 04 05 00 C3 CE 90 14 04 72 04 05 00 BD BC 67 16 01 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 2F 7E 86 8C 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 83 AD B5 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [16:12:31]wFMCommunicate OK [16:12:31]wFMCommunicate request_size=4 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 17 00 00 [16:12:31]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 FD 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [16:12:31]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:31]wFMCommunicate OK [16:12:31]wFMCommunicate request_size=4 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 17 00 00 [16:12:31]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 FD 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [16:12:31]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:31]wFMCommunicate OK [16:12:31]wFMCommunicate request_size=4 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 17 00 00 [16:12:31]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 FD 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [16:12:32]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:12:32]wFMCommunicate OK [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 17 00 00 [16:12:32]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 E3 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 E3 00 17 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 76 [16:12:32]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:12:32]wFMCommunicate OK [16:12:32]SAM_PROTO_GetFMData done [16:12:32]requested_item fm.sale_refund.total is exist - process it [16:12:32]requested_item fm.buy.total is exist - process it [16:12:32]requested_item shift.sale.total is exist - process it [16:12:32]SAM_PROTO_GetShiftData [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 13 02 00 [16:12:32]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:12:32]Read from MH i2c: E2 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 FD 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 87 00 00 00 69 04 9D 00 6F 04 04 00 86 00 00 00 B1 04 04 00 EF CE 03 01 70 04 03 00 E0 96 A6 72 04 03 00 0F 38 5D 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 93 98 1B 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 AE 4C 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 69 [16:12:32]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 87 00 00 00 69 04 9D 00 6F 04 04 00 86 00 00 00 B1 04 04 00 EF CE 03 01 70 04 03 00 E0 96 A6 72 04 03 00 0F 38 5D 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 93 98 1B 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 AE 4C 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [16:12:32]wFMCommunicate OK [16:12:32]wFMCommunicate request_size=4 [16:12:32]MH_SAM_APDU [16:12:32]CAPDU: 80 17 00 00 [16:12:32]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 FD 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 BB [16:12:33]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [16:12:33]wFMCommunicate OK [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 17 00 00 [16:12:33]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 FD 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [16:12:33]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 [16:12:33]wFMCommunicate OK [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 17 00 00 [16:12:33]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 FD 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 FD 00 1B 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 03 90 00 13 [16:12:33]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 [16:12:33]wFMCommunicate OK [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 17 00 00 [16:12:33]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 D7 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 D7 00 1C 00 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 7F [16:12:34]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 [16:12:34]wFMCommunicate OK [16:12:34]SAM_PROTO_GetShiftData done [16:12:34]requested_item shift.sale.total_cash is exist - process it [16:12:34]requested_item shift.sale_refund.total is exist - process it [16:12:34]requested_item shift.sale_refund.total_cash is exist - process it [16:12:34]requested_item shift.buy.total is exist - process it [16:12:34]requested_item shift.buy.total_cash is exist - process it [16:12:34]produce_requested_data done [16:12:34]produce_requested_data return {"fm.sale.total":221957681.92,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":170267.99,"shift.sale.total_cash":109176.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:12:34]process_action_free get_value [16:12:34]json_value_free [16:12:34]json_value_free done [16:12:34]process_json_proto returns [16:12:34]Send response to host [16:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":221957681.92,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":170267.99,"shift.sale.total_cash":109176.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:12:34]free response buf [16:12:34]execute_script done [16:12:34]execute_script returns [16:12:34]free content buf [16:12:34]Sock 8.Close socket [16:12:34]Sock 8.Thread stoped [16:12:34]accept exits with 7 [16:12:34]New connection [16:12:34]New thread 3066805604 created [16:12:34]Thread 3066662244 joined [16:12:34]Waiting for new connection... [16:12:34] Sock 7.Parse request [16:12:34]Sock 7.Check first char [16:12:34]Sock 7.First char is OK [16:12:34]request: POST /json_proto HTTP/1.0 [16:12:34]Method: POST [16:12:34]URL: /json_proto [16:12:34]Method is POST - this is cgi request [16:12:34]url: /json_proto [16:12:34]query_string will be loaded in cgi processing [16:12:34]execute_cgi json_proto POST (null) [16:12:34]execute_cgi path=json_proto method=POST [16:12:34]POST find Content-Length [16:12:34]Host: 172.17.44.131:8080 [16:12:34]Content-Length: 679 [16:12:34]Content-Type: application/json [16:12:34] [16:12:34]POST finish read [16:12:34]Found Content-Length = 679 [16:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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:12:34]execute_script... [16:12: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)294414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "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:12:34]POST & json_proto [16:12:34]process_json_proto [16:12:34]json parsed OK: [16:12:34]protocol is kg_v1.0 [16:12:34]action value=close_receipt [16:12:34]process_action close_receipt [16:12:34]cmd_close_receipt [16:12:34]MH_GetDate [16:12:34]Write to MH i2c: F0 00 00 1D 00 0C [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: F0 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: F0 09 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: F0 09 00 1D 00 00 F2 B4 C8 66 4F 53 BE 66 AF [16:12:34]GetLastDocTimeStamp 1724427723 [16:12:34]current date 1724429554 [16:12:34]FM_GetShiftState [16:12:34]SAM_PROTO_GetShiftState [16:12:34]wFMCommunicate request_size=4 [16:12:34]MH_SAM_APDU [16:12:34]CAPDU: 80 13 01 00 [16:12:34]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [16:12:34]Write i2c OK [16:12:34]MH_I2C_Read... [16:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:34]Read from MH i2c: E2 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 0E 00 [16:12:34]MH_I2C_Read... [16:12:34]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [16:12:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:12:34]wFMCommunicate OK [16:12:34]SAM_PROTO_GetShiftState done [16:12:34]FM_GetShiftState done [16:12:34]opened in 1724371660 [16:12:34]opened+sec_in_day 1724458060 [16:12:34]quantity*price = 120015 [16:12:34]sum+1 = 120016 [16:12:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 136 23.08.2024 16:12 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178676 ФПД: 178448387613763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T161235&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178676&fm=178448387613763&tin=02508201610067®Number=0000000000092561&sum=120000 [16:12:35]StoreToDocumentArchive [16:12:35]shift 470 fd 178676 [16:12:35]save to /storage/0470/doc_00178676 [16:12:35]save last doc name /storage/0470/doc_00178676 to /storage/kkm_last_doc_name [16:12:35]save OK [16:12:35]Clear old archive folders... [16:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:12:35]tlvbuf is B6E9DBF0 [16:12:35]SAM_PROTO_ClearQueue [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 09 00 00 [16:12:35]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:35]OFD Sender: No OFD packet to send [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [16:12:35]RAPDU: 90 00 [16:12:35]wFMCommunicate OK [16:12:35]SAM_PROTO_ClearQueue done [16:12:35]KKMCreateOFDPacket [16:12:35]OFDProtocolAddRootSTLVToBuf [16:12:35]FM_MakeSignedData [16:12:35]FM_MakeSignedData [16:12:35]SAM_PROTO_SignData [16:12:35]wFMCommunicate request_size=4 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 0D 01 02 [16:12:35]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [16:12:35]Write i2c OK [16:12:35]MH_I2C_Read... [16:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:35]Read from MH i2c: E2 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 [16:12:35]MH_I2C_Read... [16:12:35]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [16:12:35]RAPDU: 90 00 [16:12:35]wFMCommunicate OK [16:12:35]wFMCommunicate request_size=255 [16:12:35]MH_SAM_APDU [16:12:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F3 B4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F4 B9 02 00 35 04 06 00 A2 4C 40 C1 [16:12:36]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F3 B4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F4 B9 02 00 35 04 06 00 A2 4C 40 C1 00 00 73 [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:36]Read from MH i2c: E2 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 03 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [16:12:36]RAPDU: 90 00 [16:12:36]wFMCommunicate OK [16:12:36]wFMCommunicate request_size=7 [16:12:36]MH_SAM_APDU [16:12:36]CAPDU: 80 0D 02 02 02 24 43 [16:12:36]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 24 43 00 00 13 [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:36]Read from MH i2c: E2 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 03 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [16:12:36]RAPDU: 90 00 [16:12:36]wFMCommunicate OK [16:12:36]wFMCommunicate request_size=4 [16:12:36]MH_SAM_APDU [16:12:36]CAPDU: 80 0D 03 02 [16:12:36]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:36]Read from MH i2c: E2 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 0B 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 0B 00 2F 00 00 7D 87 D3 90 D1 3A 1B A9 90 00 E1 [16:12:36]RAPDU: 7D 87 D3 90 D1 3A 1B A9 90 00 [16:12:36]wFMCommunicate OK [16:12:36]SAM_PROTO_SignData done [16:12:36]FM_MakeSignedData done [16:12:36]CreateOFDProtocolMessage [16:12:36]wFMCommunicate request_size=4 [16:12:36]MH_SAM_APDU [16:12:36]CAPDU: 80 11 00 00 [16:12:36]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:36]Read from MH i2c: E2 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 17 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [16:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:12:36]wFMCommunicate OK [16:12:36]CreateOFDProtocolMessage done [16:12:36]OFDSenderStorePacket 178676 [16:12:36]StoreOFDPacket docnum=178676 [16:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 89 08 04 01 5C 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F3 B4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F4 B9 02 00 35 04 06 00 A2 4C 40 C1 24 43 7D 87 D3 90 D1 3A 1B A9 [16:12:36]CheckFolder [16:12:36]dirname=/storage/ofd_packets [16:12:36]CheckFolder done [16:12:36]ProducePacketName [16:12:36]name=ofd_packets/00178676 [16:12:36]NVStorageSaveData ofd_packets/00178676 [16:12:36]File name is /storage/ofd_packets/00178676 [16:12:36]Write 298 bytes [16:12:36]NVStorageSaveData done [16:12:36]OFDSenderStorePacket done [16:12:36]KKMCreateOFDPacket done [16:12:36]NVStorageSaveData kkm_last_timestamp [16:12:36]File name is /storage/kkm_last_timestamp [16:12:36]Write 4 bytes [16:12:36]NVStorageSaveData done [16:12:36]ExternCall_PrintAddStr [16:12:36]wPrintStart [16:12:36]Write to MH i2c: 01 00 00 31 00 31 [16:12:36]Write i2c OK [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: 01 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: 01 07 00 [16:12:36]MH_I2C_Read... [16:12:36]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [16:12:36]RasterBufferAndPrint [16:12:36]line Счет N : (1)294414 [16:12:36]line ИНН: 02508201610067 [16:12:36]line Контрольно-Кассовый Чек [16:12:36]line ПРОДАЖА [16:12:36]line ТРК (МРК, ГНК) : 64 [16:12:36]line Товар: 2710194800 [16:12:36]line ДТ-К-5 [16:12:36]line 15.750 * 76.20 [16:12:36]line = 1200.15 [16:12:36]line НДС 12% НСП 1% [16:12:36]line > о реализуемом товаре [16:12:36]line ОКРУГЛЕНИЕ: -0.15 [16:12:36]line ИТОГО: 1200.00 [16:12:36]line Внесено: 1200.00 [16:12:36]line СДАЧА: 0.00 [16:12:36]line НСП 1% : 10.62 [16:12:36]line НДС 12% : 127.45 [16:12:36]line Наличными: 1200.00 [16:12:36]line Безнал.: 0.00 [16:12:36]line Место: АЗС № 130 "Партнер Нефть" [16:12:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [16:12:36]line СНО: Общий режим [16:12:36]line Чек 136 23.08.2024 16:12 [16:12:36]line Смена: 470 ФФД: 1.0 [16:12:36]line ЗНМ: 0300000071 [16:12:36]line РНМ: 0000000000092561 [16:12:36]line Версия ККМ: 001 [16:12:36]line ФМ: 0000000000871778 [16:12:36]line ФД: 178676 [16:12:36]line ФПД: 178448387613763 [16:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T161235&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178676&fm=178448387613763&tin=02508201610067®Number=0000000000092561&sum=120000 [16:12:36]OFD Sender: Processing packet 178676 [packets to send 498, broken 497] [16:12:36]ProducePacketName [16:12:36]name=ofd_packets/00178676 [16:12:36]written 0, free lines is 4095 [16:12:36]OFD Sender: To server: pG, [16:12:36]CommunicateWithHost lk.salyk.kg:30040 [16:12:36]ConnectInit lk.salyk.kg [16:12:37]Write to MH i2c: 01 00 00 5C 00 5C [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 07 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E3 0C 52 [16:12:37]RasterBufferAndPrint [16:12:37]line [16:12:37]line [16:12:37]line [16:12:37]line [16:12:37]line [16:12:37]written 0, free lines is 3320 [16:12:37]MH_Cut [16:12:37]Write to MH i2c: D1 01 00 63 00 01 35 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: D1 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: D1 01 00 [16:12:37]MH_I2C_Read... [16:12:37]Read from MH i2c: D1 01 00 63 00 00 34 [16:12:37]Write to MH i2c: 01 00 00 64 00 64 [16:12:37]Write i2c OK [16:12:37]MH_I2C_Read... [16:12:37]*** Cut start [16:12:37]*** Partial cut [16:12:37]*** CUTSNS_PIN = 1 [16:12:37]*** CUTSNS_PIN = 0 [16:12:38]*** Brake cut motor [16:12:38]Read from MH i2c: 01 *** Stop cut motor [16:12:38] [16:12:38]*** Cut end [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: 01 07 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [16:12:38]process_action close_receipt done [16:12:38]requested_data is exist [16:12:38]produce_requested_data [16:12:38]requested_item fm.sn is exist - process it [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 11 00 00 [16:12:38]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:38]E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 17 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [16:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:12:38]wFMCommunicate OK [16:12:38]requested_item fd.num is exist - process it [16:12:38]SAM_PROTO_GetFieldsCounters [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 13 00 00 [16:12:38]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 62 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F4 B9 02 00 0E 04 04 00 D6 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 25 [16:12: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F4 B9 02 00 0E 04 04 00 D6 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 [16:12:38]wFMCommunicate OK [16:12:38]SAM_PROTO_GetFieldsCounters done [16:12:38]requested_item shift.num is exist - process it [16:12:38]requested_item shift.opened is exist - process it [16:12:38]req_shift_opened [16:12:38]FM_GetShiftState [16:12:38]SAM_PROTO_GetShiftState [16:12:38]wFMCommunicate request_size=4 [16:12:38]MH_SAM_APDU [16:12:38]CAPDU: 80 13 01 00 [16:12:38]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [16:12:38]Write i2c OK [16:12:38]MH_I2C_Read... [16:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:38]Read from MH i2c: E2 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 0E 00 [16:12:38]MH_I2C_Read... [16:12:38]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BB [16:12:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:12:38]wFMCommunicate OK [16:12:38]SAM_PROTO_GetShiftState done [16:12:38]FM_GetShiftState done [16:12:38]req_shift_opened done [16:12:38]requested_item shift.open_date is exist - process it [16:12:38]req_shift_open_date [16:12:38]req_shift_open_date done [16:12:38]produce_requested_data done [16:12:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178676,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:12:38]process_action_free close_receipt [16:12:38]json_value_free [16:12:38]json_value_free done [16:12:38]process_json_proto returns [16:12:38]Send response to host [16:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178676,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:12:38]free response buf [16:12:38]execute_script done [16:12:38]execute_script returns [16:12:38]free content buf [16:12:38]Sock 7.Close socket [16:12:38]Sock 7.Thread stoped [16:12:38]Connected sock=11 [16:12:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 89 08 04 01 5C 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 F3 B4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F4 B9 02 00 35 04 06 00 A2 4C 40 C1 24 43 7D 87 D3 90 D1 3A 1B A9 [16:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A4 D9 47 00 E7 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F4 B9 02 00 F4 03 04 00 9C 60 C8 66 B6 04 01 00 00 45 B4 37 DB 74 7A 6B F9 [16:12:41]CommunicateWithHost err = 0 [16:12:41]CheckOFDResponse [16:12:41]1017 (14) - 77093643461234 [16:12:41]1041 (16) - 0000000000871778 [16:12:41]1040 (4) - 178676 [16:12:41]1012 (4) - 23.08.2024 10:12 [16:12:41]1206 (1) - 0 [16:12:41]OFD Sender: Remove packet 178676 [16:12:41]ProducePacketName [16:12:41]name=ofd_packets/00178676 [16:12:41]NVStorageDeleteData [16:12:41]OFD Sender: No OFD packet to send [16:12:46]OFD Sender: No OFD packet to send [16:12:51]OFD Sender: No OFD packet to send [16:12:56]OFD Sender: No OFD packet to send [16:13:01]OFD Sender: No OFD packet to send [16:13:06]OFD Sender: No OFD packet to send [16:13:11]OFD Sender: No OFD packet to send [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:50]recv_with_timeout no data received [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]recv_with_timeout no data received [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:30]recv_with_timeout no data received [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:16:59]recv_with_timeout no data received [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:38]recv_with_timeout no data received [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:36]accept exits with 8 [16:22:36]New connection [16:22:36]New thread 3066662244 created [16:22:36]Thread 3066805604 joined [16:22:36]Waiting for new connection... [16:22:36] Sock 8.Parse request [16:22:36]Sock 8.Check first char [16:22:36]Sock 8.First char is OK [16:22:36]request: POST /json_proto HTTP/1.0 [16:22:36]Method: POST [16:22:36]URL: /json_proto [16:22:36]Method is POST - this is cgi request [16:22:36]url: /json_proto [16:22:36]query_string will be loaded in cgi processing [16:22:36]execute_cgi json_proto POST (null) [16:22:36]execute_cgi path=json_proto method=POST [16:22:36]POST find Content-Length [16:22:36]Host: 172.17.44.131:8080 [16:22:36]Content-Length: 801 [16:22:36]Content-Type: application/json [16:22:36] [16:22:36]POST finish read [16:22:36]Found Content-Length = 801 [16:22:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 105.120, "sum" : 8010.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8010.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:36]execute_script... [16:22: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)294456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 105.120, "sum" : 8010.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 8010.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:36]POST & json_proto [16:22:36]process_json_proto [16:22:36]json parsed OK: [16:22:36]protocol is kg_v1.0 [16:22:36]action value=close_receipt [16:22:36]process_action close_receipt [16:22:36]cmd_close_receipt [16:22:36]MH_GetDate [16:22:36]Write to MH i2c: F0 00 00 68 00 57 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: F0 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: F0 09 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: F0 09 00 68 00 00 4C B7 C8 66 4F 53 BE 66 57 [16:22:36]GetLastDocTimeStamp 1724429555 [16:22:36]current date 1724430156 [16:22:36]FM_GetShiftState [16:22:36]SAM_PROTO_GetShiftState [16:22:36]wFMCommunicate request_size=4 [16:22:36]MH_SAM_APDU [16:22:36]CAPDU: 80 13 01 00 [16:22:36]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [16:22:36]Write i2c OK [16:22:36]MH_I2C_Read... [16:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:36]Read from MH i2c: E2 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 0E 00 [16:22:36]MH_I2C_Read... [16:22:36]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BD [16:22:36]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:22:36]wFMCommunicate OK [16:22:36]SAM_PROTO_GetShiftState done [16:22:36]FM_GetShiftState done [16:22:36]opened in 1724371660 [16:22:36]opened+sec_in_day 1724458060 [16:22:36]quantity*price = 801014 [16:22:36]sum+1 = 801015 [16:22:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8010.14 НСП 1% : 70.89 НДС 12% : 850.63 Наличными: 0.00 Безнал.: 8010.14 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 137 23.08.2024 16:22 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178677 ФПД: 129299116552351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T162236&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178677&fm=129299116552351&tin=02508201610067®Number=0000000000092561&sum=801014 [16:22:37]StoreToDocumentArchive [16:22:37]shift 470 fd 178677 [16:22:37]save to /storage/0470/doc_00178677 [16:22:37]save last doc name /storage/0470/doc_00178677 to /storage/kkm_last_doc_name [16:22:37]save OK [16:22:37]Clear old archive folders... [16:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:37]tlvbuf is 00952A30 [16:22:37]SAM_PROTO_ClearQueue [16:22:37]wFMCommunicate request_size=4 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 09 00 00 [16:22:37]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [16:22:37]RAPDU: 90 00 [16:22:37]wFMCommunicate OK [16:22:37]SAM_PROTO_ClearQueue done [16:22:37]KKMCreateOFDPacket [16:22:37]OFDProtocolAddRootSTLVToBuf [16:22:37]FM_MakeSignedData [16:22:37]FM_MakeSignedData [16:22:37]SAM_PROTO_SignData [16:22:37]wFMCommunicate request_size=4 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 0D 01 02 [16:22:37]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [16:22:37]RAPDU: 90 00 [16:22:37]wFMCommunicate OK [16:22:37]wFMCommunicate request_size=255 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F6 38 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 38 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 4C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 38 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4C B7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F5 B9 02 00 35 04 06 00 75 98 CB E9 [16:22:37]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F6 38 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 38 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 4C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 38 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4C B7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F5 B9 02 00 35 04 06 00 75 98 CB E9 00 00 82 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [16:22:37]RAPDU: 90 00 [16:22:37]wFMCommunicate OK [16:22:37]wFMCommunicate request_size=7 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 0D 02 02 02 70 9F [16:22:37]Write to MH i2c: E2 0A 00 79 00 80 0D 02 02 02 00 70 9F 00 00 06 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [16:22:37]RAPDU: 90 00 [16:22:37]wFMCommunicate OK [16:22:37]wFMCommunicate request_size=4 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 0D 03 02 [16:22:37]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 0B 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 0B 00 7A 00 00 6C 03 6A 14 D0 C9 60 A9 90 00 85 [16:22:37]RAPDU: 6C 03 6A 14 D0 C9 60 A9 90 00 [16:22:37]wFMCommunicate OK [16:22:37]SAM_PROTO_SignData done [16:22:37]FM_MakeSignedData done [16:22:37]CreateOFDProtocolMessage [16:22:37]wFMCommunicate request_size=4 [16:22:37]MH_SAM_APDU [16:22:37]CAPDU: 80 11 00 00 [16:22:37]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:37]Read from MH i2c: E2 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 17 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4E [16:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:22:37]wFMCommunicate OK [16:22:37]CreateOFDProtocolMessage done [16:22:37]OFDSenderStorePacket 178677 [16:22:37]StoreOFDPacket docnum=178677 [16:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 68 40 04 01 28 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F6 38 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 38 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 4C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 38 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4C B7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F5 B9 02 00 35 04 06 00 75 98 CB E9 70 9F 6C 03 6A 14 D0 C9 60 A9 [16:22:37]CheckFolder [16:22:37]dirname=/storage/ofd_packets [16:22:37]CheckFolder done [16:22:37]ProducePacketName [16:22:37]name=ofd_packets/00178677 [16:22:37]NVStorageSaveData ofd_packets/00178677 [16:22:37]File name is /storage/ofd_packets/00178677 [16:22:37]Write 298 bytes [16:22:37]NVStorageSaveData done [16:22:37]OFDSenderStorePacket done [16:22:37]KKMCreateOFDPacket done [16:22:37]NVStorageSaveData kkm_last_timestamp [16:22:37]File name is /storage/kkm_last_timestamp [16:22:37]Write 4 bytes [16:22:37]NVStorageSaveData done [16:22:37]ExternCall_PrintAddStr [16:22:37]wPrintStart [16:22:37]Write to MH i2c: 01 00 00 7C 00 7C [16:22:37]Write i2c OK [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 [16:22:37]MH_I2C_Read... [16:22:37]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [16:22:37]RasterBufferAndPrint [16:22:37]line Счет N : (1)294456 [16:22:37]line ИНН: 02508201610067 [16:22:37]line Контрольно-Кассовый Чек [16:22:37]line ПРОДАЖА [16:22:37]line ТРК (МРК, ГНК) : 21 [16:22:37]line Товар: 2710194800 [16:22:37]line ДТ-К-5 [16:22:37]line 105.120 * 76.20 [16:22:37]line = 8010.14 [16:22:37]line НДС 12% НСП 1% [16:22:37]line > о реализуемом товаре [16:22:37]line ИТОГО: 8010.14 [16:22:37]line НСП 1% : 70.89 [16:22:37]line НДС 12% : 850.63 [16:22:37]line Наличными: 0.00 [16:22:37]line Безнал.: 8010.14 [16:22:37]line Место: АЗС № 130 "Партнер Нефть" [16:22:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [16:22:37]line СНО: Общий режим [16:22:37]line Чек 137 23.08.2024 16:22 [16:22:37]line Смена: 470 ФФД: 1.0 [16:22:37]line ЗНМ: 0300000071 [16:22:37]line РНМ: 0000000000092561 [16:22:37]line Версия ККМ: 001 [16:22:37]line Платежная система: O! деньги [16:22:37]line ФМ: 0000000000871778 [16:22:37]line ФД: 178677 [16:22:37]line ФПД: 129299116552351 [16:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T162236&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178677&fm=129299116552351&tin=02508201610067®Number=0000000000092561&sum=801014 [16:22:37]written 0, free lines is 4095 [16:22:37]OFD Sender: Processing packet 178677 [packets to send 498, broken 497] [16:22:37]ProducePacketName [16:22:37]name=ofd_packets/00178677 [16:22:37]OFD Sender: To server: pG, [16:22:37]CommunicateWithHost lk.salyk.kg:30040 [16:22:37]ConnectInit lk.salyk.kg [16:22:38]Write to MH i2c: 01 00 00 A6 00 A6 [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: 01 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: 01 07 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 F9 0C B2 [16:22:38]RasterBufferAndPrint [16:22:38]line [16:22:38]line [16:22:38]line [16:22:38]line [16:22:38]line [16:22:38]written 0, free lines is 3328 [16:22:38]MH_Cut [16:22:38]Write to MH i2c: D1 01 00 AD 00 01 7F [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: D1 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: D1 01 00 [16:22:38]MH_I2C_Read... [16:22:38]Read from MH i2c: D1 01 00 AD 00 00 7E [16:22:38]Write to MH i2c: 01 00 00 AE 00 AE [16:22:38]Write i2c OK [16:22:38]MH_I2C_Read... [16:22:39]*** Cut start [16:22:39]*** Partial cut [16:22:39]*** CUTSNS_PIN = 1 [16:22:39]*** CUTSNS_PIN = 0 [16:22:39]*** Brake cut motor [16:22:39]Read from MH i2c: 01 [16:22:39]MH_I2C_Read... [16:22:39]*** Stop cut motor [16:22:39]*** Cut end [16:22:39]Read from MH i2c: 01 07 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [16:22:39]process_action close_receipt done [16:22:39]requested_data is exist [16:22:39]produce_requested_data [16:22:39]requested_item fm.sn is exist - process it [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 11 00 00 [16:22:39]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 17 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [16:22:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:22:39]wFMCommunicate OK [16:22:39]requested_item fd.num is exist - process it [16:22:39]SAM_PROTO_GetFieldsCounters [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 13 00 00 [16:22:39]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 62 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F5 B9 02 00 0E 04 04 00 D6 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 73 [16:22: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F5 B9 02 00 0E 04 04 00 D6 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 [16:22:39]wFMCommunicate OK [16:22:39]SAM_PROTO_GetFieldsCounters done [16:22:39]requested_item shift.num is exist - process it [16:22:39]requested_item shift.opened is exist - process it [16:22:39]req_shift_opened [16:22:39]FM_GetShiftState [16:22:39]SAM_PROTO_GetShiftState [16:22:39]wFMCommunicate request_size=4 [16:22:39]MH_SAM_APDU [16:22:39]CAPDU: 80 13 01 00 [16:22:39]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [16:22:39]Write i2c OK [16:22:39]MH_I2C_Read... [16:22:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:39]Read from MH i2c: E2 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 0E 00 [16:22:39]MH_I2C_Read... [16:22:39]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 05 [16:22:39]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:22:39]wFMCommunicate OK [16:22:39]SAM_PROTO_GetShiftState done [16:22:39]FM_GetShiftState done [16:22:39]req_shift_opened done [16:22:39]requested_item shift.open_date is exist - process it [16:22:39]req_shift_open_date [16:22:39]req_shift_open_date done [16:22:39]produce_requested_data done [16:22:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178677,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:22:39]process_action_free close_receipt [16:22:39]json_value_free [16:22:39]json_value_free done [16:22:39]process_json_proto returns [16:22:39]Send response to host [16:22:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178677,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:22:39]free response buf [16:22:39]execute_script done [16:22:39]execute_script returns [16:22:39]free content buf [16:22:39]Sock 8.Close socket [16:22:39]Sock 8.Thread stoped [16:22:41]Connected sock=10 [16:22:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 68 40 04 01 28 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 9A 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F6 38 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F6 38 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 4C 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F6 38 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 4C B7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F5 B9 02 00 35 04 06 00 75 98 CB E9 70 9F 6C 03 6A 14 D0 C9 60 A9 [16:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C2 B6 47 00 25 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 31 37 37 38 10 04 04 00 F5 B9 02 00 F4 03 04 00 F7 62 C8 66 B6 04 01 00 00 8B 0E 38 0E AE BE 39 70 [16:22:43]CommunicateWithHost err = 0 [16:22:43]CheckOFDResponse [16:22:43]1017 (14) - 77093643461234 [16:22:43]1041 (16) - 0000000000871778 [16:22:43]1040 (4) - 178677 [16:22:43]1012 (4) - 23.08.2024 10:22 [16:22:43]1206 (1) - 0 [16:22:43]OFD Sender: Remove packet 178677 [16:22:43]ProducePacketName [16:22:43]name=ofd_packets/00178677 [16:22:43]NVStorageDeleteData [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:49]OFD Sender: No OFD packet to send [16:23:54]OFD Sender: No OFD packet to send [16:23:59]OFD Sender: No OFD packet to send [16:24:04]OFD Sender: No OFD packet to send [16:24:09]OFD Sender: No OFD packet to send [16:24:14]OFD Sender: No OFD packet to send [16:24:14]recv_with_timeout no data received [16:24:19]OFD Sender: No OFD packet to send [16:24:24]OFD Sender: No OFD packet to send [16:24:29]OFD Sender: No OFD packet to send [16:24:34]OFD Sender: No OFD packet to send [16:24:39]OFD Sender: No OFD packet to send [16:24:44]OFD Sender: No OFD packet to send [16:24:49]OFD Sender: No OFD packet to send [16:24:54]OFD Sender: No OFD packet to send [16:24:59]OFD Sender: No OFD packet to send [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]recv_with_timeout no data received [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:58]recv_with_timeout no data received [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]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:05]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:29:56]recv_with_timeout no data received [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:44]recv_with_timeout no data received [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:54]recv_with_timeout no data received [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:57]ConnectInit Can't connect to host [16:33:00]OFD Sender: Processing packet 178678 [packets to send 498, broken 497] [16:33:00]ProducePacketName [16:33:00]name=ofd_packets/00178678 [16:33:00]OFD Sender: To server: pG, [16:33:00]CommunicateWithHost lk.salyk.kg:30040 [16:33:00]ConnectInit lk.salyk.kg [16:33:01]Connected sock=8 [16:33:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 69 BD 04 01 B6 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 94 3E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D8 DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 32 00 00 00 00 07 04 06 00 90 DC 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 89 B9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F6 B9 02 00 35 04 06 00 D4 2C 2D A8 B9 A9 18 22 FE 7B 53 C1 FC 13 [16:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 8F 8C 47 00 39 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F6 B9 02 00 F4 03 04 00 63 65 C8 66 B6 04 01 00 00 3B 7D 20 AF 5E 9B B1 86 [16:33:01]CommunicateWithHost err = 0 [16:33:01]CheckOFDResponse [16:33:01]1017 (14) - 77093643461234 [16:33:01]1041 (16) - 0000000000871778 [16:33:01]1040 (4) - 178678 [16:33:01]1012 (4) - 23.08.2024 10:33 [16:33:01]1206 (1) - 0 [16:33:01]OFD Sender: Remove packet 178678 [16:33:01]ProducePacketName [16:33:01]name=ofd_packets/00178678 [16:33:01]NVStorageDeleteData [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]recv_with_timeout no data received [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]recv_with_timeout no data received [16:37:22]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:36]recv_with_timeout no data received [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:00]recv_with_timeout no data received [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:06]recv_with_timeout no data received [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:36]recv_with_timeout no data received [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:43:56]ConnectInit Can't connect to host [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:14]recv_with_timeout no data received [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:02]recv_with_timeout no data received [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50: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:34]recv_with_timeout no data received [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:46]ConnectInit Can't connect to host [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:17]accept exits with 10 [16:55:17]New connection [16:55:17]New thread 3066662244 created [16:55:17]Thread 3066805604 joined [16:55:17]Waiting for new connection... [16:55:17] Sock 10.Parse request [16:55:17]Sock 10.Check first char [16:55:17]Sock 10.First char is OK [16:55:17]request: POST /json_proto HTTP/1.0 [16:55:17]Method: POST [16:55:17]URL: /json_proto [16:55:17]Method is POST - this is cgi request [16:55:17]url: /json_proto [16:55:17]query_string will be loaded in cgi processing [16:55:17]execute_cgi json_proto POST (null) [16:55:17]execute_cgi path=json_proto method=POST [16:55:17]POST find Content-Length [16:55:17]Host: 172.17.44.131:8080 [16:55:17]Content-Length: 677 [16:55:17]Content-Type: application/json [16:55:17] [16:55:17]POST finish read [16:55:17]Found Content-Length = 677 [16:55:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:17]execute_script... [16:55:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 5.400, "sum" : 400.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:17]POST & json_proto [16:55:17]process_json_proto [16:55:17]json parsed OK: [16:55:17]protocol is kg_v1.0 [16:55:17]action value=close_receipt [16:55:17]process_action close_receipt [16:55:17]cmd_close_receipt [16:55:17]MH_GetDate [16:55:17]Write to MH i2c: F0 00 00 FD 00 EC [16:55:17]Write i2c OK [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: F0 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: F0 09 00 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: F0 09 00 FD 00 00 F5 BE C8 66 4F 53 BE 66 9C [16:55:17]GetLastDocTimeStamp 1724430729 [16:55:17]current date 1724432117 [16:55:17]FM_GetShiftState [16:55:17]SAM_PROTO_GetShiftState [16:55:17]wFMCommunicate request_size=4 [16:55:17]MH_SAM_APDU [16:55:17]CAPDU: 80 13 01 00 [16:55:17]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [16:55:17]Write i2c OK [16:55:17]MH_I2C_Read... [16:55:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:17]Read from MH i2c: E2 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: E2 0E 00 [16:55:17]MH_I2C_Read... [16:55:17]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 52 [16:55:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:55:17]wFMCommunicate OK [16:55:17]SAM_PROTO_GetShiftState done [16:55:17]FM_GetShiftState done [16:55:17]opened in 1724371660 [16:55:17]opened+sec_in_day 1724458060 [16:55:17]quantity*price = 40068 [16:55:17]sum+1 = 40069 [16:55:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 139 23.08.2024 16:55 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178679 ФПД: 225090583310318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165517&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178679&fm=225090583310318&tin=02508201610067®Number=0000000000092561&sum=40000 [16:55:18]StoreToDocumentArchive [16:55:18]shift 470 fd 178679 [16:55:18]save to /storage/0470/doc_00178679 [16:55:18]save last doc name /storage/0470/doc_00178679 to /storage/kkm_last_doc_name [16:55:18]save OK [16:55:18]Clear old archive folders... [16:55:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:18]tlvbuf is 008EF120 [16:55:18]SAM_PROTO_ClearQueue [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 09 00 00 [16:55:18]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [16:55:18]RAPDU: 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_ClearQueue done [16:55:18]KKMCreateOFDPacket [16:55:18]OFDProtocolAddRootSTLVToBuf [16:55:18]FM_MakeSignedData [16:55:18]FM_MakeSignedData [16:55:18]SAM_PROTO_SignData [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 0D 01 02 [16:55:18]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [16:55:18]RAPDU: 90 00 [16:55:18]wFMCommunicate OK [16:55:18]wFMCommunicate request_size=255 [16:55:18]MH_SAM_APDU [16:55: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 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F5 BE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F7 B9 02 00 35 04 06 00 CC [16:55:18]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F5 BE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F7 B9 02 00 35 04 06 00 CC 00 00 89 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [16:55:18]RAPDU: 90 00 [16:55:18]wFMCommunicate OK [16:55:18]wFMCommunicate request_size=10 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 0D 02 02 05 B7 FC 42 AF EE [16:55:18]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 B7 FC 42 AF EE 00 00 25 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [16:55:18]RAPDU: 90 00 [16:55:18]wFMCommunicate OK [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 0D 03 02 [16:55:18]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0B 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0B 00 0F 01 00 8A 64 9A BB 1A 61 75 60 90 00 1F [16:55:18]RAPDU: 8A 64 9A BB 1A 61 75 60 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_SignData done [16:55:18]FM_MakeSignedData done [16:55:18]CreateOFDProtocolMessage [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 11 00 00 [16:55:18]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 17 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [16:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:55:18]wFMCommunicate OK [16:55:18]CreateOFDProtocolMessage done [16:55:18]OFDSenderStorePacket 178679 [16:55:18]StoreOFDPacket docnum=178679 [16:55:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 60 95 07 01 A1 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F5 BE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F7 B9 02 00 35 04 06 00 CC B7 FC 42 AF EE 8A 64 9A BB 1A 61 75 60 [16:55:18]CheckFolder [16:55:18]dirname=/storage/ofd_packets [16:55:18]CheckFolder done [16:55:18]ProducePacketName [16:55:18]name=ofd_packets/00178679 [16:55:18]NVStorageSaveData ofd_packets/00178679 [16:55:18]File name is /storage/ofd_packets/00178679 [16:55:18]Write 301 bytes [16:55:18]NVStorageSaveData done [16:55:18]OFDSenderStorePacket done [16:55:18]KKMCreateOFDPacket done [16:55:18]NVStorageSaveData kkm_last_timestamp [16:55:18]File name is /storage/kkm_last_timestamp [16:55:18]Write 4 bytes [16:55:18]NVStorageSaveData done [16:55:18]ExternCall_PrintAddStr [16:55:18]wPrintStart [16:55:18]Write to MH i2c: 01 00 00 11 01 12 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: 01 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: 01 07 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [16:55:18]RasterBufferAndPrint [16:55:18]line Счет N : (1)294489 [16:55:18]line ИНН: 02508201610067 [16:55:18]line Контрольно-Кассовый Чек [16:55:18]line ПРОДАЖА [16:55:18]line ТРК (МРК, ГНК) : 43 [16:55:18]line Товар: 2710124500 [16:55:18]line Аи-95-К-5 [16:55:18]line 5.400 * 74.20 [16:55:18]line = 400.68 [16:55:18]line НДС 12% НСП 1% [16:55:18]line > о реализуемом товаре [16:55:18]line ОКРУГЛЕНИЕ: -0.68 [16:55:18]line ИТОГО: 400.00 [16:55:18]line Внесено: 400.00 [16:55:18]line СДАЧА: 0.00 [16:55:18]line НСП 1% : 3.55 [16:55:18]line НДС 12% : 42.55 [16:55:18]line Наличными: 400.00 [16:55:18]line Безнал.: 0.00 [16:55:18]line Место: АЗС № 130 "Партнер Нефть" [16:55:18]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [16:55:18]line СНО: Общий режим [16:55:18]line Чек 139 23.08.2024 16:55 [16:55:18]line Смена: 470 ФФД: 1.0 [16:55:18]line ЗНМ: 0300000071 [16:55:18]line РНМ: 0000000000092561 [16:55:18]line Версия ККМ: 001 [16:55:18]line ФМ: 0000000000871778 [16:55:18]line ФД: 178679 [16:55:18]line ФПД: 225090583310318 [16:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165517&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178679&fm=225090583310318&tin=02508201610067®Number=0000000000092561&sum=40000 [16:55:18]written 0, free lines is 4095 [16:55:19]OFD Sender: Processing packet 178679 [packets to send 498, broken 497] [16:55:19]ProducePacketName [16:55:19]name=ofd_packets/00178679 [16:55:19]OFD Sender: To server: pG, [16:55:19]CommunicateWithHost lk.salyk.kg:30040 [16:55:19]ConnectInit lk.salyk.kg [16:55:19]Write to MH i2c: 01 00 00 3C 01 3D [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: 01 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: 01 07 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 DF 0C 2F [16:55:19]RasterBufferAndPrint [16:55:19]line [16:55:19]line [16:55:19]line [16:55:19]line [16:55:19]line [16:55:19]written 0, free lines is 3301 [16:55:19]MH_Cut [16:55:19]Write to MH i2c: D1 01 00 43 01 01 16 [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: D1 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: D1 01 00 [16:55:19]MH_I2C_Read... [16:55:19]Read from MH i2c: D1 01 00 43 01 00 15 [16:55:19]Write to MH i2c: 01 00 00 44 01 45 [16:55:19]Write i2c OK [16:55:19]MH_I2C_Read... [16:55:20]*** Cut start [16:55:20]*** Partial cut [16:55:20]*** CUTSNS_PIN = 1 [16:55:20]*** CUTSNS_PIN = 0 [16:55:20]Connected sock=11 [16:55:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 60 95 07 01 A1 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 F5 BE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F7 B9 02 00 35 04 06 00 CC B7 FC 42 AF EE 8A 64 9A BB 1A 61 75 60 [16:55:20]*** Brake cut motor [16:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 0E 32 47 00 E6 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 31 37 37 38 10 04 04 00 F7 B9 02 00 F4 03 04 00 9D 6A C8 66 B6 04 01 00 00 12 5A 3B 41 08 73 31 70 [16:55:20]CommunicateWithHost err = 0 [16:55:20]CheckOFDResponse [16:55:20]1017 (14) - 77093643461234 [16:55:20]1041 (16) - 0000000000871778 [16:55:20]1040 (4) - 178679 [16:55:20]1012 (4) - 23.08.2024 10:55 [16:55:20]1206 (1) - 0 [16:55:20]OFD Sender: Remove packet 178679 [16:55:20]ProducePacketName [16:55:20]name=ofd_packets/00178679 [16:55:20]NVStorageDeleteData [16:55:20]Read from MH i2c: 01 [16:55:20]MH_I2C_Read... [16:55:20]*** Stop cut motor [16:55:20]*** Cut end [16:55:20]Read from MH i2c: 01 07 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [16:55:20]process_action close_receipt done [16:55:20]requested_data is exist [16:55:20]produce_requested_data [16:55:20]requested_item fm.sn is exist - process it [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 11 00 00 [16:55:20]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 17 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [16:55:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:55:20]wFMCommunicate OK [16:55:20]requested_item fd.num is exist - process it [16:55:20]SAM_PROTO_GetFieldsCounters [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 13 00 00 [16:55:20]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 62 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F7 B9 02 00 0E 04 04 00 D6 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 12 [16:55: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F7 B9 02 00 0E 04 04 00 D6 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 [16:55:20]wFMCommunicate OK [16:55:20]SAM_PROTO_GetFieldsCounters done [16:55:20]requested_item shift.num is exist - process it [16:55:20]requested_item shift.opened is exist - process it [16:55:20]req_shift_opened [16:55:20]FM_GetShiftState [16:55:20]SAM_PROTO_GetShiftState [16:55:20]wFMCommunicate request_size=4 [16:55:20]MH_SAM_APDU [16:55:20]CAPDU: 80 13 01 00 [16:55:20]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [16:55:20]Write i2c OK [16:55:20]MH_I2C_Read... [16:55:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:20]Read from MH i2c: E2 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 0E 00 [16:55:20]MH_I2C_Read... [16:55:20]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9C [16:55:20]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:55:20]wFMCommunicate OK [16:55:20]SAM_PROTO_GetShiftState done [16:55:20]FM_GetShiftState done [16:55:20]req_shift_opened done [16:55:20]requested_item shift.open_date is exist - process it [16:55:20]req_shift_open_date [16:55:20]req_shift_open_date done [16:55:20]produce_requested_data done [16:55:20]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178679,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:55:20]process_action_free close_receipt [16:55:20]json_value_free [16:55:20]json_value_free done [16:55:20]process_json_proto returns [16:55:20]Send response to host [16:55:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178679,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:55:20]free response buf [16:55:20]execute_script done [16:55:20]execute_script returns [16:55:20]free content buf [16:55:20]Sock 10.Close socket [16:55:20]Sock 10.Thread stoped [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:35]accept exits with 9 [16:55:35]New connection [16:55:35]New thread 3066805604 created [16:55:35]Thread 3066662244 joined [16:55:35]Waiting for new connection... [16:55:35] Sock 9.Parse request [16:55:35]Sock 9.Check first char [16:55:35]Sock 9.First char is OK [16:55:35]request: POST /json_proto HTTP/1.0 [16:55:35]Method: POST [16:55:35]URL: /json_proto [16:55:35]Method is POST - this is cgi request [16:55:35]url: /json_proto [16:55:35]query_string will be loaded in cgi processing [16:55:35]execute_cgi json_proto POST (null) [16:55:35]execute_cgi path=json_proto method=POST [16:55:35]POST find Content-Length [16:55:35]Host: 172.17.44.131:8080 [16:55:35]Content-Length: 678 [16:55:35]Content-Type: application/json [16:55:35] [16:55:35]POST finish read [16:55:35]Found Content-Length = 678 [16:55:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294488", "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" : 67.80, "quantity" : 10.920, "sum" : 740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:35]execute_script... [16:55: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)294488", "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" : 67.80, "quantity" : 10.920, "sum" : 740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:35]POST & json_proto [16:55:35]process_json_proto [16:55:35]json parsed OK: [16:55:35]protocol is kg_v1.0 [16:55:35]action value=close_receipt [16:55:35]process_action close_receipt [16:55:35]cmd_close_receipt [16:55:35]MH_GetDate [16:55:35]Write to MH i2c: F0 00 00 48 01 38 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: F0 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: F0 09 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: F0 09 00 48 01 00 07 BF C8 66 4F 53 BE 66 FB [16:55:35]GetLastDocTimeStamp 1724432117 [16:55:35]current date 1724432135 [16:55:35]FM_GetShiftState [16:55:35]SAM_PROTO_GetShiftState [16:55:35]wFMCommunicate request_size=4 [16:55:35]MH_SAM_APDU [16:55:35]CAPDU: 80 13 01 00 [16:55:35]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [16:55:35]Write i2c OK [16:55:35]MH_I2C_Read... [16:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:35]Read from MH i2c: E2 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 0E 00 [16:55:35]MH_I2C_Read... [16:55:35]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9E [16:55:35]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:55:35]wFMCommunicate OK [16:55:35]SAM_PROTO_GetShiftState done [16:55:35]FM_GetShiftState done [16:55:35]opened in 1724371660 [16:55:35]opened+sec_in_day 1724458060 [16:55:35]quantity*price = 74037 [16:55:35]sum+1 = 74039 [16:55:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.62 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 140 23.08.2024 16:55 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178680 ФПД: 266676225594541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165535&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178680&fm=266676225594541&tin=02508201610067®Number=0000000000092561&sum=74000 [16:55:36]StoreToDocumentArchive [16:55:36]shift 470 fd 178680 [16:55:36]save to /storage/0470/doc_00178680 [16:55:36]save last doc name /storage/0470/doc_00178680 to /storage/kkm_last_doc_name [16:55:36]save OK [16:55:36]Clear old archive folders... [16:55:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:36]tlvbuf is 008EB7A0 [16:55:36]SAM_PROTO_ClearQueue [16:55:36]wFMCommunicate request_size=4 [16:55:36]MH_SAM_APDU [16:55:36]CAPDU: 80 09 00 00 [16:55:36]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [16:55:36]RAPDU: 90 00 [16:55:36]wFMCommunicate OK [16:55:36]SAM_PROTO_ClearQueue done [16:55:36]KKMCreateOFDPacket [16:55:36]OFDProtocolAddRootSTLVToBuf [16:55:36]FM_MakeSignedData [16:55:36]FM_MakeSignedData [16:55:36]SAM_PROTO_SignData [16:55:36]wFMCommunicate request_size=4 [16:55:36]MH_SAM_APDU [16:55:36]CAPDU: 80 0D 01 02 [16:55:36]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [16:55:36]RAPDU: 90 00 [16:55:36]wFMCommunicate OK [16:55:36]wFMCommunicate request_size=255 [16:55:36]MH_SAM_APDU [16:55: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 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 07 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F8 B9 02 00 35 04 06 00 F2 [16:55:36]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 07 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F8 B9 02 00 35 04 06 00 F2 00 00 64 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [16:55:36]RAPDU: 90 00 [16:55:36]wFMCommunicate OK [16:55:36]wFMCommunicate request_size=10 [16:55:36]MH_SAM_APDU [16:55:36]CAPDU: 80 0D 02 02 05 8A 65 B2 54 AD [16:55:36]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 8A 65 B2 54 AD 00 00 80 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [16:55:36]RAPDU: 90 00 [16:55:36]wFMCommunicate OK [16:55:36]wFMCommunicate request_size=4 [16:55:36]MH_SAM_APDU [16:55:36]CAPDU: 80 0D 03 02 [16:55:36]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 0B 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 0B 00 5A 01 00 34 D9 2E 8D 2C 48 DF 20 90 00 12 [16:55:36]RAPDU: 34 D9 2E 8D 2C 48 DF 20 90 00 [16:55:36]wFMCommunicate OK [16:55:36]SAM_PROTO_SignData done [16:55:36]FM_MakeSignedData done [16:55:36]CreateOFDProtocolMessage [16:55:36]wFMCommunicate request_size=4 [16:55:36]MH_SAM_APDU [16:55:36]CAPDU: 80 11 00 00 [16:55:36]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:36]Read from MH i2c: E2 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 17 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [16:55:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:55:36]wFMCommunicate OK [16:55:36]CreateOFDProtocolMessage done [16:55:36]OFDSenderStorePacket 178680 [16:55:36]StoreOFDPacket docnum=178680 [16:55:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AB 2C 07 01 1D 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 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 07 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F8 B9 02 00 35 04 06 00 F2 8A 65 B2 54 AD 34 D9 2E 8D 2C 48 DF 20 [16:55:36]CheckFolder [16:55:36]dirname=/storage/ofd_packets [16:55:36]CheckFolder done [16:55:36]ProducePacketName [16:55:36]name=ofd_packets/00178680 [16:55:36]NVStorageSaveData ofd_packets/00178680 [16:55:36]File name is /storage/ofd_packets/00178680 [16:55:36]Write 301 bytes [16:55:36]NVStorageSaveData done [16:55:36]OFDSenderStorePacket done [16:55:36]KKMCreateOFDPacket done [16:55:36]NVStorageSaveData kkm_last_timestamp [16:55:36]File name is /storage/kkm_last_timestamp [16:55:36]Write 4 bytes [16:55:36]NVStorageSaveData done [16:55:36]ExternCall_PrintAddStr [16:55:36]wPrintStart [16:55:36]Write to MH i2c: 01 00 00 5C 01 5D [16:55:36]Write i2c OK [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 07 00 [16:55:36]MH_I2C_Read... [16:55:36]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [16:55:36]RasterBufferAndPrint [16:55:36]line Счет N : (1)294488 [16:55:36]line ИНН: 02508201610067 [16:55:36]line Контрольно-Кассовый Чек [16:55:36]line ПРОДАЖА [16:55:36]line ТРК (МРК, ГНК) : 32 [16:55:36]line Товар: 2710124130 [16:55:36]line Аи-92-К-5 [16:55:36]line 10.920 * 67.80 [16:55:36]line = 740.38 [16:55:36]line НДС 12% НСП 1% [16:55:36]line > о реализуемом товаре [16:55:36]line ОКРУГЛЕНИЕ: -0.38 [16:55:36]line ИТОГО: 740.00 [16:55:36]line Внесено: 740.00 [16:55:36]line СДАЧА: 0.00 [16:55:36]line НСП 1% : 6.55 [16:55:36]line НДС 12% : 78.62 [16:55:36]line Наличными: 740.00 [16:55:36]line Безнал.: 0.00 [16:55:36]line Место: АЗС № 130 "Партнер Нефть" [16:55:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [16:55:36]line СНО: Общий режим [16:55:36]line Чек 140 23.08.2024 16:55 [16:55:36]line Смена: 470 ФФД: 1.0 [16:55:36]line ЗНМ: 0300000071 [16:55:36]line РНМ: 0000000000092561 [16:55:36]line Версия ККМ: 001 [16:55:36]line ФМ: 0000000000871778 [16:55:36]line ФД: 178680 [16:55:36]line ФПД: 266676225594541 [16:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165535&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178680&fm=266676225594541&tin=02508201610067®Number=0000000000092561&sum=74000 [16:55:36]written 0, free lines is 4095 [16:55:36]OFD Sender: Processing packet 178680 [packets to send 498, broken 497] [16:55:36]ProducePacketName [16:55:36]name=ofd_packets/00178680 [16:55:36]OFD Sender: To server: pG, [16:55:36]CommunicateWithHost lk.salyk.kg:30040 [16:55:36]ConnectInit lk.salyk.kg [16:55:37]Connected sock=8 [16:55:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AB 2C 07 01 1D 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 A8 2A 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 36 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 1E 00 00 00 00 07 04 06 00 10 21 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 07 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F8 B9 02 00 35 04 06 00 F2 8A 65 B2 54 AD 34 D9 2E 8D 2C 48 DF 20 [16:55:37]Write to MH i2c: 01 00 00 87 01 88 [16:55:37]Write i2c OK [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: 01 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: 01 07 00 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 F4 0C 8F [16:55:37]RasterBufferAndPrint [16:55:37]line [16:55:37]line [16:55:37]line [16:55:37]line [16:55:37]line [16:55:37]written 0, free lines is 3326 [16:55:37]MH_Cut [16:55:37]Write to MH i2c: D1 01 00 8E 01 01 61 [16:55:37]Write i2c OK [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: D1 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: D1 01 00 [16:55:37]MH_I2C_Read... [16:55:37]Read from MH i2c: D1 01 00 8E 01 00 60 [16:55:37]Write to MH i2c: 01 00 00 8F 01 90 [16:55:37]Write i2c OK [16:55:37]MH_I2C_Read... [16:55:37]*** Cut start [16:55:37]*** Partial cut [16:55:37]*** CUTSNS_PIN = 1 [16:55:38]*** CUTSNS_PIN = 0 [16:55:38]*** Brake cut motor [16:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 72 27 47 00 60 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 31 37 37 38 10 04 04 00 F8 B9 02 00 F4 03 04 00 AE 6A C8 66 B6 04 01 00 00 91 3A B5 B1 52 63 08 F1 [16:55:38]CommunicateWithHost err = 0 [16:55:38]CheckOFDResponse [16:55:38]1017 (14) - 77093643461234 [16:55:38]1041 (16) - 0000000000871778 [16:55:38]1040 (4) - 178680 [16:55:38]1012 (4) - 23.08.2024 10:55 [16:55:38]1206 (1) - 0 [16:55:38]OFD Sender: Remove packet 178680 [16:55:38]ProducePacketName [16:55:38]name=ofd_packets/00178680 [16:55:38]NVStorageDeleteData [16:55:38]Read from MH i2c: 01 [16:55:38]MH_I2C_Read... [16:55:38]*** Stop cut motor [16:55:38]*** Cut end [16:55:38]Read from MH i2c: 01 07 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [16:55:38]process_action close_receipt done [16:55:38]requested_data is exist [16:55:38]produce_requested_data [16:55:38]requested_item fm.sn is exist - process it [16:55:38]wFMCommunicate request_size=4 [16:55:38]MH_SAM_APDU [16:55:38]CAPDU: 80 11 00 00 [16:55:38]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:38]Read from MH i2c: E2 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 17 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [16:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:55:38]wFMCommunicate OK [16:55:38]requested_item fd.num is exist - process it [16:55:38]SAM_PROTO_GetFieldsCounters [16:55:38]wFMCommunicate request_size=4 [16:55:38]MH_SAM_APDU [16:55:38]CAPDU: 80 13 00 00 [16:55:38]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:38]Read from MH i2c: E2 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 62 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F8 B9 02 00 0E 04 04 00 D6 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 61 [16:55: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F8 B9 02 00 0E 04 04 00 D6 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 [16:55:38]wFMCommunicate OK [16:55:38]SAM_PROTO_GetFieldsCounters done [16:55:38]requested_item shift.num is exist - process it [16:55:38]requested_item shift.opened is exist - process it [16:55:38]req_shift_opened [16:55:38]FM_GetShiftState [16:55:38]SAM_PROTO_GetShiftState [16:55:38]wFMCommunicate request_size=4 [16:55:38]MH_SAM_APDU [16:55:38]CAPDU: 80 13 01 00 [16:55:38]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [16:55:38]Write i2c OK [16:55:38]MH_I2C_Read... [16:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:38]Read from MH i2c: E2 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 0E 00 [16:55:38]MH_I2C_Read... [16:55:38]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E7 [16:55:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:55:38]wFMCommunicate OK [16:55:38]SAM_PROTO_GetShiftState done [16:55:38]FM_GetShiftState done [16:55:38]req_shift_opened done [16:55:38]requested_item shift.open_date is exist - process it [16:55:38]req_shift_open_date [16:55:38]req_shift_open_date done [16:55:38]produce_requested_data done [16:55:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178680,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:55:38]process_action_free close_receipt [16:55:38]json_value_free [16:55:38]json_value_free done [16:55:38]process_json_proto returns [16:55:38]Send response to host [16:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178680,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:55:38]free response buf [16:55:38]execute_script done [16:55:38]execute_script returns [16:55:38]free content buf [16:55:38]Sock 9.Close socket [16:55:38]Sock 9.Thread stoped [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:04]recv_with_timeout no data received [16:56:08]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:16]recv_with_timeout no data received [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:44]recv_with_timeout no data received [16:56:45]accept exits with 10 [16:56:45]New connection [16:56:45]New thread 3066662244 created [16:56:45]Thread 3066805604 joined [16:56:45]Waiting for new connection... [16:56:45] Sock 10.Parse request [16:56:45]Sock 10.Check first char [16:56:45]Sock 10.First char is OK [16:56:45]request: POST /json_proto HTTP/1.0 [16:56:45]Method: POST [16:56:45]URL: /json_proto [16:56:45]Method is POST - this is cgi request [16:56:45]url: /json_proto [16:56:45]query_string will be loaded in cgi processing [16:56:45]execute_cgi json_proto POST (null) [16:56:45]execute_cgi path=json_proto method=POST [16:56:45]POST find Content-Length [16:56:45]Host: 172.17.44.131:8080 [16:56:45]Content-Length: 682 [16:56:45]Content-Type: application/json [16:56:45] [16:56:45]POST finish read [16:56:45]Found Content-Length = 682 [16:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294491", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:56:45]execute_script... [16:56: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)294491", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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:56:45]POST & json_proto [16:56:45]process_json_proto [16:56:45]json parsed OK: [16:56:45]protocol is kg_v1.0 [16:56:45]action value=close_receipt [16:56:45]process_action close_receipt [16:56:45]cmd_close_receipt [16:56:45]MH_GetDate [16:56:45]Write to MH i2c: F0 00 00 93 01 83 [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: F0 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: F0 09 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: F0 09 00 93 01 00 4E BF C8 66 4F 53 BE 66 8D [16:56:45]GetLastDocTimeStamp 1724432135 [16:56:45]current date 1724432206 [16:56:45]FM_GetShiftState [16:56:45]SAM_PROTO_GetShiftState [16:56:45]wFMCommunicate request_size=4 [16:56:45]MH_SAM_APDU [16:56:45]CAPDU: 80 13 01 00 [16:56:45]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [16:56:45]Write i2c OK [16:56:45]MH_I2C_Read... [16:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:45]Read from MH i2c: E2 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: E2 0E 00 [16:56:45]MH_I2C_Read... [16:56:45]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E9 [16:56:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:56:45]wFMCommunicate OK [16:56:45]SAM_PROTO_GetShiftState done [16:56:45]FM_GetShiftState done [16:56:45]opened in 1724371660 [16:56:45]opened+sec_in_day 1724458060 [16:56:45]quantity*price = 100005 [16:56:45]sum+1 = 100006 [16:56:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 141 23.08.2024 16:56 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178681 ФПД: 241589217429534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165646&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178681&fm=241589217429534&tin=02508201610067®Number=0000000000092561&sum=100000 [16:56:46]StoreToDocumentArchive [16:56:46]shift 470 fd 178681 [16:56:46]save to /storage/0470/doc_00178681 [16:56:46]save last doc name /storage/0470/doc_00178681 to /storage/kkm_last_doc_name [16:56:46]save OK [16:56:46]Clear old archive folders... [16:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:46]tlvbuf is 0090FE20 [16:56:46]SAM_PROTO_ClearQueue [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 09 00 00 [16:56:46]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [16:56:46]RAPDU: 90 00 [16:56:46]wFMCommunicate OK [16:56:46]SAM_PROTO_ClearQueue done [16:56:46]KKMCreateOFDPacket [16:56:46]OFDProtocolAddRootSTLVToBuf [16:56:46]FM_MakeSignedData [16:56:46]FM_MakeSignedData [16:56:46]SAM_PROTO_SignData [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 0D 01 02 [16:56:46]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [16:56:46]RAPDU: 90 00 [16:56:46]wFMCommunicate OK [16:56:46]wFMCommunicate request_size=255 [16:56:46]MH_SAM_APDU [16:56: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4E BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F9 B9 02 00 35 04 06 00 DB [16:56:46]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4E BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F9 B9 02 00 35 04 06 00 DB 00 00 5C [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [16:56:46]RAPDU: 90 00 [16:56:46]wFMCommunicate OK [16:56:46]wFMCommunicate request_size=10 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 0D 02 02 05 B9 5F 7C 88 1E [16:56:46]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 B9 5F 7C 88 1E 00 00 63 [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [16:56:47]RAPDU: 90 00 [16:56:47]wFMCommunicate OK [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 0D 03 02 [16:56:47]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 0B 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 0B 00 A5 01 00 6C 87 6D 2A 62 77 D2 4D 90 00 A4 [16:56:47]RAPDU: 6C 87 6D 2A 62 77 D2 4D 90 00 [16:56:47]wFMCommunicate OK [16:56:47]SAM_PROTO_SignData done [16:56:47]FM_MakeSignedData done [16:56:47]CreateOFDProtocolMessage [16:56:47]wFMCommunicate request_size=4 [16:56:47]MH_SAM_APDU [16:56:47]CAPDU: 80 11 00 00 [16:56:47]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:47]Read from MH i2c: E2 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 17 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [16:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:56:47]wFMCommunicate OK [16:56:47]CreateOFDProtocolMessage done [16:56:47]OFDSenderStorePacket 178681 [16:56:47]StoreOFDPacket docnum=178681 [16:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 45 92 07 01 6D B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4E BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F9 B9 02 00 35 04 06 00 DB B9 5F 7C 88 1E 6C 87 6D 2A 62 77 D2 4D [16:56:47]CheckFolder [16:56:47]dirname=/storage/ofd_packets [16:56:47]CheckFolder done [16:56:47]ProducePacketName [16:56:47]name=ofd_packets/00178681 [16:56:47]NVStorageSaveData ofd_packets/00178681 [16:56:47]File name is /storage/ofd_packets/00178681 [16:56:47]Write 301 bytes [16:56:47]NVStorageSaveData done [16:56:47]OFDSenderStorePacket done [16:56:47]KKMCreateOFDPacket done [16:56:47]NVStorageSaveData kkm_last_timestamp [16:56:47]File name is /storage/kkm_last_timestamp [16:56:47]Write 4 bytes [16:56:47]NVStorageSaveData done [16:56:47]ExternCall_PrintAddStr [16:56:47]wPrintStart [16:56:47]Write to MH i2c: 01 00 00 A7 01 A8 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [16:56:47]RasterBufferAndPrint [16:56:47]line Счет N : (1)294491 [16:56:47]line ИНН: 02508201610067 [16:56:47]line Контрольно-Кассовый Чек [16:56:47]line ПРОДАЖА [16:56:47]line ТРК (МРК, ГНК) : 52 [16:56:47]line Товар: 2710124130 [16:56:47]line Аи-92-К-5 [16:56:47]line 14.750 * 67.80 [16:56:47]line = 1000.05 [16:56:47]line НДС 12% НСП 1% [16:56:47]line > о реализуемом товаре [16:56:47]line ОКРУГЛЕНИЕ: -0.05 [16:56:47]line ИТОГО: 1000.00 [16:56:47]line Внесено: 1000.00 [16:56:47]line СДАЧА: 0.00 [16:56:47]line НСП 1% : 8.85 [16:56:47]line НДС 12% : 106.20 [16:56:47]line Наличными: 1000.00 [16:56:47]line Безнал.: 0.00 [16:56:47]line Место: АЗС № 130 "Партнер Нефть" [16:56:47]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [16:56:47]line СНО: Общий режим [16:56:47]line Чек 141 23.08.2024 16:56 [16:56:47]line Смена: 470 ФФД: 1.0 [16:56:47]line ЗНМ: 0300000071 [16:56:47]line РНМ: 0000000000092561 [16:56:47]line Версия ККМ: 001 [16:56:47]line ФМ: 0000000000871778 [16:56:47]line ФД: 178681 [16:56:47]line ФПД: 241589217429534 [16:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165646&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178681&fm=241589217429534&tin=02508201610067®Number=0000000000092561&sum=100000 [16:56:47]written 0, free lines is 4095 [16:56:47]OFD Sender: Processing packet 178681 [packets to send 498, broken 497] [16:56:47]ProducePacketName [16:56:47]name=ofd_packets/00178681 [16:56:47]OFD Sender: To server: pG, [16:56:47]CommunicateWithHost lk.salyk.kg:30040 [16:56:47]ConnectInit lk.salyk.kg [16:56:47]Write to MH i2c: 01 00 00 D2 01 D3 [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 DF 0C C5 [16:56:47]RasterBufferAndPrint [16:56:47]line [16:56:47]line [16:56:47]line [16:56:47]line [16:56:47]line [16:56:47]written 0, free lines is 3301 [16:56:47]MH_Cut [16:56:47]Write to MH i2c: D1 01 00 D9 01 01 AC [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: D1 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: D1 01 00 [16:56:47]MH_I2C_Read... [16:56:47]Read from MH i2c: D1 01 00 D9 01 00 AB [16:56:47]Write to MH i2c: 01 00 00 DA 01 DB [16:56:47]Write i2c OK [16:56:47]MH_I2C_Read... [16:56:48]*** Cut start [16:56:48]*** Partial cut [16:56:48]*** CUTSNS_PIN = 1 [16:56:48]*** CUTSNS_PIN = 0 [16:56:48]*** Brake cut motor [16:56:48]Connected sock=9 [16:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 45 92 07 01 6D B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 4E BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F9 B9 02 00 35 04 06 00 DB B9 5F 7C 88 1E 6C 87 6D 2A 62 77 D2 4D [16:56:48]Read from MH i2c: 01 [16:56:48]MH_I2C_Read... [16:56:48]*** Stop cut motor [16:56:48]*** Cut end [16:56:48]Read from MH i2c: 01 07 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [16:56:48]process_action close_receipt done [16:56:48]requested_data is exist [16:56:48]produce_requested_data [16:56:48]requested_item fm.sn is exist - process it [16:56:48]wFMCommunicate request_size=4 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 11 00 00 [16:56:48]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:48]Read from MH i2c: E2 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 17 00 [16:56:48]MH_I2C_Read... [16:56:48]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [16:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:56:48]wFMCommunicate OK [16:56:48]requested_item fd.num is exist - process it [16:56:48]SAM_PROTO_GetFieldsCounters [16:56:48]wFMCommunicate request_size=4 [16:56:48]MH_SAM_APDU [16:56:48]CAPDU: 80 13 00 00 [16:56:48]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [16:56:48]Write i2c OK [16:56:48]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 62 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F9 B9 02 00 0E 04 04 00 D6 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 B0 [16:56: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 F9 B9 02 00 0E 04 04 00 D6 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 [16:56:49]wFMCommunicate OK [16:56:49]SAM_PROTO_GetFieldsCounters done [16:56:49]requested_item shift.num is exist - process it [16:56:49]requested_item shift.opened is exist - process it [16:56:49]req_shift_opened [16:56:49]FM_GetShiftState [16:56:49]SAM_PROTO_GetShiftState [16:56:49]wFMCommunicate request_size=4 [16:56:49]MH_SAM_APDU [16:56:49]CAPDU: 80 13 01 00 [16:56:49]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [16:56:49]Write i2c OK [16:56:49]MH_I2C_Read... [16:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:49]Read from MH i2c: E2 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 0E 00 [16:56:49]MH_I2C_Read... [16:56:49]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 32 [16:56:49]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:56:49]wFMCommunicate OK [16:56:49]SAM_PROTO_GetShiftState done [16:56:49]FM_GetShiftState done [16:56:49]req_shift_opened done [16:56:49]requested_item shift.open_date is exist - process it [16:56:49]req_shift_open_date [16:56:49]req_shift_open_date done [16:56:49]produce_requested_data done [16:56:49]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178681,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:56:49]process_action_free close_receipt [16:56:49]json_value_free [16:56:49]json_value_free done [16:56:49]process_json_proto returns [16:56:49]Send response to host [16:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178681,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:56:49]free response buf [16:56:49]execute_script done [16:56:49]execute_script returns [16:56:49]free content buf [16:56:49]Sock 10.Close socket [16:56:49]Sock 10.Thread stoped [16:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FB C7 47 00 8A 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 F9 B9 02 00 F4 03 04 00 F6 6A C8 66 B6 04 01 00 00 3B 26 77 D4 EA 7F 2E 38 [16:56:49]CommunicateWithHost err = 0 [16:56:49]CheckOFDResponse [16:56:49]1017 (14) - 77093643461234 [16:56:49]1041 (16) - 0000000000871778 [16:56:49]1040 (4) - 178681 [16:56:49]1012 (4) - 23.08.2024 10:56 [16:56:49]1206 (1) - 0 [16:56:49]OFD Sender: Remove packet 178681 [16:56:49]ProducePacketName [16:56:49]name=ofd_packets/00178681 [16:56:49]NVStorageDeleteData [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:28]accept exits with 8 [16:57:28]New connection [16:57:28]New thread 3066805604 created [16:57:28]Thread 3066662244 joined [16:57:28]Waiting for new connection... [16:57:28] Sock 8.Parse request [16:57:28]Sock 8.Check first char [16:57:28]Sock 8.First char is OK [16:57:28]request: POST /json_proto HTTP/1.0 [16:57:28]Method: POST [16:57:28]URL: /json_proto [16:57:28]Method is POST - this is cgi request [16:57:28]url: /json_proto [16:57:28]query_string will be loaded in cgi processing [16:57:28]execute_cgi json_proto POST (null) [16:57:28]execute_cgi path=json_proto method=POST [16:57:28]POST find Content-Length [16:57:28]Host: 172.17.44.131:8080 [16:57:28]Content-Length: 679 [16:57:28]Content-Type: application/json [16:57:28] [16:57:28]POST finish read [16:57:28]Found Content-Length = 679 [16:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [16:57:28]execute_script... [16: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)294490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "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" ] } } [16:57:28]POST & json_proto [16:57:28]process_json_proto [16:57:28]json parsed OK: [16:57:28]protocol is kg_v1.0 [16:57:28]action value=close_receipt [16:57:28]process_action close_receipt [16:57:28]cmd_close_receipt [16:57:28]MH_GetDate [16:57:28]Write to MH i2c: F0 00 00 DE 01 CE [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: F0 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: F0 09 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: F0 09 00 DE 01 00 79 BF C8 66 4F 53 BE 66 03 [16:57:28]GetLastDocTimeStamp 1724432206 [16:57:28]current date 1724432249 [16:57:28]FM_GetShiftState [16:57:28]SAM_PROTO_GetShiftState [16:57:28]wFMCommunicate request_size=4 [16:57:28]MH_SAM_APDU [16:57:28]CAPDU: 80 13 01 00 [16:57:28]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:28]Read from MH i2c: E2 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 0E 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 34 [16:57:28]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:57:28]wFMCommunicate OK [16:57:28]SAM_PROTO_GetShiftState done [16:57:28]FM_GetShiftState done [16:57:28]opened in 1724371660 [16:57:28]opened+sec_in_day 1724458060 [16:57:28]quantity*price = 250012 [16:57:28]sum+1 = 250013 [16:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 142 23.08.2024 16:57 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178682 ФПД: 105423372510292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165729&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178682&fm=105423372510292&tin=02508201610067®Number=0000000000092561&sum=250000 [16:57:29]StoreToDocumentArchive [16:57:29]shift 470 fd 178682 [16:57:29]save to /storage/0470/doc_00178682 [16:57:29]save last doc name /storage/0470/doc_00178682 to /storage/kkm_last_doc_name [16:57:29]save OK [16:57:29]Clear old archive folders... [16:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:57:29]tlvbuf is 0090B3A0 [16:57:29]SAM_PROTO_ClearQueue [16:57:29]wFMCommunicate request_size=4 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 09 00 00 [16:57:29]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:29]Read from MH i2c: E2 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [16:57:29]RAPDU: 90 00 [16:57:29]wFMCommunicate OK [16:57:29]SAM_PROTO_ClearQueue done [16:57:29]KKMCreateOFDPacket [16:57:29]OFDProtocolAddRootSTLVToBuf [16:57:29]FM_MakeSignedData [16:57:29]FM_MakeSignedData [16:57:29]SAM_PROTO_SignData [16:57:29]wFMCommunicate request_size=4 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 0D 01 02 [16:57:29]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:29]Read from MH i2c: E2 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 [16:57:29]MH_I2C_Read... [16:57:29]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [16:57:29]RAPDU: 90 00 [16:57:29]wFMCommunicate OK [16:57:29]wFMCommunicate request_size=255 [16:57:29]MH_SAM_APDU [16:57:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 8E 00 00 00 F4 03 04 00 79 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FA B9 02 00 35 04 06 00 5F E1 CA AB [16:57:29]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 8E 00 00 00 F4 03 04 00 79 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FA B9 02 00 35 04 06 00 5F E1 CA AB 00 00 8B [16:57:29]Write i2c OK [16:57:29]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=7 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 02 02 02 64 54 [16:57:30]Write to MH i2c: E2 0A 00 EF 01 80 0D 02 02 02 00 64 54 00 00 26 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [16:57:30]RAPDU: 90 00 [16:57:30]wFMCommunicate OK [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 0D 03 02 [16:57:30]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0B 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 0B 00 F0 01 00 FA F8 B3 A7 CE 6E 3D BA 90 00 EC [16:57:30]RAPDU: FA F8 B3 A7 CE 6E 3D BA 90 00 [16:57:30]wFMCommunicate OK [16:57:30]SAM_PROTO_SignData done [16:57:30]FM_MakeSignedData done [16:57:30]CreateOFDProtocolMessage [16:57:30]wFMCommunicate request_size=4 [16:57:30]MH_SAM_APDU [16:57:30]CAPDU: 80 11 00 00 [16:57:30]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:30]Read from MH i2c: E2 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C5 [16:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:57:30]wFMCommunicate OK [16:57:30]CreateOFDProtocolMessage done [16:57:30]OFDSenderStorePacket 178682 [16:57:30]StoreOFDPacket docnum=178682 [16:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 2F FD 04 01 22 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 8E 00 00 00 F4 03 04 00 79 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FA B9 02 00 35 04 06 00 5F E1 CA AB 64 54 FA F8 B3 A7 CE 6E 3D BA [16:57:30]CheckFolder [16:57:30]dirname=/storage/ofd_packets [16:57:30]CheckFolder done [16:57:30]ProducePacketName [16:57:30]name=ofd_packets/00178682 [16:57:30]NVStorageSaveData ofd_packets/00178682 [16:57:30]File name is /storage/ofd_packets/00178682 [16:57:30]Write 298 bytes [16:57:30]NVStorageSaveData done [16:57:30]OFDSenderStorePacket done [16:57:30]KKMCreateOFDPacket done [16:57:30]NVStorageSaveData kkm_last_timestamp [16:57:30]File name is /storage/kkm_last_timestamp [16:57:30]Write 4 bytes [16:57:30]NVStorageSaveData done [16:57:30]ExternCall_PrintAddStr [16:57:30]wPrintStart [16:57:30]Write to MH i2c: 01 00 00 F2 01 F3 [16:57:30]Write i2c OK [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 07 00 [16:57:30]MH_I2C_Read... [16:57:30]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [16:57:30]RasterBufferAndPrint [16:57:30]line Счет N : (1)294490 [16:57:30]line ИНН: 02508201610067 [16:57:30]line Контрольно-Кассовый Чек [16:57:30]line ПРОДАЖА [16:57:30]line ТРК (МРК, ГНК) : 21 [16:57:30]line Товар: 2710194800 [16:57:30]line ДТ-К-5 [16:57:30]line 32.810 * 76.20 [16:57:30]line = 2500.12 [16:57:30]line НДС 12% НСП 1% [16:57:30]line > о реализуемом товаре [16:57:30]line ОКРУГЛЕНИЕ: -0.12 [16:57:30]line ИТОГО: 2500.00 [16:57:30]line Внесено: 2500.00 [16:57:30]line СДАЧА: 0.00 [16:57:30]line НСП 1% : 22.12 [16:57:30]line НДС 12% : 265.50 [16:57:30]line Наличными: 2500.00 [16:57:30]line Безнал.: 0.00 [16:57:30]line Место: АЗС № 130 "Партнер Нефть" [16:57:30]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [16:57:30]line СНО: Общий режим [16:57:30]line Чек 142 23.08.2024 16:57 [16:57:30]line Смена: 470 ФФД: 1.0 [16:57:30]line ЗНМ: 0300000071 [16:57:30]line РНМ: 0000000000092561 [16:57:30]line Версия ККМ: 001 [16:57:30]line ФМ: 0000000000871778 [16:57:30]line ФД: 178682 [16:57:30]line ФПД: 105423372510292 [16:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T165729&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178682&fm=105423372510292&tin=02508201610067®Number=0000000000092561&sum=250000 [16:57:30]OFD Sender: Processing packet 178682 [packets to send 498, broken 497] [16:57:30]ProducePacketName [16:57:30]name=ofd_packets/00178682 [16:57:30]OFD Sender: To server: pG, [16:57:30]CommunicateWithHost lk.salyk.kg:30040 [16:57:30]ConnectInit lk.salyk.kg [16:57:30]written 0, free lines is 4095 [16:57:31]Write to MH i2c: 01 00 00 1D 02 1F [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 E1 0C 13 [16:57:31]RasterBufferAndPrint [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]line [16:57:31]written 0, free lines is 3303 [16:57:31]MH_Cut [16:57:31]Write to MH i2c: D1 01 00 24 02 01 F8 [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 01 00 [16:57:31]MH_I2C_Read... [16:57:31]Read from MH i2c: D1 01 00 24 02 00 F7 [16:57:31]Write to MH i2c: 01 00 00 25 02 27 [16:57:31]Write i2c OK [16:57:31]MH_I2C_Read... [16:57:31]*** Cut start [16:57:31]*** Partial cut [16:57:31]*** CUTSNS_PIN = 1 [16:57:31]Connected sock=10 [16:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 2F FD 04 01 22 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 8E 00 00 00 F4 03 04 00 79 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FA B9 02 00 35 04 06 00 5F E1 CA AB 64 54 FA F8 B3 A7 CE 6E 3D BA [16:57:31]*** CUTSNS_PIN = 0 [16:57:32]*** Brake cut motor [16:57:32]Read from MH i2c: 01 [16:57:32]MH_I2C_Read... [16:57:32]*** Stop cut motor [16:57:32]*** Cut end [16:57:32]Read from MH i2c: 01 07 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [16:57:32]process_action close_receipt done [16:57:32]requested_data is exist [16:57:32]produce_requested_data [16:57:32]requested_item fm.sn is exist - process it [16:57:32]wFMCommunicate request_size=4 [16:57:32]MH_SAM_APDU [16:57:32]CAPDU: 80 11 00 00 [16:57:32]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [16:57:32]Write i2c OK [16:57:32]MH_I2C_Read... [16:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:32]Read from MH i2c: E2 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 17 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FB [16:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [16:57:32]wFMCommunicate OK [16:57:32]requested_item fd.num is exist - process it [16:57:32]SAM_PROTO_GetFieldsCounters [16:57:32]wFMCommunicate request_size=4 [16:57:32]MH_SAM_APDU [16:57:32]CAPDU: 80 13 00 00 [16:57:32]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [16:57:32]Write i2c OK [16:57:32]MH_I2C_Read... [16:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:32]Read from MH i2c: E2 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 62 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FA B9 02 00 0E 04 04 00 D6 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 00 [16:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FA B9 02 00 0E 04 04 00 D6 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 [16:57:32]wFMCommunicate OK [16:57:32]SAM_PROTO_GetFieldsCounters done [16:57:32]requested_item shift.num is exist - process it [16:57:32]requested_item shift.opened is exist - process it [16:57:32]req_shift_opened [16:57:32]FM_GetShiftState [16:57:32]SAM_PROTO_GetShiftState [16:57:32]wFMCommunicate request_size=4 [16:57:32]MH_SAM_APDU [16:57:32]CAPDU: 80 13 01 00 [16:57:32]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [16:57:32]Write i2c OK [16:57:32]MH_I2C_Read... [16:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:32]Read from MH i2c: E2 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 0E 00 [16:57:32]MH_I2C_Read... [16:57:32]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7E [16:57:32]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [16:57:32]wFMCommunicate OK [16:57:32]SAM_PROTO_GetShiftState done [16:57:32]FM_GetShiftState done [16:57:32]req_shift_opened done [16:57:32]requested_item shift.open_date is exist - process it [16:57:32]req_shift_open_date [16:57:32]req_shift_open_date done [16:57:32]produce_requested_data done [16:57:32]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178682,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [16:57:32]process_action_free close_receipt [16:57:32]json_value_free [16:57:32]json_value_free done [16:57:32]process_json_proto returns [16:57:32]Send response to host [16:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178682,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [16:57:32]free response buf [16:57:32]execute_script done [16:57:32]execute_script returns [16:57:32]free content buf [16:57:32]Sock 8.Close socket [16:57:32]Sock 8.Thread stoped [16:57:36]recv_with_timeout no data received [16:57:36]CommunicateWithHost answer receiving error [16:57:36]CommunicateWithHost err = -3 [16:57:36]OFD Sender: Server communicate error [16:57:41]OFD Sender: Processing packet 178682 [packets to send 498, broken 497] [16:57:41]ProducePacketName [16:57:41]name=ofd_packets/00178682 [16:57:41]OFD Sender: To server: pG, [16:57:41]CommunicateWithHost lk.salyk.kg:30040 [16:57:41]ConnectInit lk.salyk.kg [16:57:43]Connected sock=8 [16:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 2F FD 04 01 22 28 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 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 8E 00 00 00 F4 03 04 00 79 BF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FA B9 02 00 35 04 06 00 5F E1 CA AB 64 54 FA F8 B3 A7 CE 6E 3D BA [16:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 6F 35 47 00 E6 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FA B9 02 00 F4 03 04 00 2C 6B C8 66 B6 04 01 00 00 92 DB EA B6 69 31 40 98 [16:57:43]CommunicateWithHost err = 0 [16:57:43]CheckOFDResponse [16:57:43]1017 (14) - 77093643461234 [16:57:43]1041 (16) - 0000000000871778 [16:57:43]1040 (4) - 178682 [16:57:43]1012 (4) - 23.08.2024 10:57 [16:57:43]1206 (1) - 0 [16:57:43]OFD Sender: Remove packet 178682 [16:57:43]ProducePacketName [16:57:43]name=ofd_packets/00178682 [16:57:43]NVStorageDeleteData [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:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:20]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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:35]recv_with_timeout no data received [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:47]recv_with_timeout no data received [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:50]OFD Sender: No OFD packet to send [17:04:52]recv_with_timeout no data received [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:05]recv_with_timeout no data received [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:17]recv_with_timeout no data received [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:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:09:55]recv_with_timeout no data received [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:05]recv_with_timeout no data received [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:31]recv_with_timeout no data received [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:13:57]recv_with_timeout no data received [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:31]recv_with_timeout no data received [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:49]recv_with_timeout no data received [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:18]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:19:57]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:12]OFD Sender: No OFD packet to send [17:22:12]recv_with_timeout no data received [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:41]recv_with_timeout no data received [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:54]recv_with_timeout no data received [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:40]recv_with_timeout no data received [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:10]recv_with_timeout no data received [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:50]accept exits with 9 [17:25:50]New connection [17:25:50]New thread 3066662244 created [17:25:50]Thread 3066805604 joined [17:25:50]Waiting for new connection... [17:25:50] Sock 9.Parse request [17:25:50]Sock 9.Check first char [17:25:50]Sock 9.First char is OK [17:25:50]request: POST /json_proto HTTP/1.0 [17:25:50]Method: POST [17:25:50]URL: /json_proto [17:25:50]Method is POST - this is cgi request [17:25:50]url: /json_proto [17:25:50]query_string will be loaded in cgi processing [17:25:50]execute_cgi json_proto POST (null) [17:25:50]execute_cgi path=json_proto method=POST [17:25:50]POST find Content-Length [17:25:50]Host: 172.17.44.131:8080 [17:25:50]Content-Length: 675 [17:25:50]Content-Type: application/json [17:25:50] [17:25:50]POST finish read [17:25:50]Found Content-Length = 675 [17:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 0.170, "sum" : 6.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 6.00, "payments": [ { "type": 0, "sum" : 6.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:50]execute_script... [17:25: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)294510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 0.170, "sum" : 6.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 6.00, "payments": [ { "type": 0, "sum" : 6.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:50]POST & json_proto [17:25:50]process_json_proto [17:25:50]json parsed OK: [17:25:50]protocol is kg_v1.0 [17:25:50]action value=close_receipt [17:25:50]process_action close_receipt [17:25:50]cmd_close_receipt [17:25:50]MH_GetDate [17:25:50]Write to MH i2c: F0 00 00 29 02 1A [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: F0 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: F0 09 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: F0 09 00 29 02 00 1F C6 C8 66 4F 53 BE 66 FC [17:25:50]GetLastDocTimeStamp 1724432249 [17:25:50]current date 1724433951 [17:25:50]FM_GetShiftState [17:25:50]SAM_PROTO_GetShiftState [17:25:50]wFMCommunicate request_size=4 [17:25:50]MH_SAM_APDU [17:25:50]CAPDU: 80 13 01 00 [17:25:50]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:50]Read from MH i2c: E2 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 0E 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 80 [17:25:50]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:25:50]wFMCommunicate OK [17:25:50]SAM_PROTO_GetShiftState done [17:25:50]FM_GetShiftState done [17:25:50]opened in 1724371660 [17:25:50]opened+sec_in_day 1724458060 [17:25:50]quantity*price = 635 [17:25:50]sum+1 = 637 [17:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 6.00 Внесено: 1800.00 СДАЧА: 1794.00 НСП 1% : 0.06 НДС 12% : 0.67 Наличными: 6.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 143 23.08.2024 17:25 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178683 ФПД: 192960524514709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T172551&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178683&fm=192960524514709&tin=02508201610067®Number=0000000000092561&sum=600 [17:25:52]StoreToDocumentArchive [17:25:52]shift 470 fd 178683 [17:25:52]save to /storage/0470/doc_00178683 [17:25:52]save last doc name /storage/0470/doc_00178683 to /storage/kkm_last_doc_name [17:25:52]save OK [17:25:52]Clear old archive folders... [17:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:25:52]tlvbuf is 00908230 [17:25:52]SAM_PROTO_ClearQueue [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 09 00 00 [17:25:52]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [17:25:52]RAPDU: 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_ClearQueue done [17:25:52]KKMCreateOFDPacket [17:25:52]OFDProtocolAddRootSTLVToBuf [17:25:52]FM_MakeSignedData [17:25:52]FM_MakeSignedData [17:25:52]SAM_PROTO_SignData [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 0D 01 02 [17:25:52]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [17:25:52]RAPDU: 90 00 [17:25:52]wFMCommunicate OK [17:25:52]wFMCommunicate request_size=255 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7C 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1F C6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FB B9 02 00 35 04 06 00 AF 7F [17:25:52]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7C 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1F C6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FB B9 02 00 35 04 06 00 AF 7F 00 00 9D [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [17:25:52]RAPDU: 90 00 [17:25:52]wFMCommunicate OK [17:25:52]wFMCommunicate request_size=9 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 0D 02 02 04 1F 84 F5 95 [17:25:52]Write to MH i2c: E2 0C 00 3A 02 80 0D 02 02 04 00 1F 84 F5 95 00 00 EB [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [17:25:52]RAPDU: 90 00 [17:25:52]wFMCommunicate OK [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 0D 03 02 [17:25:52]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0B 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0B 00 3B 02 00 DA 7F E6 A8 0F B8 95 B6 90 00 B2 [17:25:52]RAPDU: DA 7F E6 A8 0F B8 95 B6 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_SignData done [17:25:52]FM_MakeSignedData done [17:25:52]CreateOFDProtocolMessage [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 11 00 00 [17:25:52]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 17 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 11 [17:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:25:52]wFMCommunicate OK [17:25:52]CreateOFDProtocolMessage done [17:25:52]OFDSenderStorePacket 178683 [17:25:52]StoreOFDPacket docnum=178683 [17:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 43 90 06 01 AA D2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7C 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1F C6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FB B9 02 00 35 04 06 00 AF 7F 1F 84 F5 95 DA 7F E6 A8 0F B8 95 B6 [17:25:52]CheckFolder [17:25:52]dirname=/storage/ofd_packets [17:25:52]CheckFolder done [17:25:52]ProducePacketName [17:25:52]name=ofd_packets/00178683 [17:25:52]NVStorageSaveData ofd_packets/00178683 [17:25:52]File name is /storage/ofd_packets/00178683 [17:25:52]Write 300 bytes [17:25:52]NVStorageSaveData done [17:25:52]OFDSenderStorePacket done [17:25:52]KKMCreateOFDPacket done [17:25:52]NVStorageSaveData kkm_last_timestamp [17:25:52]File name is /storage/kkm_last_timestamp [17:25:52]Write 4 bytes [17:25:52]NVStorageSaveData done [17:25:52]ExternCall_PrintAddStr [17:25:52]wPrintStart [17:25:52]Write to MH i2c: 01 00 00 3D 02 3F [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: 01 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: 01 07 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [17:25:52]RasterBufferAndPrint [17:25:52]line Счет N : (1)294510 [17:25:52]line ИНН: 02508201610067 [17:25:52]line Контрольно-Кассовый Чек [17:25:52]line ПРОДАЖА [17:25:52]line ТРК (МРК, ГНК) : 71 [17:25:52]line Товар: 2711129700 [17:25:52]line ГАЗ-К-5 [17:25:52]line 0.170 * 37.40 [17:25:52]line = 6.36 [17:25:52]line НДС 12% НСП 1% [17:25:52]line > о реализуемом товаре [17:25:52]line ОКРУГЛЕНИЕ: -0.36 [17:25:52]line ИТОГО: 6.00 [17:25:52]line Внесено: 1800.00 [17:25:52]line СДАЧА: 1794.00 [17:25:52]line НСП 1% : 0.06 [17:25:52]line НДС 12% : 0.67 [17:25:52]line Наличными: 6.00 [17:25:52]line Безнал.: 0.00 [17:25:52]line Место: АЗС № 130 "Партнер Нефть" [17:25:52]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:25:52]line СНО: Общий режим [17:25:52]line Чек 143 23.08.2024 17:25 [17:25:52]line Смена: 470 ФФД: 1.0 [17:25:52]line ЗНМ: 0300000071 [17:25:52]line РНМ: 0000000000092561 [17:25:52]line Версия ККМ: 001 [17:25:52]line ФМ: 0000000000871778 [17:25:52]line ФД: 178683 [17:25:52]line ФПД: 192960524514709 [17:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T172551&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178683&fm=192960524514709&tin=02508201610067®Number=0000000000092561&sum=600 [17:25:52]written 0, free lines is 4095 [17:25:52]OFD Sender: Processing packet 178683 [packets to send 498, broken 497] [17:25:52]ProducePacketName [17:25:52]name=ofd_packets/00178683 [17:25:52]OFD Sender: To server: pG, [17:25:52]CommunicateWithHost lk.salyk.kg:30040 [17:25:52]ConnectInit lk.salyk.kg [17:25:52]Connected sock=10 [17:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 43 90 06 01 AA D2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AA 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 7C 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 1F C6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FB B9 02 00 35 04 06 00 AF 7F 1F 84 F5 95 DA 7F E6 A8 0F B8 95 B6 [17:25:53]Write to MH i2c: 01 00 00 68 02 6A [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: 01 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: 01 07 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 C8 0C 45 [17:25:53]RasterBufferAndPrint [17:25:53]line [17:25:53]line [17:25:53]line [17:25:53]line [17:25:53]line [17:25:53]written 0, free lines is 3279 [17:25:53]MH_Cut [17:25:53]Write to MH i2c: D1 01 00 6F 02 01 43 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: D1 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: D1 01 00 [17:25:53]MH_I2C_Read... [17:25:53]Read from MH i2c: D1 01 00 6F 02 00 42 [17:25:53]Write to MH i2c: 01 00 00 70 02 72 [17:25:53]Write i2c OK [17:25:53]MH_I2C_Read... [17:25:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 05 30 47 00 BD 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 31 37 37 38 10 04 04 00 FB B9 02 00 F4 03 04 00 C6 71 C8 66 B6 04 01 00 00 E8 B5 6C EE 55 46 A1 5B [17:25:53]CommunicateWithHost err = 0 [17:25:53]CheckOFDResponse [17:25:53]1017 (14) - 77093643461234 [17:25:53]1041 (16) - 0000000000871778 [17:25:53]1040 (4) - 178683 [17:25:53]1012 (4) - 23.08.2024 11:25 [17:25:53]1206 (1) - 0 [17:25:53]OFD Sender: Remove packet 178683 [17:25:53]ProducePacketName [17:25:53]name=ofd_packets/00178683 [17:25:53]NVStorageDeleteData [17:25:53]*** Cut start [17:25:53]*** Partial cut [17:25:53]*** CUTSNS_PIN = 1 [17:25:53]*** CUTSNS_PIN = 0 [17:25:53]OFD Sender: No OFD packet to send [17:25:53]*** Brake cut motor [17:25:54]Read from MH i2c: 01 [17:25:54]MH_I2C_Read... [17:25:54]*** Stop cut motor [17:25:54]*** Cut end [17:25:54]Read from MH i2c: 01 07 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [17:25:54]process_action close_receipt done [17:25:54]requested_data is exist [17:25:54]produce_requested_data [17:25:54]requested_item fm.sn is exist - process it [17:25:54]wFMCommunicate request_size=4 [17:25:54]MH_SAM_APDU [17:25:54]CAPDU: 80 11 00 00 [17:25:54]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 17 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 46 [17:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:25:54]wFMCommunicate OK [17:25:54]requested_item fd.num is exist - process it [17:25:54]SAM_PROTO_GetFieldsCounters [17:25:54]wFMCommunicate request_size=4 [17:25:54]MH_SAM_APDU [17:25:54]CAPDU: 80 13 00 00 [17:25:54]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 62 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FB B9 02 00 0E 04 04 00 D6 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 4F [17:25: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FB B9 02 00 0E 04 04 00 D6 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 [17:25:54]wFMCommunicate OK [17:25:54]SAM_PROTO_GetFieldsCounters done [17:25:54]requested_item shift.num is exist - process it [17:25:54]requested_item shift.opened is exist - process it [17:25:54]req_shift_opened [17:25:54]FM_GetShiftState [17:25:54]SAM_PROTO_GetShiftState [17:25:54]wFMCommunicate request_size=4 [17:25:54]MH_SAM_APDU [17:25:54]CAPDU: 80 13 01 00 [17:25:54]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [17:25:54]Write i2c OK [17:25:54]MH_I2C_Read... [17:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:54]Read from MH i2c: E2 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 0E 00 [17:25:54]MH_I2C_Read... [17:25:54]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C9 [17:25:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:25:54]wFMCommunicate OK [17:25:54]SAM_PROTO_GetShiftState done [17:25:54]FM_GetShiftState done [17:25:54]req_shift_opened done [17:25:54]requested_item shift.open_date is exist - process it [17:25:54]req_shift_open_date [17:25:54]req_shift_open_date done [17:25:54]produce_requested_data done [17:25:54]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178683,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:25:54]process_action_free close_receipt [17:25:54]json_value_free [17:25:54]json_value_free done [17:25:54]process_json_proto returns [17:25:54]Send response to host [17:25:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178683,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:25:54]free response buf [17:25:54]execute_script done [17:25:54]execute_script returns [17:25:54]free content buf [17:25:54]Sock 9.Close socket [17:25:54]Sock 9.Thread stoped [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:05]recv_with_timeout no data received [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:29:25]ConnectInit Can't connect to host [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:13]accept exits with 8 [17:31:13]New connection [17:31:13]New thread 3066805604 created [17:31:13]Thread 3066662244 joined [17:31:13]Waiting for new connection... [17:31:13] Sock 8.Parse request [17:31:13]Sock 8.Check first char [17:31:13]Sock 8.First char is OK [17:31:13]request: POST /json_proto HTTP/1.0 [17:31:13]Method: POST [17:31:13]URL: /json_proto [17:31:13]Method is POST - this is cgi request [17:31:13]url: /json_proto [17:31:13]query_string will be loaded in cgi processing [17:31:13]execute_cgi json_proto POST (null) [17:31:13]execute_cgi path=json_proto method=POST [17:31:13]POST find Content-Length [17:31:13]Host: 172.17.44.131:8080 [17:31:13]Content-Length: 794 [17:31:13]Content-Type: application/json [17:31:13] [17:31:13]POST finish read [17:31:13]Found Content-Length = 794 [17:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294513", "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" : 0.00, "quantity" : 59.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:13]execute_script... [17:31: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)294513", "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" : 0.00, "quantity" : 59.670, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A2", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:13]POST & json_proto [17:31:13]process_json_proto [17:31:13]json parsed OK: [17:31:13]protocol is kg_v1.0 [17:31:13]action value=close_receipt [17:31:13]process_action close_receipt [17:31:13]cmd_close_receipt [17:31:13]MH_GetDate [17:31:13]Write to MH i2c: F0 00 00 74 02 65 [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: F0 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: F0 09 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: F0 09 00 74 02 00 62 C7 C8 66 4F 53 BE 66 8B [17:31:13]GetLastDocTimeStamp 1724433951 [17:31:13]current date 1724434274 [17:31:13]FM_GetShiftState [17:31:13]SAM_PROTO_GetShiftState [17:31:13]wFMCommunicate request_size=4 [17:31:13]MH_SAM_APDU [17:31:13]CAPDU: 80 13 01 00 [17:31:13]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [17:31:13]Write i2c OK [17:31:13]MH_I2C_Read... [17:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:13]Read from MH i2c: E2 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: E2 0E 00 [17:31:13]MH_I2C_Read... [17:31:13]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CB [17:31:13]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:31:13]wFMCommunicate OK [17:31:13]SAM_PROTO_GetShiftState done [17:31:13]FM_GetShiftState done [17:31:13]opened in 1724371660 [17:31:13]opened+sec_in_day 1724458060 [17:31:13]quantity*price = 0 [17:31:13]sum+1 = 1 [17:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 144 23.08.2024 17:31 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 2 ФМ: 0000000000871778 ФД: 178684 ФПД: 150990853181429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173114&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178684&fm=150990853181429&tin=02508201610067®Number=0000000000092561&sum=0 [17:31:14]StoreToDocumentArchive [17:31:14]shift 470 fd 178684 [17:31:14]save to /storage/0470/doc_00178684 [17:31:14]save last doc name /storage/0470/doc_00178684 to /storage/kkm_last_doc_name [17:31:14]save OK [17:31:14]Clear old archive folders... [17:31:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:14]tlvbuf is B6E9D9A0 [17:31:14]SAM_PROTO_ClearQueue [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 09 00 00 [17:31:14]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [17:31:14]RAPDU: 90 00 [17:31:14]wFMCommunicate OK [17:31:14]SAM_PROTO_ClearQueue done [17:31:14]KKMCreateOFDPacket [17:31:14]OFDProtocolAddRootSTLVToBuf [17:31:14]FM_MakeSignedData [17:31:14]FM_MakeSignedData [17:31:14]SAM_PROTO_SignData [17:31:14]wFMCommunicate request_size=4 [17:31:14]MH_SAM_APDU [17:31:14]CAPDU: 80 0D 01 02 [17:31:14]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:14]Read from MH i2c: E2 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 [17:31:14]MH_I2C_Read... [17:31:14]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [17:31:14]RAPDU: 90 00 [17:31:14]wFMCommunicate OK [17:31:14]wFMCommunicate request_size=255 [17:31:14]MH_SAM_APDU [17:31: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 16 E9 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 62 C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 35 04 06 00 89 [17:31:14]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 16 E9 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 62 C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 35 04 06 00 89 00 00 09 [17:31:14]Write i2c OK [17:31:14]MH_I2C_Read... [17:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:15]Read from MH i2c: E2 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 03 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [17:31:15]RAPDU: 90 00 [17:31:15]wFMCommunicate OK [17:31:15]wFMCommunicate request_size=10 [17:31:15]MH_SAM_APDU [17:31:15]CAPDU: 80 0D 02 02 05 53 4C 2B 0F F5 [17:31:15]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 53 4C 2B 0F F5 00 00 D9 [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:15]Read from MH i2c: E2 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 03 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [17:31:15]RAPDU: 90 00 [17:31:15]wFMCommunicate OK [17:31:15]wFMCommunicate request_size=4 [17:31:15]MH_SAM_APDU [17:31:15]CAPDU: 80 0D 03 02 [17:31:15]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:15]Read from MH i2c: E2 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 0B 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 0B 00 86 02 00 AF 56 38 5E E4 8A DC FC 90 00 E5 [17:31:15]RAPDU: AF 56 38 5E E4 8A DC FC 90 00 [17:31:15]wFMCommunicate OK [17:31:15]SAM_PROTO_SignData done [17:31:15]FM_MakeSignedData done [17:31:15]CreateOFDProtocolMessage [17:31:15]wFMCommunicate request_size=4 [17:31:15]MH_SAM_APDU [17:31:15]CAPDU: 80 11 00 00 [17:31:15]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:15]Read from MH i2c: E2 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 17 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5C [17:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:31:15]wFMCommunicate OK [17:31:15]CreateOFDProtocolMessage done [17:31:15]OFDSenderStorePacket 178684 [17:31:15]StoreOFDPacket docnum=178684 [17:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A8 92 07 01 08 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 16 E9 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 62 C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 35 04 06 00 89 53 4C 2B 0F F5 AF 56 38 5E E4 8A DC FC [17:31:15]CheckFolder [17:31:15]dirname=/storage/ofd_packets [17:31:15]CheckFolder done [17:31:15]ProducePacketName [17:31:15]name=ofd_packets/00178684 [17:31:15]NVStorageSaveData ofd_packets/00178684 [17:31:15]File name is /storage/ofd_packets/00178684 [17:31:15]Write 301 bytes [17:31:15]NVStorageSaveData done [17:31:15]OFDSenderStorePacket done [17:31:15]KKMCreateOFDPacket done [17:31:15]NVStorageSaveData kkm_last_timestamp [17:31:15]File name is /storage/kkm_last_timestamp [17:31:15]Write 4 bytes [17:31:15]NVStorageSaveData done [17:31:15]ExternCall_PrintAddStr [17:31:15]wPrintStart [17:31:15]Write to MH i2c: 01 00 00 88 02 8A [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 07 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [17:31:15]RasterBufferAndPrint [17:31:15]line Счет N : (1)294513 [17:31:15]line ИНН: 02508201610067 [17:31:15]line Контрольно-Кассовый Чек [17:31:15]line ПРОДАЖА [17:31:15]line ТРК (МРК, ГНК) : 42 [17:31:15]line Товар: 2710124130 [17:31:15]line Аи-92-К-5 [17:31:15]line 59.670 * 0.00 [17:31:15]line = 0.00 [17:31:15]line НДС 12% НСП 1% [17:31:15]line > о реализуемом товаре [17:31:15]line ИТОГО: 0.00 [17:31:15]line НСП 1% : 0.00 [17:31:15]line НДС 12% : 0.00 [17:31:15]line Наличными: 0.00 [17:31:15]line Безнал.: 0.00 [17:31:15]line Место: АЗС № 130 "Партнер Нефть" [17:31:15]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:31:15]line СНО: Общий режим [17:31:15]line Чек 144 23.08.2024 17:31 [17:31:15]line Смена: 470 ФФД: 1.0 [17:31:15]line ЗНМ: 0300000071 [17:31:15]line РНМ: 0000000000092561 [17:31:15]line Версия ККМ: 001 [17:31:15]line Талоны: Топливные Талоны [17:31:15]line 2 [17:31:15]line ФМ: 0000000000871778 [17:31:15]line ФД: 178684 [17:31:15]line ФПД: 150990853181429 [17:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173114&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178684&fm=150990853181429&tin=02508201610067®Number=0000000000092561&sum=0 [17:31:15]written 0, free lines is 4095 [17:31:15]OFD Sender: Processing packet 178684 [packets to send 498, broken 497] [17:31:15]ProducePacketName [17:31:15]name=ofd_packets/00178684 [17:31:15]OFD Sender: To server: pG, [17:31:15]CommunicateWithHost lk.salyk.kg:30040 [17:31:15]ConnectInit lk.salyk.kg [17:31:15]Write to MH i2c: 01 00 00 B2 02 B4 [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 07 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 DD 0C A4 [17:31:15]RasterBufferAndPrint [17:31:15]line [17:31:15]line [17:31:15]line [17:31:15]line [17:31:15]line [17:31:15]written 0, free lines is 3299 [17:31:15]MH_Cut [17:31:15]Write to MH i2c: D1 01 00 B9 02 01 8D [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: D1 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: D1 01 00 [17:31:15]MH_I2C_Read... [17:31:15]Read from MH i2c: D1 01 00 B9 02 00 8C [17:31:15]Write to MH i2c: 01 00 00 BA 02 BC [17:31:15]Write i2c OK [17:31:15]MH_I2C_Read... [17:31:16]*** Cut start [17:31:16]*** Partial cut [17:31:16]*** CUTSNS_PIN = 1 [17:31:16]*** CUTSNS_PIN = 0 [17:31:16]*** Brake cut motor [17:31:17]Read from MH i2c: 01 [17:31:17]MH_I2C_Read... [17:31:17]*** Stop cut motor [17:31:17]*** Cut end [17:31:17]Read from MH i2c: 01 07 00 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [17:31:17]process_action close_receipt done [17:31:17]requested_data is exist [17:31:17]produce_requested_data [17:31:17]requested_item fm.sn is exist - process it [17:31:17]wFMCommunicate request_size=4 [17:31:17]MH_SAM_APDU [17:31:17]CAPDU: 80 11 00 00 [17:31:17]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [17:31:17]Write i2c OK [17:31:17]MH_I2C_Read... [17:31:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:17]Read from MH i2c: E2 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: E2 17 00 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 90 [17:31:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:31:17]wFMCommunicate OK [17:31:17]requested_item fd.num is exist - process it [17:31:17]SAM_PROTO_GetFieldsCounters [17:31:17]wFMCommunicate request_size=4 [17:31:17]MH_SAM_APDU [17:31:17]CAPDU: 80 13 00 00 [17:31:17]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [17:31:17]Write i2c OK [17:31:17]MH_I2C_Read... [17:31:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:17]Read from MH i2c: E2 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: E2 62 00 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FC B9 02 00 0E 04 04 00 D6 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 9D [17:31: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FC B9 02 00 0E 04 04 00 D6 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:31:17]wFMCommunicate OK [17:31:17]SAM_PROTO_GetFieldsCounters done [17:31:17]requested_item shift.num is exist - process it [17:31:17]requested_item shift.opened is exist - process it [17:31:17]req_shift_opened [17:31:17]FM_GetShiftState [17:31:17]SAM_PROTO_GetShiftState [17:31:17]wFMCommunicate request_size=4 [17:31:17]MH_SAM_APDU [17:31:17]CAPDU: 80 13 01 00 [17:31:17]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [17:31:17]Write i2c OK [17:31:17]MH_I2C_Read... [17:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:17]Read from MH i2c: E2 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: E2 0E 00 [17:31:17]MH_I2C_Read... [17:31:17]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 13 [17:31:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:31:17]wFMCommunicate OK [17:31:17]SAM_PROTO_GetShiftState done [17:31:17]FM_GetShiftState done [17:31:17]req_shift_opened done [17:31:17]requested_item shift.open_date is exist - process it [17:31:17]req_shift_open_date [17:31:17]req_shift_open_date done [17:31:17]produce_requested_data done [17:31:17]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178684,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:31:17]process_action_free close_receipt [17:31:17]json_value_free [17:31:17]json_value_free done [17:31:17]process_json_proto returns [17:31:17]Send response to host [17:31:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178684,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:31:17]free response buf [17:31:17]execute_script done [17:31:17]execute_script returns [17:31:17]free content buf [17:31:17]Sock 8.Close socket [17:31:17]Sock 8.Thread stoped [17:31:20]recv_with_timeout no data received [17:31:23]accept exits with 9 [17:31:23]New connection [17:31:23]New thread 3066662244 created [17:31:23]Thread 3066805604 joined [17:31:23]Waiting for new connection... [17:31:23] Sock 9.Parse request [17:31:23]Sock 9.Check first char [17:31:23]Sock 9.First char is OK [17:31:23]request: POST /json_proto HTTP/1.0 [17:31:23]Method: POST [17:31:23]URL: /json_proto [17:31:23]Method is POST - this is cgi request [17:31:23]url: /json_proto [17:31:23]query_string will be loaded in cgi processing [17:31:23]execute_cgi json_proto POST (null) [17:31:23]execute_cgi path=json_proto method=POST [17:31:23]POST find Content-Length [17:31:23]Host: 172.17.44.131:8080 [17:31:23]Content-Length: 674 [17:31:23]Content-Type: application/json [17:31:23] [17:31:23]POST finish read [17:31:23]Found Content-Length = 674 [17:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [17:31:23]execute_script... [17:31: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)294515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [17:31:23]POST & json_proto [17:31:23]process_json_proto [17:31:23]json parsed OK: [17:31:23]protocol is kg_v1.0 [17:31:23]action value=close_receipt [17:31:23]process_action close_receipt [17:31:23]cmd_close_receipt [17:31:23]MH_GetDate [17:31:23]Write to MH i2c: F0 00 00 BE 02 AF [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 09 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: F0 09 00 BE 02 00 6C C7 C8 66 4F 53 BE 66 DF [17:31:23]GetLastDocTimeStamp 1724434274 [17:31:23]current date 1724434284 [17:31:23]FM_GetShiftState [17:31:23]SAM_PROTO_GetShiftState [17:31:23]wFMCommunicate request_size=4 [17:31:23]MH_SAM_APDU [17:31:23]CAPDU: 80 13 01 00 [17:31:23]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [17:31:23]Write i2c OK [17:31:23]MH_I2C_Read... [17:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:23]Read from MH i2c: E2 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 [17:31:23]MH_I2C_Read... [17:31:23]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 15 [17:31:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:31:23]wFMCommunicate OK [17:31:23]SAM_PROTO_GetShiftState done [17:31:23]FM_GetShiftState done [17:31:23]opened in 1724371660 [17:31:23]opened+sec_in_day 1724458060 [17:31:23]quantity*price = 60045 [17:31:23]sum+1 = 60047 [17:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 145 23.08.2024 17:31 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178685 ФПД: 149043960442953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173124&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178685&fm=149043960442953&tin=02508201610067®Number=0000000000092561&sum=60000 [17:31:25]StoreToDocumentArchive [17:31:25]shift 470 fd 178685 [17:31:25]save to /storage/0470/doc_00178685 [17:31:25]save last doc name /storage/0470/doc_00178685 to /storage/kkm_last_doc_name [17:31:25]save OK [17:31:25]Clear old archive folders... [17:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:31:25]tlvbuf is B6F34520 [17:31:25]SAM_PROTO_ClearQueue [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 09 00 00 [17:31:25]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_ClearQueue done [17:31:25]KKMCreateOFDPacket [17:31:25]OFDProtocolAddRootSTLVToBuf [17:31:25]FM_MakeSignedData [17:31:25]FM_MakeSignedData [17:31:25]SAM_PROTO_SignData [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 01 02 [17:31:25]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]wFMCommunicate request_size=255 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 91 00 00 00 F4 03 04 00 6C C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FD B9 02 00 35 04 06 00 87 8E 00 51 [17:31:25]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 91 00 00 00 F4 03 04 00 6C C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FD B9 02 00 35 04 06 00 87 8E 00 51 00 00 7E [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]wFMCommunicate request_size=7 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 02 02 02 70 49 [17:31:25]Write to MH i2c: E2 0A 00 CF 02 80 0D 02 02 02 00 70 49 00 00 08 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [17:31:25]RAPDU: 90 00 [17:31:25]wFMCommunicate OK [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 0D 03 02 [17:31:25]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0B 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 0B 00 D0 02 00 4A BE 1E F1 3E 1C 0B 75 90 00 3F [17:31:25]RAPDU: 4A BE 1E F1 3E 1C 0B 75 90 00 [17:31:25]wFMCommunicate OK [17:31:25]SAM_PROTO_SignData done [17:31:25]FM_MakeSignedData done [17:31:25]CreateOFDProtocolMessage [17:31:25]wFMCommunicate request_size=4 [17:31:25]MH_SAM_APDU [17:31:25]CAPDU: 80 11 00 00 [17:31:25]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:25]Read from MH i2c: E2 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 17 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A6 [17:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:31:25]wFMCommunicate OK [17:31:25]CreateOFDProtocolMessage done [17:31:25]OFDSenderStorePacket 178685 [17:31:25]StoreOFDPacket docnum=178685 [17:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 07 92 04 01 82 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 91 00 00 00 F4 03 04 00 6C C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FD B9 02 00 35 04 06 00 87 8E 00 51 70 49 4A BE 1E F1 3E 1C 0B 75 [17:31:25]CheckFolder [17:31:25]dirname=/storage/ofd_packets [17:31:25]CheckFolder done [17:31:25]ProducePacketName [17:31:25]name=ofd_packets/00178685 [17:31:25]NVStorageSaveData ofd_packets/00178685 [17:31:25]File name is /storage/ofd_packets/00178685 [17:31:25]Write 298 bytes [17:31:25]NVStorageSaveData done [17:31:25]OFDSenderStorePacket done [17:31:25]KKMCreateOFDPacket done [17:31:25]NVStorageSaveData kkm_last_timestamp [17:31:25]File name is /storage/kkm_last_timestamp [17:31:25]Write 4 bytes [17:31:25]NVStorageSaveData done [17:31:25]ExternCall_PrintAddStr [17:31:25]wPrintStart [17:31:25]Write to MH i2c: 01 00 00 D2 02 D4 [17:31:25]Write i2c OK [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 [17:31:25]MH_I2C_Read... [17:31:25]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [17:31:25]RasterBufferAndPrint [17:31:25]line Счет N : (1)294515 [17:31:25]line ИНН: 02508201610067 [17:31:25]line Контрольно-Кассовый Чек [17:31:25]line ПРОДАЖА [17:31:25]line ТРК (МРК, ГНК) : 21 [17:31:25]line Товар: 2710194800 [17:31:25]line ДТ-К-5 [17:31:25]line 7.880 * 76.20 [17:31:25]line = 600.46 [17:31:25]line НДС 12% НСП 1% [17:31:25]line > о реализуемом товаре [17:31:25]line ОКРУГЛЕНИЕ: -0.46 [17:31:25]line ИТОГО: 600.00 [17:31:25]line Внесено: 600.00 [17:31:25]line СДАЧА: 0.00 [17:31:25]line НСП 1% : 5.31 [17:31:25]line НДС 12% : 63.77 [17:31:25]line Наличными: 600.00 [17:31:25]line Безнал.: 0.00 [17:31:25]line Место: АЗС № 130 "Партнер Нефть" [17:31:25]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:31:25]line СНО: Общий режим [17:31:25]line Чек 145 23.08.2024 17:31 [17:31:25]line Смена: 470 ФФД: 1.0 [17:31:25]line ЗНМ: 0300000071 [17:31:25]line РНМ: 0000000000092561 [17:31:25]line Версия ККМ: 001 [17:31:25]line ФМ: 0000000000871778 [17:31:25]line ФД: 178685 [17:31:25]line ФПД: 149043960442953 [17:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173124&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178685&fm=149043960442953&tin=02508201610067®Number=0000000000092561&sum=60000 [17:31:25]written 0, free lines is 4095 [17:31:26]Write to MH i2c: 01 00 00 FD 02 FF [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 D4 0C E6 [17:31:26]RasterBufferAndPrint [17:31:26]line [17:31:26]line [17:31:26]line [17:31:26]line [17:31:26]line [17:31:26]written 0, free lines is 3294 [17:31:26]MH_Cut [17:31:26]Write to MH i2c: D1 01 00 04 03 01 D9 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: D1 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: D1 01 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: D1 01 00 04 03 00 D8 [17:31:26]Write to MH i2c: 01 00 00 05 03 08 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** Cut start [17:31:26]*** Partial cut [17:31:26]*** CUTSNS_PIN = 1 [17:31:26]*** CUTSNS_PIN = 0 [17:31:27]*** Brake cut motor [17:31:27]Read from MH i2c: 01 [17:31:27]MH_I2C_Read... [17:31:27]*** Stop cut motor [17:31:27]*** Cut end [17:31:27]Read from MH i2c: 01 07 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [17:31:27]process_action close_receipt done [17:31:27]requested_data is exist [17:31:27]produce_requested_data [17:31:27]requested_item fm.sn is exist - process it [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 11 00 00 [17:31:27]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DC [17:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:31:27]wFMCommunicate OK [17:31:27]requested_item fd.num is exist - process it [17:31:27]SAM_PROTO_GetFieldsCounters [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 13 00 00 [17:31:27]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 62 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FD B9 02 00 0E 04 04 00 D6 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 ED [17:31: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FD B9 02 00 0E 04 04 00 D6 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 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_GetFieldsCounters done [17:31:27]requested_item shift.num is exist - process it [17:31:27]requested_item shift.opened is exist - process it [17:31:27]req_shift_opened [17:31:27]FM_GetShiftState [17:31:27]SAM_PROTO_GetShiftState [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 13 01 00 [17:31:27]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0E 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5F [17:31:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_GetShiftState done [17:31:27]FM_GetShiftState done [17:31:27]req_shift_opened done [17:31:27]requested_item shift.open_date is exist - process it [17:31:27]req_shift_open_date [17:31:27]req_shift_open_date done [17:31:27]produce_requested_data done [17:31:27]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178685,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:31:27]process_action_free close_receipt [17:31:27]json_value_free [17:31:27]json_value_free done [17:31:27]process_json_proto returns [17:31:27]Send response to host [17:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178685,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:31:27]free response buf [17:31:27]execute_script done [17:31:27]execute_script returns [17:31:27]free content buf [17:31:27]Sock 9.Close socket [17:31:27]Sock 9.Thread stoped [17:31:30]Connected sock=11 [17:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A8 92 07 01 08 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 16 E9 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 62 C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 35 04 06 00 89 53 4C 2B 0F F5 AF 56 38 5E E4 8A DC FC [17:31:31]int [17:31:31]Write to MH i2c: 01 00 00 09 03 0C [17:31:31]*** FLAG_PRN_KEY set [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 09 03 00 08 00 00 00 FF 0F 29 [17:31:31]state=0 [17:31:31]Key pressed [17:31:31]Feed [17:31:31]Write to MH i2c: D8 00 00 0A 03 E4 [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: D8 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: D8 01 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: D8 01 00 0A 03 00 E5 [17:31:31]int [17:31:31]Write to MH i2c: 01 00 00 0B 03 0E [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 0B 03 00 48 00 00 00 3C 00 99 [17:31:31]state=2 [17:31:31]Key pressed [17:31:31]int [17:31:31]Write to MH i2c: 01 00 00 0C 03 0F [17:31:31]*** FLAG_PRN_KEY reset [17:31:31]Write i2c OK [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 [17:31:31]MH_I2C_Read... [17:31:31]Read from MH i2c: 01 07 00 0C 03 00 00 00 00 00 FF 0F 24 [17:31:31]state=2 [17:31:31]Stop feed [17:31:35]recv_with_timeout no data received [17:31:35]CommunicateWithHost answer receiving error [17:31:35]CommunicateWithHost err = -3 [17:31:35]OFD Sender: Server communicate error [17:31:35]OFD Sender: Processing packet 178684 [packets to send 499, broken 497] [17:31:35]ProducePacketName [17:31:35]name=ofd_packets/00178684 [17:31:35]OFD Sender: To server: pG, [17:31:35]CommunicateWithHost lk.salyk.kg:30040 [17:31:35]ConnectInit lk.salyk.kg [17:31:39]recv_with_timeout no data received [17:31:40]ConnectInit Can't take IP for lk.salyk.kg [17:31:40]CommunicateWithHost connect error [17:31:40]CommunicateWithHost err = -1 [17:31:40]OFD Sender: Server communicate error [17:31:45]OFD Sender: Processing packet 178684 [packets to send 499, broken 497] [17:31:45]ProducePacketName [17:31:45]name=ofd_packets/00178684 [17:31:45]OFD Sender: To server: pG, [17:31:45]CommunicateWithHost lk.salyk.kg:30040 [17:31:45]ConnectInit lk.salyk.kg [17:31:50]ConnectInit Can't take IP for lk.salyk.kg [17:31:50]CommunicateWithHost connect error [17:31:50]CommunicateWithHost err = -1 [17:31:50]OFD Sender: Server communicate error [17:31:55]OFD Sender: Processing packet 178684 [packets to send 499, broken 497] [17:31:55]ProducePacketName [17:31:55]name=ofd_packets/00178684 [17:31:55]OFD Sender: To server: pG, [17:31:55]CommunicateWithHost lk.salyk.kg:30040 [17:31:55]ConnectInit lk.salyk.kg [17:32:00]ConnectInit Can't take IP for lk.salyk.kg [17:32:00]CommunicateWithHost connect error [17:32:00]CommunicateWithHost err = -1 [17:32:00]OFD Sender: Server communicate error [17:32:05]recv_with_timeout no data received [17:32:05]OFD Sender: Processing packet 178684 [packets to send 499, broken 497] [17:32:05]ProducePacketName [17:32:05]name=ofd_packets/00178684 [17:32:05]OFD Sender: To server: pG, [17:32:05]CommunicateWithHost lk.salyk.kg:30040 [17:32:05]ConnectInit lk.salyk.kg [17:32:10]ConnectInit Can't take IP for lk.salyk.kg [17:32:10]CommunicateWithHost connect error [17:32:10]CommunicateWithHost err = -1 [17:32:10]OFD Sender: Server communicate error [17:32:12]accept exits with 8 [17:32:12]New connection [17:32:12]New thread 3066805604 created [17:32:12]Thread 3066662244 joined [17:32:12]Waiting for new connection... [17:32:12] Sock 8.Parse request [17:32:12]Sock 8.Check first char [17:32:12]Sock 8.First char is OK [17:32:12]request: POST /json_proto HTTP/1.0 [17:32:12]Method: POST [17:32:12]URL: /json_proto [17:32:12]Method is POST - this is cgi request [17:32:12]url: /json_proto [17:32:12]query_string will be loaded in cgi processing [17:32:12]execute_cgi json_proto POST (null) [17:32:12]execute_cgi path=json_proto method=POST [17:32:12]POST find Content-Length [17:32:12]Host: 172.17.44.131:8080 [17:32:12]Content-Length: 791 [17:32:12]Content-Type: application/json [17:32:12] [17:32:12]POST finish read [17:32:12]Found Content-Length = 791 [17:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:12]execute_script... [17:32: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)294514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 70.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:12]POST & json_proto [17:32:12]process_json_proto [17:32:12]json parsed OK: [17:32:12]protocol is kg_v1.0 [17:32:12]action value=close_receipt [17:32:12]process_action close_receipt [17:32:12]cmd_close_receipt [17:32:12]MH_GetDate [17:32:12]Write to MH i2c: F0 00 00 0D 03 FF [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F0 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F0 09 00 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: F0 09 00 0D 03 00 9D C7 C8 66 4F 53 BE 66 60 [17:32:12]GetLastDocTimeStamp 1724434284 [17:32:12]current date 1724434333 [17:32:12]FM_GetShiftState [17:32:12]SAM_PROTO_GetShiftState [17:32:12]wFMCommunicate request_size=4 [17:32:12]MH_SAM_APDU [17:32:12]CAPDU: 80 13 01 00 [17:32:12]Write to MH i2c: E2 08 00 0E 03 80 13 01 00 00 00 00 00 8E [17:32:12]Write i2c OK [17:32:12]MH_I2C_Read... [17:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:12]Read from MH i2c: E2 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: E2 0E 00 [17:32:12]MH_I2C_Read... [17:32:12]Read from MH i2c: E2 0E 00 0E 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 65 [17:32:12]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:32:12]wFMCommunicate OK [17:32:12]SAM_PROTO_GetShiftState done [17:32:12]FM_GetShiftState done [17:32:12]opened in 1724371660 [17:32:12]opened+sec_in_day 1724458060 [17:32:12]quantity*price = 0 [17:32:12]sum+1 = 1 [17:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 146 23.08.2024 17:32 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178686 ФПД: 180768724402288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173213&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178686&fm=180768724402288&tin=02508201610067®Number=0000000000092561&sum=0 [17:32:13]StoreToDocumentArchive [17:32:13]shift 470 fd 178686 [17:32:13]save to /storage/0470/doc_00178686 [17:32:13]save last doc name /storage/0470/doc_00178686 to /storage/kkm_last_doc_name [17:32:13]save OK [17:32:13]Clear old archive folders... [17:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:32:13]tlvbuf is 009551F0 [17:32:13]SAM_PROTO_ClearQueue [17:32:13]wFMCommunicate request_size=4 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 09 00 00 [17:32:13]Write to MH i2c: E2 08 00 1B 03 80 09 00 00 00 00 00 00 90 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [17:32:13]RAPDU: 90 00 [17:32:13]wFMCommunicate OK [17:32:13]SAM_PROTO_ClearQueue done [17:32:13]KKMCreateOFDPacket [17:32:13]OFDProtocolAddRootSTLVToBuf [17:32:13]FM_MakeSignedData [17:32:13]FM_MakeSignedData [17:32:13]SAM_PROTO_SignData [17:32:13]wFMCommunicate request_size=4 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 0D 01 02 [17:32:13]Write to MH i2c: E2 08 00 1C 03 80 0D 01 02 00 00 00 00 98 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 1C 03 00 90 00 93 [17:32:13]RAPDU: 90 00 [17:32:13]wFMCommunicate OK [17:32:13]wFMCommunicate request_size=255 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9D C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FE B9 02 00 35 04 06 00 A4 68 7F 9A [17:32:13]Write to MH i2c: E2 02 01 1D 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9D C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FE B9 02 00 35 04 06 00 A4 68 7F 9A 00 00 59 [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:13]Read from MH i2c: E2 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 [17:32:13]MH_I2C_Read... [17:32:13]Read from MH i2c: E2 03 00 1D 03 00 90 00 94 [17:32:13]RAPDU: 90 00 [17:32:13]wFMCommunicate OK [17:32:13]wFMCommunicate request_size=7 [17:32:13]MH_SAM_APDU [17:32:13]CAPDU: 80 0D 02 02 02 C0 70 [17:32:13]Write to MH i2c: E2 0A 00 1E 03 80 0D 02 02 02 00 C0 70 00 00 CF [17:32:13]Write i2c OK [17:32:13]MH_I2C_Read... [17:32:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:14]Read from MH i2c: E2 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 03 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 03 00 1E 03 00 90 00 95 [17:32:14]RAPDU: 90 00 [17:32:14]wFMCommunicate OK [17:32:14]wFMCommunicate request_size=4 [17:32:14]MH_SAM_APDU [17:32:14]CAPDU: 80 0D 03 02 [17:32:14]Write to MH i2c: E2 08 00 1F 03 80 0D 03 02 00 00 00 00 9D [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:14]Read from MH i2c: E2 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 0B 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 0B 00 1F 03 00 79 B9 F5 FC 66 E4 7C 1F 90 00 A6 [17:32:14]RAPDU: 79 B9 F5 FC 66 E4 7C 1F 90 00 [17:32:14]wFMCommunicate OK [17:32:14]SAM_PROTO_SignData done [17:32:14]FM_MakeSignedData done [17:32:14]CreateOFDProtocolMessage [17:32:14]wFMCommunicate request_size=4 [17:32:14]MH_SAM_APDU [17:32:14]CAPDU: 80 11 00 00 [17:32:14]Write to MH i2c: E2 08 00 20 03 80 11 00 00 00 00 00 00 9D [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:14]Read from MH i2c: E2 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 17 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: E2 17 00 20 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F6 [17:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:32:14]wFMCommunicate OK [17:32:14]CreateOFDProtocolMessage done [17:32:14]OFDSenderStorePacket 178686 [17:32:14]StoreOFDPacket docnum=178686 [17:32:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 BE 2D 04 01 28 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9D C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FE B9 02 00 35 04 06 00 A4 68 7F 9A C0 70 79 B9 F5 FC 66 E4 7C 1F [17:32:14]CheckFolder [17:32:14]dirname=/storage/ofd_packets [17:32:14]CheckFolder done [17:32:14]ProducePacketName [17:32:14]name=ofd_packets/00178686 [17:32:14]NVStorageSaveData ofd_packets/00178686 [17:32:14]File name is /storage/ofd_packets/00178686 [17:32:14]Write 298 bytes [17:32:14]NVStorageSaveData done [17:32:14]OFDSenderStorePacket done [17:32:14]KKMCreateOFDPacket done [17:32:14]NVStorageSaveData kkm_last_timestamp [17:32:14]File name is /storage/kkm_last_timestamp [17:32:14]Write 4 bytes [17:32:14]NVStorageSaveData done [17:32:14]ExternCall_PrintAddStr [17:32:14]wPrintStart [17:32:14]Write to MH i2c: 01 00 00 21 03 24 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: 01 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: 01 07 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: 01 07 00 21 03 00 00 00 00 00 FF 0F 39 [17:32:14]RasterBufferAndPrint [17:32:14]line Счет N : (1)294514 [17:32:14]line ИНН: 02508201610067 [17:32:14]line Контрольно-Кассовый Чек [17:32:14]line ПРОДАЖА [17:32:14]line ТРК (МРК, ГНК) : 34 [17:32:14]line Товар: 2710194800 [17:32:14]line ДТ-К-5 [17:32:14]line 70.000 * 0.00 [17:32:14]line = 0.00 [17:32:14]line НДС 12% НСП 1% [17:32:14]line > о реализуемом товаре [17:32:14]line ИТОГО: 0.00 [17:32:14]line НСП 1% : 0.00 [17:32:14]line НДС 12% : 0.00 [17:32:14]line Наличными: 0.00 [17:32:14]line Безнал.: 0.00 [17:32:14]line Место: АЗС № 130 "Партнер Нефть" [17:32:14]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:32:14]line СНО: Общий режим [17:32:14]line Чек 146 23.08.2024 17:32 [17:32:14]line Смена: 470 ФФД: 1.0 [17:32:14]line ЗНМ: 0300000071 [17:32:14]line РНМ: 0000000000092561 [17:32:14]line Версия ККМ: 001 [17:32:14]line Талоны: Топливные Талоны [17:32:14]line 1 [17:32:14]line ФМ: 0000000000871778 [17:32:14]line ФД: 178686 [17:32:14]line ФПД: 180768724402288 [17:32:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173213&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178686&fm=180768724402288&tin=02508201610067®Number=0000000000092561&sum=0 [17:32:14]written 0, free lines is 4095 [17:32:14]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:32:14]ProducePacketName [17:32:14]name=ofd_packets/00178684 [17:32:14]OFD Sender: To server: pG, [17:32:14]CommunicateWithHost lk.salyk.kg:30040 [17:32:14]ConnectInit lk.salyk.kg [17:32:14]Write to MH i2c: 01 00 00 4B 03 4E [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: 01 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: 01 07 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 F6 0C 57 [17:32:14]RasterBufferAndPrint [17:32:14]line [17:32:14]line [17:32:14]line [17:32:14]line [17:32:14]line [17:32:14]written 0, free lines is 3330 [17:32:14]MH_Cut [17:32:14]Write to MH i2c: D1 01 00 52 03 01 27 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: D1 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: D1 01 00 [17:32:14]MH_I2C_Read... [17:32:14]Read from MH i2c: D1 01 00 52 03 00 26 [17:32:14]Write to MH i2c: 01 00 00 53 03 56 [17:32:14]Write i2c OK [17:32:14]MH_I2C_Read... [17:32:15]*** Cut start [17:32:15]*** Partial cut [17:32:15]*** CUTSNS_PIN = 1 [17:32:15]*** CUTSNS_PIN = 0 [17:32:15]*** Brake cut motor [17:32:15]Read from MH i2c: 01 [17:32:15]MH_I2C_Read... [17:32:15]*** Stop cut motor [17:32:15]*** Cut end [17:32:15]Read from MH i2c: 01 07 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [17:32:15]process_action close_receipt done [17:32:15]requested_data is exist [17:32:15]produce_requested_data [17:32:15]requested_item fm.sn is exist - process it [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 11 00 00 [17:32:15]Write to MH i2c: E2 08 00 54 03 80 11 00 00 00 00 00 00 D1 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:15]Read from MH i2c: E2 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 17 00 [17:32:15]MH_I2C_Read... [17:32:15]Read from MH i2c: E2 17 00 54 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2A [17:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:32:15]wFMCommunicate OK [17:32:15]requested_item fd.num is exist - process it [17:32:15]SAM_PROTO_GetFieldsCounters [17:32:15]wFMCommunicate request_size=4 [17:32:15]MH_SAM_APDU [17:32:15]CAPDU: 80 13 00 00 [17:32:15]Write to MH i2c: E2 08 00 55 03 80 13 00 00 00 00 00 00 D4 [17:32:15]Write i2c OK [17:32:15]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 62 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 62 00 55 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FE B9 02 00 0E 04 04 00 D6 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 3F [17:32: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FE B9 02 00 0E 04 04 00 D6 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 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_GetFieldsCounters done [17:32:16]requested_item shift.num is exist - process it [17:32:16]requested_item shift.opened is exist - process it [17:32:16]req_shift_opened [17:32:16]FM_GetShiftState [17:32:16]SAM_PROTO_GetShiftState [17:32:16]wFMCommunicate request_size=4 [17:32:16]MH_SAM_APDU [17:32:16]CAPDU: 80 13 01 00 [17:32:16]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [17:32:16]Write i2c OK [17:32:16]MH_I2C_Read... [17:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:16]Read from MH i2c: E2 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 0E 00 [17:32:16]MH_I2C_Read... [17:32:16]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AD [17:32:16]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:32:16]wFMCommunicate OK [17:32:16]SAM_PROTO_GetShiftState done [17:32:16]FM_GetShiftState done [17:32:16]req_shift_opened done [17:32:16]requested_item shift.open_date is exist - process it [17:32:16]req_shift_open_date [17:32:16]req_shift_open_date done [17:32:16]produce_requested_data done [17:32:16]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178686,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:32:16]process_action_free close_receipt [17:32:16]json_value_free [17:32:16]json_value_free done [17:32:16]process_json_proto returns [17:32:16]Send response to host [17:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178686,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:32:16]free response buf [17:32:16]execute_script done [17:32:16]execute_script returns [17:32:16]free content buf [17:32:16]Sock 8.Close socket [17:32:16]Sock 8.Thread stoped [17:32:17]int [17:32:17]Write to MH i2c: 01 00 00 57 03 5A [17:32:17]*** FLAG_PRN_KEY set [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 57 03 00 08 00 00 00 FF 0F 77 [17:32:17]state=0 [17:32:17]Key pressed [17:32:17]Feed [17:32:17]Write to MH i2c: D8 00 00 58 03 32 [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D8 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D8 01 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: D8 01 00 58 03 00 33 [17:32:17]int [17:32:17]Write to MH i2c: 01 00 00 59 03 5C [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 59 03 00 48 00 00 00 3C 00 E7 [17:32:17]state=2 [17:32:17]Key pressed [17:32:17]int [17:32:17]Write to MH i2c: 01 00 00 5A 03 5D [17:32:17]*** FLAG_PRN_KEY reset [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: 01 07 00 5A 03 00 00 00 00 00 FC 0F 6F [17:32:17]state=2 [17:32:17]Stop feed [17:32:19]ConnectInit Can't take IP for lk.salyk.kg [17:32:19]CommunicateWithHost connect error [17:32:19]CommunicateWithHost err = -1 [17:32:19]OFD Sender: Server communicate error [17:32:24]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:32:24]ProducePacketName [17:32:24]name=ofd_packets/00178684 [17:32:24]OFD Sender: To server: pG, [17:32:24]CommunicateWithHost lk.salyk.kg:30040 [17:32:24]ConnectInit lk.salyk.kg [17:32:29]ConnectInit Can't take IP for lk.salyk.kg [17:32:29]CommunicateWithHost connect error [17:32:29]CommunicateWithHost err = -1 [17:32:29]OFD Sender: Server communicate error [17:32:34]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:32:34]ProducePacketName [17:32:34]name=ofd_packets/00178684 [17:32:34]OFD Sender: To server: pG, [17:32:34]CommunicateWithHost lk.salyk.kg:30040 [17:32:34]ConnectInit lk.salyk.kg [17:32:39]ConnectInit Can't take IP for lk.salyk.kg [17:32:39]CommunicateWithHost connect error [17:32:39]CommunicateWithHost err = -1 [17:32:39]OFD Sender: Server communicate error [17:32:44]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:32:44]ProducePacketName [17:32:44]name=ofd_packets/00178684 [17:32:44]OFD Sender: To server: pG, [17:32:44]CommunicateWithHost lk.salyk.kg:30040 [17:32:44]ConnectInit lk.salyk.kg [17:32:49]ConnectInit Can't take IP for lk.salyk.kg [17:32:49]CommunicateWithHost connect error [17:32:49]CommunicateWithHost err = -1 [17:32:49]OFD Sender: Server communicate error [17:32:54]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:32:54]ProducePacketName [17:32:54]name=ofd_packets/00178684 [17:32:54]OFD Sender: To server: pG, [17:32:54]CommunicateWithHost lk.salyk.kg:30040 [17:32:54]ConnectInit lk.salyk.kg [17:32:59]ConnectInit Can't take IP for lk.salyk.kg [17:32:59]CommunicateWithHost connect error [17:32:59]CommunicateWithHost err = -1 [17:32:59]OFD Sender: Server communicate error [17:33:04]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:33:04]ProducePacketName [17:33:04]name=ofd_packets/00178684 [17:33:04]OFD Sender: To server: pG, [17:33:04]CommunicateWithHost lk.salyk.kg:30040 [17:33:04]ConnectInit lk.salyk.kg [17:33:09]Connected sock=8 [17:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A8 92 07 01 08 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 16 E9 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 62 C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 35 04 06 00 89 53 4C 2B 0F F5 AF 56 38 5E E4 8A DC FC [17:33:14]recv_with_timeout no data received [17:33:14]CommunicateWithHost answer receiving error [17:33:14]CommunicateWithHost err = -3 [17:33:14]OFD Sender: Server communicate error [17:33:19]OFD Sender: Processing packet 178684 [packets to send 500, broken 497] [17:33:19]ProducePacketName [17:33:19]name=ofd_packets/00178684 [17:33:19]OFD Sender: To server: pG, [17:33:19]CommunicateWithHost lk.salyk.kg:30040 [17:33:19]ConnectInit lk.salyk.kg [17:33:21]Connected sock=8 [17:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A8 92 07 01 08 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 16 E9 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 62 C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 35 04 06 00 89 53 4C 2B 0F F5 AF 56 38 5E E4 8A DC FC [17:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 73 76 47 00 A2 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FC B9 02 00 F4 03 04 00 89 73 C8 66 B6 04 01 00 00 16 4D 4F 11 33 8F 72 C4 [17:33:24]CommunicateWithHost err = 0 [17:33:24]CheckOFDResponse [17:33:24]1017 (14) - 77093643461234 [17:33:24]1041 (16) - 0000000000871778 [17:33:24]1040 (4) - 178684 [17:33:24]1012 (4) - 23.08.2024 11:33 [17:33:24]1206 (1) - 0 [17:33:24]OFD Sender: Remove packet 178684 [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00178684 [17:33:24]NVStorageDeleteData [17:33:24]recv_with_timeout no data received [17:33:24]OFD Sender: Processing packet 178685 [packets to send 499, broken 497] [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00178685 [17:33:24]OFD Sender: To server: pG, [17:33:24]CommunicateWithHost lk.salyk.kg:30040 [17:33:24]ConnectInit lk.salyk.kg [17:33:24]Connected sock=8 [17:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 07 92 04 01 82 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 91 00 00 00 F4 03 04 00 6C C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FD B9 02 00 35 04 06 00 87 8E 00 51 70 49 4A BE 1E F1 3E 1C 0B 75 [17:33:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CA F3 47 00 94 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 31 37 37 38 10 04 04 00 FD B9 02 00 F4 03 04 00 8A 73 C8 66 B6 04 01 00 00 C9 CD A4 4E E1 84 FC 2C [17:33:25]CommunicateWithHost err = 0 [17:33:25]CheckOFDResponse [17:33:25]1017 (14) - 77093643461234 [17:33:25]1041 (16) - 0000000000871778 [17:33:25]1040 (4) - 178685 [17:33:25]1012 (4) - 23.08.2024 11:33 [17:33:25]1206 (1) - 0 [17:33:25]OFD Sender: Remove packet 178685 [17:33:25]ProducePacketName [17:33:25]name=ofd_packets/00178685 [17:33:25]NVStorageDeleteData [17:33:25]OFD Sender: Processing packet 178686 [packets to send 498, broken 497] [17:33:25]ProducePacketName [17:33:25]name=ofd_packets/00178686 [17:33:25]OFD Sender: To server: pG, [17:33:25]CommunicateWithHost lk.salyk.kg:30040 [17:33:25]ConnectInit lk.salyk.kg [17:33:26]Connected sock=8 [17: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 31 37 37 38 0C 01 00 00 BE 2D 04 01 28 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 11 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 9D C7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FE B9 02 00 35 04 06 00 A4 68 7F 9A C0 70 79 B9 F5 FC 66 E4 7C 1F [17:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F7 37 47 00 A2 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 31 37 37 38 10 04 04 00 FE B9 02 00 F4 03 04 00 8C 73 C8 66 B6 04 01 00 00 2C 77 3D E7 A0 10 7B D8 [17:33:27]CommunicateWithHost err = 0 [17:33:27]CheckOFDResponse [17:33:27]1017 (14) - 77093643461234 [17:33:27]1041 (16) - 0000000000871778 [17:33:27]1040 (4) - 178686 [17:33:27]1012 (4) - 23.08.2024 11:33 [17:33:27]1206 (1) - 0 [17:33:27]OFD Sender: Remove packet 178686 [17:33:27]ProducePacketName [17:33:27]name=ofd_packets/00178686 [17:33:27]NVStorageDeleteData [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [17:34:29]recv_with_timeout no data received [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:36]accept exits with 9 [17:35:36]New connection [17:35:36]New thread 3066662244 created [17:35:36]Thread 3066805604 joined [17:35:36]Waiting for new connection... [17:35:36] Sock 9.Parse request [17:35:36]Sock 9.Check first char [17:35:36]Sock 9.First char is OK [17:35:36]request: POST /json_proto HTTP/1.0 [17:35:36]Method: POST [17:35:36]URL: /json_proto [17:35:36]Method is POST - this is cgi request [17:35:36]url: /json_proto [17:35:36]query_string will be loaded in cgi processing [17:35:36]execute_cgi json_proto POST (null) [17:35:36]execute_cgi path=json_proto method=POST [17:35:36]POST find Content-Length [17:35:36]Host: 172.17.44.131:8080 [17:35:36]Content-Length: 677 [17:35:36]Content-Type: application/json [17:35:36] [17:35:36]POST finish read [17:35:36]Found Content-Length = 677 [17:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294516", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:36]execute_script... [17: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)294516", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:36]POST & json_proto [17:35:36]process_json_proto [17:35:36]json parsed OK: [17:35:36]protocol is kg_v1.0 [17:35:36]action value=close_receipt [17:35:36]process_action close_receipt [17:35:36]cmd_close_receipt [17:35:36]MH_GetDate [17:35:36]Write to MH i2c: F0 00 00 5B 03 4D [17:35:36]Write i2c OK [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: F0 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: F0 09 00 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: F0 09 00 5B 03 00 68 C8 C8 66 4F 53 BE 66 7A [17:35:36]GetLastDocTimeStamp 1724434333 [17:35:36]current date 1724434536 [17:35:36]FM_GetShiftState [17:35:36]SAM_PROTO_GetShiftState [17:35:36]wFMCommunicate request_size=4 [17:35:36]MH_SAM_APDU [17:35:36]CAPDU: 80 13 01 00 [17:35:36]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [17:35:36]Write i2c OK [17:35:36]MH_I2C_Read... [17:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:36]Read from MH i2c: E2 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: E2 0E 00 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B3 [17:35:36]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:35:36]wFMCommunicate OK [17:35:36]SAM_PROTO_GetShiftState done [17:35:36]FM_GetShiftState done [17:35:36]opened in 1724371660 [17:35:36]opened+sec_in_day 1724458060 [17:35:36]quantity*price = 30035 [17:35:36]sum+1 = 30036 [17:35:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 147 23.08.2024 17:35 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178687 ФПД: 48089990881792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173536&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178687&fm=48089990881792&tin=02508201610067®Number=0000000000092561&sum=30000 [17:35:37]StoreToDocumentArchive [17:35:37]shift 470 fd 178687 [17:35:37]save to /storage/0470/doc_00178687 [17:35:37]save last doc name /storage/0470/doc_00178687 to /storage/kkm_last_doc_name [17:35:37]save OK [17:35:37]Clear old archive folders... [17:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:37]tlvbuf is 008EFA40 [17:35:37]SAM_PROTO_ClearQueue [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 09 00 00 [17:35:37]Write to MH i2c: E2 08 00 69 03 80 09 00 00 00 00 00 00 DE [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 69 03 00 90 00 E0 [17:35:37]RAPDU: 90 00 [17:35:37]wFMCommunicate OK [17:35:37]SAM_PROTO_ClearQueue done [17:35:37]KKMCreateOFDPacket [17:35:37]OFDProtocolAddRootSTLVToBuf [17:35:37]FM_MakeSignedData [17:35:37]FM_MakeSignedData [17:35:37]SAM_PROTO_SignData [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 0D 01 02 [17:35:37]Write to MH i2c: E2 08 00 6A 03 80 0D 01 02 00 00 00 00 E6 [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 6A 03 00 90 00 E1 [17:35:37]RAPDU: 90 00 [17:35:37]wFMCommunicate OK [17:35:37]wFMCommunicate request_size=255 [17:35:37]MH_SAM_APDU [17: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 C8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FF B9 02 00 35 04 06 00 2B [17:35:37]Write to MH i2c: E2 02 01 6B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 C8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FF B9 02 00 35 04 06 00 2B 00 00 35 [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [17:35:37]RAPDU: 90 00 [17:35:37]wFMCommunicate OK [17:35:37]wFMCommunicate request_size=10 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 0D 02 02 05 BC D2 D2 E2 00 [17:35:37]Write to MH i2c: E2 0D 00 6C 03 80 0D 02 02 05 00 BC D2 D2 E2 00 00 00 35 [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [17:35:37]RAPDU: 90 00 [17:35:37]wFMCommunicate OK [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 0D 03 02 [17:35:37]Write to MH i2c: E2 08 00 6D 03 80 0D 03 02 00 00 00 00 EB [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 0B 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 0B 00 6D 03 00 8A 16 97 BE F4 DF 43 0F 90 00 06 [17:35:37]RAPDU: 8A 16 97 BE F4 DF 43 0F 90 00 [17:35:37]wFMCommunicate OK [17:35:37]SAM_PROTO_SignData done [17:35:37]FM_MakeSignedData done [17:35:37]CreateOFDProtocolMessage [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 11 00 00 [17:35:37]Write to MH i2c: E2 08 00 6E 03 80 11 00 00 00 00 00 00 EB [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 17 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 17 00 6E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 44 [17:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:35:37]wFMCommunicate OK [17:35:37]CreateOFDProtocolMessage done [17:35:37]OFDSenderStorePacket 178687 [17:35:37]StoreOFDPacket docnum=178687 [17:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 65 CF 07 01 F7 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 C8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FF B9 02 00 35 04 06 00 2B BC D2 D2 E2 00 8A 16 97 BE F4 DF 43 0F [17:35:37]CheckFolder [17:35:37]dirname=/storage/ofd_packets [17:35:37]CheckFolder done [17:35:37]ProducePacketName [17:35:37]name=ofd_packets/00178687 [17:35:37]NVStorageSaveData ofd_packets/00178687 [17:35:37]File name is /storage/ofd_packets/00178687 [17:35:37]Write 301 bytes [17:35:37]NVStorageSaveData done [17:35:37]OFDSenderStorePacket done [17:35:37]KKMCreateOFDPacket done [17:35:37]NVStorageSaveData kkm_last_timestamp [17:35:37]File name is /storage/kkm_last_timestamp [17:35:37]Write 4 bytes [17:35:37]NVStorageSaveData done [17:35:37]ExternCall_PrintAddStr [17:35:37]wPrintStart [17:35:37]Write to MH i2c: 01 00 00 6F 03 72 [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: 01 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: 01 07 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: 01 07 00 6F 03 00 00 00 00 00 FF 0F 87 [17:35:37]RasterBufferAndPrint [17:35:37]line Счет N : (1)294516 [17:35:37]line ИНН: 02508201610067 [17:35:37]line Контрольно-Кассовый Чек [17:35:37]line ПРОДАЖА [17:35:37]line ТРК (МРК, ГНК) : 32 [17:35:37]line Товар: 2710124130 [17:35:37]line Аи-92-К-5 [17:35:37]line 4.430 * 67.80 [17:35:37]line = 300.35 [17:35:37]line НДС 12% НСП 1% [17:35:37]line > о реализуемом товаре [17:35:37]line ОКРУГЛЕНИЕ: -0.35 [17:35:37]line ИТОГО: 300.00 [17:35:37]line Внесено: 300.00 [17:35:37]line СДАЧА: 0.00 [17:35:37]line НСП 1% : 2.66 [17:35:37]line НДС 12% : 31.90 [17:35:37]line Наличными: 300.00 [17:35:37]line Безнал.: 0.00 [17:35:37]line Место: АЗС № 130 "Партнер Нефть" [17:35:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:35:37]line СНО: Общий режим [17:35:37]line Чек 147 23.08.2024 17:35 [17:35:37]line Смена: 470 ФФД: 1.0 [17:35:37]line ЗНМ: 0300000071 [17:35:37]line РНМ: 0000000000092561 [17:35:37]line Версия ККМ: 001 [17:35:37]line ФМ: 0000000000871778 [17:35:37]line ФД: 178687 [17:35:37]line ФПД: 48089990881792 [17:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T173536&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178687&fm=48089990881792&tin=02508201610067®Number=0000000000092561&sum=30000 [17:35:37]written 0, free lines is 4095 [17:35:37]OFD Sender: Processing packet 178687 [packets to send 498, broken 497] [17:35:37]ProducePacketName [17:35:37]name=ofd_packets/00178687 [17:35:37]OFD Sender: To server: pG, [17:35:37]CommunicateWithHost lk.salyk.kg:30040 [17:35:37]ConnectInit lk.salyk.kg [17:35:38]Write to MH i2c: 01 00 00 9A 03 9D [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: 01 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: 01 07 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 DC 0C 8C [17:35:38]RasterBufferAndPrint [17:35:38]line [17:35:38]line [17:35:38]line [17:35:38]line [17:35:38]line [17:35:38]written 0, free lines is 3298 [17:35:38]MH_Cut [17:35:38]Write to MH i2c: D1 01 00 A1 03 01 76 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: D1 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: D1 01 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: D1 01 00 A1 03 00 75 [17:35:38]Write to MH i2c: 01 00 00 A2 03 A5 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]Connected sock=10 [17: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 31 37 37 38 0F 01 00 00 65 CF 07 01 F7 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 68 C8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 FF B9 02 00 35 04 06 00 2B BC D2 D2 E2 00 8A 16 97 BE F4 DF 43 0F [17:35:38]*** Cut start [17:35:38]*** Partial cut [17:35:38]*** CUTSNS_PIN = 1 [17:35:39]*** CUTSNS_PIN = 0 [17:35:39]*** Brake cut motor [17:35:39]Read from MH i2c: 01 [17:35:39]MH_I2C_Read... [17:35:39]*** Stop cut motor [17:35:39]*** Cut end [17:35:39]Read from MH i2c: 01 07 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: 01 07 00 A2 03 00 00 00 00 00 FF 0F BA [17:35:39]process_action close_receipt done [17:35:39]requested_data is exist [17:35:39]produce_requested_data [17:35:39]requested_item fm.sn is exist - process it [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 11 00 00 [17:35:39]Write to MH i2c: E2 08 00 A3 03 80 11 00 00 00 00 00 00 20 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 17 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 17 00 A3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 79 [17:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:35:39]wFMCommunicate OK [17:35:39]requested_item fd.num is exist - process it [17:35:39]SAM_PROTO_GetFieldsCounters [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 13 00 00 [17:35:39]Write to MH i2c: E2 08 00 A4 03 80 13 00 00 00 00 00 00 23 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 62 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 62 00 A4 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FF B9 02 00 0E 04 04 00 D6 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 92 [17:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 FF B9 02 00 0E 04 04 00 D6 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 [17:35:39]wFMCommunicate OK [17:35:39]SAM_PROTO_GetFieldsCounters done [17:35:39]requested_item shift.num is exist - process it [17:35:39]requested_item shift.opened is exist - process it [17:35:39]req_shift_opened [17:35:39]FM_GetShiftState [17:35:39]SAM_PROTO_GetShiftState [17:35:39]wFMCommunicate request_size=4 [17:35:39]MH_SAM_APDU [17:35:39]CAPDU: 80 13 01 00 [17:35:39]Write to MH i2c: E2 08 00 A5 03 80 13 01 00 00 00 00 00 25 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:39]Read from MH i2c: E2 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 0E 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: E2 0E 00 A5 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 FC [17:35:39]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:35:39]wFMCommunicate OK [17:35:39]SAM_PROTO_GetShiftState done [17:35:39]FM_GetShiftState done [17:35:39]req_shift_opened done [17:35:39]requested_item shift.open_date is exist - process it [17:35:39]req_shift_open_date [17:35:39]req_shift_open_date done [17:35:39]produce_requested_data done [17:35:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178687,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:35:39]process_action_free close_receipt [17:35:39]json_value_free [17:35:39]json_value_free done [17:35:39]process_json_proto returns [17:35:39]Send response to host [17:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178687,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:35:39]free response buf [17:35:39]execute_script done [17:35:39]execute_script returns [17:35:39]free content buf [17:35:39]Sock 9.Close socket [17:35:39]Sock 9.Thread stoped [17:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 08 89 47 00 04 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 31 37 37 38 10 04 04 00 FF B9 02 00 F4 03 04 00 11 74 C8 66 B6 04 01 00 00 BD 66 65 73 85 09 88 8E [17:35:39]CommunicateWithHost err = 0 [17:35:39]CheckOFDResponse [17:35:39]1017 (14) - 77093643461234 [17:35:39]1041 (16) - 0000000000871778 [17:35:39]1040 (4) - 178687 [17:35:39]1012 (4) - 23.08.2024 11:35 [17:35:39]1206 (1) - 0 [17:35:39]OFD Sender: Remove packet 178687 [17:35:39]ProducePacketName [17:35:39]name=ofd_packets/00178687 [17:35:39]NVStorageDeleteData [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:12]recv_with_timeout no data received [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:31]recv_with_timeout no data received [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:46]recv_with_timeout no data received [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:01]recv_with_timeout no data received [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:54]accept exits with 8 [17:42:54]New connection [17:42:54]New thread 3066805604 created [17:42:54]Thread 3066662244 joined [17:42:54]Waiting for new connection... [17:42:54] Sock 8.Parse request [17:42:54]Sock 8.Check first char [17:42:54]Sock 8.First char is OK [17:42:54]request: POST /json_proto HTTP/1.0 [17:42:54]Method: POST [17:42:54]URL: /json_proto [17:42:54]Method is POST - this is cgi request [17:42:54]url: /json_proto [17:42:54]query_string will be loaded in cgi processing [17:42:54]execute_cgi json_proto POST (null) [17:42:54]execute_cgi path=json_proto method=POST [17:42:54]POST find Content-Length [17:42:54]Host: 172.17.44.131:8080 [17:42:54]Content-Length: 679 [17:42:54]Content-Type: application/json [17:42:54] [17:42:54]POST finish read [17:42:54]Found Content-Length = 679 [17:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:54]execute_script... [17:42:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:54]POST & json_proto [17:42:54]process_json_proto [17:42:54]json parsed OK: [17:42:54]protocol is kg_v1.0 [17:42:54]action value=close_receipt [17:42:54]process_action close_receipt [17:42:54]cmd_close_receipt [17:42:54]MH_GetDate [17:42:54]Write to MH i2c: F0 00 00 A6 03 98 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: F0 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: F0 09 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: F0 09 00 A6 03 00 1F CA C8 66 4F 53 BE 66 7E [17:42:54]GetLastDocTimeStamp 1724434536 [17:42:54]current date 1724434975 [17:42:54]FM_GetShiftState [17:42:54]SAM_PROTO_GetShiftState [17:42:54]wFMCommunicate request_size=4 [17:42:54]MH_SAM_APDU [17:42:54]CAPDU: 80 13 01 00 [17:42:54]Write to MH i2c: E2 08 00 A7 03 80 13 01 00 00 00 00 00 27 [17:42:54]Write i2c OK [17:42:54]MH_I2C_Read... [17:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:54]Read from MH i2c: E2 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 0E 00 [17:42:54]MH_I2C_Read... [17:42:54]Read from MH i2c: E2 0E 00 A7 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 FE [17:42:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:42:54]wFMCommunicate OK [17:42:54]SAM_PROTO_GetShiftState done [17:42:54]FM_GetShiftState done [17:42:54]opened in 1724371660 [17:42:54]opened+sec_in_day 1724458060 [17:42:54]quantity*price = 300075 [17:42:54]sum+1 = 300077 [17:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 148 23.08.2024 17:42 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178688 ФПД: 117553288297717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T174255&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178688&fm=117553288297717&tin=02508201610067®Number=0000000000092561&sum=300000 [17:42:55]StoreToDocumentArchive [17:42:55]shift 470 fd 178688 [17:42:55]save to /storage/0470/doc_00178688 [17:42:55]save last doc name /storage/0470/doc_00178688 to /storage/kkm_last_doc_name [17:42:55]save OK [17:42:55]Clear old archive folders... [17:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:55]tlvbuf is 008EC070 [17:42:55]SAM_PROTO_ClearQueue [17:42:55]wFMCommunicate request_size=4 [17:42:55]MH_SAM_APDU [17:42:55]CAPDU: 80 09 00 00 [17:42:55]Write to MH i2c: E2 08 00 B4 03 80 09 00 00 00 00 00 00 29 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:55]Read from MH i2c: E2 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 03 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 03 00 B4 03 00 90 00 2B [17:42:55]RAPDU: 90 00 [17:42:55]wFMCommunicate OK [17:42:55]SAM_PROTO_ClearQueue done [17:42:55]KKMCreateOFDPacket [17:42:55]OFDProtocolAddRootSTLVToBuf [17:42:55]FM_MakeSignedData [17:42:55]FM_MakeSignedData [17:42:55]SAM_PROTO_SignData [17:42:55]wFMCommunicate request_size=4 [17:42:55]MH_SAM_APDU [17:42:55]CAPDU: 80 0D 01 02 [17:42:55]Write to MH i2c: E2 08 00 B5 03 80 0D 01 02 00 00 00 00 31 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:55]Read from MH i2c: E2 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 03 00 [17:42:55]MH_I2C_Read... [17:42:55]Read from MH i2c: E2 03 00 B5 03 00 90 00 2C [17:42:55]RAPDU: 90 00 [17:42:55]wFMCommunicate OK [17:42:55]wFMCommunicate request_size=255 [17:42:55]MH_SAM_APDU [17:42:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1F CA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 00 BA 02 00 35 04 06 00 6A EA 01 FD [17:42:55]Write to MH i2c: E2 02 01 B6 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1F CA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 00 BA 02 00 35 04 06 00 6A EA 01 FD 00 00 86 [17:42:55]Write i2c OK [17:42:55]MH_I2C_Read... [17:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:56]Read from MH i2c: E2 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 03 00 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [17:42:56]RAPDU: 90 00 [17:42:56]wFMCommunicate OK [17:42:56]wFMCommunicate request_size=7 [17:42:56]MH_SAM_APDU [17:42:56]CAPDU: 80 0D 02 02 02 BC F5 [17:42:56]Write to MH i2c: E2 0A 00 B7 03 80 0D 02 02 02 00 BC F5 00 00 E9 [17:42:56]Write i2c OK [17:42:56]MH_I2C_Read... [17:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:56]Read from MH i2c: E2 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 03 00 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [17:42:56]RAPDU: 90 00 [17:42:56]wFMCommunicate OK [17:42:56]wFMCommunicate request_size=4 [17:42:56]MH_SAM_APDU [17:42:56]CAPDU: 80 0D 03 02 [17:42:56]Write to MH i2c: E2 08 00 B8 03 80 0D 03 02 00 00 00 00 36 [17:42:56]Write i2c OK [17:42:56]MH_I2C_Read... [17:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:56]Read from MH i2c: E2 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 0B 00 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 0B 00 B8 03 00 8E 92 9C 71 03 1E CF 7C 90 00 D0 [17:42:56]RAPDU: 8E 92 9C 71 03 1E CF 7C 90 00 [17:42:56]wFMCommunicate OK [17:42:56]SAM_PROTO_SignData done [17:42:56]FM_MakeSignedData done [17:42:56]CreateOFDProtocolMessage [17:42:56]wFMCommunicate request_size=4 [17:42:56]MH_SAM_APDU [17:42:56]CAPDU: 80 11 00 00 [17:42:56]Write to MH i2c: E2 08 00 B9 03 80 11 00 00 00 00 00 00 36 [17:42:56]Write i2c OK [17:42:56]MH_I2C_Read... [17:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:56]Read from MH i2c: E2 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 17 00 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: E2 17 00 B9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 8F [17:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:42:56]wFMCommunicate OK [17:42:56]CreateOFDProtocolMessage done [17:42:56]OFDSenderStorePacket 178688 [17:42:56]StoreOFDPacket docnum=178688 [17:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 EE 42 04 01 57 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1F CA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 00 BA 02 00 35 04 06 00 6A EA 01 FD BC F5 8E 92 9C 71 03 1E CF 7C [17:42:56]CheckFolder [17:42:56]dirname=/storage/ofd_packets [17:42:56]CheckFolder done [17:42:56]ProducePacketName [17:42:56]name=ofd_packets/00178688 [17:42:56]NVStorageSaveData ofd_packets/00178688 [17:42:56]File name is /storage/ofd_packets/00178688 [17:42:56]Write 298 bytes [17:42:56]NVStorageSaveData done [17:42:56]OFDSenderStorePacket done [17:42:56]KKMCreateOFDPacket done [17:42:56]NVStorageSaveData kkm_last_timestamp [17:42:56]File name is /storage/kkm_last_timestamp [17:42:56]Write 4 bytes [17:42:56]NVStorageSaveData done [17:42:56]ExternCall_PrintAddStr [17:42:56]wPrintStart [17:42:56]Write to MH i2c: 01 00 00 BA 03 BD [17:42:56]Write i2c OK [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: 01 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: 01 07 00 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: 01 07 00 BA 03 00 00 00 00 00 FF 0F D2 [17:42:56]RasterBufferAndPrint [17:42:56]line Счет N : (1)294524 [17:42:56]line ИНН: 02508201610067 [17:42:56]line Контрольно-Кассовый Чек [17:42:56]line ПРОДАЖА [17:42:56]line ТРК (МРК, ГНК) : 64 [17:42:56]line Товар: 2710194800 [17:42:56]line ДТ-К-5 [17:42:56]line 39.380 * 76.20 [17:42:56]line = 3000.76 [17:42:56]line НДС 12% НСП 1% [17:42:56]line > о реализуемом товаре [17:42:56]line ОКРУГЛЕНИЕ: -0.76 [17:42:56]line ИТОГО: 3000.00 [17:42:56]line Внесено: 3000.00 [17:42:56]line СДАЧА: 0.00 [17:42:56]line НСП 1% : 26.55 [17:42:56]line НДС 12% : 318.66 [17:42:56]line Наличными: 3000.00 [17:42:56]line Безнал.: 0.00 [17:42:56]line Место: АЗС № 130 "Партнер Нефть" [17:42:56]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:42:56]line СНО: Общий режим [17:42:56]line Чек 148 23.08.2024 17:42 [17:42:56]line Смена: 470 ФФД: 1.0 [17:42:56]line ЗНМ: 0300000071 [17:42:56]line РНМ: 0000000000092561 [17:42:56]line Версия ККМ: 001 [17:42:56]line ФМ: 0000000000871778 [17:42:56]line ФД: 178688 [17:42:56]line ФПД: 117553288297717 [17:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T174255&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178688&fm=117553288297717&tin=02508201610067®Number=0000000000092561&sum=300000 [17:42:56]OFD Sender: Processing packet 178688 [packets to send 498, broken 497] [17:42:56]ProducePacketName [17:42:56]name=ofd_packets/00178688 [17:42:56]OFD Sender: To server: pG, [17:42:56]CommunicateWithHost lk.salyk.kg:30040 [17:42:56]ConnectInit lk.salyk.kg [17:42:56]written 0, free lines is 4095 [17:42:56]Write to MH i2c: 01 00 00 E5 03 E8 [17:42:56]Write i2c OK [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: 01 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: 01 07 00 [17:42:56]MH_I2C_Read... [17:42:56]Read from MH i2c: 01 07 00 E5 03 00 00 00 00 00 E1 0C DC [17:42:56]RasterBufferAndPrint [17:42:56]line [17:42:56]line [17:42:56]line [17:42:56]line [17:42:56]line [17:42:56]written 0, free lines is 3303 [17:42:57]MH_Cut [17:42:57]Write to MH i2c: D1 01 00 EC 03 01 C1 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: D1 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: D1 01 00 [17:42:57]MH_I2C_Read... [17:42:57]Read from MH i2c: D1 01 00 EC 03 00 C0 [17:42:57]Write to MH i2c: 01 00 00 ED 03 F0 [17:42:57]Write i2c OK [17:42:57]MH_I2C_Read... [17:42:57]*** Cut start [17:42:57]*** Partial cut [17:42:57]*** CUTSNS_PIN = 1 [17:42:57]*** CUTSNS_PIN = 0 [17:42:57]*** Brake cut motor [17:42:58]Read from MH i2c: 01 [17:42:58]MH_I2C_Read... [17:42:58]*** Stop cut motor [17:42:58]*** Cut end [17:42:58]Read from MH i2c: 01 07 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 FF 0F 05 [17:42:58]process_action close_receipt done [17:42:58]requested_data is exist [17:42:58]produce_requested_data [17:42:58]requested_item fm.sn is exist - process it [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 11 00 00 [17:42:58]Write to MH i2c: E2 08 00 EE 03 80 11 00 00 00 00 00 00 6B [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 17 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 17 00 EE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C4 [17:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:42:58]wFMCommunicate OK [17:42:58]requested_item fd.num is exist - process it [17:42:58]SAM_PROTO_GetFieldsCounters [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 13 00 00 [17:42:58]Write to MH i2c: E2 08 00 EF 03 80 13 00 00 00 00 00 00 6E [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 62 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 62 00 EF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 00 BA 02 00 0E 04 04 00 D6 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 E2 [17:42:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 00 BA 02 00 0E 04 04 00 D6 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 [17:42:58]wFMCommunicate OK [17:42:58]SAM_PROTO_GetFieldsCounters done [17:42:58]requested_item shift.num is exist - process it [17:42:58]requested_item shift.opened is exist - process it [17:42:58]req_shift_opened [17:42:58]FM_GetShiftState [17:42:58]SAM_PROTO_GetShiftState [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 13 01 00 [17:42:58]Write to MH i2c: E2 08 00 F0 03 80 13 01 00 00 00 00 00 70 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 0E 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 0E 00 F0 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 47 [17:42:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:42:58]wFMCommunicate OK [17:42:58]SAM_PROTO_GetShiftState done [17:42:58]FM_GetShiftState done [17:42:58]req_shift_opened done [17:42:58]requested_item shift.open_date is exist - process it [17:42:58]req_shift_open_date [17:42:58]req_shift_open_date done [17:42:58]produce_requested_data done [17:42:58]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178688,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:42:58]process_action_free close_receipt [17:42:58]json_value_free [17:42:58]json_value_free done [17:42:58]process_json_proto returns [17:42:58]Send response to host [17:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178688,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:42:58]free response buf [17:42:58]execute_script done [17:42:58]execute_script returns [17:42:58]free content buf [17:42:58]Sock 8.Close socket [17:42:58]Sock 8.Thread stoped [17:43:00]Connected sock=11 [17:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 EE 42 04 01 57 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 1F CA C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 00 BA 02 00 35 04 06 00 6A EA 01 FD BC F5 8E 92 9C 71 03 1E CF 7C [17:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 20 94 47 00 FC 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 31 37 37 38 10 04 04 00 00 BA 02 00 F4 03 04 00 CA 75 C8 66 B6 04 01 00 00 1C 08 83 76 EA A5 6E 62 [17:43:01]CommunicateWithHost err = 0 [17:43:01]CheckOFDResponse [17:43:01]1017 (14) - 77093643461234 [17:43:01]1041 (16) - 0000000000871778 [17:43:01]1040 (4) - 178688 [17:43:01]1012 (4) - 23.08.2024 11:43 [17:43:01]1206 (1) - 0 [17:43:01]OFD Sender: Remove packet 178688 [17:43:01]ProducePacketName [17:43:01]name=ofd_packets/00178688 [17:43:01]NVStorageDeleteData [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:20]recv_with_timeout no data received [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:48]recv_with_timeout no data received [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:30]recv_with_timeout no data received [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:47]OFD Sender: No OFD packet to send [17:45:52]OFD Sender: No OFD packet to send [17:45:57]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:33]recv_with_timeout no data received [17:47:37]OFD Sender: No OFD packet to send [17:48:39]ConnectInit Can't connect to host [17:48:42]OFD Sender: No OFD packet to send [17:48:47]OFD Sender: No OFD packet to send [17:48:52]OFD Sender: No OFD packet to send [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]recv_with_timeout no data received [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:51]recv_with_timeout no data received [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:18]recv_with_timeout no data received [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:32]OFD Sender: No OFD packet to send [17:50:37]OFD Sender: No OFD packet to send [17:50:42]OFD Sender: No OFD packet to send [17:50:42]recv_with_timeout no data received [17:50:47]OFD Sender: No OFD packet to send [17:50:52]OFD Sender: No OFD packet to send [17:50:57]OFD Sender: No OFD packet to send [17:51:02]OFD Sender: No OFD packet to send [17:51:07]OFD Sender: No OFD packet to send [17:51:12]OFD Sender: No OFD packet to send [17:51:17]OFD Sender: No OFD packet to send [17:51:18]recv_with_timeout no data received [17:51:22]OFD Sender: No OFD packet to send [17:51:36]wFMCommunicate OK [17:51:36]wFMCommunicate request_size=13 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 15 02 00 08 F4 03 04 00 28 CC C8 66 [17:51:36]Write to MH i2c: E2 10 00 FB 03 80 15 02 00 08 00 F4 03 04 00 28 CC C8 66 00 00 AB [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [17:51:36]RAPDU: 90 00 [17:51:36]wFMCommunicate OK [17:51:36]wFMCommunicate request_size=25 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [17:51:36]Write to MH i2c: E2 1C 00 FC 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 DF [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:36]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [17:51:36]Read from MH i2c: E2 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 [17:51:36]MH_I2C_Read... [17:51:36]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [17:51:36]RAPDU: 90 00 [17:51:36]wFMCommunicate OK [17:51:36]wFMCommunicate request_size=4 [17:51:36]MH_SAM_APDU [17:51:36]CAPDU: 80 15 03 00 [17:51:36]Write to MH i2c: E2 08 00 FD 03 80 15 03 00 00 00 00 00 81 [17:51:36]Write i2c OK [17:51:36]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 40 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 40 00 FD 03 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 01 BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 95 00 00 00 35 04 06 00 42 82 E4 37 A1 B3 90 00 D9 [17:51:37]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 01 BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 95 00 00 00 35 04 06 00 42 82 E4 37 A1 B3 90 00 [17:51:37]wFMCommunicate OK [17:51:37]SAM_PROTO_ProcessDocument answer len = 59 [17:51:37]SAM_PROTO_ProcessDocument done [17:51:37]SetTLVBufToDocument [17:51:37]Processing tag 1209 (04B9) [17:51:37]Malloc new data [17:51:37]Processing tag 1041 (0411) [17:51:37]Processing tag 1040 (0410) [17:51:37]Malloc new data [17:51:37]Processing tag 1038 (040E) [17:51:37]Malloc new data [17:51:37]Processing tag 1042 (0412) [17:51:37]Malloc new data [17:51:37]Processing tag 1077 (0435) [17:51:37]Malloc new data [17:51:37]SetTLVBufToDocument err=0 [17:51:37]KKMLoadAndSignReceiptData store KKM data [17:51:37]KKMLoadAndSignReceiptData err=0 [17:51:37]wFMCommunicate request_size=4 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 11 00 00 [17:51:37]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 17 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D4 [17:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:51:37]wFMCommunicate OK [17:51:37]Счет N : (1)294537 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 42 Товар: 2710124130 Аи-92-К-5 14.750 * 67.80 = 1000.05 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 149 23.08.2024 17:51 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178689 ФПД: 73129942032819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T175136&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178689&fm=73129942032819&tin=02508201610067®Number=0000000000092561&sum=100000 [17:51:37]StoreToDocumentArchive [17:51:37]shift 470 fd 178689 [17:51:37]save to /storage/0470/doc_00178689 [17:51:37]save last doc name /storage/0470/doc_00178689 to /storage/kkm_last_doc_name [17:51:37]save OK [17:51:37]Clear old archive folders... [17:51:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:37]tlvbuf is 008EE980 [17:51:37]SAM_PROTO_ClearQueue [17:51:37]wFMCommunicate request_size=4 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 09 00 00 [17:51:37]Write to MH i2c: E2 08 00 FF 03 80 09 00 00 00 00 00 00 74 [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 FF 03 00 90 00 76 [17:51:37]RAPDU: 90 00 [17:51:37]wFMCommunicate OK [17:51:37]SAM_PROTO_ClearQueue done [17:51:37]KKMCreateOFDPacket [17:51:37]OFDProtocolAddRootSTLVToBuf [17:51:37]FM_MakeSignedData [17:51:37]FM_MakeSignedData [17:51:37]SAM_PROTO_SignData [17:51:37]wFMCommunicate request_size=4 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 0D 01 02 [17:51:37]Write to MH i2c: E2 08 00 00 04 80 0D 01 02 00 00 00 00 7D [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [17:51:37]RAPDU: 90 00 [17:51:37]wFMCommunicate OK [17:51:37]wFMCommunicate request_size=255 [17:51:37]MH_SAM_APDU [17:51: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 28 CC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 01 BA 02 00 35 04 06 00 42 [17:51:37]Write to MH i2c: E2 02 01 01 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 28 CC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 01 BA 02 00 35 04 06 00 42 00 00 1C [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [17:51:37]RAPDU: 90 00 [17:51:37]wFMCommunicate OK [17:51:37]wFMCommunicate request_size=10 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 0D 02 02 05 82 E4 37 A1 B3 [17:51:37]Write to MH i2c: E2 0D 00 02 04 80 0D 02 02 05 00 82 E4 37 A1 B3 00 00 7B [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [17:51:37]RAPDU: 90 00 [17:51:37]wFMCommunicate OK [17:51:37]wFMCommunicate request_size=4 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 0D 03 02 [17:51:37]Write to MH i2c: E2 08 00 03 04 80 0D 03 02 00 00 00 00 82 [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 0B 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 0B 00 03 04 00 EB BA 2E B9 A8 07 19 97 90 00 6E [17:51:37]RAPDU: EB BA 2E B9 A8 07 19 97 90 00 [17:51:37]wFMCommunicate OK [17:51:37]SAM_PROTO_SignData done [17:51:37]FM_MakeSignedData done [17:51:37]CreateOFDProtocolMessage [17:51:37]wFMCommunicate request_size=4 [17:51:37]MH_SAM_APDU [17:51:37]CAPDU: 80 11 00 00 [17:51:37]Write to MH i2c: E2 08 00 04 04 80 11 00 00 00 00 00 00 82 [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:37]Read from MH i2c: E2 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 17 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: E2 17 00 04 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DB [17:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:51:37]wFMCommunicate OK [17:51:37]CreateOFDProtocolMessage done [17:51:37]OFDSenderStorePacket 178689 [17:51:37]StoreOFDPacket docnum=178689 [17:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AD 4C 07 01 2D 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 28 CC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 01 BA 02 00 35 04 06 00 42 82 E4 37 A1 B3 EB BA 2E B9 A8 07 19 97 [17:51:37]CheckFolder [17:51:37]dirname=/storage/ofd_packets [17:51:37]CheckFolder done [17:51:37]ProducePacketName [17:51:37]name=ofd_packets/00178689 [17:51:37]NVStorageSaveData ofd_packets/00178689 [17:51:37]File name is /storage/ofd_packets/00178689 [17:51:37]Write 301 bytes [17:51:37]NVStorageSaveData done [17:51:37]OFDSenderStorePacket done [17:51:37]KKMCreateOFDPacket done [17:51:37]NVStorageSaveData kkm_last_timestamp [17:51:37]File name is /storage/kkm_last_timestamp [17:51:37]Write 4 bytes [17:51:37]NVStorageSaveData done [17:51:37]ExternCall_PrintAddStr [17:51:37]wPrintStart [17:51:37]Write to MH i2c: 01 00 00 05 04 09 [17:51:37]Write i2c OK [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: 01 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: 01 07 00 [17:51:37]MH_I2C_Read... [17:51:37]Read from MH i2c: 01 07 00 05 04 00 00 00 00 00 FF 0F 1E [17:51:37]RasterBufferAndPrint [17:51:37]line Счет N : (1)294537 [17:51:37]line ИНН: 02508201610067 [17:51:37]line Контрольно-Кассовый Чек [17:51:37]line ПРОДАЖА [17:51:37]line ТРК (МРК, ГНК) : 42 [17:51:37]line Товар: 2710124130 [17:51:37]line Аи-92-К-5 [17:51:37]line 14.750 * 67.80 [17:51:37]line = 1000.05 [17:51:37]line НДС 12% НСП 1% [17:51:37]line > о реализуемом товаре [17:51:37]line ОКРУГЛЕНИЕ: -0.05 [17:51:37]line ИТОГО: 1000.00 [17:51:37]line Внесено: 1000.00 [17:51:37]line СДАЧА: 0.00 [17:51:37]line НСП 1% : 8.85 [17:51:37]line НДС 12% : 106.20 [17:51:37]line Наличными: 1000.00 [17:51:37]line Безнал.: 0.00 [17:51:37]line Место: АЗС № 130 "Партнер Нефть" [17:51:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [17:51:37]line СНО: Общий режим [17:51:37]line Чек 149 23.08.2024 17:51 [17:51:37]line Смена: 470 ФФД: 1.0 [17:51:37]line ЗНМ: 0300000071 [17:51:37]line РНМ: 0000000000092561 [17:51:37]line Версия ККМ: 001 [17:51:37]line ФМ: 0000000000871778 [17:51:37]line ФД: 178689 [17:51:37]line ФПД: 73129942032819 [17:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T175136&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178689&fm=73129942032819&tin=02508201610067®Number=0000000000092561&sum=100000 [17:51:37]written 0, free lines is 4095 [17:51:37]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:51:37]ProducePacketName [17:51:37]name=ofd_packets/00178689 [17:51:37]OFD Sender: To server: pG, [17:51:37]CommunicateWithHost lk.salyk.kg:30040 [17:51:37]ConnectInit lk.salyk.kg [17:51:38]Write to MH i2c: 01 00 00 30 04 34 [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 07 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: 01 07 00 30 04 00 00 00 00 00 DD 0C 24 [17:51:38]RasterBufferAndPrint [17:51:38]line [17:51:38]line [17:51:38]line [17:51:38]line [17:51:38]line [17:51:38]written 0, free lines is 3299 [17:51:38]MH_Cut [17:51:38]Write to MH i2c: D1 01 00 37 04 01 0D [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: D1 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: D1 01 00 [17:51:38]MH_I2C_Read... [17:51:38]Read from MH i2c: D1 01 00 37 04 00 0C [17:51:38]Write to MH i2c: 01 00 00 38 04 3C [17:51:38]Write i2c OK [17:51:38]MH_I2C_Read... [17:51:38]*** Cut start [17:51:38]*** Partial cut [17:51:38]*** CUTSNS_PIN = 1 [17:51:39]*** CUTSNS_PIN = 0 [17:51:39]*** Brake cut motor [17:51:39]Read from MH i2c: 01 [17:51:39]MH_I2C_Read... [17:51:39]*** Stop cut motor [17:51:39]Read from MH i2c: 01 07 00 [17:51:39]MH_I2C_Read... [17:51:39]*** Cut end [17:51:39]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 FF 0F 51 [17:51:39]process_action close_receipt done [17:51:39]requested_data is exist [17:51:39]produce_requested_data [17:51:39]requested_item fm.sn is exist - process it [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 11 00 00 [17:51:39]Write to MH i2c: E2 08 00 39 04 80 11 00 00 00 00 00 00 B7 [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 17 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 17 00 39 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 10 [17:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [17:51:39]wFMCommunicate OK [17:51:39]requested_item fd.num is exist - process it [17:51:39]SAM_PROTO_GetFieldsCounters [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 13 00 00 [17:51:39]Write to MH i2c: E2 08 00 3A 04 80 13 00 00 00 00 00 00 BA [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 62 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 62 00 3A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 01 BA 02 00 0E 04 04 00 D6 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 32 [17: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 01 BA 02 00 0E 04 04 00 D6 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 [17:51:39]wFMCommunicate OK [17:51:39]SAM_PROTO_GetFieldsCounters done [17:51:39]requested_item shift.num is exist - process it [17:51:39]requested_item shift.opened is exist - process it [17:51:39]req_shift_opened [17:51:39]FM_GetShiftState [17:51:39]SAM_PROTO_GetShiftState [17:51:39]wFMCommunicate request_size=4 [17:51:39]MH_SAM_APDU [17:51:39]CAPDU: 80 13 01 00 [17:51:39]Write to MH i2c: E2 08 00 3B 04 80 13 01 00 00 00 00 00 BC [17:51:39]Write i2c OK [17:51:39]MH_I2C_Read... [17:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:39]Read from MH i2c: E2 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 0E 00 [17:51:39]MH_I2C_Read... [17:51:39]Read from MH i2c: E2 0E 00 3B 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 93 [17:51:39]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [17:51:39]wFMCommunicate OK [17:51:39]SAM_PROTO_GetShiftState done [17:51:39]FM_GetShiftState done [17:51:39]req_shift_opened done [17:51:39]requested_item shift.open_date is exist - process it [17:51:39]req_shift_open_date [17:51:39]req_shift_open_date done [17:51:39]produce_requested_data done [17:51:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178689,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [17:51:39]process_action_free close_receipt [17:51:39]json_value_free [17:51:39]json_value_free done [17:51:39]process_json_proto returns [17:51:39]Send response to host [17:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178689,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [17:51:39]free response buf [17:51:39]execute_script done [17:51:39]execute_script returns [17:51:39]free content buf [17:51:39]Sock 9.Close socket [17:51:39]Sock 9.Thread stoped [17:51:42]ConnectInit Can't take IP for lk.salyk.kg [17:51:42]CommunicateWithHost connect error [17:51:42]CommunicateWithHost err = -1 [17:51:42]OFD Sender: Server communicate error [17:51:47]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:51:47]ProducePacketName [17:51:47]name=ofd_packets/00178689 [17:51:47]OFD Sender: To server: pG, [17:51:47]CommunicateWithHost lk.salyk.kg:30040 [17:51:47]ConnectInit lk.salyk.kg [17:51:50]recv_with_timeout no data received [17:51:52]ConnectInit Can't take IP for lk.salyk.kg [17:51:52]CommunicateWithHost connect error [17:51:52]CommunicateWithHost err = -1 [17:51:52]OFD Sender: Server communicate error [17:51:57]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:51:57]ProducePacketName [17:51:57]name=ofd_packets/00178689 [17:51:57]OFD Sender: To server: pG, [17:51:57]CommunicateWithHost lk.salyk.kg:30040 [17:51:57]ConnectInit lk.salyk.kg [17:52:02]ConnectInit Can't take IP for lk.salyk.kg [17:52:02]CommunicateWithHost connect error [17:52:02]CommunicateWithHost err = -1 [17:52:02]OFD Sender: Server communicate error [17:52:07]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:52:07]ProducePacketName [17:52:07]name=ofd_packets/00178689 [17:52:07]OFD Sender: To server: pG, [17:52:07]CommunicateWithHost lk.salyk.kg:30040 [17:52:07]ConnectInit lk.salyk.kg [17:52:12]ConnectInit Can't take IP for lk.salyk.kg [17:52:12]CommunicateWithHost connect error [17:52:12]CommunicateWithHost err = -1 [17:52:12]OFD Sender: Server communicate error [17:52:17]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:52:17]ProducePacketName [17:52:17]name=ofd_packets/00178689 [17:52:17]OFD Sender: To server: pG, [17:52:17]CommunicateWithHost lk.salyk.kg:30040 [17:52:17]ConnectInit lk.salyk.kg [17:52:22]ConnectInit Can't take IP for lk.salyk.kg [17:52:22]CommunicateWithHost connect error [17:52:22]CommunicateWithHost err = -1 [17:52:22]OFD Sender: Server communicate error [17:52:27]ConnectInit Can't connect to host [17:52:27]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:52:27]ProducePacketName [17:52:27]name=ofd_packets/00178689 [17:52:27]OFD Sender: To server: pG, [17:52:27]CommunicateWithHost lk.salyk.kg:30040 [17:52:27]ConnectInit lk.salyk.kg [17:52:32]ConnectInit Can't take IP for lk.salyk.kg [17:52:32]CommunicateWithHost connect error [17:52:32]CommunicateWithHost err = -1 [17:52:32]OFD Sender: Server communicate error [17:52:37]OFD Sender: Processing packet 178689 [packets to send 498, broken 497] [17:52:37]ProducePacketName [17:52:37]name=ofd_packets/00178689 [17:52:37]OFD Sender: To server: pG, [17:52:37]CommunicateWithHost lk.salyk.kg:30040 [17:52:37]ConnectInit lk.salyk.kg [17:52:38]Connected sock=8 [17:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AD 4C 07 01 2D 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 28 CC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 01 BA 02 00 35 04 06 00 42 82 E4 37 A1 B3 EB BA 2E B9 A8 07 19 97 [17:52:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1B 09 47 00 54 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 31 37 37 38 10 04 04 00 01 BA 02 00 F4 03 04 00 0C 78 C8 66 B6 04 01 00 00 A8 26 62 CB C1 CD 54 1D [17:52:38]CommunicateWithHost err = 0 [17:52:38]CheckOFDResponse [17:52:38]1017 (14) - 77093643461234 [17:52:38]1041 (16) - 0000000000871778 [17:52:38]1040 (4) - 178689 [17:52:38]1012 (4) - 23.08.2024 11:52 [17:52:38]1206 (1) - 0 [17:52:38]OFD Sender: Remove packet 178689 [17:52:38]ProducePacketName [17:52:38]name=ofd_packets/00178689 [17:52:38]NVStorageDeleteData [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:44]recv_with_timeout no data received [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:35]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [17:56:28]recv_with_timeout no data received [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:43]recv_with_timeout no data received [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:57:56]recv_with_timeout no data received [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:00]recv_with_timeout no data received [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:12]recv_with_timeout no data received [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:09]recv_with_timeout no data received [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:32]accept exits with 10 [18:00:32]New connection [18:00:32]New thread 3066805604 created [18:00:32]Thread 3066662244 joined [18:00:32]Waiting for new connection... [18:00:32] Sock 10.Parse request [18:00:32]Sock 10.Check first char [18:00:32]Sock 10.First char is OK [18:00:32]request: POST /json_proto HTTP/1.0 [18:00:32]Method: POST [18:00:32]URL: /json_proto [18:00:32]Method is POST - this is cgi request [18:00:32]url: /json_proto [18:00:32]query_string will be loaded in cgi processing [18:00:32]execute_cgi json_proto POST (null) [18:00:32]execute_cgi path=json_proto method=POST [18:00:32]POST find Content-Length [18:00:32]Host: 172.17.44.131:8080 [18:00:32]Content-Length: 682 [18:00:32]Content-Type: application/json [18:00:32] [18:00:32]POST finish read [18:00:32]Found Content-Length = 682 [18:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294543", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [18:00:32]execute_script... [18:00: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)294543", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [18:00:32]POST & json_proto [18:00:32]process_json_proto [18:00:32]json parsed OK: [18:00:32]protocol is kg_v1.0 [18:00:32]action value=close_receipt [18:00:32]process_action close_receipt [18:00:32]cmd_close_receipt [18:00:32]MH_GetDate [18:00:32]Write to MH i2c: F0 00 00 3C 04 2F [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: F0 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: F0 09 00 [18:00:32]MH_I2C_Read... [18:00:32]Read from MH i2c: F0 09 00 3C 04 00 41 CE C8 66 4F 53 BE 66 3B [18:00:32]GetLastDocTimeStamp 1724435496 [18:00:32]current date 1724436033 [18:00:32]FM_GetShiftState [18:00:32]SAM_PROTO_GetShiftState [18:00:32]wFMCommunicate request_size=4 [18:00:32]MH_SAM_APDU [18:00:32]CAPDU: 80 13 01 00 [18:00:32]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [18:00:32]Write i2c OK [18:00:32]MH_I2C_Read... [18:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:33]Read from MH i2c: E2 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 0E 00 [18:00:33]MH_I2C_Read... [18:00:33]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 95 [18:00:33]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:00:33]wFMCommunicate OK [18:00:33]SAM_PROTO_GetShiftState done [18:00:33]FM_GetShiftState done [18:00:33]opened in 1724371660 [18:00:33]opened+sec_in_day 1724458060 [18:00:33]quantity*price = 100005 [18:00:33]sum+1 = 100006 [18:00:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 150 23.08.2024 18:00 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178690 ФПД: 104111380544080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T180033&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178690&fm=104111380544080&tin=02508201610067®Number=0000000000092561&sum=100000 [18:00:34]StoreToDocumentArchive [18:00:34]shift 470 fd 178690 [18:00:34]save to /storage/0470/doc_00178690 [18:00:34]save last doc name /storage/0470/doc_00178690 to /storage/kkm_last_doc_name [18:00:34]save OK [18:00:34]Clear old archive folders... [18:00:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:34]tlvbuf is 0094DE80 [18:00:34]SAM_PROTO_ClearQueue [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 09 00 00 [18:00:34]Write to MH i2c: E2 08 00 4A 04 80 09 00 00 00 00 00 00 C0 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 4A 04 00 90 00 C2 [18:00:34]RAPDU: 90 00 [18:00:34]wFMCommunicate OK [18:00:34]SAM_PROTO_ClearQueue done [18:00:34]KKMCreateOFDPacket [18:00:34]OFDProtocolAddRootSTLVToBuf [18:00:34]FM_MakeSignedData [18:00:34]FM_MakeSignedData [18:00:34]SAM_PROTO_SignData [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 0D 01 02 [18:00:34]Write to MH i2c: E2 08 00 4B 04 80 0D 01 02 00 00 00 00 C8 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [18:00:34]RAPDU: 90 00 [18:00:34]wFMCommunicate OK [18:00:34]wFMCommunicate request_size=255 [18:00:34]MH_SAM_APDU [18:00: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E [18:00:34]Write to MH i2c: E2 02 01 4C 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E 00 00 A0 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [18:00:34]RAPDU: 90 00 [18:00:34]wFMCommunicate OK [18:00:34]wFMCommunicate request_size=10 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 0D 02 02 05 B0 51 DA BA 50 [18:00:34]Write to MH i2c: E2 0D 00 4D 04 80 0D 02 02 05 00 B0 51 DA BA 50 00 00 BA [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [18:00:34]RAPDU: 90 00 [18:00:34]wFMCommunicate OK [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 0D 03 02 [18:00:34]Write to MH i2c: E2 08 00 4E 04 80 0D 03 02 00 00 00 00 CD [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 0B 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 0B 00 4E 04 00 27 30 E9 C8 2E E0 85 43 90 00 AC [18:00:34]RAPDU: 27 30 E9 C8 2E E0 85 43 90 00 [18:00:34]wFMCommunicate OK [18:00:34]SAM_PROTO_SignData done [18:00:34]FM_MakeSignedData done [18:00:34]CreateOFDProtocolMessage [18:00:34]wFMCommunicate request_size=4 [18:00:34]MH_SAM_APDU [18:00:34]CAPDU: 80 11 00 00 [18:00:34]Write to MH i2c: E2 08 00 4F 04 80 11 00 00 00 00 00 00 CD [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:34]Read from MH i2c: E2 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 17 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: E2 17 00 4F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 26 [18:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:00:34]wFMCommunicate OK [18:00:34]CreateOFDProtocolMessage done [18:00:34]OFDSenderStorePacket 178690 [18:00:34]StoreOFDPacket docnum=178690 [18:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BB B7 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E B0 51 DA BA 50 27 30 E9 C8 2E E0 85 43 [18:00:34]CheckFolder [18:00:34]dirname=/storage/ofd_packets [18:00:34]CheckFolder done [18:00:34]ProducePacketName [18:00:34]name=ofd_packets/00178690 [18:00:34]NVStorageSaveData ofd_packets/00178690 [18:00:34]File name is /storage/ofd_packets/00178690 [18:00:34]Write 301 bytes [18:00:34]NVStorageSaveData done [18:00:34]OFDSenderStorePacket done [18:00:34]KKMCreateOFDPacket done [18:00:34]NVStorageSaveData kkm_last_timestamp [18:00:34]File name is /storage/kkm_last_timestamp [18:00:34]Write 4 bytes [18:00:34]NVStorageSaveData done [18:00:34]ExternCall_PrintAddStr [18:00:34]wPrintStart [18:00:34]Write to MH i2c: 01 00 00 50 04 54 [18:00:34]Write i2c OK [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: 01 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: 01 07 00 [18:00:34]MH_I2C_Read... [18:00:34]Read from MH i2c: 01 07 00 50 04 00 00 00 00 00 FF 0F 69 [18:00:34]RasterBufferAndPrint [18:00:34]line Счет N : (1)294543 [18:00:34]line ИНН: 02508201610067 [18:00:34]line Контрольно-Кассовый Чек [18:00:34]line ПРОДАЖА [18:00:34]line ТРК (МРК, ГНК) : 62 [18:00:34]line Товар: 2710124130 [18:00:34]line Аи-92-К-5 [18:00:34]line 14.750 * 67.80 [18:00:34]line = 1000.05 [18:00:34]line НДС 12% НСП 1% [18:00:34]line > о реализуемом товаре [18:00:34]line ОКРУГЛЕНИЕ: -0.05 [18:00:34]line ИТОГО: 1000.00 [18:00:34]line Внесено: 1000.00 [18:00:34]line СДАЧА: 0.00 [18:00:34]line НСП 1% : 8.85 [18:00:34]line НДС 12% : 106.20 [18:00:34]line Наличными: 1000.00 [18:00:34]line Безнал.: 0.00 [18:00:34]line Место: АЗС № 130 "Партнер Нефть" [18:00:34]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:00:34]line СНО: Общий режим [18:00:34]line Чек 150 23.08.2024 18:00 [18:00:34]line Смена: 470 ФФД: 1.0 [18:00:34]line ЗНМ: 0300000071 [18:00:34]line РНМ: 0000000000092561 [18:00:34]line Версия ККМ: 001 [18:00:34]line ФМ: 0000000000871778 [18:00:34]line ФД: 178690 [18:00:34]line ФПД: 104111380544080 [18:00:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T180033&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178690&fm=104111380544080&tin=02508201610067®Number=0000000000092561&sum=100000 [18:00:35]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:00:35]ProducePacketName [18:00:35]name=ofd_packets/00178690 [18:00:35]OFD Sender: To server: pG, [18:00:35]CommunicateWithHost lk.salyk.kg:30040 [18:00:35]ConnectInit lk.salyk.kg [18:00:35]written 0, free lines is 4095 [18:00:35]Write to MH i2c: 01 00 00 7B 04 7F [18:00:35]Write i2c OK [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: 01 [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: 01 07 00 [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: 01 07 00 7B 04 00 00 00 00 00 D6 0C 68 [18:00:35]RasterBufferAndPrint [18:00:35]line [18:00:35]line [18:00:35]line [18:00:35]line [18:00:35]line [18:00:35]written 0, free lines is 3294 [18:00:35]MH_Cut [18:00:35]Write to MH i2c: D1 01 00 82 04 01 58 [18:00:35]Write i2c OK [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: D1 [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: D1 01 00 [18:00:35]MH_I2C_Read... [18:00:35]Read from MH i2c: D1 01 00 82 04 00 57 [18:00:35]Write to MH i2c: 01 00 00 83 04 87 [18:00:35]Write i2c OK [18:00:35]MH_I2C_Read... [18:00:36]*** Cut start [18:00:36]*** Partial cut [18:00:36]*** CUTSNS_PIN = 1 [18:00:36]*** CUTSNS_PIN = 0 [18:00:36]*** Brake cut motor [18:00:36]Read from MH i2c: 01 [18:00:36]MH_I2C_Read... [18:00:36]*** Stop cut motor [18:00:36]*** Cut end [18:00:36]Read from MH i2c: 01 07 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 FF 0F 9C [18:00:36]process_action close_receipt done [18:00:36]requested_data is exist [18:00:36]produce_requested_data [18:00:36]requested_item fm.sn is exist - process it [18:00:36]wFMCommunicate request_size=4 [18:00:36]MH_SAM_APDU [18:00:36]CAPDU: 80 11 00 00 [18:00:36]Write to MH i2c: E2 08 00 84 04 80 11 00 00 00 00 00 00 02 [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:36]Read from MH i2c: E2 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: E2 17 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: E2 17 00 84 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5B [18:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:00:36]wFMCommunicate OK [18:00:36]requested_item fd.num is exist - process it [18:00:36]SAM_PROTO_GetFieldsCounters [18:00:36]wFMCommunicate request_size=4 [18:00:36]MH_SAM_APDU [18:00:36]CAPDU: 80 13 00 00 [18:00:36]Write to MH i2c: E2 08 00 85 04 80 13 00 00 00 00 00 00 05 [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:36]Read from MH i2c: E2 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: E2 62 00 [18:00:36]MH_I2C_Read... [18:00:36]Read from MH i2c: E2 62 00 85 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 02 BA 02 00 0E 04 04 00 D6 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 81 [18:00: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 02 BA 02 00 0E 04 04 00 D6 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 [18:00:36]wFMCommunicate OK [18:00:36]SAM_PROTO_GetFieldsCounters done [18:00:36]requested_item shift.num is exist - process it [18:00:36]requested_item shift.opened is exist - process it [18:00:36]req_shift_opened [18:00:36]FM_GetShiftState [18:00:36]SAM_PROTO_GetShiftState [18:00:36]wFMCommunicate request_size=4 [18:00:36]MH_SAM_APDU [18:00:36]CAPDU: 80 13 01 00 [18:00:36]Write to MH i2c: E2 08 00 86 04 80 13 01 00 00 00 00 00 07 [18:00:36]Write i2c OK [18:00:36]MH_I2C_Read... [18:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:37]Read from MH i2c: E2 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: E2 0E 00 [18:00:37]MH_I2C_Read... [18:00:37]Read from MH i2c: E2 0E 00 86 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 DE [18:00:37]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:00:37]wFMCommunicate OK [18:00:37]SAM_PROTO_GetShiftState done [18:00:37]FM_GetShiftState done [18:00:37]req_shift_opened done [18:00:37]requested_item shift.open_date is exist - process it [18:00:37]req_shift_open_date [18:00:37]req_shift_open_date done [18:00:37]produce_requested_data done [18:00:37]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178690,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:00:37]process_action_free close_receipt [18:00:37]json_value_free [18:00:37]json_value_free done [18:00:37]process_json_proto returns [18:00:37]Send response to host [18:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178690,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:00:37]free response buf [18:00:37]execute_script done [18:00:37]execute_script returns [18:00:37]free content buf [18:00:37]Sock 10.Close socket [18:00:37]Sock 10.Thread stoped [18:00:43]recv_with_timeout no data received [18:00:52]Connected sock=11 [18:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BB B7 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E B0 51 DA BA 50 27 30 E9 C8 2E E0 85 43 [18:00:57]recv_with_timeout no data received [18:00:57]CommunicateWithHost answer receiving error [18:00:57]CommunicateWithHost err = -3 [18:00:57]OFD Sender: Server communicate error [18:01:00]recv_with_timeout no data received [18:01:02]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:01:02]ProducePacketName [18:01:02]name=ofd_packets/00178690 [18:01:02]OFD Sender: To server: pG, [18:01:02]CommunicateWithHost lk.salyk.kg:30040 [18:01:02]ConnectInit lk.salyk.kg [18:01:07]ConnectInit Can't take IP for lk.salyk.kg [18:01:07]CommunicateWithHost connect error [18:01:07]CommunicateWithHost err = -1 [18:01:07]OFD Sender: Server communicate error [18:01:12]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:01:12]ProducePacketName [18:01:12]name=ofd_packets/00178690 [18:01:12]OFD Sender: To server: pG, [18:01:12]CommunicateWithHost lk.salyk.kg:30040 [18:01:12]ConnectInit lk.salyk.kg [18:01:17]ConnectInit Can't take IP for lk.salyk.kg [18:01:17]CommunicateWithHost connect error [18:01:17]CommunicateWithHost err = -1 [18:01:17]OFD Sender: Server communicate error [18:01:22]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:01:22]ProducePacketName [18:01:22]name=ofd_packets/00178690 [18:01:22]OFD Sender: To server: pG, [18:01:22]CommunicateWithHost lk.salyk.kg:30040 [18:01:22]ConnectInit lk.salyk.kg [18:01:24]recv_with_timeout no data received [18:01:27]ConnectInit Can't take IP for lk.salyk.kg [18:01:27]CommunicateWithHost connect error [18:01:27]CommunicateWithHost err = -1 [18:01:27]OFD Sender: Server communicate error [18:01:32]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:01:32]ProducePacketName [18:01:32]name=ofd_packets/00178690 [18:01:32]OFD Sender: To server: pG, [18:01:32]CommunicateWithHost lk.salyk.kg:30040 [18:01:32]ConnectInit lk.salyk.kg [18:01:37]ConnectInit Can't take IP for lk.salyk.kg [18:01:37]CommunicateWithHost connect error [18:01:37]CommunicateWithHost err = -1 [18:01:37]OFD Sender: Server communicate error [18:01:42]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:01:42]ProducePacketName [18:01:42]name=ofd_packets/00178690 [18:01:42]OFD Sender: To server: pG, [18:01:42]CommunicateWithHost lk.salyk.kg:30040 [18:01:42]ConnectInit lk.salyk.kg [18:01:48]recv_with_timeout no data received [18:01:55]Connected sock=10 [18:01:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BB B7 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E B0 51 DA BA 50 27 30 E9 C8 2E E0 85 43 [18:02:00]recv_with_timeout no data received [18:02:00]CommunicateWithHost answer receiving error [18:02:00]CommunicateWithHost err = -3 [18:02:00]OFD Sender: Server communicate error [18:02:05]OFD Sender: Processing packet 178690 [packets to send 498, broken 497] [18:02:05]ProducePacketName [18:02:05]name=ofd_packets/00178690 [18:02:05]OFD Sender: To server: pG, [18:02:05]CommunicateWithHost lk.salyk.kg:30040 [18:02:05]ConnectInit lk.salyk.kg [18:02:05]recv_with_timeout no data received [18:02:10]ConnectInit Can't take IP for lk.salyk.kg [18:02:10]CommunicateWithHost connect error [18:02:10]CommunicateWithHost err = -1 [18:02:10]OFD Sender: Server communicate error [18:04:28]ConnectInit Can't connect to host [18:04:32]ConnectInit Can't take IP for lk.salyk.kg [18:04:32]CommunicateWithHost connect error [18:04:32]CommunicateWithHost err = -1 [18:04:32]OFD Sender: Server communicate error [18:04:37]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:04:37]ProducePacketName [18:04:37]name=ofd_packets/00178690 [18:04:37]OFD Sender: To server: pG, [18:04:37]CommunicateWithHost lk.salyk.kg:30040 [18:04:37]ConnectInit lk.salyk.kg [18:04:45]recv_with_timeout no data received [18:04:48]Connected sock=9 [18:04:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BB B7 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E B0 51 DA BA 50 27 30 E9 C8 2E E0 85 43 04 80 15 02 00 08 00 F4 03 04 00 CF CE C8 66 00 00 36 [18:02:54]Write i2c OK [18:02:54]MH_I2C_Read... [18:02:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:02:54]Read from MH i2c: E2 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 03 00 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [18:02:54]RAPDU: 90 00 [18:02:54]wFMCommunicate OK [18:02:54]wFMCommunicate request_size=25 [18:02:54]MH_SAM_APDU [18:02:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [18:02:54]Write to MH i2c: E2 1C 00 DD 04 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 C1 [18:02:54]Write i2c OK [18:02:54]MH_I2C_Read... [18:02:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [18:02:54]Read from MH i2c: E2 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 03 00 [18:02:54]MH_I2C_Read... [18:02:54]Read from MH i2c: E2 03 00 DD 04 00 90 00 55 [18:02:54]RAPDU: 90 00 [18:02:54]wFMCommunicate OK [18:02:54]wFMCommunicate request_size=4 [18:02:54]MH_SAM_APDU [18:02:54]CAPDU: 80 15 03 00 [18:02:54]Write to MH i2c: E2 08 00 DE 04 80 15 03 00 00 00 00 00 63 [18:02:54]Write i2c OK [18:02:54]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 40 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 40 00 DE 04 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 04 BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 98 00 00 00 35 04 06 00 D4 D8 22 86 B8 02 90 00 9C [18:02:55]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 04 BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 98 00 00 00 35 04 06 00 D4 D8 22 86 B8 02 90 00 [18:02:55]wFMCommunicate OK [18:02:55]SAM_PROTO_ProcessDocument answer len = 59 [18:02:55]SAM_PROTO_ProcessDocument done [18:02:55]SetTLVBufToDocument [18:02:55]Processing tag 1209 (04B9) [18:02:55]Malloc new data [18:02:55]Processing tag 1041 (0411) [18:02:55]Processing tag 1040 (0410) [18:02:55]Malloc new data [18:02:55]Processing tag 1038 (040E) [18:02:55]Malloc new data [18:02:55]Processing tag 1042 (0412) [18:02:55]Malloc new data [18:02:55]Processing tag 1077 (0435) [18:02:55]Malloc new data [18:02:55]SetTLVBufToDocument err=0 [18:02:55]KKMLoadAndSignReceiptData store KKM data [18:02:55]KKMLoadAndSignReceiptData err=0 [18:02:55]wFMCommunicate request_size=4 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 11 00 00 [18:02:55]Write to MH i2c: E2 08 00 DF 04 80 11 00 00 00 00 00 00 5D [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 17 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 17 00 DF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B6 [18:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:02:55]wFMCommunicate OK [18:02:55]Счет N : (1)294546 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 32 Товар: 2710124130 Аи-92-К-5 5.900 * 67.80 = 400.02 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 152 23.08.2024 18:02 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178692 ФПД: 234024757278722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T180255&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178692&fm=234024757278722&tin=02508201610067®Number=0000000000092561&sum=40000 [18:02:55]StoreToDocumentArchive [18:02:55]shift 470 fd 178692 [18:02:55]save to /storage/0470/doc_00178692 [18:02:55]save last doc name /storage/0470/doc_00178692 to /storage/kkm_last_doc_name [18:02:55]save OK [18:02:55]Clear old archive folders... [18:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:55]tlvbuf is 0090EB50 [18:02:55]SAM_PROTO_ClearQueue [18:02:55]wFMCommunicate request_size=4 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 09 00 00 [18:02:55]Write to MH i2c: E2 08 00 E0 04 80 09 00 00 00 00 00 00 56 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 E0 04 00 90 00 58 [18:02:55]RAPDU: 90 00 [18:02:55]wFMCommunicate OK [18:02:55]SAM_PROTO_ClearQueue done [18:02:55]KKMCreateOFDPacket [18:02:55]OFDProtocolAddRootSTLVToBuf [18:02:55]FM_MakeSignedData [18:02:55]FM_MakeSignedData [18:02:55]SAM_PROTO_SignData [18:02:55]wFMCommunicate request_size=4 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 0D 01 02 [18:02:55]Write to MH i2c: E2 08 00 E1 04 80 0D 01 02 00 00 00 00 5E [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 E1 04 00 90 00 59 [18:02:55]RAPDU: 90 00 [18:02:55]wFMCommunicate OK [18:02:55]wFMCommunicate request_size=255 [18:02:55]MH_SAM_APDU [18:02: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 CF CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 04 BA 02 00 35 04 06 00 D4 [18:02:55]Write to MH i2c: E2 02 01 E2 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 CF CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 04 BA 02 00 35 04 06 00 D4 00 00 94 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [18:02:55]RAPDU: 90 00 [18:02:55]wFMCommunicate OK [18:02:55]wFMCommunicate request_size=10 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 0D 02 02 05 D8 22 86 B8 02 [18:02:55]Write to MH i2c: E2 0D 00 E3 04 80 0D 02 02 05 00 D8 22 86 B8 02 00 00 A5 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [18:02:55]RAPDU: 90 00 [18:02:55]wFMCommunicate OK [18:02:55]wFMCommunicate request_size=4 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 0D 03 02 [18:02:55]Write to MH i2c: E2 08 00 E4 04 80 0D 03 02 00 00 00 00 63 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 0B 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 0B 00 E4 04 00 14 5F F6 2C 6A 60 99 44 90 00 A0 [18:02:55]RAPDU: 14 5F F6 2C 6A 60 99 44 90 00 [18:02:55]wFMCommunicate OK [18:02:55]SAM_PROTO_SignData done [18:02:55]FM_MakeSignedData done [18:02:55]CreateOFDProtocolMessage [18:02:55]wFMCommunicate request_size=4 [18:02:55]MH_SAM_APDU [18:02:55]CAPDU: 80 11 00 00 [18:02:55]Write to MH i2c: E2 08 00 E5 04 80 11 00 00 00 00 00 00 63 [18:02:55]Write i2c OK [18:02:55]MH_I2C_Read... [18:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:55]Read from MH i2c: E2 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 17 00 [18:02:55]MH_I2C_Read... [18:02:55]Read from MH i2c: E2 17 00 E5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BC [18:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:02:55]wFMCommunicate OK [18:02:55]CreateOFDProtocolMessage done [18:02:55]OFDSenderStorePacket 178692 [18:02:55]StoreOFDPacket docnum=178692 [18:04:53]recv_with_timeout no data received [18:04:53]CommunicateWithHost answer receiving error [18:04:53]CommunicateWithHost err = -3 [18:04:53]OFD Sender: Server communicate error [18:04:58]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:04:58]ProducePacketName [18:04:58]name=ofd_packets/00178690 [18:04:58]OFD Sender: To server: pG, [18:04:58]CommunicateWithHost lk.salyk.kg:30040 [18:04:58]ConnectInit lk.salyk.kg [18:05:03]ConnectInit Can't take IP for lk.salyk.kg [18:05:03]CommunicateWithHost connect error [18:05:03]CommunicateWithHost err = -1 [18:05:03]OFD Sender: Server communicate error [18:05:07]recv_with_timeout no data received [18:05:08]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:05:08]ProducePacketName [18:05:08]name=ofd_packets/00178690 [18:05:08]OFD Sender: To server: pG, [18:05:08]CommunicateWithHost lk.salyk.kg:30040 [18:05:08]ConnectInit lk.salyk.kg [18:05:13]ConnectInit Can't take IP for lk.salyk.kg [18:05:13]CommunicateWithHost connect error [18:05:13]CommunicateWithHost err = -1 [18:05:13]OFD Sender: Server communicate error [18:05:18]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:05:18]ProducePacketName [18:05:18]name=ofd_packets/00178690 [18:05:18]OFD Sender: To server: pG, [18:05:18]CommunicateWithHost lk.salyk.kg:30040 [18:05:18]ConnectInit lk.salyk.kg [18:05:23]ConnectInit Can't take IP for lk.salyk.kg [18:05:23]CommunicateWithHost connect error [18:05:23]CommunicateWithHost err = -1 [18:05:23]OFD Sender: Server communicate error [18:05:28]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:05:28]ProducePacketName [18:05:28]name=ofd_packets/00178690 [18:05:28]OFD Sender: To server: pG, [18:05:28]CommunicateWithHost lk.salyk.kg:30040 [18:05:28]ConnectInit lk.salyk.kg [18:05:33]ConnectInit Can't take IP for lk.salyk.kg [18:05:33]CommunicateWithHost connect error [18:05:33]CommunicateWithHost err = -1 [18:05:33]OFD Sender: Server communicate error [18:05:38]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:05:38]ProducePacketName [18:05:38]name=ofd_packets/00178690 [18:05:38]OFD Sender: To server: pG, [18:05:38]CommunicateWithHost lk.salyk.kg:30040 [18:05:38]ConnectInit lk.salyk.kg [18:05:41]recv_with_timeout no data received [18:05:43]ConnectInit Can't take IP for lk.salyk.kg [18:05:43]CommunicateWithHost connect error [18:05:43]CommunicateWithHost err = -1 [18:05:43]OFD Sender: Server communicate error [18:05:48]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:05:48]ProducePacketName [18:05:48]name=ofd_packets/00178690 [18:05:48]OFD Sender: To server: pG, [18:05:48]CommunicateWithHost lk.salyk.kg:30040 [18:05:48]ConnectInit lk.salyk.kg [18:05:53]ConnectInit Can't take IP for lk.salyk.kg [18:05:53]CommunicateWithHost connect error [18:05:53]CommunicateWithHost err = -1 [18:05:53]OFD Sender: Server communicate error [18:05:58]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:05:58]ProducePacketName [18:05:58]name=ofd_packets/00178690 [18:05:58]OFD Sender: To server: pG, [18:05:58]CommunicateWithHost lk.salyk.kg:30040 [18:05:58]ConnectInit lk.salyk.kg [18:06:03]ConnectInit Can't take IP for lk.salyk.kg [18:06:03]CommunicateWithHost connect error [18:06:03]CommunicateWithHost err = -1 [18:06:03]OFD Sender: Server communicate error [18:06:08]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:06:08]ProducePacketName [18:06:08]name=ofd_packets/00178690 [18:06:08]OFD Sender: To server: pG, [18:06:08]CommunicateWithHost lk.salyk.kg:30040 [18:06:08]ConnectInit lk.salyk.kg [18:06:13]ConnectInit Can't take IP for lk.salyk.kg [18:06:13]CommunicateWithHost connect error [18:06:13]CommunicateWithHost err = -1 [18:06:13]OFD Sender: Server communicate error [18:06:18]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:06:18]ProducePacketName [18:06:18]name=ofd_packets/00178690 [18:06:18]OFD Sender: To server: pG, [18:06:18]CommunicateWithHost lk.salyk.kg:30040 [18:06:18]ConnectInit lk.salyk.kg [18:06:23]ConnectInit Can't take IP for lk.salyk.kg [18:06:23]CommunicateWithHost connect error [18:06:23]CommunicateWithHost err = -1 [18:06:23]OFD Sender: Server communicate error [18:06:28]OFD Sender: Processing packet 178690 [packets to send 500, broken 497] [18:06:28]ProducePacketName [18:06:28]name=ofd_packets/00178690 [18:06:28]OFD Sender: To server: pG, [18:06:28]CommunicateWithHost lk.salyk.kg:30040 [18:06:28]ConnectInit lk.salyk.kg [18:06:34]Connected sock=9 [18:06:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BB B7 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 41 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 02 BA 02 00 35 04 06 00 5E B0 51 DA BA 50 27 30 E9 C8 2E E0 85 43 [18:06:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 51 4C 47 00 53 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 31 37 37 38 10 04 04 00 02 BA 02 00 F4 03 04 00 50 7B C8 66 B6 04 01 00 00 D1 8E 28 C5 A8 F2 0E 2D [18:06:34]CommunicateWithHost err = 0 [18:06:34]CheckOFDResponse [18:06:34]1017 (14) - 77093643461234 [18:06:34]1041 (16) - 0000000000871778 [18:06:34]1040 (4) - 178690 [18:06:34]1012 (4) - 23.08.2024 12:06 [18:06:34]1206 (1) - 0 [18:06:34]OFD Sender: Remove packet 178690 [18:06:34]ProducePacketName [18:06:34]name=ofd_packets/00178690 [18:06:34]NVStorageDeleteData [18:06:35]OFD Sender: Processing packet 178691 [packets to send 499, broken 497] [18:06:35]ProducePacketName [18:06:35]name=ofd_packets/00178691 [18:06:35]OFD Sender: To server: pG, [18:06:35]CommunicateWithHost lk.salyk.kg:30040 [18:06:35]ConnectInit lk.salyk.kg [18:06:35]Connected sock=9 [18: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 31 37 37 38 0F 01 00 00 3B 62 07 01 09 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 B6 CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 03 BA 02 00 35 04 06 00 39 16 DB B2 1D 57 D7 59 D4 7E E8 5A 7A 56 [18:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 5C 82 47 00 8E 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 31 37 37 38 10 04 04 00 03 BA 02 00 F4 03 04 00 51 7B C8 66 B6 04 01 00 00 2D FD DA FE D0 E9 84 E9 [18:06:36]CommunicateWithHost err = 0 [18:06:36]CheckOFDResponse [18:06:36]1017 (14) - 77093643461234 [18:06:36]1041 (16) - 0000000000871778 [18:06:36]1040 (4) - 178691 [18:06:36]1012 (4) - 23.08.2024 12:06 [18:06:36]1206 (1) - 0 [18:06:36]OFD Sender: Remove packet 178691 [18:06:36]ProducePacketName [18:06:36]name=ofd_packets/00178691 [18:06:36]NVStorageDeleteData [18:06:37]OFD Sender: Processing packet 178692 [packets to send 498, broken 497] [18:06:37]ProducePacketName [18:06:37]name=ofd_packets/00178692 [18:06:37]OFD Sender: To server: pG, [18:06:37]CommunicateWithHost lk.salyk.kg:30040 [18:06:37]ConnectInit lk.salyk.kg [18:06:37]Connected sock=9 [18:06:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 95 E1 07 01 85 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 CF CE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 04 BA 02 00 35 04 06 00 D4 D8 22 86 B8 02 14 5F F6 2C 6A 60 99 44 [18:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DB 84 47 00 22 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 31 37 37 38 10 04 04 00 04 BA 02 00 F4 03 04 00 53 7B C8 66 B6 04 01 00 00 3B B1 68 BA D3 5A A5 1D [18:06:38]CommunicateWithHost err = 0 [18:06:38]CheckOFDResponse [18:06:38]1017 (14) - 77093643461234 [18:06:38]1041 (16) - 0000000000871778 [18:06:38]1040 (4) - 178692 [18:06:38]1012 (4) - 23.08.2024 12:06 [18:06:38]1206 (1) - 0 [18:06:38]OFD Sender: Remove packet 178692 [18:06:38]ProducePacketName [18:06:38]name=ofd_packets/00178692 [18:06:38]NVStorageDeleteData [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:06]recv_with_timeout no data received [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]recv_with_timeout no data received [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:13]recv_with_timeout no data received [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:35]recv_with_timeout no data received [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:54]OFD Sender: No OFD packet to send [18:09:59]OFD Sender: No OFD packet to send [18:10:04]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:51]recv_with_timeout no data received [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]recv_with_timeout no data received [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:29]recv_with_timeout no data received [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:40]recv_with_timeout no data received [18:11:44]OFD Sender: No OFD packet to send [18:11:49]OFD Sender: No OFD packet to send [18:11:51]recv_with_timeout no data received [18:11:54]OFD Sender: No OFD packet to send [18:11:59]OFD Sender: No OFD packet to send [18:12:04]OFD Sender: No OFD packet to send [18:12:09]OFD Sender: No OFD packet to send [18:12:14]OFD Sender: No OFD packet to send [18:12:19]OFD Sender: No OFD packet to send [18:12:24]OFD Sender: No OFD packet to send [18:12:29]OFD Sender: No OFD packet to send [18:12:34]OFD Sender: No OFD packet to send [18:12:35]recv_with_timeout no data received [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:37]accept exits with 10 [18:13:37]New connection [18:13:37]New thread 3066662244 created [18:13:37]Thread 3066805604 joined [18:13:37]Waiting for new connection... [18:13:37] Sock 10.Parse request [18:13:37]Sock 10.Check first char [18:13:37]Sock 10.First char is OK [18:13:37]request: POST /json_proto HTTP/1.0 [18:13:37]Method: POST [18:13:37]URL: /json_proto [18:13:37]Method is POST - this is cgi request [18:13:37]url: /json_proto [18:13:37]query_string will be loaded in cgi processing [18:13:37]execute_cgi json_proto POST (null) [18:13:37]execute_cgi path=json_proto method=POST [18:13:37]POST find Content-Length [18:13:37]Host: 172.17.44.131:8080 [18:13:37]Content-Length: 682 [18:13:37]Content-Type: application/json [18:13:37] [18:13:37]POST finish read [18:13:37]Found Content-Length = 682 [18:13:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294553", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [18:13:37]execute_script... [18:13: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)294553", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [18:13:37]POST & json_proto [18:13:37]process_json_proto [18:13:37]json parsed OK: [18:13:37]protocol is kg_v1.0 [18:13:37]action value=close_receipt [18:13:37]process_action close_receipt [18:13:37]cmd_close_receipt [18:13:37]MH_GetDate [18:13:37]Write to MH i2c: F0 00 00 1D 05 11 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: F0 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: F0 09 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: F0 09 00 1D 05 00 52 D1 C8 66 4F 53 BE 66 31 [18:13:37]GetLastDocTimeStamp 1724436175 [18:13:37]current date 1724436818 [18:13:37]FM_GetShiftState [18:13:37]SAM_PROTO_GetShiftState [18:13:37]wFMCommunicate request_size=4 [18:13:37]MH_SAM_APDU [18:13:37]CAPDU: 80 13 01 00 [18:13:37]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [18:13:37]Write i2c OK [18:13:37]MH_I2C_Read... [18:13:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:37]Read from MH i2c: E2 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 0E 00 [18:13:37]MH_I2C_Read... [18:13:37]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 77 [18:13:37]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:13:37]wFMCommunicate OK [18:13:37]SAM_PROTO_GetShiftState done [18:13:37]FM_GetShiftState done [18:13:37]opened in 1724371660 [18:13:37]opened+sec_in_day 1724458060 [18:13:37]quantity*price = 100005 [18:13:37]sum+1 = 100006 [18:13:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 153 23.08.2024 18:13 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178693 ФПД: 85867072706214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T181338&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178693&fm=85867072706214&tin=02508201610067®Number=0000000000092561&sum=100000 [18:13:38]StoreToDocumentArchive [18:13:38]shift 470 fd 178693 [18:13:38]save to /storage/0470/doc_00178693 [18:13:38]save last doc name /storage/0470/doc_00178693 to /storage/kkm_last_doc_name [18:13:38]save OK [18:13:38]Clear old archive folders... [18:13:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:38]tlvbuf is 00910440 [18:13:38]SAM_PROTO_ClearQueue [18:13:38]wFMCommunicate request_size=4 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 09 00 00 [18:13:38]Write to MH i2c: E2 08 00 2B 05 80 09 00 00 00 00 00 00 A2 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 2B 05 00 90 00 A4 [18:13:38]RAPDU: 90 00 [18:13:38]wFMCommunicate OK [18:13:38]SAM_PROTO_ClearQueue done [18:13:38]KKMCreateOFDPacket [18:13:38]OFDProtocolAddRootSTLVToBuf [18:13:38]FM_MakeSignedData [18:13:38]FM_MakeSignedData [18:13:38]SAM_PROTO_SignData [18:13:38]wFMCommunicate request_size=4 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 0D 01 02 [18:13:38]Write to MH i2c: E2 08 00 2C 05 80 0D 01 02 00 00 00 00 AA [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 2C 05 00 90 00 A5 [18:13:38]RAPDU: 90 00 [18:13:38]wFMCommunicate OK [18:13:38]wFMCommunicate request_size=255 [18:13:38]MH_SAM_APDU [18:13: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 52 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 05 BA 02 00 35 04 06 00 4E [18:13:38]Write to MH i2c: E2 02 01 2D 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 52 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 05 BA 02 00 35 04 06 00 4E 00 00 8C [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [18:13:38]RAPDU: 90 00 [18:13:38]wFMCommunicate OK [18:13:38]wFMCommunicate request_size=10 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 0D 02 02 05 18 7C 5D D6 A6 [18:13:38]Write to MH i2c: E2 0D 00 2E 05 80 0D 02 02 05 00 18 7C 5D D6 A6 00 00 24 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [18:13:38]RAPDU: 90 00 [18:13:38]wFMCommunicate OK [18:13:38]wFMCommunicate request_size=4 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 0D 03 02 [18:13:38]Write to MH i2c: E2 08 00 2F 05 80 0D 03 02 00 00 00 00 AF [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 0B 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 0B 00 2F 05 00 11 79 32 C9 C4 FD D3 D8 90 00 A1 [18:13:38]RAPDU: 11 79 32 C9 C4 FD D3 D8 90 00 [18:13:38]wFMCommunicate OK [18:13:38]SAM_PROTO_SignData done [18:13:38]FM_MakeSignedData done [18:13:38]CreateOFDProtocolMessage [18:13:38]wFMCommunicate request_size=4 [18:13:38]MH_SAM_APDU [18:13:38]CAPDU: 80 11 00 00 [18:13:38]Write to MH i2c: E2 08 00 30 05 80 11 00 00 00 00 00 00 AF [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:38]Read from MH i2c: E2 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 17 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: E2 17 00 30 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 08 [18:13:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:13:38]wFMCommunicate OK [18:13:38]CreateOFDProtocolMessage done [18:13:38]OFDSenderStorePacket 178693 [18:13:38]StoreOFDPacket docnum=178693 [18:13:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 72 47 07 01 A0 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 52 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 05 BA 02 00 35 04 06 00 4E 18 7C 5D D6 A6 11 79 32 C9 C4 FD D3 D8 [18:13:38]CheckFolder [18:13:38]dirname=/storage/ofd_packets [18:13:38]CheckFolder done [18:13:38]ProducePacketName [18:13:38]name=ofd_packets/00178693 [18:13:38]NVStorageSaveData ofd_packets/00178693 [18:13:38]File name is /storage/ofd_packets/00178693 [18:13:38]Write 301 bytes [18:13:38]NVStorageSaveData done [18:13:38]OFDSenderStorePacket done [18:13:38]KKMCreateOFDPacket done [18:13:38]NVStorageSaveData kkm_last_timestamp [18:13:38]File name is /storage/kkm_last_timestamp [18:13:38]Write 4 bytes [18:13:38]NVStorageSaveData done [18:13:38]ExternCall_PrintAddStr [18:13:38]wPrintStart [18:13:38]Write to MH i2c: 01 00 00 31 05 36 [18:13:38]Write i2c OK [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 07 00 [18:13:38]MH_I2C_Read... [18:13:38]Read from MH i2c: 01 07 00 31 05 00 00 00 00 00 FF 0F 4B [18:13:38]RasterBufferAndPrint [18:13:38]line Счет N : (1)294553 [18:13:38]line ИНН: 02508201610067 [18:13:38]line Контрольно-Кассовый Чек [18:13:38]line ПРОДАЖА [18:13:38]line ТРК (МРК, ГНК) : 52 [18:13:38]line Товар: 2710124130 [18:13:38]line Аи-92-К-5 [18:13:38]line 14.750 * 67.80 [18:13:38]line = 1000.05 [18:13:38]line НДС 12% НСП 1% [18:13:38]line > о реализуемом товаре [18:13:38]line ОКРУГЛЕНИЕ: -0.05 [18:13:38]line ИТОГО: 1000.00 [18:13:38]line Внесено: 1000.00 [18:13:38]line СДАЧА: 0.00 [18:13:38]line НСП 1% : 8.85 [18:13:39]line НДС 12% : 106.20 [18:13:39]line Наличными: 1000.00 [18:13:39]line Безнал.: 0.00 [18:13:39]line Место: АЗС № 130 "Партнер Нефть" [18:13:39]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:13:39]line СНО: Общий режим [18:13:39]line Чек 153 23.08.2024 18:13 [18:13:39]line Смена: 470 ФФД: 1.0 [18:13:39]line ЗНМ: 0300000071 [18:13:39]line РНМ: 0000000000092561 [18:13:39]line Версия ККМ: 001 [18:13:39]line ФМ: 0000000000871778 [18:13:39]line ФД: 178693 [18:13:39]line ФПД: 85867072706214 [18:13:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T181338&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178693&fm=85867072706214&tin=02508201610067®Number=0000000000092561&sum=100000 [18:13:39]written 0, free lines is 4095 [18:13:39]OFD Sender: Processing packet 178693 [packets to send 498, broken 497] [18:13:39]ProducePacketName [18:13:39]name=ofd_packets/00178693 [18:13:39]OFD Sender: To server: pG, [18:13:39]CommunicateWithHost lk.salyk.kg:30040 [18:13:39]ConnectInit lk.salyk.kg [18:13:39]Write to MH i2c: 01 00 00 5C 05 61 [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: 01 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: 01 07 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: 01 07 00 5C 05 00 00 00 00 00 D8 0C 4C [18:13:39]RasterBufferAndPrint [18:13:39]line [18:13:39]line [18:13:39]line [18:13:39]line [18:13:39]line [18:13:39]written 0, free lines is 3295 [18:13:39]MH_Cut [18:13:39]Write to MH i2c: D1 01 00 63 05 01 3A [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: D1 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: D1 01 00 [18:13:39]MH_I2C_Read... [18:13:39]Read from MH i2c: D1 01 00 63 05 00 39 [18:13:39]Write to MH i2c: 01 00 00 64 05 69 [18:13:39]Write i2c OK [18:13:39]MH_I2C_Read... [18:13:40]*** Cut start [18:13:40]*** Partial cut [18:13:40]*** CUTSNS_PIN = 1 [18:13:40]*** CUTSNS_PIN = 0 [18:13:40]*** Brake cut motor [18:13:40]Read from MH i2c: 01 [18:13:40]MH_I2C_Read... [18:13:40]*** Stop cut motor [18:13:40]*** Cut end [18:13:40]Read from MH i2c: 01 07 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: 01 07 00 64 05 00 00 00 00 00 FF 0F 7E [18:13:40]process_action close_receipt done [18:13:40]requested_data is exist [18:13:40]produce_requested_data [18:13:40]requested_item fm.sn is exist - process it [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 11 00 00 [18:13:40]Write to MH i2c: E2 08 00 65 05 80 11 00 00 00 00 00 00 E4 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 17 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 17 00 65 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3D [18:13:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:13:40]wFMCommunicate OK [18:13:40]requested_item fd.num is exist - process it [18:13:40]SAM_PROTO_GetFieldsCounters [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 13 00 00 [18:13:40]Write to MH i2c: E2 08 00 66 05 80 13 00 00 00 00 00 00 E7 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 62 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 62 00 66 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 05 BA 02 00 0E 04 04 00 D6 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 6F [18: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 05 BA 02 00 0E 04 04 00 D6 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 [18:13:40]wFMCommunicate OK [18:13:40]SAM_PROTO_GetFieldsCounters done [18:13:40]requested_item shift.num is exist - process it [18:13:40]requested_item shift.opened is exist - process it [18:13:40]req_shift_opened [18:13:40]FM_GetShiftState [18:13:40]SAM_PROTO_GetShiftState [18:13:40]wFMCommunicate request_size=4 [18:13:40]MH_SAM_APDU [18:13:40]CAPDU: 80 13 01 00 [18:13:40]Write to MH i2c: E2 08 00 67 05 80 13 01 00 00 00 00 00 E9 [18:13:40]Write i2c OK [18:13:40]MH_I2C_Read... [18:13:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:40]Read from MH i2c: E2 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 0E 00 [18:13:40]MH_I2C_Read... [18:13:40]Read from MH i2c: E2 0E 00 67 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C0 [18:13:40]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:13:40]wFMCommunicate OK [18:13:40]SAM_PROTO_GetShiftState done [18:13:40]FM_GetShiftState done [18:13:40]req_shift_opened done [18:13:40]requested_item shift.open_date is exist - process it [18:13:40]req_shift_open_date [18:13:40]req_shift_open_date done [18:13:40]produce_requested_data done [18:13:40]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178693,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:13:40]process_action_free close_receipt [18:13:40]json_value_free [18:13:40]json_value_free done [18:13:40]process_json_proto returns [18:13:40]Send response to host [18:13:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178693,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:13:40]free response buf [18:13:40]execute_script done [18:13:40]execute_script returns [18:13:40]free content buf [18:13:40]Sock 10.Close socket [18:13:40]Sock 10.Thread stoped [18:13:41]recv_with_timeout no data received [18:13:48]Connected sock=11 [18:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 72 47 07 01 A0 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 52 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 05 BA 02 00 35 04 06 00 4E 18 7C 5D D6 A6 11 79 32 C9 C4 FD D3 D8 [18:13:54]recv_with_timeout no data received [18:13:54]CommunicateWithHost answer receiving error [18:13:54]CommunicateWithHost err = -3 [18:13:54]OFD Sender: Server communicate error [18:13:56]recv_with_timeout no data received [18:13:57]accept exits with 9 [18:13:57]New connection [18:13:57]New thread 3066805604 created [18:13:57]Thread 3066662244 joined [18:13:57]Waiting for new connection... [18:13:57] Sock 9.Parse request [18:13:57]Sock 9.Check first char [18:13:57]Sock 9.First char is OK [18:13:57]request: POST /json_proto HTTP/1.0 [18:13:57]Method: POST [18:13:57]URL: /json_proto [18:13:57]Method is POST - this is cgi request [18:13:57]url: /json_proto [18:13:57]query_string will be loaded in cgi processing [18:13:57]execute_cgi json_proto POST (null) [18:13:57]execute_cgi path=json_proto method=POST [18:13:57]POST find Content-Length [18:13:57]Host: 172.17.44.131:8080 [18:13:57]Content-Length: 789 [18:13:57]Content-Type: application/json [18:13:57] [18:13:57]POST finish read [18:13:57]Found Content-Length = 789 [18:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:57]execute_script... [18:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:57]POST & json_proto [18:13:57]process_json_proto [18:13:57]json parsed OK: [18:13:57]protocol is kg_v1.0 [18:13:57]action value=close_receipt [18:13:57]process_action close_receipt [18:13:57]cmd_close_receipt [18:13:57]MH_GetDate [18:13:57]Write to MH i2c: F0 00 00 68 05 5C [18:13:57]Write i2c OK [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: F0 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: F0 09 00 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: F0 09 00 68 05 00 66 D1 C8 66 4F 53 BE 66 90 [18:13:57]GetLastDocTimeStamp 1724436818 [18:13:57]current date 1724436838 [18:13:57]FM_GetShiftState [18:13:57]SAM_PROTO_GetShiftState [18:13:57]wFMCommunicate request_size=4 [18:13:57]MH_SAM_APDU [18:13:57]CAPDU: 80 13 01 00 [18:13:57]Write to MH i2c: E2 08 00 69 05 80 13 01 00 00 00 00 00 EB [18:13:57]Write i2c OK [18:13:57]MH_I2C_Read... [18:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:57]Read from MH i2c: E2 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: E2 0E 00 [18:13:57]MH_I2C_Read... [18:13:57]Read from MH i2c: E2 0E 00 69 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C2 [18:13:57]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:13:57]wFMCommunicate OK [18:13:57]SAM_PROTO_GetShiftState done [18:13:57]FM_GetShiftState done [18:13:57]opened in 1724371660 [18:13:57]opened+sec_in_day 1724458060 [18:13:57]quantity*price = 0 [18:13:57]sum+1 = 1 [18:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 154 23.08.2024 18:13 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливная Карта 53324 ФМ: 0000000000871778 ФД: 178694 ФПД: 91037230540486 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T181358&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178694&fm=91037230540486&tin=02508201610067®Number=0000000000092561&sum=0 [18:13:58]StoreToDocumentArchive [18:13:58]shift 470 fd 178694 [18:13:58]save to /storage/0470/doc_00178694 [18:13:58]save last doc name /storage/0470/doc_00178694 to /storage/kkm_last_doc_name [18:13:58]save OK [18:13:58]Clear old archive folders... [18:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:13:58]tlvbuf is 00948E00 [18:13:58]SAM_PROTO_ClearQueue [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 09 00 00 [18:13:58]Write to MH i2c: E2 08 00 76 05 80 09 00 00 00 00 00 00 ED [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 76 05 00 90 00 EF [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]SAM_PROTO_ClearQueue done [18:13:58]KKMCreateOFDPacket [18:13:58]OFDProtocolAddRootSTLVToBuf [18:13:58]FM_MakeSignedData [18:13:58]FM_MakeSignedData [18:13:58]SAM_PROTO_SignData [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 0D 01 02 [18:13:58]Write to MH i2c: E2 08 00 77 05 80 0D 01 02 00 00 00 00 F5 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]wFMCommunicate request_size=255 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 66 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 06 BA 02 00 35 04 06 00 52 CC 41 C9 [18:13:58]Write to MH i2c: E2 02 01 78 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 66 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 06 BA 02 00 35 04 06 00 52 CC 41 C9 00 00 5B [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:59]OFD Sender: Processing packet 178693 [packets to send 498, broken 497] [18:13:59]ProducePacketName [18:13:59]name=ofd_packets/00178693 [18:13:59]OFD Sender: To server: pG, [18:13:59]CommunicateWithHost lk.salyk.kg:30040 [18:13:59]ConnectInit lk.salyk.kg [18:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]wFMCommunicate request_size=7 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 02 02 02 A6 C6 [18:13:59]Write to MH i2c: E2 0A 00 79 05 80 0D 02 02 02 00 A6 C6 00 00 68 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 03 02 [18:13:59]Write to MH i2c: E2 08 00 7A 05 80 0D 03 02 00 00 00 00 FA [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0B 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0B 00 7A 05 00 07 C6 D4 58 76 63 EE 80 90 00 3B [18:13:59]RAPDU: 07 C6 D4 58 76 63 EE 80 90 00 [18:13:59]wFMCommunicate OK [18:13:59]SAM_PROTO_SignData done [18:13:59]FM_MakeSignedData done [18:13:59]CreateOFDProtocolMessage [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 11 00 00 [18:13:59]Write to MH i2c: E2 08 00 7B 05 80 11 00 00 00 00 00 00 FA [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 17 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 17 00 7B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 53 [18:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:13:59]wFMCommunicate OK [18:13:59]CreateOFDProtocolMessage done [18:13:59]OFDSenderStorePacket 178694 [18:13:59]StoreOFDPacket docnum=178694 [18:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 16 6B 04 01 B2 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 66 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 06 BA 02 00 35 04 06 00 52 CC 41 C9 A6 C6 07 C6 D4 58 76 63 EE 80 [18:13:59]CheckFolder [18:13:59]dirname=/storage/ofd_packets [18:13:59]CheckFolder done [18:13:59]ProducePacketName [18:13:59]name=ofd_packets/00178694 [18:13:59]NVStorageSaveData ofd_packets/00178694 [18:13:59]File name is /storage/ofd_packets/00178694 [18:13:59]Write 298 bytes [18:13:59]NVStorageSaveData done [18:13:59]OFDSenderStorePacket done [18:13:59]KKMCreateOFDPacket done [18:13:59]NVStorageSaveData kkm_last_timestamp [18:13:59]File name is /storage/kkm_last_timestamp [18:13:59]Write 4 bytes [18:13:59]NVStorageSaveData done [18:13:59]ExternCall_PrintAddStr [18:13:59]wPrintStart [18:13:59]Write to MH i2c: 01 00 00 7C 05 81 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FF 0F 96 [18:13:59]RasterBufferAndPrint [18:13:59]line Счет N : (1)294552 [18:13:59]line ИНН: 02508201610067 [18:13:59]line Контрольно-Кассовый Чек [18:13:59]line ПРОДАЖА [18:13:59]line ТРК (МРК, ГНК) : 21 [18:13:59]line Товар: 2710194800 [18:13:59]line ДТ-К-5 [18:13:59]line 35.000 * 0.00 [18:13:59]line = 0.00 [18:13:59]line НДС 12% НСП 1% [18:13:59]line > о реализуемом товаре [18:13:59]line ИТОГО: 0.00 [18:13:59]line НСП 1% : 0.00 [18:13:59]line НДС 12% : 0.00 [18:13:59]line Наличными: 0.00 [18:13:59]line Безнал.: 0.00 [18:13:59]line Место: АЗС № 130 "Партнер Нефть" [18:13:59]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:13:59]line СНО: Общий режим [18:13:59]line Чек 154 23.08.2024 18:13 [18:13:59]line Смена: 470 ФФД: 1.0 [18:13:59]line ЗНМ: 0300000071 [18:13:59]line РНМ: 0000000000092561 [18:13:59]line Версия ККМ: 001 [18:13:59]line Талоны: Топливная Карта [18:13:59]line 53324 [18:13:59]line ФМ: 0000000000871778 [18:13:59]line ФД: 178694 [18:13:59]line ФПД: 91037230540486 [18:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T181358&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178694&fm=91037230540486&tin=02508201610067®Number=0000000000092561&sum=0 [18:13:59]written 0, free lines is 4095 [18:13:59]Write to MH i2c: 01 00 00 A6 05 AB [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 EE 0C AC [18:13:59]RasterBufferAndPrint [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]written 0, free lines is 3321 [18:13:59]MH_Cut [18:13:59]Write to MH i2c: D1 01 00 AD 05 01 84 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 01 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 01 00 AD 05 00 83 [18:13:59]Write to MH i2c: 01 00 00 AE 05 B3 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:14:00]*** Cut start [18:14:00]*** Partial cut [18:14:00]*** CUTSNS_PIN = 1 [18:14:00]*** CUTSNS_PIN = 0 [18:14:00]*** Brake cut motor [18:14:01]Read from MH i2c: 01 [18:14:01]MH_I2C_Read... [18:14:01]*** Stop cut motor [18:14:01]*** Cut end [18:14:01]Read from MH i2c: 01 07 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: 01 07 00 AE 05 00 00 00 00 00 FF 0F C8 [18:14:01]process_action close_receipt done [18:14:01]requested_data is exist [18:14:01]produce_requested_data [18:14:01]requested_item fm.sn is exist - process it [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 11 00 00 [18:14:01]Write to MH i2c: E2 08 00 AF 05 80 11 00 00 00 00 00 00 2E [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 17 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 17 00 AF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 87 [18:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:14:01]wFMCommunicate OK [18:14:01]requested_item fd.num is exist - process it [18:14:01]SAM_PROTO_GetFieldsCounters [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 13 00 00 [18:14:01]Write to MH i2c: E2 08 00 B0 05 80 13 00 00 00 00 00 00 31 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 62 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 62 00 B0 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 06 BA 02 00 0E 04 04 00 D6 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 BD [18:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 06 BA 02 00 0E 04 04 00 D6 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 [18:14:01]wFMCommunicate OK [18:14:01]SAM_PROTO_GetFieldsCounters done [18:14:01]requested_item shift.num is exist - process it [18:14:01]requested_item shift.opened is exist - process it [18:14:01]req_shift_opened [18:14:01]FM_GetShiftState [18:14:01]SAM_PROTO_GetShiftState [18:14:01]wFMCommunicate request_size=4 [18:14:01]MH_SAM_APDU [18:14:01]CAPDU: 80 13 01 00 [18:14:01]Write to MH i2c: E2 08 00 B1 05 80 13 01 00 00 00 00 00 33 [18:14:01]Write i2c OK [18:14:01]MH_I2C_Read... [18:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:01]Read from MH i2c: E2 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 0E 00 [18:14:01]MH_I2C_Read... [18:14:01]Read from MH i2c: E2 0E 00 B1 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 0A [18:14:01]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:14:01]wFMCommunicate OK [18:14:01]SAM_PROTO_GetShiftState done [18:14:01]FM_GetShiftState done [18:14:01]req_shift_opened done [18:14:01]requested_item shift.open_date is exist - process it [18:14:01]req_shift_open_date [18:14:01]req_shift_open_date done [18:14:01]produce_requested_data done [18:14:01]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178694,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:14:01]process_action_free close_receipt [18:14:01]json_value_free [18:14:01]json_value_free done [18:14:01]process_json_proto returns [18:14:01]Send response to host [18:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178694,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:14:01]free response buf [18:14:01]execute_script done [18:14:01]execute_script returns [18:14:01]free content buf [18:14:01]Sock 9.Close socket [18:14:01]Sock 9.Thread stoped [18:14:04]ConnectInit Can't take IP for lk.salyk.kg [18:14:04]CommunicateWithHost connect error [18:14:04]CommunicateWithHost err = -1 [18:14:04]OFD Sender: Server communicate error [18:14:04]OFD Sender: Processing packet 178693 [packets to send 499, broken 497] [18:14:04]ProducePacketName [18:14:04]name=ofd_packets/00178693 [18:14:04]OFD Sender: To server: pG, [18:14:04]CommunicateWithHost lk.salyk.kg:30040 [18:14:04]ConnectInit lk.salyk.kg [18:14:09]ConnectInit Can't take IP for lk.salyk.kg [18:14:09]CommunicateWithHost connect error [18:14:09]CommunicateWithHost err = -1 [18:14:09]OFD Sender: Server communicate error [18:14:11]int [18:14:11]Write to MH i2c: 01 00 00 B2 05 B7 [18:14:11]*** FLAG_PRN_KEY set [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 B2 05 00 08 00 00 00 FF 0F D4 [18:14:11]state=0 [18:14:11]Key pressed [18:14:11]Feed [18:14:11]Write to MH i2c: D8 00 00 B3 05 8F [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: D8 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: D8 01 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: D8 01 00 B3 05 00 90 [18:14:11]int [18:14:11]Write to MH i2c: 01 00 00 B4 05 B9 [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 B4 05 00 48 00 00 00 3C 00 44 [18:14:11]state=2 [18:14:11]Key pressed [18:14:11]int [18:14:11]Write to MH i2c: 01 00 00 B5 05 BA [18:14:11]*** FLAG_PRN_KEY reset [18:14:11]Write i2c OK [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 [18:14:11]MH_I2C_Read... [18:14:11]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FC 0F CC [18:14:11]state=2 [18:14:11]Stop feed [18:14:14]OFD Sender: Processing packet 178693 [packets to send 499, broken 497] [18:14:14]ProducePacketName [18:14:14]name=ofd_packets/00178693 [18:14:14]OFD Sender: To server: pG, [18:14:14]CommunicateWithHost lk.salyk.kg:30040 [18:14:14]ConnectInit lk.salyk.kg [18:14:16]recv_with_timeout no data received [18:14:19]ConnectInit Can't take IP for lk.salyk.kg [18:14:19]CommunicateWithHost connect error [18:14:19]CommunicateWithHost err = -1 [18:14:19]OFD Sender: Server communicate error [18:14:24]OFD Sender: Processing packet 178693 [packets to send 499, broken 497] [18:14:24]ProducePacketName [18:14:24]name=ofd_packets/00178693 [18:14:24]OFD Sender: To server: pG, [18:14:24]CommunicateWithHost lk.salyk.kg:30040 [18:14:24]ConnectInit lk.salyk.kg [18:14:24]accept exits with 8 [18:14:24]New connection [18:14:24]New thread 3066662244 created [18:14:24]Thread 3066805604 joined [18:14:24]Waiting for new connection... [18:14:24] Sock 8.Parse request [18:14:24]Sock 8.Check first char [18:14:24]Sock 8.First char is OK [18:14:24]request: POST /json_proto HTTP/1.0 [18:14:24]Method: POST [18:14:24]URL: /json_proto [18:14:24]Method is POST - this is cgi request [18:14:24]url: /json_proto [18:14:24]query_string will be loaded in cgi processing [18:14:24]execute_cgi json_proto POST (null) [18:14:24]execute_cgi path=json_proto method=POST [18:14:24]POST find Content-Length [18:14:24]Host: 172.17.44.131:8080 [18:14:24]Content-Length: 682 [18:14:24]Content-Type: application/json [18:14:24] [18:14:24]POST finish read [18:14:24]Found Content-Length = 682 [18:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294554", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [18:14:24]execute_script... [18:14: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)294554", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [18:14:24]POST & json_proto [18:14:24]process_json_proto [18:14:24]json parsed OK: [18:14:24]protocol is kg_v1.0 [18:14:24]action value=close_receipt [18:14:24]process_action close_receipt [18:14:24]cmd_close_receipt [18:14:24]MH_GetDate [18:14:24]Write to MH i2c: F0 00 00 B6 05 AA [18:14:24]Write i2c OK [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: F0 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: F0 09 00 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: F0 09 00 B6 05 00 81 D1 C8 66 4F 53 BE 66 F9 [18:14:24]GetLastDocTimeStamp 1724436838 [18:14:24]current date 1724436865 [18:14:24]FM_GetShiftState [18:14:24]SAM_PROTO_GetShiftState [18:14:24]wFMCommunicate request_size=4 [18:14:24]MH_SAM_APDU [18:14:24]CAPDU: 80 13 01 00 [18:14:24]Write to MH i2c: E2 08 00 B7 05 80 13 01 00 00 00 00 00 39 [18:14:24]Write i2c OK [18:14:24]MH_I2C_Read... [18:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:24]Read from MH i2c: E2 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: E2 0E 00 [18:14:24]MH_I2C_Read... [18:14:24]Read from MH i2c: E2 0E 00 B7 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 10 [18:14:24]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:14:24]wFMCommunicate OK [18:14:24]SAM_PROTO_GetShiftState done [18:14:24]FM_GetShiftState done [18:14:24]opened in 1724371660 [18:14:24]opened+sec_in_day 1724458060 [18:14:24]quantity*price = 100005 [18:14:24]sum+1 = 100006 [18:14:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 155 23.08.2024 18:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178695 ФПД: 4304024782115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T181425&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178695&fm=4304024782115&tin=02508201610067®Number=0000000000092561&sum=100000 [18:14:25]StoreToDocumentArchive [18:14:25]shift 470 fd 178695 [18:14:25]save to /storage/0470/doc_00178695 [18:14:25]save last doc name /storage/0470/doc_00178695 to /storage/kkm_last_doc_name [18:14:25]save OK [18:14:25]Clear old archive folders... [18:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:25]tlvbuf is 00902A20 [18:14:25]SAM_PROTO_ClearQueue [18:14:25]wFMCommunicate request_size=4 [18:14:25]MH_SAM_APDU [18:14:25]CAPDU: 80 09 00 00 [18:14:25]Write to MH i2c: E2 08 00 C4 05 80 09 00 00 00 00 00 00 3B [18:14:25]Write i2c OK [18:14:25]MH_I2C_Read... [18:14:25]Read from MH i2c: E2 [18:14:25]MH_I2C_Read... [18:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:25]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]SAM_PROTO_ClearQueue done [18:14:26]KKMCreateOFDPacket [18:14:26]OFDProtocolAddRootSTLVToBuf [18:14:26]FM_MakeSignedData [18:14:26]FM_MakeSignedData [18:14:26]SAM_PROTO_SignData [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 01 02 [18:14:26]Write to MH i2c: E2 08 00 C5 05 80 0D 01 02 00 00 00 00 43 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=255 [18:14:26]MH_SAM_APDU [18:14: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 81 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 07 BA 02 00 35 04 06 00 03 [18:14:26]Write to MH i2c: E2 02 01 C6 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 81 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 07 BA 02 00 35 04 06 00 03 00 00 0D [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 C6 05 00 90 00 3F [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=10 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 02 02 05 EA 1B DE 45 23 [18:14:26]Write to MH i2c: E2 0D 00 C7 05 80 0D 02 02 05 00 EA 1B DE 45 23 00 00 9B [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:26]Read from MH i2c: E2 03 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [18:14:26]RAPDU: 90 00 [18:14:26]wFMCommunicate OK [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 0D 03 02 [18:14:26]Write to MH i2c: E2 08 00 C8 05 80 0D 03 02 00 00 00 00 48 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 0B 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 0B 00 C8 05 00 B1 B2 14 16 6C D6 18 75 90 00 A5 [18:14:26]RAPDU: B1 B2 14 16 6C D6 18 75 90 00 [18:14:26]wFMCommunicate OK [18:14:26]SAM_PROTO_SignData done [18:14:26]FM_MakeSignedData done [18:14:26]CreateOFDProtocolMessage [18:14:26]wFMCommunicate request_size=4 [18:14:26]MH_SAM_APDU [18:14:26]CAPDU: 80 11 00 00 [18:14:26]Write to MH i2c: E2 08 00 C9 05 80 11 00 00 00 00 00 00 48 [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 [18:14:26]MH_I2C_Read... [18:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:26]Read from MH i2c: E2 17 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: E2 17 00 C9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A1 [18:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:14:26]wFMCommunicate OK [18:14:26]CreateOFDProtocolMessage done [18:14:26]OFDSenderStorePacket 178695 [18:14:26]StoreOFDPacket docnum=178695 [18:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 DF BA 07 01 0C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 81 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 07 BA 02 00 35 04 06 00 03 EA 1B DE 45 23 B1 B2 14 16 6C D6 18 75 [18:14:26]CheckFolder [18:14:26]dirname=/storage/ofd_packets [18:14:26]CheckFolder done [18:14:26]ProducePacketName [18:14:26]name=ofd_packets/00178695 [18:14:26]NVStorageSaveData ofd_packets/00178695 [18:14:26]File name is /storage/ofd_packets/00178695 [18:14:26]Write 301 bytes [18:14:26]NVStorageSaveData done [18:14:26]OFDSenderStorePacket done [18:14:26]KKMCreateOFDPacket done [18:14:26]NVStorageSaveData kkm_last_timestamp [18:14:26]File name is /storage/kkm_last_timestamp [18:14:26]Write 4 bytes [18:14:26]NVStorageSaveData done [18:14:26]ExternCall_PrintAddStr [18:14:26]wPrintStart [18:14:26]Write to MH i2c: 01 00 00 CA 05 CF [18:14:26]Write i2c OK [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 [18:14:26]MH_I2C_Read... [18:14:26]Read from MH i2c: 01 07 00 CA 05 00 00 00 00 00 FF 0F E4 [18:14:26]RasterBufferAndPrint [18:14:26]line Счет N : (1)294554 [18:14:26]line ИНН: 02508201610067 [18:14:26]line Контрольно-Кассовый Чек [18:14:26]line ПРОДАЖА [18:14:26]line ТРК (МРК, ГНК) : 32 [18:14:26]line Товар: 2710124130 [18:14:26]line Аи-92-К-5 [18:14:26]line 14.750 * 67.80 [18:14:26]line = 1000.05 [18:14:26]line НДС 12% НСП 1% [18:14:26]line > о реализуемом товаре [18:14:26]line ОКРУГЛЕНИЕ: -0.05 [18:14:26]line ИТОГО: 1000.00 [18:14:26]line Внесено: 1000.00 [18:14:26]line СДАЧА: 0.00 [18:14:26]line НСП 1% : 8.85 [18:14:26]line НДС 12% : 106.20 [18:14:26]line Наличными: 1000.00 [18:14:26]line Безнал.: 0.00 [18:14:26]line Место: АЗС № 130 "Партнер Нефть" [18:14:26]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:14:26]line СНО: Общий режим [18:14:26]line Чек 155 23.08.2024 18:14 [18:14:26]line Смена: 470 ФФД: 1.0 [18:14:26]line ЗНМ: 0300000071 [18:14:26]line РНМ: 0000000000092561 [18:14:26]line Версия ККМ: 001 [18:14:26]line ФМ: 0000000000871778 [18:14:26]line ФД: 178695 [18:14:26]line ФПД: 4304024782115 [18:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T181425&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178695&fm=4304024782115&tin=02508201610067®Number=0000000000092561&sum=100000 [18:14:26]written 0, free lines is 4095 [18:14:27]Write to MH i2c: 01 00 00 F5 05 FA [18:14:27]Write i2c OK [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: 01 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: 01 07 00 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: 01 07 00 F5 05 00 00 00 00 00 E7 0C F4 [18:14:27]RasterBufferAndPrint [18:14:27]line [18:14:27]line [18:14:27]line [18:14:27]line [18:14:27]line [18:14:27]written 0, free lines is 3318 [18:14:27]MH_Cut [18:14:27]Write to MH i2c: D1 01 00 FC 05 01 D3 [18:14:27]Write i2c OK [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: D1 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: D1 01 00 [18:14:27]MH_I2C_Read... [18:14:27]Read from MH i2c: D1 01 00 FC 05 00 D2 [18:14:27]Write to MH i2c: 01 00 00 FD 05 02 [18:14:27]Write i2c OK [18:14:27]MH_I2C_Read... [18:14:27]*** Cut start [18:14:27]*** Partial cut [18:14:27]*** CUTSNS_PIN = 1 [18:14:27]*** CUTSNS_PIN = 0 [18:14:28]*** Brake cut motor [18:14:28]Read from MH i2c: 01 [18:14:28]MH_I2C_Read... [18:14:28]*** Stop cut motor [18:14:28]*** Cut end [18:14:28]Read from MH i2c: 01 07 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [18:14:28]process_action close_receipt done [18:14:28]requested_data is exist [18:14:28]produce_requested_data [18:14:28]requested_item fm.sn is exist - process it [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 11 00 00 [18:14:28]Write to MH i2c: E2 08 00 FE 05 80 11 00 00 00 00 00 00 7D [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 17 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 17 00 FE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D6 [18:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:14:28]wFMCommunicate OK [18:14:28]requested_item fd.num is exist - process it [18:14:28]SAM_PROTO_GetFieldsCounters [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 13 00 00 [18:14:28]Write to MH i2c: E2 08 00 FF 05 80 13 00 00 00 00 00 00 80 [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 62 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 62 00 FF 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 07 BA 02 00 0E 04 04 00 D6 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 10 [18:14: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 07 BA 02 00 0E 04 04 00 D6 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 [18:14:28]wFMCommunicate OK [18:14:28]SAM_PROTO_GetFieldsCounters done [18:14:28]requested_item shift.num is exist - process it [18:14:28]requested_item shift.opened is exist - process it [18:14:28]req_shift_opened [18:14:28]FM_GetShiftState [18:14:28]SAM_PROTO_GetShiftState [18:14:28]wFMCommunicate request_size=4 [18:14:28]MH_SAM_APDU [18:14:28]CAPDU: 80 13 01 00 [18:14:28]Write to MH i2c: E2 08 00 00 06 80 13 01 00 00 00 00 00 83 [18:14:28]Write i2c OK [18:14:28]MH_I2C_Read... [18:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:28]Read from MH i2c: E2 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 0E 00 [18:14:28]MH_I2C_Read... [18:14:28]Read from MH i2c: E2 0E 00 00 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5A [18:14:28]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:14:28]wFMCommunicate OK [18:14:28]SAM_PROTO_GetShiftState done [18:14:28]FM_GetShiftState done [18:14:28]req_shift_opened done [18:14:28]requested_item shift.open_date is exist - process it [18:14:28]req_shift_open_date [18:14:28]req_shift_open_date done [18:14:28]produce_requested_data done [18:14:28]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178695,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:14:28]process_action_free close_receipt [18:14:28]json_value_free [18:14:28]json_value_free done [18:14:28]process_json_proto returns [18:14:28]Send response to host [18:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178695,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:14:28]free response buf [18:14:28]execute_script done [18:14:28]execute_script returns [18:14:28]free content buf [18:14:28]Sock 8.Close socket [18:14:28]Sock 8.Thread stoped [18:14:33]recv_with_timeout no data received [18:14:41]Connected sock=10 [18: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 31 37 37 38 0F 01 00 00 72 47 07 01 A0 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 52 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 05 BA 02 00 35 04 06 00 4E 18 7C 5D D6 A6 11 79 32 C9 C4 FD D3 D8 [18:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9A AF 47 00 BD 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 05 BA 02 00 F4 03 04 00 3A 7D C8 66 B6 04 01 00 00 51 6C 5A 85 BC 5B 2E 49 [18:14:44]CommunicateWithHost err = 0 [18:14:44]CheckOFDResponse [18:14:44]1017 (14) - 77093643461234 [18:14:44]1041 (16) - 0000000000871778 [18:14:44]1040 (4) - 178693 [18:14:44]1012 (4) - 23.08.2024 12:14 [18:14:44]1206 (1) - 0 [18:14:44]OFD Sender: Remove packet 178693 [18:14:44]ProducePacketName [18:14:44]name=ofd_packets/00178693 [18:14:44]NVStorageDeleteData [18:14:45]OFD Sender: Processing packet 178694 [packets to send 499, broken 497] [18:14:45]ProducePacketName [18:14:45]name=ofd_packets/00178694 [18:14:45]OFD Sender: To server: pG, [18:14:45]CommunicateWithHost lk.salyk.kg:30040 [18:14:45]ConnectInit lk.salyk.kg [18:14:48]recv_with_timeout no data received [18:14:50]ConnectInit Can't take IP for lk.salyk.kg [18:14:50]CommunicateWithHost connect error [18:14:50]CommunicateWithHost err = -1 [18:14:50]OFD Sender: Server communicate error [18:14:50]OFD Sender: Processing packet 178694 [packets to send 499, broken 497] [18:14:50]ProducePacketName [18:14:50]name=ofd_packets/00178694 [18:14:50]OFD Sender: To server: pG, [18:14:50]CommunicateWithHost lk.salyk.kg:30040 [18:14:50]ConnectInit lk.salyk.kg [18:14:55]ConnectInit Can't take IP for lk.salyk.kg [18:14:55]CommunicateWithHost connect error [18:14:55]CommunicateWithHost err = -1 [18:14:55]OFD Sender: Server communicate error [18:15:00]OFD Sender: Processing packet 178694 [packets to send 499, broken 497] [18:15:00]ProducePacketName [18:15:00]name=ofd_packets/00178694 [18:15:00]OFD Sender: To server: pG, [18:15:00]CommunicateWithHost lk.salyk.kg:30040 [18:15:00]ConnectInit lk.salyk.kg [18:15:05]ConnectInit Can't take IP for lk.salyk.kg [18:15:05]CommunicateWithHost connect error [18:15:05]CommunicateWithHost err = -1 [18:15:05]OFD Sender: Server communicate error [18:15:10]OFD Sender: Processing packet 178694 [packets to send 499, broken 497] [18:15:10]ProducePacketName [18:15:10]name=ofd_packets/00178694 [18:15:10]OFD Sender: To server: pG, [18:15:10]CommunicateWithHost lk.salyk.kg:30040 [18:15:10]ConnectInit lk.salyk.kg [18:15:15]ConnectInit Can't take IP for lk.salyk.kg [18:15:15]CommunicateWithHost connect error [18:15:15]CommunicateWithHost err = -1 [18:15:15]OFD Sender: Server communicate error [18:15:20]OFD Sender: Processing packet 178694 [packets to send 499, broken 497] [18:15:20]ProducePacketName [18:15:20]name=ofd_packets/00178694 [18:15:20]OFD Sender: To server: pG, [18:15:20]CommunicateWithHost lk.salyk.kg:30040 [18:15:20]ConnectInit lk.salyk.kg [18:15:24]recv_with_timeout no data received [18:15:25]ConnectInit Can't take IP for lk.salyk.kg [18:15:25]CommunicateWithHost connect error [18:15:25]CommunicateWithHost err = -1 [18:15:25]OFD Sender: Server communicate error [18:15:30]OFD Sender: Processing packet 178694 [packets to send 499, broken 497] [18:15:30]ProducePacketName [18:15:30]name=ofd_packets/00178694 [18:15:30]OFD Sender: To server: pG, [18:15:30]CommunicateWithHost lk.salyk.kg:30040 [18:15:30]ConnectInit lk.salyk.kg [18:15:33]Connected sock=9 [18:15:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 16 6B 04 01 B2 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 66 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 06 BA 02 00 35 04 06 00 52 CC 41 C9 A6 C6 07 C6 D4 58 76 63 EE 80 [18:15:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 06 47 47 00 3B 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 31 37 37 38 10 04 04 00 06 BA 02 00 F4 03 04 00 6B 7D C8 66 B6 04 01 00 00 78 A0 9F 2C 06 52 F4 45 [18:15:33]CommunicateWithHost err = 0 [18:15:33]CheckOFDResponse [18:15:33]1017 (14) - 77093643461234 [18:15:33]1041 (16) - 0000000000871778 [18:15:33]1040 (4) - 178694 [18:15:33]1012 (4) - 23.08.2024 12:15 [18:15:33]1206 (1) - 0 [18:15:33]OFD Sender: Remove packet 178694 [18:15:33]ProducePacketName [18:15:33]name=ofd_packets/00178694 [18:15:33]NVStorageDeleteData [18:15:34]OFD Sender: Processing packet 178695 [packets to send 498, broken 497] [18:15:34]ProducePacketName [18:15:34]name=ofd_packets/00178695 [18:15:34]OFD Sender: To server: pG, [18:15:34]CommunicateWithHost lk.salyk.kg:30040 [18:15:34]ConnectInit lk.salyk.kg [18:15:35]Connected sock=8 [18:15:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 DF BA 07 01 0C B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 81 D1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 07 BA 02 00 35 04 06 00 03 EA 1B DE 45 23 B1 B2 14 16 6C D6 18 75 [18:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C8 6B 47 00 45 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 31 37 37 38 10 04 04 00 07 BA 02 00 F4 03 04 00 6C 7D C8 66 B6 04 01 00 00 44 44 62 35 7F 92 17 42 [18:15:35]CommunicateWithHost err = 0 [18:15:35]CheckOFDResponse [18:15:35]1017 (14) - 77093643461234 [18:15:35]1041 (16) - 0000000000871778 [18:15:35]1040 (4) - 178695 [18:15:35]1012 (4) - 23.08.2024 12:15 [18:15:35]1206 (1) - 0 [18:15:35]OFD Sender: Remove packet 178695 [18:15:35]ProducePacketName [18:15:35]name=ofd_packets/00178695 [18:15:35]NVStorageDeleteData [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:06]recv_with_timeout no data received [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:39]recv_with_timeout no data received [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:51]OFD Sender: No OFD packet to send [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:17]recv_with_timeout no data received [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:16]recv_with_timeout no data received [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:27]recv_with_timeout no data received [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:08]recv_with_timeout no data received [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:25:26]ConnectInit Can't connect to host [18:25:27]OFD Sender: No OFD packet to send [18:25:32]OFD Sender: No OFD packet to send [18:25:37]OFD Sender: No OFD packet to send [18:25:42]OFD Sender: No OFD packet to send [18:25:47]OFD Sender: No OFD packet to send [18:25:52]recv_with_timeout no data received [18:25:52]OFD Sender: No OFD packet to send [18:25:57]OFD Sender: No OFD packet to send [18:26:02]OFD Sender: No OFD packet to send [18:26:05]recv_with_timeout no data received [18:26:07]OFD Sender: No OFD packet to send [18:26:12]OFD Sender: No OFD packet to send [18:26:17]OFD Sender: No OFD packet to send [18:26:22]OFD Sender: No OFD packet to send [18:26:25]recv_with_timeout no data received [18:26:27]OFD Sender: No OFD packet to send [18:26:32]OFD Sender: No OFD packet to send [18:26:35]recv_with_timeout no data received [18:26:37]OFD Sender: No OFD packet to send [18:26:42]OFD Sender: No OFD packet to send [18:26:47]OFD Sender: No OFD packet to send [18:26:52]OFD Sender: No OFD packet to send [18:26:57]OFD Sender: No OFD packet to send [18:27:02]OFD Sender: No OFD packet to send [18:27:07]OFD Sender: No OFD packet to send [18:27:12]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:35]recv_with_timeout no data received [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:00]recv_with_timeout no data received [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:11]recv_with_timeout no data received [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:25]recv_with_timeout no data received [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:46]recv_with_timeout no data received [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:06]recv_with_timeout no data received [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]recv_with_timeout no data received [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:36]recv_with_timeout no data received [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [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:53]OFD Sender: No OFD packet to send [18:33:58]OFD Sender: No OFD packet to send [18:34:03]OFD Sender: No OFD packet to send [18:34:08]OFD Sender: No OFD packet to send [18:34:13]OFD Sender: No OFD packet to send [18:34:18]OFD Sender: No OFD packet to send [18:34:23]OFD Sender: No OFD packet to send [18:34:28]OFD Sender: No OFD packet to send [18:34:33]OFD Sender: No OFD packet to send [18:34:38]OFD Sender: No OFD packet to send [18:34:43]OFD Sender: No OFD packet to send [18:34:48]OFD Sender: No OFD packet to send [18:34:53]OFD Sender: No OFD packet to send [18:34:56]recv_with_timeout no data received [18:34:58]OFD Sender: No OFD packet to send [18:35:03]OFD Sender: No OFD packet to send [18:35:08]OFD Sender: No OFD packet to send [18:35:13]OFD Sender: No OFD packet to send [18:35:18]OFD Sender: No OFD packet to send [18:35:23]OFD Sender: No OFD packet to send [18:35:28]OFD Sender: No OFD packet to send [18:35:29]recv_with_timeout no data received [18:35:33]OFD Sender: No OFD packet to send [18:35:38]OFD Sender: No OFD packet to send [18:35:43]OFD Sender: No OFD packet to send [18:35:48]OFD Sender: No OFD packet to send [18:35:53]recv_with_timeout no data received [18:35:53]OFD Sender: No OFD packet to send [18:35:58]OFD Sender: No OFD packet to send [18:36:03]OFD Sender: No OFD packet to send [18:36:08]OFD Sender: No OFD packet to send [18:36:13]OFD Sender: No OFD packet to send [18:36:18]OFD Sender: No OFD packet to send [18:36:23]OFD Sender: No OFD packet to send [18:36:28]OFD Sender: No OFD packet to send [18:36:33]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:58]recv_with_timeout no data received [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:53]accept exits with 12 [18:38:53]New connection [18:38:53]New thread 3066805604 created [18:38:53]Thread 3066662244 joined [18:38:53]Waiting for new connection... [18:38:53] Sock 12.Parse request [18:38:53]Sock 12.Check first char [18:38:53]Sock 12.First char is OK [18:38:53]request: POST /json_proto HTTP/1.0 [18:38:53]Method: POST [18:38:53]URL: /json_proto [18:38:53]Method is POST - this is cgi request [18:38:53]url: /json_proto [18:38:53]query_string will be loaded in cgi processing [18:38:53]execute_cgi json_proto POST (null) [18:38:53]execute_cgi path=json_proto method=POST [18:38:53]POST find Content-Length [18:38:53]Host: 172.17.44.131:8080 [18:38:53]Content-Length: 677 [18:38:53]Content-Type: application/json [18:38:53] [18:38:53]POST finish read [18:38:53]Found Content-Length = 677 [18:38:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294580", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:38:53]execute_script... [18:38: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)294580", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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:38:53]POST & json_proto [18:38:53]process_json_proto [18:38:53]json parsed OK: [18:38:53]protocol is kg_v1.0 [18:38:53]action value=close_receipt [18:38:53]process_action close_receipt [18:38:53]cmd_close_receipt [18:38:53]MH_GetDate [18:38:53]Write to MH i2c: F0 00 00 01 06 F6 [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: F0 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: F0 09 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: F0 09 00 01 06 00 3E D7 C8 66 4F 53 BE 66 08 [18:38:53]GetLastDocTimeStamp 1724436865 [18:38:53]current date 1724438334 [18:38:53]FM_GetShiftState [18:38:53]SAM_PROTO_GetShiftState [18:38:53]wFMCommunicate request_size=4 [18:38:53]MH_SAM_APDU [18:38:53]CAPDU: 80 13 01 00 [18:38:53]Write to MH i2c: E2 08 00 02 06 80 13 01 00 00 00 00 00 85 [18:38:53]Write i2c OK [18:38:53]MH_I2C_Read... [18:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:53]Read from MH i2c: E2 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 0E 00 [18:38:53]MH_I2C_Read... [18:38:53]Read from MH i2c: E2 0E 00 02 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 5C [18:38:53]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:38:53]wFMCommunicate OK [18:38:53]SAM_PROTO_GetShiftState done [18:38:53]FM_GetShiftState done [18:38:53]opened in 1724371660 [18:38:53]opened+sec_in_day 1724458060 [18:38:53]quantity*price = 30035 [18:38:53]sum+1 = 30036 [18:38:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 156 23.08.2024 18:38 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178696 ФПД: 90899020806630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T183854&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178696&fm=90899020806630&tin=02508201610067®Number=0000000000092561&sum=30000 [18:38:54]StoreToDocumentArchive [18:38:54]shift 470 fd 178696 [18:38:54]save to /storage/0470/doc_00178696 [18:38:54]save last doc name /storage/0470/doc_00178696 to /storage/kkm_last_doc_name [18:38:54]save OK [18:38:54]Clear old archive folders... [18:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:54]tlvbuf is 00904640 [18:38:54]SAM_PROTO_ClearQueue [18:38:54]wFMCommunicate request_size=4 [18:38:54]MH_SAM_APDU [18:38:54]CAPDU: 80 09 00 00 [18:38:54]Write to MH i2c: E2 08 00 0F 06 80 09 00 00 00 00 00 00 87 [18:38:54]Write i2c OK [18:38:54]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [18:38:55]RAPDU: 90 00 [18:38:55]wFMCommunicate OK [18:38:55]SAM_PROTO_ClearQueue done [18:38:55]KKMCreateOFDPacket [18:38:55]OFDProtocolAddRootSTLVToBuf [18:38:55]FM_MakeSignedData [18:38:55]FM_MakeSignedData [18:38:55]SAM_PROTO_SignData [18:38:55]wFMCommunicate request_size=4 [18:38:55]MH_SAM_APDU [18:38:55]CAPDU: 80 0D 01 02 [18:38:55]Write to MH i2c: E2 08 00 10 06 80 0D 01 02 00 00 00 00 8F [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 10 06 00 90 00 8A [18:38:55]RAPDU: 90 00 [18:38:55]wFMCommunicate OK [18:38:55]wFMCommunicate request_size=255 [18:38:55]MH_SAM_APDU [18:38: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3E D7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 08 BA 02 00 35 04 06 00 52 [18:38:55]Write to MH i2c: E2 02 01 11 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3E D7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 08 BA 02 00 35 04 06 00 52 00 00 FD [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 11 06 00 90 00 8B [18:38:55]RAPDU: 90 00 [18:38:55]wFMCommunicate OK [18:38:55]wFMCommunicate request_size=10 [18:38:55]MH_SAM_APDU [18:38:55]CAPDU: 80 0D 02 02 05 AC 13 D8 79 E6 [18:38:55]Write to MH i2c: E2 0D 00 12 06 80 0D 02 02 05 00 AC 13 D8 79 E6 00 00 92 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [18:38:55]RAPDU: 90 00 [18:38:55]wFMCommunicate OK [18:38:55]wFMCommunicate request_size=4 [18:38:55]MH_SAM_APDU [18:38:55]CAPDU: 80 0D 03 02 [18:38:55]Write to MH i2c: E2 08 00 13 06 80 0D 03 02 00 00 00 00 94 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 0B 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 0B 00 13 06 00 9D 4F 09 06 51 FA 7D EA 90 00 42 [18:38:55]RAPDU: 9D 4F 09 06 51 FA 7D EA 90 00 [18:38:55]wFMCommunicate OK [18:38:55]SAM_PROTO_SignData done [18:38:55]FM_MakeSignedData done [18:38:55]CreateOFDProtocolMessage [18:38:55]wFMCommunicate request_size=4 [18:38:55]MH_SAM_APDU [18:38:55]CAPDU: 80 11 00 00 [18:38:55]Write to MH i2c: E2 08 00 14 06 80 11 00 00 00 00 00 00 94 [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:55]Read from MH i2c: E2 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 17 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: E2 17 00 14 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 ED [18:38:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:38:55]wFMCommunicate OK [18:38:55]CreateOFDProtocolMessage done [18:38:55]OFDSenderStorePacket 178696 [18:38:55]StoreOFDPacket docnum=178696 [18:38:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BA B3 07 01 D7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3E D7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 08 BA 02 00 35 04 06 00 52 AC 13 D8 79 E6 9D 4F 09 06 51 FA 7D EA [18:38:55]CheckFolder [18:38:55]dirname=/storage/ofd_packets [18:38:55]CheckFolder done [18:38:55]ProducePacketName [18:38:55]name=ofd_packets/00178696 [18:38:55]NVStorageSaveData ofd_packets/00178696 [18:38:55]File name is /storage/ofd_packets/00178696 [18:38:55]Write 301 bytes [18:38:55]NVStorageSaveData done [18:38:55]OFDSenderStorePacket done [18:38:55]KKMCreateOFDPacket done [18:38:55]NVStorageSaveData kkm_last_timestamp [18:38:55]File name is /storage/kkm_last_timestamp [18:38:55]Write 4 bytes [18:38:55]NVStorageSaveData done [18:38:55]ExternCall_PrintAddStr [18:38:55]wPrintStart [18:38:55]Write to MH i2c: 01 00 00 15 06 1B [18:38:55]Write i2c OK [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 07 00 [18:38:55]MH_I2C_Read... [18:38:55]Read from MH i2c: 01 07 00 15 06 00 00 00 00 00 FF 0F 30 [18:38:55]RasterBufferAndPrint [18:38:55]line Счет N : (1)294580 [18:38:55]line ИНН: 02508201610067 [18:38:55]line Контрольно-Кассовый Чек [18:38:55]line ПРОДАЖА [18:38:55]line ТРК (МРК, ГНК) : 62 [18:38:55]line Товар: 2710124130 [18:38:55]line Аи-92-К-5 [18:38:55]line 4.430 * 67.80 [18:38:55]line = 300.35 [18:38:55]line НДС 12% НСП 1% [18:38:55]line > о реализуемом товаре [18:38:55]line ОКРУГЛЕНИЕ: -0.35 [18:38:55]line ИТОГО: 300.00 [18:38:55]line Внесено: 300.00 [18:38:55]line СДАЧА: 0.00 [18:38:55]line НСП 1% : 2.66 [18:38:55]line НДС 12% : 31.90 [18:38:55]line Наличными: 300.00 [18:38:55]line Безнал.: 0.00 [18:38:55]line Место: АЗС № 130 "Партнер Нефть" [18:38:55]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:38:55]line СНО: Общий режим [18:38:55]line Чек 156 23.08.2024 18:38 [18:38:55]line Смена: 470 ФФД: 1.0 [18:38:55]line ЗНМ: 0300000071 [18:38:55]line РНМ: 0000000000092561 [18:38:55]line Версия ККМ: 001 [18:38:55]line ФМ: 0000000000871778 [18:38:55]line ФД: 178696 [18:38:55]line ФПД: 90899020806630 [18:38:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T183854&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178696&fm=90899020806630&tin=02508201610067®Number=0000000000092561&sum=30000 [18:38:55]written 0, free lines is 4095 [18:38:55]OFD Sender: Processing packet 178696 [packets to send 498, broken 497] [18:38:55]ProducePacketName [18:38:55]name=ofd_packets/00178696 [18:38:55]OFD Sender: To server: pG, [18:38:55]CommunicateWithHost lk.salyk.kg:30040 [18:38:55]ConnectInit lk.salyk.kg [18:38:56]Write to MH i2c: 01 00 00 40 06 46 [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: 01 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: 01 07 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: 01 07 00 40 06 00 00 00 00 00 DF 0C 38 [18:38:56]RasterBufferAndPrint [18:38:56]line [18:38:56]line [18:38:56]line [18:38:56]line [18:38:56]line [18:38:56]written 0, free lines is 3301 [18:38:56]MH_Cut [18:38:56]Write to MH i2c: D1 01 00 47 06 01 1F [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: D1 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: D1 01 00 [18:38:56]MH_I2C_Read... [18:38:56]Read from MH i2c: D1 01 00 47 06 00 1E [18:38:56]Write to MH i2c: 01 00 00 48 06 4E [18:38:56]Write i2c OK [18:38:56]MH_I2C_Read... [18:38:56]*** Cut start [18:38:56]*** Partial cut [18:38:56]*** CUTSNS_PIN = 1 [18:38:56]*** CUTSNS_PIN = 0 [18:38:56]*** Brake cut motor [18:38:57]Read from MH i2c: 01 [18:38:57]MH_I2C_Read... [18:38:57]*** Stop cut motor [18:38:57]*** Cut end [18:38:57]Read from MH i2c: 01 07 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: 01 07 00 48 06 00 00 00 00 00 FF 0F 63 [18:38:57]process_action close_receipt done [18:38:57]requested_data is exist [18:38:57]produce_requested_data [18:38:57]requested_item fm.sn is exist - process it [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 11 00 00 [18:38:57]Write to MH i2c: E2 08 00 49 06 80 11 00 00 00 00 00 00 C9 [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 17 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 17 00 49 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 22 [18:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:38:57]wFMCommunicate OK [18:38:57]requested_item fd.num is exist - process it [18:38:57]SAM_PROTO_GetFieldsCounters [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 13 00 00 [18:38:57]Write to MH i2c: E2 08 00 4A 06 80 13 00 00 00 00 00 00 CC [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 62 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 62 00 4A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 08 BA 02 00 0E 04 04 00 D6 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 60 [18: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 08 BA 02 00 0E 04 04 00 D6 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 [18:38:57]wFMCommunicate OK [18:38:57]SAM_PROTO_GetFieldsCounters done [18:38:57]requested_item shift.num is exist - process it [18:38:57]requested_item shift.opened is exist - process it [18:38:57]req_shift_opened [18:38:57]FM_GetShiftState [18:38:57]SAM_PROTO_GetShiftState [18:38:57]wFMCommunicate request_size=4 [18:38:57]MH_SAM_APDU [18:38:57]CAPDU: 80 13 01 00 [18:38:57]Write to MH i2c: E2 08 00 4B 06 80 13 01 00 00 00 00 00 CE [18:38:57]Write i2c OK [18:38:57]MH_I2C_Read... [18:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:57]Read from MH i2c: E2 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 0E 00 [18:38:57]MH_I2C_Read... [18:38:57]Read from MH i2c: E2 0E 00 4B 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A5 [18:38:57]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:38:57]wFMCommunicate OK [18:38:57]SAM_PROTO_GetShiftState done [18:38:57]FM_GetShiftState done [18:38:57]req_shift_opened done [18:38:57]requested_item shift.open_date is exist - process it [18:38:57]req_shift_open_date [18:38:57]req_shift_open_date done [18:38:57]produce_requested_data done [18:38:57]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178696,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:38:57]process_action_free close_receipt [18:38:57]json_value_free [18:38:57]json_value_free done [18:38:57]process_json_proto returns [18:38:57]Send response to host [18:38:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178696,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:38:57]free response buf [18:38:57]execute_script done [18:38:57]execute_script returns [18:38:57]free content buf [18:38:57]Sock 12.Close socket [18:38:57]Sock 12.Thread stoped [18:38:58]recv_with_timeout no data received [18:39:15]Connected sock=10 [18:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 BA B3 07 01 D7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 3E D7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 08 BA 02 00 35 04 06 00 52 AC 13 D8 79 E6 9D 4F 09 06 51 FA 7D EA [18:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 30 ED 47 00 F0 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 08 BA 02 00 F4 03 04 00 FD 82 C8 66 B6 04 01 00 00 12 A6 74 C6 C8 0E D4 43 [18:39:20]CommunicateWithHost err = 0 [18:39:20]CheckOFDResponse [18:39:20]1017 (14) - 77093643461234 [18:39:20]1041 (16) - 0000000000871778 [18:39:20]1040 (4) - 178696 [18:39:20]1012 (4) - 23.08.2024 12:39 [18:39:20]1206 (1) - 0 [18:39:20]OFD Sender: Remove packet 178696 [18:39:20]ProducePacketName [18:39:20]name=ofd_packets/00178696 [18:39:20]NVStorageDeleteData [18:39:20]OFD Sender: No OFD packet to send [18:39:21]recv_with_timeout no data received [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:39:56]recv_with_timeout no data received [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:47]recv_with_timeout no data received [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:17]recv_with_timeout no data received [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:36]recv_with_timeout no data received [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:36]OFD Sender: No OFD packet to send [18:42:41]OFD Sender: No OFD packet to send [18:42:46]OFD Sender: No OFD packet to send [18:42:51]OFD Sender: No OFD packet to send [18:42:56]OFD Sender: No OFD packet to send [18:42:57]recv_with_timeout no data received [18:43:01]OFD Sender: No OFD packet to send [18:43:06]OFD Sender: No OFD packet to send [18:43:09]recv_with_timeout no data received [18:43:11]OFD Sender: No OFD packet to send [18:43:16]OFD Sender: No OFD packet to send [18:43:21]OFD Sender: No OFD packet to send [18:43:26]OFD Sender: No OFD packet to send [18:43:31]OFD Sender: No OFD packet to send [18:43:36]OFD Sender: No OFD packet to send [18:43:37]recv_with_timeout no data received [18:43:41]OFD Sender: No OFD packet to send [18:43:46]OFD Sender: No OFD packet to send [18:43:51]OFD Sender: No OFD packet to send [18:43:56]OFD Sender: No OFD packet to send [18:44:01]OFD Sender: No OFD packet to send [18:44:06]OFD Sender: No OFD packet to send [18:44:11]OFD Sender: No OFD packet to send [18:44:16]OFD Sender: No OFD packet to send [18:44:21]OFD Sender: No OFD packet to send [18:44:26]OFD Sender: No OFD packet to send [18:44:31]OFD Sender: No OFD packet to send [18:44:34]accept exits with 9 [18:44:34]New connection [18:44:34]New thread 3066662244 created [18:44:34]Thread 3066805604 joined [18:44:34]Waiting for new connection... [18:44:34] Sock 9.Parse request [18:44:34]Sock 9.Check first char [18:44:34]Sock 9.First char is OK [18:44:34]request: POST /json_proto HTTP/1.0 [18:44:34]Method: POST [18:44:34]URL: /json_proto [18:44:34]Method is POST - this is cgi request [18:44:34]url: /json_proto [18:44:34]query_string will be loaded in cgi processing [18:44:34]execute_cgi json_proto POST (null) [18:44:34]execute_cgi path=json_proto method=POST [18:44:34]POST find Content-Length [18:44:34]Host: 172.17.44.131:8080 [18:44:34]Content-Length: 677 [18:44:34]Content-Type: application/json [18:44:34] [18:44:34]POST finish read [18:44:34]Found Content-Length = 677 [18:44:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294588", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:44:34]execute_script... [18:44: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)294588", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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:44:34]POST & json_proto [18:44:34]process_json_proto [18:44:34]json parsed OK: [18:44:34]protocol is kg_v1.0 [18:44:34]action value=close_receipt [18:44:34]process_action close_receipt [18:44:34]cmd_close_receipt [18:44:34]MH_GetDate [18:44:34]Write to MH i2c: F0 00 00 4C 06 41 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 09 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: F0 09 00 4C 06 00 93 D8 C8 66 4F 53 BE 66 A9 [18:44:34]GetLastDocTimeStamp 1724438334 [18:44:34]current date 1724438675 [18:44:34]FM_GetShiftState [18:44:34]SAM_PROTO_GetShiftState [18:44:34]wFMCommunicate request_size=4 [18:44:34]MH_SAM_APDU [18:44:34]CAPDU: 80 13 01 00 [18:44:34]Write to MH i2c: E2 08 00 4D 06 80 13 01 00 00 00 00 00 D0 [18:44:34]Write i2c OK [18:44:34]MH_I2C_Read... [18:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:34]Read from MH i2c: E2 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0E 00 [18:44:34]MH_I2C_Read... [18:44:34]Read from MH i2c: E2 0E 00 4D 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A7 [18:44:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:44:34]wFMCommunicate OK [18:44:34]SAM_PROTO_GetShiftState done [18:44:34]FM_GetShiftState done [18:44:34]opened in 1724371660 [18:44:34]opened+sec_in_day 1724458060 [18:44:34]quantity*price = 50036 [18:44:34]sum+1 = 50037 [18:44:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 157 23.08.2024 18:44 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178697 ФПД: 117521666195557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T184435&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178697&fm=117521666195557&tin=02508201610067®Number=0000000000092561&sum=50000 [18:44:36]StoreToDocumentArchive [18:44:36]shift 470 fd 178697 [18:44:36]save to /storage/0470/doc_00178697 [18:44:36]save last doc name /storage/0470/doc_00178697 to /storage/kkm_last_doc_name [18:44:36]save OK [18:44:36]Clear old archive folders... [18:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:36]tlvbuf is 0090EC90 [18:44:36]SAM_PROTO_ClearQueue [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 09 00 00 [18:44:36]Write to MH i2c: E2 08 00 5A 06 80 09 00 00 00 00 00 00 D2 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 5A 06 00 90 00 D4 [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_ClearQueue done [18:44:36]KKMCreateOFDPacket [18:44:36]OFDProtocolAddRootSTLVToBuf [18:44:36]FM_MakeSignedData [18:44:36]FM_MakeSignedData [18:44:36]SAM_PROTO_SignData [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 0D 01 02 [18:44:36]Write to MH i2c: E2 08 00 5B 06 80 0D 01 02 00 00 00 00 DA [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 5B 06 00 90 00 D5 [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]wFMCommunicate request_size=255 [18:44:36]MH_SAM_APDU [18:44: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 9D 00 00 00 F4 03 04 00 93 D8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 09 BA 02 00 35 04 06 00 6A [18:44:36]Write to MH i2c: E2 02 01 5C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 9D 00 00 00 F4 03 04 00 93 D8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 09 BA 02 00 35 04 06 00 6A 00 00 99 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 5C 06 00 90 00 D6 [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]wFMCommunicate request_size=10 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 0D 02 02 05 E2 A5 2A C0 65 [18:44:36]Write to MH i2c: E2 0D 00 5D 06 80 0D 02 02 05 00 E2 A5 2A C0 65 00 00 BD [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [18:44:36]RAPDU: 90 00 [18:44:36]wFMCommunicate OK [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 0D 03 02 [18:44:36]Write to MH i2c: E2 08 00 5E 06 80 0D 03 02 00 00 00 00 DF [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0B 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 0B 00 5E 06 00 28 81 E7 C0 37 60 11 4F 90 00 27 [18:44:36]RAPDU: 28 81 E7 C0 37 60 11 4F 90 00 [18:44:36]wFMCommunicate OK [18:44:36]SAM_PROTO_SignData done [18:44:36]FM_MakeSignedData done [18:44:36]CreateOFDProtocolMessage [18:44:36]wFMCommunicate request_size=4 [18:44:36]MH_SAM_APDU [18:44:36]CAPDU: 80 11 00 00 [18:44:36]Write to MH i2c: E2 08 00 5F 06 80 11 00 00 00 00 00 00 DF [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:36]Read from MH i2c: E2 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: E2 17 00 5F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [18:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:44:36]wFMCommunicate OK [18:44:36]CreateOFDProtocolMessage done [18:44:36]OFDSenderStorePacket 178697 [18:44:36]StoreOFDPacket docnum=178697 [18:44:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 4E CF 07 01 38 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 9D 00 00 00 F4 03 04 00 93 D8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 09 BA 02 00 35 04 06 00 6A E2 A5 2A C0 65 28 81 E7 C0 37 60 11 4F [18:44:36]CheckFolder [18:44:36]dirname=/storage/ofd_packets [18:44:36]CheckFolder done [18:44:36]ProducePacketName [18:44:36]name=ofd_packets/00178697 [18:44:36]NVStorageSaveData ofd_packets/00178697 [18:44:36]File name is /storage/ofd_packets/00178697 [18:44:36]Write 301 bytes [18:44:36]NVStorageSaveData done [18:44:36]OFDSenderStorePacket done [18:44:36]KKMCreateOFDPacket done [18:44:36]NVStorageSaveData kkm_last_timestamp [18:44:36]File name is /storage/kkm_last_timestamp [18:44:36]Write 4 bytes [18:44:36]NVStorageSaveData done [18:44:36]ExternCall_PrintAddStr [18:44:36]wPrintStart [18:44:36]Write to MH i2c: 01 00 00 60 06 66 [18:44:36]Write i2c OK [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 [18:44:36]MH_I2C_Read... [18:44:36]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 FF 0F 7B [18:44:36]RasterBufferAndPrint [18:44:36]line Счет N : (1)294588 [18:44:36]line ИНН: 02508201610067 [18:44:36]line Контрольно-Кассовый Чек [18:44:36]line ПРОДАЖА [18:44:36]line ТРК (МРК, ГНК) : 62 [18:44:36]line Товар: 2710124130 [18:44:36]line Аи-92-К-5 [18:44:36]line 7.380 * 67.80 [18:44:36]line = 500.36 [18:44:36]line НДС 12% НСП 1% [18:44:36]line > о реализуемом товаре [18:44:36]line ОКРУГЛЕНИЕ: -0.36 [18:44:36]line ИТОГО: 500.00 [18:44:36]line Внесено: 500.00 [18:44:36]line СДАЧА: 0.00 [18:44:36]line НСП 1% : 4.43 [18:44:36]line НДС 12% : 53.14 [18:44:36]line Наличными: 500.00 [18:44:36]line Безнал.: 0.00 [18:44:36]line Место: АЗС № 130 "Партнер Нефть" [18:44:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:44:36]line СНО: Общий режим [18:44:36]line Чек 157 23.08.2024 18:44 [18:44:36]line Смена: 470 ФФД: 1.0 [18:44:36]line ЗНМ: 0300000071 [18:44:36]line РНМ: 0000000000092561 [18:44:36]line Версия ККМ: 001 [18:44:36]line ФМ: 0000000000871778 [18:44:36]line ФД: 178697 [18:44:36]line ФПД: 117521666195557 [18:44:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T184435&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178697&fm=117521666195557&tin=02508201610067®Number=0000000000092561&sum=50000 [18:44:36]written 0, free lines is 4095 [18:44:36]OFD Sender: Processing packet 178697 [packets to send 498, broken 497] [18:44:36]ProducePacketName [18:44:36]name=ofd_packets/00178697 [18:44:36]OFD Sender: To server: pG, [18:44:36]CommunicateWithHost lk.salyk.kg:30040 [18:44:36]ConnectInit lk.salyk.kg [18:44:37]Write to MH i2c: 01 00 00 8B 06 91 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: 01 07 00 8B 06 00 00 00 00 00 D8 0C 7C [18:44:37]RasterBufferAndPrint [18:44:37]line [18:44:37]line [18:44:37]line [18:44:37]line [18:44:37]line [18:44:37]written 0, free lines is 3294 [18:44:37]MH_Cut [18:44:37]Write to MH i2c: D1 01 00 92 06 01 6A [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: D1 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: D1 01 00 [18:44:37]MH_I2C_Read... [18:44:37]Read from MH i2c: D1 01 00 92 06 00 69 [18:44:37]Write to MH i2c: 01 00 00 93 06 99 [18:44:37]Write i2c OK [18:44:37]MH_I2C_Read... [18:44:37]Connected sock=8 [18:44:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 4E CF 07 01 38 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 9D 00 00 00 F4 03 04 00 93 D8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 09 BA 02 00 35 04 06 00 6A E2 A5 2A C0 65 28 81 E7 C0 37 60 11 4F [18:44:37]*** Cut start [18:44:37]*** Partial cut [18:44:37]*** CUTSNS_PIN = 1 [18:44:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 39 D1 47 00 FA 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 31 37 37 38 10 04 04 00 09 BA 02 00 F4 03 04 00 3B 84 C8 66 B6 04 01 00 00 01 16 14 A3 39 E2 53 20 [18:44:37]CommunicateWithHost err = 0 [18:44:37]CheckOFDResponse [18:44:37]1017 (14) - 77093643461234 [18:44:37]1041 (16) - 0000000000871778 [18:44:37]1040 (4) - 178697 [18:44:37]1012 (4) - 23.08.2024 12:44 [18:44:37]1206 (1) - 0 [18:44:37]OFD Sender: Remove packet 178697 [18:44:37]ProducePacketName [18:44:37]name=ofd_packets/00178697 [18:44:37]NVStorageDeleteData [18:44:37]*** CUTSNS_PIN = 0 [18:44:37]*** Brake cut motor [18:44:38]OFD Sender: No OFD packet to send [18:44:38]Read from MH i2c: 01 [18:44:38]MH_I2C_Read... [18:44:38]*** Stop cut motor [18:44:38]*** Cut end [18:44:38]Read from MH i2c: 01 07 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: 01 07 00 93 06 00 00 00 00 00 FF 0F AE [18:44:38]process_action close_receipt done [18:44:38]requested_data is exist [18:44:38]produce_requested_data [18:44:38]requested_item fm.sn is exist - process it [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 11 00 00 [18:44:38]Write to MH i2c: E2 08 00 94 06 80 11 00 00 00 00 00 00 14 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 17 00 94 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6D [18:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:44:38]wFMCommunicate OK [18:44:38]requested_item fd.num is exist - process it [18:44:38]SAM_PROTO_GetFieldsCounters [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 13 00 00 [18:44:38]Write to MH i2c: E2 08 00 95 06 80 13 00 00 00 00 00 00 17 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 62 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 62 00 95 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 09 BA 02 00 0E 04 04 00 D6 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 AF [18:44: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 09 BA 02 00 0E 04 04 00 D6 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 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_GetFieldsCounters done [18:44:38]requested_item shift.num is exist - process it [18:44:38]requested_item shift.opened is exist - process it [18:44:38]req_shift_opened [18:44:38]FM_GetShiftState [18:44:38]SAM_PROTO_GetShiftState [18:44:38]wFMCommunicate request_size=4 [18:44:38]MH_SAM_APDU [18:44:38]CAPDU: 80 13 01 00 [18:44:38]Write to MH i2c: E2 08 00 96 06 80 13 01 00 00 00 00 00 19 [18:44:38]Write i2c OK [18:44:38]MH_I2C_Read... [18:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:38]Read from MH i2c: E2 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 0E 00 [18:44:38]MH_I2C_Read... [18:44:38]Read from MH i2c: E2 0E 00 96 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F0 [18:44:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:44:38]wFMCommunicate OK [18:44:38]SAM_PROTO_GetShiftState done [18:44:38]FM_GetShiftState done [18:44:38]req_shift_opened done [18:44:38]requested_item shift.open_date is exist - process it [18:44:38]req_shift_open_date [18:44:38]req_shift_open_date done [18:44:38]produce_requested_data done [18:44:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178697,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:44:38]process_action_free close_receipt [18:44:38]json_value_free [18:44:38]json_value_free done [18:44:38]process_json_proto returns [18:44:38]Send response to host [18:44:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178697,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:44:38]free response buf [18:44:38]execute_script done [18:44:38]execute_script returns [18:44:38]free content buf [18:44:38]Sock 9.Close socket [18:44:38]Sock 9.Thread stoped [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:56]recv_with_timeout no data received [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:13]OFD Sender: No OFD packet to send [18:45:15]recv_with_timeout no data received [18:45:18]OFD Sender: No OFD packet to send [18:45:23]OFD Sender: No OFD packet to send [18:45:28]OFD Sender: No OFD packet to send [18:45:33]OFD Sender: No OFD packet to send [18:45:38]OFD Sender: No OFD packet to send [18:45:43]OFD Sender: No OFD packet to send [18:45:48]OFD Sender: No OFD packet to send [18:45:53]OFD Sender: No OFD packet to send [18:45:58]OFD Sender: No OFD packet to send [18:46:03]OFD Sender: No OFD packet to send [18:46:08]OFD Sender: No OFD packet to send [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:55]recv_with_timeout no data received [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:20]recv_with_timeout no data received [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:35]recv_with_timeout no data received [18:48:38]OFD Sender: No OFD packet to send [18:50:10]ConnectInit Can't connect to host [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:30]accept exits with 10 [18:50:30]New connection [18:50:30]New thread 3066805604 created [18:50:30]Thread 3066662244 joined [18:50:30]Waiting for new connection... [18:50:30] Sock 10.Parse request [18:50:30]Sock 10.Check first char [18:50:30]Sock 10.First char is OK [18:50:30]request: POST /json_proto HTTP/1.0 [18:50:30]Method: POST [18:50:30]URL: /json_proto [18:50:30]Method is POST - this is cgi request [18:50:30]url: /json_proto [18:50:30]query_string will be loaded in cgi processing [18:50:30]execute_cgi json_proto POST (null) [18:50:30]execute_cgi path=json_proto method=POST [18:50:30]POST find Content-Length [18:50:30]Host: 172.17.44.131:8080 [18:50:30]Content-Length: 685 [18:50:30]Content-Type: application/json [18:50:30] [18:50:30]POST finish read [18:50:30]Found Content-Length = 685 [18:50:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "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" ] } } [18:50:30]execute_script... [18:50: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)294589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "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" ] } } [18:50:30]POST & json_proto [18:50:30]process_json_proto [18:50:30]json parsed OK: [18:50:30]protocol is kg_v1.0 [18:50:30]action value=close_receipt [18:50:30]process_action close_receipt [18:50:30]cmd_close_receipt [18:50:30]MH_GetDate [18:50:30]Write to MH i2c: F0 00 00 97 06 8C [18:50:30]Write i2c OK [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: F0 [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: F0 09 00 [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: F0 09 00 97 06 00 F7 D9 C8 66 4F 53 BE 66 59 [18:50:30]GetLastDocTimeStamp 1724438675 [18:50:30]current date 1724439031 [18:50:30]FM_GetShiftState [18:50:30]SAM_PROTO_GetShiftState [18:50:30]wFMCommunicate request_size=4 [18:50:30]MH_SAM_APDU [18:50:30]CAPDU: 80 13 01 00 [18:50:30]Write to MH i2c: E2 08 00 98 06 80 13 01 00 00 00 00 00 1B [18:50:30]Write i2c OK [18:50:30]MH_I2C_Read... [18:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:30]Read from MH i2c: E2 [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: E2 0E 00 [18:50:30]MH_I2C_Read... [18:50:30]Read from MH i2c: E2 0E 00 98 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F2 [18:50:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:50:30]wFMCommunicate OK [18:50:30]SAM_PROTO_GetShiftState done [18:50:30]FM_GetShiftState done [18:50:30]opened in 1724371660 [18:50:30]opened+sec_in_day 1724458060 [18:50:30]quantity*price = 100007 [18:50:30]sum+1 = 100009 [18:50:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 158 23.08.2024 18:50 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178698 ФПД: 266353648902805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T185031&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178698&fm=266353648902805&tin=02508201610067®Number=0000000000092561&sum=100000 [18:50:31]StoreToDocumentArchive [18:50:31]shift 470 fd 178698 [18:50:31]save to /storage/0470/doc_00178698 [18:50:31]save last doc name /storage/0470/doc_00178698 to /storage/kkm_last_doc_name [18:50:31]save OK [18:50:31]Clear old archive folders... [18:50:31]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:50:31]tlvbuf is 0090ED50 [18:50:31]SAM_PROTO_ClearQueue [18:50:31]wFMCommunicate request_size=4 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 09 00 00 [18:50:31]Write to MH i2c: E2 08 00 A5 06 80 09 00 00 00 00 00 00 1D [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [18:50:31]RAPDU: 90 00 [18:50:31]wFMCommunicate OK [18:50:31]SAM_PROTO_ClearQueue done [18:50:31]KKMCreateOFDPacket [18:50:31]OFDProtocolAddRootSTLVToBuf [18:50:31]FM_MakeSignedData [18:50:31]FM_MakeSignedData [18:50:31]SAM_PROTO_SignData [18:50:31]wFMCommunicate request_size=4 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 0D 01 02 [18:50:31]Write to MH i2c: E2 08 00 A6 06 80 0D 01 02 00 00 00 00 25 [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [18:50:31]RAPDU: 90 00 [18:50:31]wFMCommunicate OK [18:50:31]wFMCommunicate request_size=255 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 D9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0A BA 02 00 35 04 06 00 F2 3F [18:50:31]Write to MH i2c: E2 02 01 A7 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 D9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0A BA 02 00 35 04 06 00 F2 3F 00 00 6D [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:31]Read from MH i2c: E2 03 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [18:50:31]RAPDU: 90 00 [18:50:31]wFMCommunicate OK [18:50:31]wFMCommunicate request_size=9 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 0D 02 02 04 4A A0 A2 95 [18:50:31]Write to MH i2c: E2 0C 00 A8 06 80 0D 02 02 04 00 4A A0 A2 95 00 00 51 [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [18:50:31]RAPDU: 90 00 [18:50:31]wFMCommunicate OK [18:50:31]wFMCommunicate request_size=4 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 0D 03 02 [18:50:31]Write to MH i2c: E2 08 00 A9 06 80 0D 03 02 00 00 00 00 2A [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 0B 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 0B 00 A9 06 00 57 E6 4C A3 C7 95 DB A1 90 00 2F [18:50:31]RAPDU: 57 E6 4C A3 C7 95 DB A1 90 00 [18:50:31]wFMCommunicate OK [18:50:31]SAM_PROTO_SignData done [18:50:31]FM_MakeSignedData done [18:50:31]CreateOFDProtocolMessage [18:50:31]wFMCommunicate request_size=4 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 11 00 00 [18:50:31]Write to MH i2c: E2 08 00 AA 06 80 11 00 00 00 00 00 00 2A [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 17 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 17 00 AA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [18:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:50:31]wFMCommunicate OK [18:50:31]CreateOFDProtocolMessage done [18:50:31]OFDSenderStorePacket 178698 [18:50:31]StoreOFDPacket docnum=178698 [18:50:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 06 B5 06 01 29 4D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 D9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0A BA 02 00 35 04 06 00 F2 3F 4A A0 A2 95 57 E6 4C A3 C7 95 DB A1 [18:50:31]CheckFolder [18:50:31]dirname=/storage/ofd_packets [18:50:31]CheckFolder done [18:50:31]ProducePacketName [18:50:31]name=ofd_packets/00178698 [18:50:31]NVStorageSaveData ofd_packets/00178698 [18:50:31]File name is /storage/ofd_packets/00178698 [18:50:31]Write 300 bytes [18:50:31]NVStorageSaveData done [18:50:31]OFDSenderStorePacket done [18:50:31]KKMCreateOFDPacket done [18:50:31]NVStorageSaveData kkm_last_timestamp [18:50:31]File name is /storage/kkm_last_timestamp [18:50:31]Write 4 bytes [18:50:31]NVStorageSaveData done [18:50:31]ExternCall_PrintAddStr [18:50:31]wPrintStart [18:50:31]Write to MH i2c: 01 00 00 AB 06 B1 [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: 01 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: 01 07 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 FF 0F C6 [18:50:31]RasterBufferAndPrint [18:50:31]line Счет N : (1)294589 [18:50:31]line ИНН: 02508201610067 [18:50:31]line Контрольно-Кассовый Чек [18:50:31]line ПРОДАЖА [18:50:31]line ТРК (МРК, ГНК) : 71 [18:50:31]line Товар: 2711129700 [18:50:31]line ГАЗ-К-5 [18:50:31]line 26.740 * 37.40 [18:50:31]line = 1000.08 [18:50:31]line НДС 12% НСП 1% [18:50:31]line > о реализуемом товаре [18:50:31]line ОКРУГЛЕНИЕ: -0.08 [18:50:31]line ИТОГО: 1000.00 [18:50:31]line Внесено: 1000.00 [18:50:31]line СДАЧА: 0.00 [18:50:31]line НСП 1% : 8.85 [18:50:31]line НДС 12% : 106.20 [18:50:31]line Наличными: 1000.00 [18:50:31]line Безнал.: 0.00 [18:50:31]line Место: АЗС № 130 "Партнер Нефть" [18:50:31]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:50:31]line СНО: Общий режим [18:50:31]line Чек 158 23.08.2024 18:50 [18:50:31]line Смена: 470 ФФД: 1.0 [18:50:31]line ЗНМ: 0300000071 [18:50:31]line РНМ: 0000000000092561 [18:50:31]line Версия ККМ: 001 [18:50:31]line ФМ: 0000000000871778 [18:50:31]line ФД: 178698 [18:50:31]line ФПД: 266353648902805 [18:50:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T185031&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178698&fm=266353648902805&tin=02508201610067®Number=0000000000092561&sum=100000 [18:50:32]OFD Sender: Processing packet 178698 [packets to send 498, broken 497] [18:50:32]ProducePacketName [18:50:32]name=ofd_packets/00178698 [18:50:32]OFD Sender: To server: pG, [18:50:32]CommunicateWithHost lk.salyk.kg:30040 [18:50:32]ConnectInit lk.salyk.kg [18:50:32]written 0, free lines is 4095 [18:50:32]Write to MH i2c: 01 00 00 D6 06 DC [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 07 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: 01 07 00 D6 06 00 00 00 00 00 E0 0C CF [18:50:32]RasterBufferAndPrint [18:50:32]line [18:50:32]line [18:50:32]line [18:50:32]line [18:50:32]line [18:50:32]written 0, free lines is 3302 [18:50:32]MH_Cut [18:50:32]Write to MH i2c: D1 01 00 DD 06 01 B5 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: D1 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: D1 01 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: D1 01 00 DD 06 00 B4 [18:50:32]Write to MH i2c: 01 00 00 DE 06 E4 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:33]*** Cut start [18:50:33]*** Partial cut [18:50:33]*** CUTSNS_PIN = 1 [18:50:33]*** CUTSNS_PIN = 0 [18:50:33]*** Brake cut motor [18:50:33]Read from MH i2c: 01 [18:50:33]MH_I2C_Read... [18:50:33]*** Stop cut motor [18:50:33]*** Cut end [18:50:33]Read from MH i2c: 01 07 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 DE 06 00 00 00 00 00 FF 0F F9 [18:50:33]process_action close_receipt done [18:50:33]requested_data is exist [18:50:33]produce_requested_data [18:50:33]requested_item fm.sn is exist - process it [18:50:33]wFMCommunicate request_size=4 [18:50:33]MH_SAM_APDU [18:50:33]CAPDU: 80 11 00 00 [18:50:33]Write to MH i2c: E2 08 00 DF 06 80 11 00 00 00 00 00 00 5F [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:33]Read from MH i2c: E2 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 17 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 17 00 DF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B8 [18:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:50:33]wFMCommunicate OK [18:50:33]requested_item fd.num is exist - process it [18:50:33]SAM_PROTO_GetFieldsCounters [18:50:33]wFMCommunicate request_size=4 [18:50:33]MH_SAM_APDU [18:50:33]CAPDU: 80 13 00 00 [18:50:33]Write to MH i2c: E2 08 00 E0 06 80 13 00 00 00 00 00 00 62 [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:34]Read from MH i2c: E2 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 62 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 62 00 E0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 0A BA 02 00 0E 04 04 00 D6 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 FE [18:50: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 0A BA 02 00 0E 04 04 00 D6 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 [18:50:34]wFMCommunicate OK [18:50:34]SAM_PROTO_GetFieldsCounters done [18:50:34]requested_item shift.num is exist - process it [18:50:34]requested_item shift.opened is exist - process it [18:50:34]req_shift_opened [18:50:34]FM_GetShiftState [18:50:34]SAM_PROTO_GetShiftState [18:50:34]wFMCommunicate request_size=4 [18:50:34]MH_SAM_APDU [18:50:34]CAPDU: 80 13 01 00 [18:50:34]Write to MH i2c: E2 08 00 E1 06 80 13 01 00 00 00 00 00 64 [18:50:34]Write i2c OK [18:50:34]MH_I2C_Read... [18:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:34]Read from MH i2c: E2 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 0E 00 [18:50:34]MH_I2C_Read... [18:50:34]Read from MH i2c: E2 0E 00 E1 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3B [18:50:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:50:34]wFMCommunicate OK [18:50:34]SAM_PROTO_GetShiftState done [18:50:34]FM_GetShiftState done [18:50:34]req_shift_opened done [18:50:34]requested_item shift.open_date is exist - process it [18:50:34]req_shift_open_date [18:50:34]req_shift_open_date done [18:50:34]produce_requested_data done [18:50:34]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178698,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [18:50:34]process_action_free close_receipt [18:50:34]json_value_free [18:50:34]json_value_free done [18:50:34]process_json_proto returns [18:50:34]Send response to host [18:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178698,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:50:34]free response buf [18:50:34]execute_script done [18:50:34]execute_script returns [18:50:34]free content buf [18:50:34]Sock 10.Close socket [18:50:34]Sock 10.Thread stoped [18:50:36]Connected sock=11 [18:50:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 06 B5 06 01 29 4D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 F7 D9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0A BA 02 00 35 04 06 00 F2 3F 4A A0 A2 95 57 E6 4C A3 C7 95 DB A1 [18:50:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FF 1D 47 00 41 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0A BA 02 00 F4 03 04 00 A2 85 C8 66 B6 04 01 00 00 96 6E 84 93 B2 C4 AD 3D [18:50:36]CommunicateWithHost err = 0 [18:50:36]CheckOFDResponse [18:50:36]1017 (14) - 77093643461234 [18:50:36]1041 (16) - 0000000000871778 [18:50:36]1040 (4) - 178698 [18:50:36]1012 (4) - 23.08.2024 12:50 [18:50:36]1206 (1) - 0 [18:50:36]OFD Sender: Remove packet 178698 [18:50:36]ProducePacketName [18:50:36]name=ofd_packets/00178698 [18:50:36]NVStorageDeleteData [18:50:37]OFD Sender: No OFD packet to send [18:50:42]OFD Sender: No OFD packet to send [18:50:46]recv_with_timeout no data received [18:50:47]OFD Sender: No OFD packet to send [18:50:52]OFD Sender: No OFD packet to send [18:50:56]recv_with_timeout no data received [18:50:57]OFD Sender: No OFD packet to send [18:51:02]OFD Sender: No OFD packet to send [18:51:07]OFD Sender: No OFD packet to send [18:51:12]OFD Sender: No OFD packet to send [18:51:17]OFD Sender: No OFD packet to send [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:53]ConnectInit Can't connect to host [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:04]ConnectInit Can't connect to host [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:03]recv_with_timeout no data received [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]accept exits with 9 [18:59:21]New connection [18:59:21]New thread 3067321700 created [18:59:21]Thread 3067178340 joined [18:59:21]Waiting for new connection... [18:59:21] Sock 9.Parse request [18:59:21]Sock 9.Check first char [18:59:21]Sock 9.First char is OK [18:59:21]request: POST /json_proto HTTP/1.0 [18:59:21]Method: POST [18:59:21]URL: /json_proto [18:59:21]Method is POST - this is cgi request [18:59:21]url: /json_proto [18:59:21]query_string will be loaded in cgi processing [18:59:21]execute_cgi json_proto POST (null) [18:59:21]execute_cgi path=json_proto method=POST [18:59:21]POST find Content-Length [18:59:21]Host: 172.17.44.131:8080 [18:59:21]Content-Length: 679 [18:59:21]Content-Type: application/json [18:59:21] [18:59:21]POST finish read [18:59:21]Found Content-Length = 679 [18:59:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:21]execute_script... [18:59: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)294600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:21]POST & json_proto [18:59:21]process_json_proto [18:59:21]json parsed OK: [18:59:21]protocol is kg_v1.0 [18:59:21]action value=close_receipt [18:59:21]process_action close_receipt [18:59:21]cmd_close_receipt [18:59:21]MH_GetDate [18:59:21]Write to MH i2c: F0 00 00 1D 00 0C [18:59:21]Write i2c OK [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: F0 [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: F0 09 00 [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: F0 09 00 1D 00 00 09 DC C8 66 4F 53 BE 66 EE [18:59:21]GetLastDocTimeStamp 97 [18:59:21]current date 1724439561 [18:59:21]FM_GetShiftState [18:59:21]SAM_PROTO_GetShiftState [18:59:21]wFMCommunicate request_size=4 [18:59:21]MH_SAM_APDU [18:59:21]CAPDU: 80 13 01 00 [18:59:21]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:59:21]Write i2c OK [18:59:21]MH_I2C_Read... [18:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:21]Read from MH i2c: E2 [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: E2 0E 00 [18:59:21]MH_I2C_Read... [18:59:21]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [18:59:21]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [18:59:21]wFMCommunicate OK [18:59:21]SAM_PROTO_GetShiftState done [18:59:21]FM_GetShiftState done [18:59:21]opened in 1724371660 [18:59:21]opened+sec_in_day 1724458060 [18:59:21]quantity*price = 100050 [18:59:21]sum+1 = 100052 [18:59:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 160 23.08.2024 18:59 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178700 ФПД: 207728695291334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T185921&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178700&fm=207728695291334&tin=02508201610067®Number=0000000000092561&sum=100000 [18:59:22]StoreToDocumentArchive [18:59:22]shift 470 fd 178700 [18:59:22]save to /storage/0470/doc_00178700 [18:59:22]save last doc name /storage/0470/doc_00178700 to /storage/kkm_last_doc_name [18:59:22]save OK [18:59:22]Clear old archive folders... [18:59:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:59:22]tlvbuf is 01A03B40 [18:59:22]SAM_PROTO_ClearQueue [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 09 00 00 [18:59:22]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_ClearQueue done [18:59:22]KKMCreateOFDPacket [18:59:22]OFDProtocolAddRootSTLVToBuf [18:59:22]FM_MakeSignedData [18:59:22]FM_MakeSignedData [18:59:22]SAM_PROTO_SignData [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 01 02 [18:59:22]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=255 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 09 DC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0C BA 02 00 35 04 06 00 BC ED 9B 17 [18:59:22]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 09 DC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0C BA 02 00 35 04 06 00 BC ED 9B 17 00 00 E0 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=7 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 02 02 02 AD C6 [18:59:22]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 AD C6 00 00 1F [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:59:22]RAPDU: 90 00 [18:59:22]wFMCommunicate OK [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 0D 03 02 [18:59:22]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0B 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 0B 00 2F 00 00 33 00 9E D9 B4 28 DF 5A 90 00 6A [18:59:22]RAPDU: 33 00 9E D9 B4 28 DF 5A 90 00 [18:59:22]wFMCommunicate OK [18:59:22]SAM_PROTO_SignData done [18:59:22]FM_MakeSignedData done [18:59:22]CreateOFDProtocolMessage [18:59:22]wFMCommunicate request_size=4 [18:59:22]MH_SAM_APDU [18:59:22]CAPDU: 80 11 00 00 [18:59:22]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:22]Read from MH i2c: E2 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [18:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [18:59:22]wFMCommunicate OK [18:59:22]CreateOFDProtocolMessage done [18:59:22]OFDSenderStorePacket 178700 [18:59:22]StoreOFDPacket docnum=178700 [18:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178700,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [18:59:25]free response buf [18:59:25]execute_script done [18:59:25]execute_script returns [18:59:25]free content buf [18:59:25]Sock 9.Close socket [18:59:25]Sock 9.Thread stoped [18:59:28]recv_with_timeout no data received [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:42]recv_with_timeout no data received [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:20]recv_with_timeout no data received [19:00:25]OFD Sender: No OFD packet to send [19:01:13]ConnectInit Can't connect to host [19:01:14]OFD Sender: Processing packet 178701 [packets to send 499, broken 498] [19:01:14]ProducePacketName [19:01:14]name=ofd_packets/00178701 [19:01:14]OFD Sender: To server: pG, [19:01:14]CommunicateWithHost lk.salyk.kg:30040 [19:01:14]ConnectInit lk.salyk.kg [19:01:15]Connected sock=7 [19:01:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 95 6A 07 01 BC 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 5B DC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0D BA 02 00 35 04 06 00 EC 0A 25 EC EB E8 19 D7 FA A8 EF B3 53 EB [19:01:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F9 50 47 00 D1 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 31 37 37 38 10 04 04 00 0D BA 02 00 F4 03 04 00 22 88 C8 66 B6 04 01 00 00 BA 49 09 DE B4 26 79 E1 [19:01:17]CommunicateWithHost err = 0 [19:01:17]CheckOFDResponse [19:01:17]1017 (14) - 77093643461234 [19:01:17]1041 (16) - 0000000000871778 [19:01:17]1040 (4) - 178701 [19:01:17]1012 (4) - 23.08.2024 13:01 [19:01:17]1206 (1) - 0 [19:01:17]OFD Sender: Remove packet 178701 [19:01:17]ProducePacketName [19:01:17]name=ofd_packets/00178701 [19:01:17]NVStorageDeleteData [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:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:33]recv_with_timeout no data received [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]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:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:12]recv_with_timeout no data received [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:46]recv_with_timeout no data received [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:16]recv_with_timeout no data received [19:05:18]OFD Sender: No OFD packet to send [18:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 9A 17 04 01 FA F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 09 DC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0C BA 02 00 35 04 06 00 BC ED 9B 17 AD C6 33 00 9E D9 B4 28 DF 5A [18:59:22]CheckFolder [18:59:22]dirname=/storage/ofd_packets [18:59:22]CheckFolder done [18:59:22]ProducePacketName [18:59:22]name=ofd_packets/00178700 [18:59:22]NVStorageSaveData ofd_packets/00178700 [18:59:22]File name is /storage/ofd_packets/00178700 [18:59:22]Write 298 bytes [18:59:22]NVStorageSaveData done [18:59:22]OFDSenderStorePacket done [18:59:22]KKMCreateOFDPacket done [18:59:22]NVStorageSaveData kkm_last_timestamp [18:59:22]File name is /storage/kkm_last_timestamp [18:59:22]Write 4 bytes [18:59:22]NVStorageSaveData done [18:59:22]ExternCall_PrintAddStr [18:59:22]wPrintStart [18:59:22]Write to MH i2c: 01 00 00 31 00 31 [18:59:22]Write i2c OK [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 [18:59:22]MH_I2C_Read... [18:59:22]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:59:22]RasterBufferAndPrint [18:59:22]line Счет N : (1)294600 [18:59:22]line ИНН: 02508201610067 [18:59:22]line Контрольно-Кассовый Чек [18:59:22]line ПРОДАЖА [18:59:22]line ТРК (МРК, ГНК) : 21 [18:59:22]line Товар: 2710194800 [18:59:22]line ДТ-К-5 [18:59:22]line 13.130 * 76.20 [18:59:22]line = 1000.51 [18:59:22]line НДС 12% НСП 1% [18:59:22]line > о реализуемом товаре [18:59:22]line ОКРУГЛЕНИЕ: -0.51 [18:59:22]line ИТОГО: 1000.00 [18:59:22]line Внесено: 1000.00 [18:59:22]line СДАЧА: 0.00 [18:59:22]line НСП 1% : 8.85 [18:59:22]line НДС 12% : 106.25 [18:59:22]line Наличными: 1000.00 [18:59:22]line Безнал.: 0.00 [18:59:22]line Место: АЗС № 130 "Партнер Нефть" [18:59:22]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [18:59:22]line СНО: Общий режим [18:59:22]line Чек 160 23.08.2024 18:59 [18:59:22]line Смена: 470 ФФД: 1.0 [18:59:22]line ЗНМ: 0300000071 [18:59:22]line РНМ: 0000000000092561 [18:59:22]line Версия ККМ: 001 [18:59:22]line ФМ: 0000000000871778 [18:59:22]line ФД: 178700 [18:59:22]line ФПД: 207728695291334 [18:59:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T185921&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178700&fm=207728695291334&tin=02508201610067®Number=0000000000092561&sum=100000 [18:59:23]OFD Sender: Processing packet 178700 [packets to send 499, broken 498] [18:59:23]ProducePacketName [18:59:23]name=ofd_packets/00178700 [18:59:23]OFD Sender: To server: pG, [18:59:23]CommunicateWithHost lk.salyk.kg:30040 [18:59:23]ConnectInit lk.salyk.kg [18:59:23]written 0, free lines is 4095 [18:59:23]Connected sock=11 [18:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 9A 17 04 01 FA F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 09 DC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0C BA 02 00 35 04 06 00 BC ED 9B 17 AD C6 33 00 9E D9 B4 28 DF 5A [18:59:23]Write to MH i2c: 01 00 00 5C 00 5C [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 07 00 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 E6 0C 55 [18:59:23]RasterBufferAndPrint [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]line [18:59:23]written 0, free lines is 3308 [18:59:23]MH_Cut [18:59:23]Write to MH i2c: D1 01 00 63 00 01 35 [18:59:23]Write i2c OK [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 [18:59:23]MH_I2C_Read... [18:59:23]Read from MH i2c: D1 01 00 [18:59:23]MH_I2C_Read... [18:59:23]Re[19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]wFMCommunicate request_size=13 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 15 02 00 08 F4 03 04 00 84 DD C8 66 [19:05:41]Write to MH i2c: E2 10 00 BC 00 80 15 02 00 08 00 F4 03 04 00 84 DD C8 66 00 00 D6 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]wFMCommunicate request_size=25 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [19:05:41]Write to MH i2c: E2 1C 00 BD 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 9D [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 15 03 00 [19:05:41]Write to MH i2c: E2 08 00 BE 00 80 15 03 00 00 00 00 00 3F [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 40 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 40 00 BE 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 A2 00 00 00 35 04 06 00 97 8A B5 2A 49 44 90 00 0B [19:05:41]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 A2 00 00 00 35 04 06 00 97 8A B5 2A 49 44 90 00 [19:05:41]wFMCommunicate OK [19:05:41]SAM_PROTO_ProcessDocument answer len = 59 [19:05:41]SAM_PROTO_ProcessDocument done [19:05:41]SetTLVBufToDocument [19:05:41]Processing tag 1209 (04B9) [19:05:41]Malloc new data [19:05:41]Processing tag 1041 (0411) [19:05:41]Processing tag 1040 (0410) [19:05:41]Malloc new data [19:05:41]Processing tag 1038 (040E) [19:05:41]Malloc new data [19:05:41]Processing tag 1042 (0412) [19:05:41]Malloc new data [19:05:41]Processing tag 1077 (0435) [19:05:41]Malloc new data [19:05:41]SetTLVBufToDocument err=0 [19:05:41]KKMLoadAndSignReceiptData store KKM data [19:05:41]KKMLoadAndSignReceiptData err=0 [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 11 00 00 [19:05:41]Write to MH i2c: E2 08 00 BF 00 80 11 00 00 00 00 00 00 39 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 17 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 17 00 BF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 92 [19:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:05:41]wFMCommunicate OK [19:05:41]Счет N : (1)294613 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 52 Товар: 2710124130 Аи-92-К-5 10.330 * 67.80 = 700.37 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 162 23.08.2024 19:05 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178702 ФПД: 166622000728388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190540&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178702&fm=166622000728388&tin=02508201610067®Number=0000000000092561&sum=70000 [19:05:41]StoreToDocumentArchive [19:05:41]shift 470 fd 178702 [19:05:41]save to /storage/0470/doc_00178702 [19:05:41]save last doc name /storage/0470/doc_00178702 to /storage/kkm_last_doc_name [19:05:41]save OK [19:05:41]Clear old archive folders... [19:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:41]tlvbuf is 01A33490 [19:05:41]SAM_PROTO_ClearQueue [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 09 00 00 [19:05:41]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]SAM_PROTO_ClearQueue done [19:05:41]KKMCreateOFDPacket [19:05:41]OFDProtocolAddRootSTLVToBuf [19:05:41]FM_MakeSignedData [19:05:41]FM_MakeSignedData [19:05:41]SAM_PROTO_SignData [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 0D 01 02 [19:05:41]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]wFMCommunicate request_size=255 [19:05:41]MH_SAM_APDU [19:05: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 84 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 35 04 06 00 97 [19:05:41]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 84 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 35 04 06 00 97 00 00 0D [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]wFMCommunicate request_size=10 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 0D 02 02 05 8A B5 2A 49 44 [19:05:41]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 8A B5 2A 49 44 00 00 3D [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [19:05:41]RAPDU: 90 00 [19:05:41]wFMCommunicate OK [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 0D 03 02 [19:05:41]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:41]Read from MH i2c: E2 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 0B 00 [19:05:41]MH_I2C_Read... [19:05:41]Read from MH i2c: E2 0B 00 C4 00 00 74 84 70 65 11 2D CB 43 90 00 59 [19:05:41]RAPDU: 74 84 70 65 11 2D CB 43 90 00 [19:05:41]wFMCommunicate OK [19:05:41]SAM_PROTO_SignData done [19:05:41]FM_MakeSignedData done [19:05:41]CreateOFDProtocolMessage [19:05:41]wFMCommunicate request_size=4 [19:05:41]MH_SAM_APDU [19:05:41]CAPDU: 80 11 00 00 [19:05:41]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [19:05:41]Write i2c OK [19:05:41]MH_I2C_Read... [19:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:42]Read from MH i2c: E2 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 17 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [19:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:05:42]wFMCommunicate OK [19:05:42]CreateOFDProtocolMessage done [19:05:42]OFDSenderStorePacket 178702 [19:05:42]StoreOFDPacket docnum=178702 [19:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8C 3E 07 01 EC 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 84 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 35 04 06 00 97 8A B5 2A 49 44 74 84 70 65 11 2D CB 43 [19:05:42]CheckFolder [19:05:42]dirname=/storage/ofd_packets [19:05:42]CheckFolder done [19:05:42]ProducePacketName [19:05:42]name=ofd_packets/00178702 [19:05:42]NVStorageSaveData ofd_packets/00178702 [19:05:42]File name is /storage/ofd_packets/00178702 [19:05:42]Write 301 bytes [19:05:42]NVStorageSaveData done [19:05:42]OFDSenderStorePacket done [19:05:42]KKMCreateOFDPacket done [19:05:42]NVStorageSaveData kkm_last_timestamp [19:05:42]File name is /storage/kkm_last_timestamp [19:05:42]Write 4 bytes [19:05:42]NVStorageSaveData done [19:05:42]OFD Sender: Processing packet 178702 [packets to send 499, broken 498] [19:05:42]ProducePacketName [19:05:42]name=ofd_packets/00178702 [19:05:42]OFD Sender: To server: pG, [19:05:42]CommunicateWithHost lk.salyk.kg:30040 [19:05:42]ConnectInit lk.salyk.kg [19:05:42]ExternCall_PrintAddStr [19:05:42]wPrintStart [19:05:42]Write to MH i2c: 01 00 00 C6 00 C6 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 07 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [19:05:42]RasterBufferAndPrint [19:05:42]line Счет N : (1)294613 [19:05:42]line ИНН: 02508201610067 [19:05:42]line Контрольно-Кассовый Чек [19:05:42]line ПРОДАЖА [19:05:42]line ТРК (МРК, ГНК) : 52 [19:05:42]line Товар: 2710124130 [19:05:42]line Аи-92-К-5 [19:05:42]line 10.330 * 67.80 [19:05:42]line = 700.37 [19:05:42]line НДС 12% НСП 1% [19:05:42]line > о реализуемом товаре [19:05:42]line ОКРУГЛЕНИЕ: -0.37 [19:05:42]line ИТОГО: 700.00 [19:05:42]line Внесено: 700.00 [19:05:42]line СДАЧА: 0.00 [19:05:42]line НСП 1% : 6.20 [19:05:42]line НДС 12% : 74.38 [19:05:42]line Наличными: 700.00 [19:05:42]line Безнал.: 0.00 [19:05:42]line Место: АЗС № 130 "Партнер Нефть" [19:05:42]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:05:42]line СНО: Общий режим [19:05:42]line Чек 162 23.08.2024 19:05 [19:05:42]line Смена: 470 ФФД: 1.0 [19:05:42]line ЗНМ: 0300000071 [19:05:42]line РНМ: 0000000000092561 [19:05:42]line Версия ККМ: 001 [19:05:42]line ФМ: 0000000000871778 [19:05:42]line ФД: 178702 [19:05:42]line ФПД: 166622000728388 [19:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190540&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178702&fm=166622000728388&tin=02508201610067®Number=0000000000092561&sum=70000 [19:05:42]written 0, free lines is 4095 [19:05:42]Write to MH i2c: 01 00 00 F1 00 F1 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 07 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 D6 0C DA [19:05:42]RasterBufferAndPrint [19:05:42]line [19:05:42]line [19:05:42]line [19:05:42]line [19:05:42]line [19:05:42]written 0, free lines is 3294 [19:05:42]MH_Cut [19:05:42]Write to MH i2c: D1 01 00 F8 00 01 CA [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: D1 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: D1 01 00 [19:05:42]MH_I2C_Read... [19:05:42]Read from MH i2c: D1 01 00 F8 00 00 C9 [19:05:42]Write to MH i2c: 01 00 00 F9 00 F9 [19:05:42]Write i2c OK [19:05:42]MH_I2C_Read... [19:05:43]*** Cut start [19:05:43]*** Partial cut [19:05:43]*** CUTSNS_PIN = 1 [19:05:43]*** CUTSNS_PIN = 0 [19:05:43]*** Brake cut motor [19:05:44]Read from MH i2c: 01 [19:05:44]MH_I2C_Read... [19:05:44]*** Stop cut motor [19:05:44]*** Cut end [19:05:44]Read from MH i2c: 01 07 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [19:05:44]process_action close_receipt done [19:05:44]requested_data is exist [19:05:44]produce_requested_data [19:05:44]requested_item fm.sn is exist - process it [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 11 00 00 [19:05:44]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 17 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [19:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:05:44]wFMCommunicate OK [19:05:44]requested_item fd.num is exist - process it [19:05:44]SAM_PROTO_GetFieldsCounters [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 13 00 00 [19:05:44]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 62 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 0E BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [19:05: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 0E BA 02 00 0E 04 04 00 D6 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 [19:05:44]wFMCommunicate OK [19:05:44]SAM_PROTO_GetFieldsCounters done [19:05:44]requested_item shift.num is exist - process it [19:05:44]requested_item shift.opened is exist - process it [19:05:44]req_shift_opened [19:05:44]FM_GetShiftState [19:05:44]SAM_PROTO_GetShiftState [19:05:44]wFMCommunicate request_size=4 [19:05:44]MH_SAM_APDU [19:05:44]CAPDU: 80 13 01 00 [19:05:44]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [19:05:44]Write i2c OK [19:05:44]MH_I2C_Read... [19:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:44]Read from MH i2c: E2 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 0E 00 [19:05:44]MH_I2C_Read... [19:05:44]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 50 [19:05:44]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:05:44]wFMCommunicate OK [19:05:44]SAM_PROTO_GetShiftState done [19:05:44]FM_GetShiftState done [19:05:44]req_shift_opened done [19:05:44]requested_item shift.open_date is exist - process it [19:05:44]req_shift_open_date [19:05:44]req_shift_open_date done [19:05:44]produce_requested_data done [19:05:44]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178702,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:05:44]process_action_free close_receipt [19:05:44]json_value_free [19:05:44]json_value_free done [19:05:44]process_json_proto returns [19:05:44]Send response to host [19:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178702,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:05:44]free response buf [19:05:44]execute_script done [19:05:44]execute_script returns [19:05:44]free content buf [19:05:44]Sock 9.Close socket [19:05:44]Sock 9.Thread stoped [19:05:47]ConnectInit Can't take IP for lk.salyk.kg [19:05:47]CommunicateWithHost connect error [19:05:47]CommunicateWithHost err = -1 [19:05:47]OFD Sender: Server communicate error [19:05:52]OFD Sender: Processing packet 178702 [packets to send 499, broken 498] [19:05:52]ProducePacketName [19:05:52]name=ofd_packets/00178702 [19:05:52]OFD Sender: To server: pG, [19:05:52]CommunicateWithHost lk.salyk.kg:30040 [19:05:52]ConnectInit lk.salyk.kg [19:05:57]recv_with_timeout no data received [19:06:28]Connected sock=9 [19:06:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8C 3E 07 01 EC 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 84 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 35 04 06 00 97 8A B5 2A 49 44 74 84 70 65 11 2D CB 43 [19:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 41 C3 47 00 48 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0E BA 02 00 F4 03 04 00 5B 89 C8 66 B6 04 01 00 00 8C 9E 6E 39 7C 27 3B 1F [19:06:31]CommunicateWithHost err = 0 [19:06:31]CheckOFDResponse [19:06:31]1017 (14) - 77093643461234 [19:06:31]1041 (16) - 0000000000871778 [19:06:31]1040 (4) - 178702 [19:06:31]1012 (4) - 23.08.2024 13:06 [19:06:31]1206 (1) - 0 [19:06:31]OFD Sender: Remove packet 178702 [19:06:31]ProducePacketName [19:06:31]name=ofd_packets/00178702 [19:06:31]NVStorageDeleteData [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]accept exits with 7 [19:06:51]New connection [19:06:51]New thread 3067178340 created [19:06:51]Thread 3067321700 joined [19:06:51]Waiting for new connection... [19:06:51] Sock 7.Parse request [19:06:51]Sock 7.Check first char [19:06:51]Sock 7.First char is OK [19:06:51]request: POST /json_proto HTTP/1.0 [19:06:51]Method: POST [19:06:51]URL: /json_proto [19:06:51]Method is POST - this is cgi request [19:06:51]url: /json_proto [19:06:51]query_string will be loaded in cgi processing [19:06:51]execute_cgi json_proto POST (null) [19:06:51]execute_cgi path=json_proto method=POST [19:06:51]POST find Content-Length [19:06:51]Host: 172.17.44.131:8080 [19:06:51]Content-Length: 679 [19:06:51]Content-Type: application/json [19:06:51] [19:06:51]POST finish read [19:06:51]Found Content-Length = 679 [19:06:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:51]execute_script... [19:06: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)294614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:51]POST & json_proto [19:06:51]process_json_proto [19:06:51]json parsed OK: [19:06:51]protocol is kg_v1.0 [19:06:51]action value=close_receipt [19:06:51]process_action close_receipt [19:06:51]cmd_close_receipt [19:06:51]MH_GetDate [19:06:51]Write to MH i2c: F0 00 00 FD 00 EC [19:06:51]Write i2c OK [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: F0 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: F0 09 00 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: F0 09 00 FD 00 00 CC DD C8 66 4F 53 BE 66 92 [19:06:51]GetLastDocTimeStamp 1724439940 [19:06:51]current date 1724440012 [19:06:51]FM_GetShiftState [19:06:51]SAM_PROTO_GetShiftState [19:06:51]wFMCommunicate request_size=4 [19:06:51]MH_SAM_APDU [19:06:51]CAPDU: 80 13 01 00 [19:06:51]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [19:06:51]Write i2c OK [19:06:51]MH_I2C_Read... [19:06:51]OFD Sender: No OFD packet to send [19:06:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:51]Read from MH i2c: E2 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: E2 0E 00 [19:06:51]MH_I2C_Read... [19:06:51]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 52 [19:06:51]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:06:51]wFMCommunicate OK [19:06:51]SAM_PROTO_GetShiftState done [19:06:51]FM_GetShiftState done [19:06:51]opened in 1724371660 [19:06:51]opened+sec_in_day 1724458060 [19:06:51]quantity*price = 100050 [19:06:51]sum+1 = 100052 [19:06:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 163 23.08.2024 19:06 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178703 ФПД: 76948593337278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190652&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178703&fm=76948593337278&tin=02508201610067®Number=0000000000092561&sum=100000 [19:06:52]StoreToDocumentArchive [19:06:52]shift 470 fd 178703 [19:06:52]save to /storage/0470/doc_00178703 [19:06:52]save last doc name /storage/0470/doc_00178703 to /storage/kkm_last_doc_name [19:06:52]save OK [19:06:52]Clear old archive folders... [19:06:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:06:52]tlvbuf is 01A22300 [19:06:52]SAM_PROTO_ClearQueue [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 09 00 00 [19:06:52]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:52]Read from MH i2c: E2 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 [19:06:52]MH_I2C_Read... [19:06:52]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:06:52]RAPDU: 90 00 [19:06:52]wFMCommunicate OK [19:06:52]SAM_PROTO_ClearQueue done [19:06:52]KKMCreateOFDPacket [19:06:52]OFDProtocolAddRootSTLVToBuf [19:06:52]FM_MakeSignedData [19:06:52]FM_MakeSignedData [19:06:52]SAM_PROTO_SignData [19:06:52]wFMCommunicate request_size=4 [19:06:52]MH_SAM_APDU [19:06:52]CAPDU: 80 0D 01 02 [19:06:52]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [19:06:52]Write i2c OK [19:06:52]MH_I2C_Read... [19:06:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=255 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CC DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0F BA 02 00 35 04 06 00 45 FB FD 92 [19:06:53]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CC DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0F BA 02 00 35 04 06 00 45 FB FD 92 00 00 FF [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=7 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 02 02 02 63 BE [19:06:53]Write to MH i2c: E2 0A 00 0E 01 80 0D 02 02 02 00 63 BE 00 00 AE [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [19:06:53]RAPDU: 90 00 [19:06:53]wFMCommunicate OK [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 0D 03 02 [19:06:53]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 0B 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 0B 00 0F 01 00 4A FB 6C E9 2E 78 B3 A9 90 00 28 [19:06:53]RAPDU: 4A FB 6C E9 2E 78 B3 A9 90 00 [19:06:53]wFMCommunicate OK [19:06:53]SAM_PROTO_SignData done [19:06:53]FM_MakeSignedData done [19:06:53]CreateOFDProtocolMessage [19:06:53]wFMCommunicate request_size=4 [19:06:53]MH_SAM_APDU [19:06:53]CAPDU: 80 11 00 00 [19:06:53]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:53]Read from MH i2c: E2 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 17 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [19:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:06:53]wFMCommunicate OK [19:06:53]CreateOFDProtocolMessage done [19:06:53]OFDSenderStorePacket 178703 [19:06:53]StoreOFDPacket docnum=178703 [19:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 CE F2 04 01 42 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CC DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0F BA 02 00 35 04 06 00 45 FB FD 92 63 BE 4A FB 6C E9 2E 78 B3 A9 [19:06:53]CheckFolder [19:06:53]dirname=/storage/ofd_packets [19:06:53]CheckFolder done [19:06:53]ProducePacketName [19:06:53]name=ofd_packets/00178703 [19:06:53]NVStorageSaveData ofd_packets/00178703 [19:06:53]File name is /storage/ofd_packets/00178703 [19:06:53]Write 298 bytes [19:06:53]NVStorageSaveData done [19:06:53]OFDSenderStorePacket done [19:06:53]KKMCreateOFDPacket done [19:06:53]NVStorageSaveData kkm_last_timestamp [19:06:53]File name is /storage/kkm_last_timestamp [19:06:53]Write 4 bytes [19:06:53]NVStorageSaveData done [19:06:53]ExternCall_PrintAddStr [19:06:53]wPrintStart [19:06:53]Write to MH i2c: 01 00 00 11 01 12 [19:06:53]Write i2c OK [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 07 00 [19:06:53]MH_I2C_Read... [19:06:53]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [19:06:53]RasterBufferAndPrint [19:06:53]line Счет N : (1)294614 [19:06:53]line ИНН: 02508201610067 [19:06:53]line Контрольно-Кассовый Чек [19:06:53]line ПРОДАЖА [19:06:53]line ТРК (МРК, ГНК) : 11 [19:06:53]line Товар: 2710194800 [19:06:53]line ДТ-К-5 [19:06:53]line 13.130 * 76.20 [19:06:53]line = 1000.51 [19:06:53]line НДС 12% НСП 1% [19:06:53]line > о реализуемом товаре [19:06:53]line ОКРУГЛЕНИЕ: -0.51 [19:06:53]line ИТОГО: 1000.00 [19:06:53]line Внесено: 1000.00 [19:06:53]line СДАЧА: 0.00 [19:06:53]line НСП 1% : 8.85 [19:06:53]line НДС 12% : 106.25 [19:06:53]line Наличными: 1000.00 [19:06:53]line Безнал.: 0.00 [19:06:53]line Место: АЗС № 130 "Партнер Нефть" [19:06:53]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:06:53]line СНО: Общий режим [19:06:53]line Чек 163 23.08.2024 19:06 [19:06:53]line Смена: 470 ФФД: 1.0 [19:06:53]line ЗНМ: 0300000071 [19:06:53]line РНМ: 0000000000092561 [19:06:53]line Версия ККМ: 001 [19:06:53]line ФМ: 0000000000871778 [19:06:53]line ФД: 178703 [19:06:53]line ФПД: 76948593337278 [19:06:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190652&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178703&fm=76948593337278&tin=02508201610067®Number=0000000000092561&sum=100000 [19:06:53]OFD Sender: Processing packet 178703 [packets to send 499, broken 498] [19:06:53]ProducePacketName [19:06:53]name=ofd_packets/00178703 [19:06:53]OFD Sender: To server: pG, [19:06:53]CommunicateWithHost lk.salyk.kg:30040 [19:06:53]ConnectInit lk.salyk.kg [19:06:53]written 0, free lines is 4095 [19:06:54]Write to MH i2c: 01 00 00 3C 01 3D [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 D7 0C 27 [19:06:54]RasterBufferAndPrint [19:06:54]line [19:06:54]line [19:06:54]line [19:06:54]line [19:06:54]line [19:06:54]written 0, free lines is 3294 [19:06:54]MH_Cut [19:06:54]Write to MH i2c: D1 01 00 43 01 01 16 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: D1 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: D1 01 00 [19:06:54]MH_I2C_Read... [19:06:54]Read from MH i2c: D1 01 00 43 01 00 15 [19:06:54]Write to MH i2c: 01 00 00 44 01 45 [19:06:54]Write i2c OK [19:06:54]MH_I2C_Read... [19:06:54]*** Cut start [19:06:54]*** Partial cut [19:06:54]*** CUTSNS_PIN = 1 [19:06:55]*** CUTSNS_PIN = 0 [19:06:55]*** Brake cut motor [19:06:55]Read from MH i2c: 01 [19:06:55]MH_I2C_Read... [19:06:55]*** Stop cut motor [19:06:55]*** Cut end [19:06:55]Read from MH i2c: 01 07 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [19:06:55]process_action close_receipt done [19:06:55]requested_data is exist [19:06:55]produce_requested_data [19:06:55]requested_item fm.sn is exist - process it [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 11 00 00 [19:06:55]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 17 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [19:06:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:06:55]wFMCommunicate OK [19:06:55]requested_item fd.num is exist - process it [19:06:55]SAM_PROTO_GetFieldsCounters [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 13 00 00 [19:06:55]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 62 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 0F BA 02 00 0E 04 04 00 D6 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 73 [19:06: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 0F BA 02 00 0E 04 04 00 D6 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 [19:06:55]wFMCommunicate OK [19:06:55]SAM_PROTO_GetFieldsCounters done [19:06:55]requested_item shift.num is exist - process it [19:06:55]requested_item shift.opened is exist - process it [19:06:55]req_shift_opened [19:06:55]FM_GetShiftState [19:06:55]SAM_PROTO_GetShiftState [19:06:55]wFMCommunicate request_size=4 [19:06:55]MH_SAM_APDU [19:06:55]CAPDU: 80 13 01 00 [19:06:55]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [19:06:55]Write i2c OK [19:06:55]MH_I2C_Read... [19:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:55]Read from MH i2c: E2 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 0E 00 [19:06:55]MH_I2C_Read... [19:06:55]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9C [19:06:55]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:06:55]wFMCommunicate OK [19:06:55]SAM_PROTO_GetShiftState done [19:06:55]FM_GetShiftState done [19:06:55]req_shift_opened done [19:06:55]requested_item shift.open_date is exist - process it [19:06:55]req_shift_open_date [19:06:55]req_shift_open_date done [19:06:55]produce_requested_data done [19:06:55]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178703,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:06:55]process_action_free close_receipt [19:06:55]json_value_free [19:06:55]json_value_free done [19:06:55]process_json_proto returns [19:06:55]Send response to host [19:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178703,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:06:55]free response buf [19:06:55]execute_script done [19:06:55]execute_script returns [19:06:55]free content buf [19:06:55]Sock 7.Close socket [19:06:55]Sock 7.Thread stoped [19:06:58]ConnectInit Can't take IP for lk.salyk.kg [19:06:58]CommunicateWithHost connect error [19:06:58]CommunicateWithHost err = -1 [19:06:58]OFD Sender: Server communicate error [19:07:03]OFD Sender: Processing packet 178703 [packets to send 499, broken 498] [19:07:03]ProducePacketName [19:07:03]name=ofd_packets/00178703 [19:07:03]OFD Sender: To server: pG, [19:07:03]CommunicateWithHost lk.salyk.kg:30040 [19:07:03]ConnectInit lk.salyk.kg [19:07:08]ConnectInit Can't take IP for lk.salyk.kg [19:07:08]CommunicateWithHost connect error [19:07:08]CommunicateWithHost err = -1 [19:07:08]OFD Sender: Server communicate error [19:07:13]OFD Sender: Processing packet 178703 [packets to send 499, broken 498] [19:07:13]ProducePacketName [19:07:13]name=ofd_packets/00178703 [19:07:13]OFD Sender: To server: pG, [19:07:13]CommunicateWithHost lk.salyk.kg:30040 [19:07:13]ConnectInit lk.salyk.kg [19:07:16]Connected sock=7 [19:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 CE F2 04 01 42 0E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 CC DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 0F BA 02 00 35 04 06 00 45 FB FD 92 63 BE 4A FB 6C E9 2E 78 B3 A9 [19:07:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F7 04 47 00 7C 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 31 37 37 38 10 04 04 00 0F BA 02 00 F4 03 04 00 89 89 C8 66 B6 04 01 00 00 4E E3 46 2A 27 31 84 B6 [19:07:17]CommunicateWithHost err = 0 [19:07:17]CheckOFDResponse [19:07:17]1017 (14) - 77093643461234 [19:07:17]1041 (16) - 0000000000871778 [19:07:17]1040 (4) - 178703 [19:07:17]1012 (4) - 23.08.2024 13:07 [19:07:17]1206 (1) - 0 [19:07:17]OFD Sender: Remove packet 178703 [19:07:17]ProducePacketName [19:07:17]name=ofd_packets/00178703 [19:07:17]NVStorageDeleteData [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:31]accept exits with 10 [19:07:31]New connection [19:07:31]New thread 3067321700 created [19:07:31]Thread 3067178340 joined [19:07:31]Waiting for new connection... [19:07:31] Sock 10.Parse request [19:07:31]Sock 10.Check first char [19:07:31]Sock 10.First char is OK [19:07:31]request: POST /json_proto HTTP/1.0 [19:07:31]Method: POST [19:07:31]URL: /json_proto [19:07:31]Method is POST - this is cgi request [19:07:31]url: /json_proto [19:07:31]query_string will be loaded in cgi processing [19:07:31]execute_cgi json_proto POST (null) [19:07:31]execute_cgi path=json_proto method=POST [19:07:31]POST find Content-Length [19:07:31]Host: 172.17.44.131:8080 [19:07:31]Content-Length: 685 [19:07:31]Content-Type: application/json [19:07:31] [19:07:31]POST finish read [19:07:31]Found Content-Length = 685 [19:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 52.140, "sum" : 1950.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:31]execute_script... [19:07: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)294606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 52.140, "sum" : 1950.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1950.00, "total" : 1950.00, "payments": [ { "type": 0, "sum" : 1950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:07:31]POST & json_proto [19:07:31]process_json_proto [19:07:31]json parsed OK: [19:07:31]protocol is kg_v1.0 [19:07:31]action value=close_receipt [19:07:31]process_action close_receipt [19:07:31]cmd_close_receipt [19:07:31]MH_GetDate [19:07:31]Write to MH i2c: F0 00 00 48 01 38 [19:07:31]Write i2c OK [19:07:31]MH_I2C_Read... [19:07:31]Read from MH i2c: F0 [19:07:31]MH_I2C_Read... [19:07:31]Read from MH i2c: F0 09 00 [19:07:31]MH_I2C_Read... [19:07:31]Read from MH i2c: F0 09 00 48 01 00 F3 DD C8 66 4F 53 BE 66 05 [19:07:31]GetLastDocTimeStamp 1724440012 [19:07:31]current date 1724440051 [19:07:31]FM_GetShiftState [19:07:31]SAM_PROTO_GetShiftState [19:07:31]wFMCommunicate request_size=4 [19:07:31]MH_SAM_APDU [19:07:31]CAPDU: 80 13 01 00 [19:07:31]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [19:07:31]Write i2c OK [19:07:31]MH_I2C_Read... [19:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:31]Read from MH i2c: E2 [19:07:31]MH_I2C_Read... [19:07:31]Read from MH i2c: E2 0E 00 [19:07:31]MH_I2C_Read... [19:07:31]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9E [19:07:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:07:31]wFMCommunicate OK [19:07:31]SAM_PROTO_GetShiftState done [19:07:31]FM_GetShiftState done [19:07:31]opened in 1724371660 [19:07:31]opened+sec_in_day 1724458060 [19:07:31]quantity*price = 195003 [19:07:31]sum+1 = 195005 [19:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1950.00 Внесено: 1950.00 СДАЧА: 0.00 НСП 1% : 17.26 НДС 12% : 207.08 Наличными: 1950.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 164 23.08.2024 19:07 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178704 ФПД: 203042787077967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190731&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178704&fm=203042787077967&tin=02508201610067®Number=0000000000092561&sum=195000 [19:07:32]StoreToDocumentArchive [19:07:32]shift 470 fd 178704 [19:07:32]save to /storage/0470/doc_00178704 [19:07:32]save last doc name /storage/0470/doc_00178704 to /storage/kkm_last_doc_name [19:07:32]save OK [19:07:32]Clear old archive folders... [19:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:07:32]tlvbuf is 01A23C30 [19:07:32]SAM_PROTO_ClearQueue [19:07:32]wFMCommunicate request_size=4 [19:07:32]MH_SAM_APDU [19:07:32]CAPDU: 80 09 00 00 [19:07:32]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [19:07:32]Write i2c OK [19:07:32]MH_I2C_Read... [19:07:32]OFD Sender: No OFD packet to send [19:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:32]Read from MH i2c: E2 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [19:07:32]RAPDU: 90 00 [19:07:32]wFMCommunicate OK [19:07:32]SAM_PROTO_ClearQueue done [19:07:32]KKMCreateOFDPacket [19:07:32]OFDProtocolAddRootSTLVToBuf [19:07:32]FM_MakeSignedData [19:07:32]FM_MakeSignedData [19:07:32]SAM_PROTO_SignData [19:07:32]wFMCommunicate request_size=4 [19:07:32]MH_SAM_APDU [19:07:32]CAPDU: 80 0D 01 02 [19:07:32]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [19:07:32]Write i2c OK [19:07:32]MH_I2C_Read... [19:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:32]Read from MH i2c: E2 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [19:07:32]RAPDU: 90 00 [19:07:32]wFMCommunicate OK [19:07:32]wFMCommunicate request_size=255 [19:07:32]MH_SAM_APDU [19:07:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC CB 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BC F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F3 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 10 BA 02 00 35 04 06 00 B8 AA [19:07:32]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC CB 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BC F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F3 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 10 BA 02 00 35 04 06 00 B8 AA 00 00 6C [19:07:32]Write i2c OK [19:07:32]MH_I2C_Read... [19:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:32]Read from MH i2c: E2 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [19:07:32]RAPDU: 90 00 [19:07:32]wFMCommunicate OK [19:07:32]wFMCommunicate request_size=9 [19:07:32]MH_SAM_APDU [19:07:32]CAPDU: 80 0D 02 02 04 95 32 AF 4F [19:07:32]Write to MH i2c: E2 0C 00 59 01 80 0D 02 02 04 00 95 32 AF 4F 00 00 A1 [19:07:32]Write i2c OK [19:07:32]MH_I2C_Read... [19:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:32]Read from MH i2c: E2 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 [19:07:32]MH_I2C_Read... [19:07:32]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [19:07:32]RAPDU: 90 00 [19:07:32]wFMCommunicate OK [19:07:32]wFMCommunicate request_size=4 [19:07:32]MH_SAM_APDU [19:07:32]CAPDU: 80 0D 03 02 [19:07:32]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [19:07:32]Write i2c OK [19:07:32]MH_I2C_Read... [19:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:33]Read from MH i2c: E2 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: E2 0B 00 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: E2 0B 00 5A 01 00 10 65 3B 4E B4 9D 47 27 90 00 94 [19:07:33]RAPDU: 10 65 3B 4E B4 9D 47 27 90 00 [19:07:33]wFMCommunicate OK [19:07:33]SAM_PROTO_SignData done [19:07:33]FM_MakeSignedData done [19:07:33]CreateOFDProtocolMessage [19:07:33]wFMCommunicate request_size=4 [19:07:33]MH_SAM_APDU [19:07:33]CAPDU: 80 11 00 00 [19:07:33]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [19:07:33]Write i2c OK [19:07:33]MH_I2C_Read... [19:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:33]Read from MH i2c: E2 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: E2 17 00 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [19:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:07:33]wFMCommunicate OK [19:07:33]CreateOFDProtocolMessage done [19:07:33]OFDSenderStorePacket 178704 [19:07:33]StoreOFDPacket docnum=178704 [19:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 C2 0A 06 01 A0 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC CB 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BC F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F3 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 10 BA 02 00 35 04 06 00 B8 AA 95 32 AF 4F 10 65 3B 4E B4 9D 47 27 [19:07:33]CheckFolder [19:07:33]dirname=/storage/ofd_packets [19:07:33]CheckFolder done [19:07:33]ProducePacketName [19:07:33]name=ofd_packets/00178704 [19:07:33]NVStorageSaveData ofd_packets/00178704 [19:07:33]File name is /storage/ofd_packets/00178704 [19:07:33]Write 300 bytes [19:07:33]NVStorageSaveData done [19:07:33]OFDSenderStorePacket done [19:07:33]KKMCreateOFDPacket done [19:07:33]NVStorageSaveData kkm_last_timestamp [19:07:33]File name is /storage/kkm_last_timestamp [19:07:33]Write 4 bytes [19:07:33]NVStorageSaveData done [19:07:33]ExternCall_PrintAddStr [19:07:33]wPrintStart [19:07:33]Write to MH i2c: 01 00 00 5C 01 5D [19:07:33]Write i2c OK [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: 01 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: 01 07 00 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [19:07:33]RasterBufferAndPrint [19:07:33]line Счет N : (1)294606 [19:07:33]line ИНН: 02508201610067 [19:07:33]line Контрольно-Кассовый Чек [19:07:33]line ПРОДАЖА [19:07:33]line ТРК (МРК, ГНК) : 71 [19:07:33]line Товар: 2711129700 [19:07:33]line ГАЗ-К-5 [19:07:33]line 52.140 * 37.40 [19:07:33]line = 1950.04 [19:07:33]line НДС 12% НСП 1% [19:07:33]line > о реализуемом товаре [19:07:33]line ОКРУГЛЕНИЕ: -0.04 [19:07:33]line ИТОГО: 1950.00 [19:07:33]line Внесено: 1950.00 [19:07:33]line СДАЧА: 0.00 [19:07:33]line НСП 1% : 17.26 [19:07:33]line НДС 12% : 207.08 [19:07:33]line Наличными: 1950.00 [19:07:33]line Безнал.: 0.00 [19:07:33]line Место: АЗС № 130 "Партнер Нефть" [19:07:33]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:07:33]line СНО: Общий режим [19:07:33]line Чек 164 23.08.2024 19:07 [19:07:33]line Смена: 470 ФФД: 1.0 [19:07:33]line ЗНМ: 0300000071 [19:07:33]line РНМ: 0000000000092561 [19:07:33]line Версия ККМ: 001 [19:07:33]line ФМ: 0000000000871778 [19:07:33]line ФД: 178704 [19:07:33]line ФПД: 203042787077967 [19:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190731&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178704&fm=203042787077967&tin=02508201610067®Number=0000000000092561&sum=195000 [19:07:33]OFD Sender: Processing packet 178704 [packets to send 499, broken 498] [19:07:33]ProducePacketName [19:07:33]name=ofd_packets/00178704 [19:07:33]OFD Sender: To server: pG, [19:07:33]CommunicateWithHost lk.salyk.kg:30040 [19:07:33]ConnectInit lk.salyk.kg [19:07:33]written 0, free lines is 4095 [19:07:33]Write to MH i2c: 01 00 00 87 01 88 [19:07:33]Write i2c OK [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: 01 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: 01 07 00 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 DC 0C 77 [19:07:33]RasterBufferAndPrint [19:07:33]line [19:07:33]line [19:07:33]line [19:07:33]line [19:07:33]line [19:07:33]written 0, free lines is 3298 [19:07:33]MH_Cut [19:07:33]Write to MH i2c: D1 01 00 8E 01 01 61 [19:07:33]Write i2c OK [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: D1 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: D1 01 00 [19:07:33]MH_I2C_Read... [19:07:33]Read from MH i2c: D1 01 00 8E 01 00 60 [19:07:33]Write to MH i2c: 01 00 00 8F 01 90 [19:07:33]Write i2c OK [19:07:33]MH_I2C_Read... [19:07:33]Connected sock=11 [19:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 C2 0A 06 01 A0 83 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AC CB 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BC F9 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 F9 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 50 00 00 00 00 07 04 06 00 B8 F9 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 F3 DD C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 10 BA 02 00 35 04 06 00 B8 AA 95 32 AF 4F 10 65 3B 4E B4 9D 47 27 [19:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9F 18 47 00 C3 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 31 37 37 38 10 04 04 00 10 BA 02 00 F4 03 04 00 9B 89 C8 66 B6 04 01 00 00 8B 17 12 BC 87 7E 30 40 [19:07:34]CommunicateWithHost err = 0 [19:07:34]CheckOFDResponse [19:07:34]1017 (14) - 77093643461234 [19:07:34]1041 (16) - 0000000000871778 [19:07:34]1040 (4) - 178704 [19:07:34]1012 (4) - 23.08.2024 13:07 [19:07:34]1206 (1) - 0 [19:07:34]OFD Sender: Remove packet 178704 [19:07:34]ProducePacketName [19:07:34]name=ofd_packets/00178704 [19:07:34]NVStorageDeleteData [19:07:34]*** Cut start [19:07:34]*** Partial cut [19:07:34]*** CUTSNS_PIN = 1 [19:07:34]*** CUTSNS_PIN = 0 [19:07:34]*** Brake cut motor [19:07:34]OFD Sender: No OFD packet to send [19:07:35]Read from MH i2c: 01 [19:07:35]MH_I2C_Read... [19:07:35]*** Stop cut motor [19:07:35]*** Cut end [19:07:35]Read from MH i2c: 01 07 00 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [19:07:35]process_action close_receipt done [19:07:35]requested_data is exist [19:07:35]produce_requested_data [19:07:35]requested_item fm.sn is exist - process it [19:07:35]wFMCommunicate request_size=4 [19:07:35]MH_SAM_APDU [19:07:35]CAPDU: 80 11 00 00 [19:07:35]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [19:07:35]Write i2c OK [19:07:35]MH_I2C_Read... [19:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:35]Read from MH i2c: E2 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 17 00 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [19:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:07:35]wFMCommunicate OK [19:07:35]requested_item fd.num is exist - process it [19:07:35]SAM_PROTO_GetFieldsCounters [19:07:35]wFMCommunicate request_size=4 [19:07:35]MH_SAM_APDU [19:07:35]CAPDU: 80 13 00 00 [19:07:35]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [19:07:35]Write i2c OK [19:07:35]MH_I2C_Read... [19:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:35]Read from MH i2c: E2 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 62 00 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 10 BA 02 00 0E 04 04 00 D6 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 C2 [19:07: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 10 BA 02 00 0E 04 04 00 D6 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 [19:07:35]wFMCommunicate OK [19:07:35]SAM_PROTO_GetFieldsCounters done [19:07:35]requested_item shift.num is exist - process it [19:07:35]requested_item shift.opened is exist - process it [19:07:35]req_shift_opened [19:07:35]FM_GetShiftState [19:07:35]SAM_PROTO_GetShiftState [19:07:35]wFMCommunicate request_size=4 [19:07:35]MH_SAM_APDU [19:07:35]CAPDU: 80 13 01 00 [19:07:35]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [19:07:35]Write i2c OK [19:07:35]MH_I2C_Read... [19:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:35]Read from MH i2c: E2 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 0E 00 [19:07:35]MH_I2C_Read... [19:07:35]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E7 [19:07:35]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:07:35]wFMCommunicate OK [19:07:35]SAM_PROTO_GetShiftState done [19:07:35]FM_GetShiftState done [19:07:35]req_shift_opened done [19:07:35]requested_item shift.open_date is exist - process it [19:07:35]req_shift_open_date [19:07:35]req_shift_open_date done [19:07:35]produce_requested_data done [19:07:35]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178704,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:07:35]process_action_free close_receipt [19:07:35]json_value_free [19:07:35]json_value_free done [19:07:35]process_json_proto returns [19:07:35]Send response to host [19:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178704,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:07:35]free response buf [19:07:35]execute_script done [19:07:35]execute_script returns [19:07:35]free content buf [19:07:35]Sock 10.Close socket [19:07:35]Sock 10.Thread stoped [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:00]recv_with_timeout no data received [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:42]recv_with_timeout no data received [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:06]recv_with_timeout no data received [19:09:10]OFD Sender: No OFD packet to send [19:09:14]accept exits with 9 [19:09:14]New connection [19:09:14]New thread 3067178340 created [19:09:14]Thread 3067321700 joined [19:09:14]Waiting for new connection... [19:09:14] Sock 9.Parse request [19:09:14]Sock 9.Check first char [19:09:14]Sock 9.First char is OK [19:09:14]request: POST /json_proto HTTP/1.0 [19:09:14]Method: POST [19:09:14]URL: /json_proto [19:09:14]Method is POST - this is cgi request [19:09:14]url: /json_proto [19:09:14]query_string will be loaded in cgi processing [19:09:14]execute_cgi json_proto POST (null) [19:09:14]execute_cgi path=json_proto method=POST [19:09:14]POST find Content-Length [19:09:14]Host: 172.17.44.131:8080 [19:09:14]Content-Length: 677 [19:09:14]Content-Type: application/json [19:09:14] [19:09:14]POST finish read [19:09:14]Found Content-Length = 677 [19:09:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294618", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [19:09:14]execute_script... [19:09: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)294618", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [19:09:14]POST & json_proto [19:09:14]process_json_proto [19:09:14]json parsed OK: [19:09:14]protocol is kg_v1.0 [19:09:14]action value=close_receipt [19:09:14]process_action close_receipt [19:09:14]cmd_close_receipt [19:09:14]MH_GetDate [19:09:14]Write to MH i2c: F0 00 00 93 01 83 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: F0 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: F0 09 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: F0 09 00 93 01 00 5A DE C8 66 4F 53 BE 66 B8 [19:09:14]GetLastDocTimeStamp 1724440051 [19:09:14]current date 1724440154 [19:09:14]FM_GetShiftState [19:09:14]SAM_PROTO_GetShiftState [19:09:14]wFMCommunicate request_size=4 [19:09:14]MH_SAM_APDU [19:09:14]CAPDU: 80 13 01 00 [19:09:14]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [19:09:14]Write i2c OK [19:09:14]MH_I2C_Read... [19:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:14]Read from MH i2c: E2 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 [19:09:14]MH_I2C_Read... [19:09:14]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E9 [19:09:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:09:14]wFMCommunicate OK [19:09:14]SAM_PROTO_GetShiftState done [19:09:14]FM_GetShiftState done [19:09:14]opened in 1724371660 [19:09:14]opened+sec_in_day 1724458060 [19:09:14]quantity*price = 70044 [19:09:14]sum+1 = 70046 [19:09:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 165 23.08.2024 19:09 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178705 ФПД: 45439909298807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190914&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178705&fm=45439909298807&tin=02508201610067®Number=0000000000092561&sum=70000 [19:09:15]StoreToDocumentArchive [19:09:15]shift 470 fd 178705 [19:09:15]save to /storage/0470/doc_00178705 [19:09:15]save last doc name /storage/0470/doc_00178705 to /storage/kkm_last_doc_name [19:09:15]save OK [19:09:15]Clear old archive folders... [19:09:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:15]tlvbuf is 01A28210 [19:09:15]SAM_PROTO_ClearQueue [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 09 00 00 [19:09:15]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]SAM_PROTO_ClearQueue done [19:09:15]KKMCreateOFDPacket [19:09:15]OFDProtocolAddRootSTLVToBuf [19:09:15]FM_MakeSignedData [19:09:15]FM_MakeSignedData [19:09:15]SAM_PROTO_SignData [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 01 02 [19:09:15]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]wFMCommunicate request_size=255 [19:09:15]MH_SAM_APDU [19:09: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 A5 00 00 00 F4 03 04 00 5A DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 11 BA 02 00 35 04 06 00 29 [19:09:15]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 A5 00 00 00 F4 03 04 00 5A DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 11 BA 02 00 35 04 06 00 29 00 00 6E [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]wFMCommunicate request_size=10 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 02 02 05 53 CD A7 02 77 [19:09:15]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 53 CD A7 02 77 00 00 69 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [19:09:15]RAPDU: 90 00 [19:09:15]wFMCommunicate OK [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 0D 03 02 [19:09:15]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 0B 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 0B 00 A5 01 00 AD 69 64 29 C2 FA 4D 30 90 00 FE [19:09:15]RAPDU: AD 69 64 29 C2 FA 4D 30 90 00 [19:09:15]wFMCommunicate OK [19:09:15]SAM_PROTO_SignData done [19:09:15]FM_MakeSignedData done [19:09:15]CreateOFDProtocolMessage [19:09:15]wFMCommunicate request_size=4 [19:09:15]MH_SAM_APDU [19:09:15]CAPDU: 80 11 00 00 [19:09:15]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:15]Read from MH i2c: E2 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 17 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [19:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:09:15]wFMCommunicate OK [19:09:15]CreateOFDProtocolMessage done [19:09:15]OFDSenderStorePacket 178705 [19:09:15]StoreOFDPacket docnum=178705 [19:09:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 3D B6 07 01 BF 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 A5 00 00 00 F4 03 04 00 5A DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 11 BA 02 00 35 04 06 00 29 53 CD A7 02 77 AD 69 64 29 C2 FA 4D 30 [19:09:15]CheckFolder [19:09:15]dirname=/storage/ofd_packets [19:09:15]CheckFolder done [19:09:15]ProducePacketName [19:09:15]name=ofd_packets/00178705 [19:09:15]NVStorageSaveData ofd_packets/00178705 [19:09:15]File name is /storage/ofd_packets/00178705 [19:09:15]Write 301 bytes [19:09:15]NVStorageSaveData done [19:09:15]OFDSenderStorePacket done [19:09:15]KKMCreateOFDPacket done [19:09:15]NVStorageSaveData kkm_last_timestamp [19:09:15]File name is /storage/kkm_last_timestamp [19:09:15]Write 4 bytes [19:09:15]NVStorageSaveData done [19:09:15]ExternCall_PrintAddStr [19:09:15]wPrintStart [19:09:15]Write to MH i2c: 01 00 00 A7 01 A8 [19:09:15]Write i2c OK [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 07 00 [19:09:15]MH_I2C_Read... [19:09:15]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [19:09:15]RasterBufferAndPrint [19:09:15]line Счет N : (1)294618 [19:09:15]line ИНН: 02508201610067 [19:09:15]line Контрольно-Кассовый Чек [19:09:15]line ПРОДАЖА [19:09:15]line ТРК (МРК, ГНК) : 53 [19:09:15]line Товар: 2710124500 [19:09:15]line Аи-95-К-5 [19:09:15]line 9.440 * 74.20 [19:09:15]line = 700.45 [19:09:15]line НДС 12% НСП 1% [19:09:15]line > о реализуемом товаре [19:09:15]line ОКРУГЛЕНИЕ: -0.45 [19:09:15]line ИТОГО: 700.00 [19:09:15]line Внесено: 700.00 [19:09:15]line СДАЧА: 0.00 [19:09:15]line НСП 1% : 6.20 [19:09:15]line НДС 12% : 74.38 [19:09:15]line Наличными: 700.00 [19:09:15]line Безнал.: 0.00 [19:09:15]line Место: АЗС № 130 "Партнер Нефть" [19:09:15]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:09:15]line СНО: Общий режим [19:09:15]line Чек 165 23.08.2024 19:09 [19:09:15]line Смена: 470 ФФД: 1.0 [19:09:15]line ЗНМ: 0300000071 [19:09:15]line РНМ: 0000000000092561 [19:09:15]line Версия ККМ: 001 [19:09:15]line ФМ: 0000000000871778 [19:09:15]line ФД: 178705 [19:09:15]line ФПД: 45439909298807 [19:09:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190914&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178705&fm=45439909298807&tin=02508201610067®Number=0000000000092561&sum=70000 [19:09:15]written 0, free lines is 4095 [19:09:15]OFD Sender: Processing packet 178705 [packets to send 499, broken 498] [19:09:15]ProducePacketName [19:09:15]name=ofd_packets/00178705 [19:09:15]OFD Sender: To server: pG, [19:09:15]CommunicateWithHost lk.salyk.kg:30040 [19:09:15]ConnectInit lk.salyk.kg [19:09:16]Write to MH i2c: 01 00 00 D2 01 D3 [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 07 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 CF 0C B5 [19:09:16]RasterBufferAndPrint [19:09:16]line [19:09:16]line [19:09:16]line [19:09:16]line [19:09:16]line [19:09:16]written 0, free lines is 3286 [19:09:16]MH_Cut [19:09:16]Write to MH i2c: D1 01 00 D9 01 01 AC [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: D1 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: D1 01 00 [19:09:16]MH_I2C_Read... [19:09:16]Read from MH i2c: D1 01 00 D9 01 00 AB [19:09:16]Write to MH i2c: 01 00 00 DA 01 DB [19:09:16]Write i2c OK [19:09:16]MH_I2C_Read... [19:09:17]*** Cut start [19:09:17]*** Partial cut [19:09:17]*** CUTSNS_PIN = 1 [19:09:17]*** CUTSNS_PIN = 0 [19:09:17]Connected sock=10 [19:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 3D B6 07 01 BF 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 A5 00 00 00 F4 03 04 00 5A DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 11 BA 02 00 35 04 06 00 29 53 CD A7 02 77 AD 69 64 29 C2 FA 4D 30 [19:09:17]*** Brake cut motor [19:09:17]Read from MH i2c: 01 [19:09:17]MH_I2C_Read... [19:09:17]*** Stop cut motor [19:09:17]*** Cut end [19:09:17]Read from MH i2c: 01 07 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [19:09:17]process_action close_receipt done [19:09:17]requested_data is exist [19:09:17]produce_requested_data [19:09:17]requested_item fm.sn is exist - process it [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 11 00 00 [19:09:17]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 17 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [19:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:09:17]wFMCommunicate OK [19:09:17]requested_item fd.num is exist - process it [19:09:17]SAM_PROTO_GetFieldsCounters [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 13 00 00 [19:09:17]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 62 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 11 BA 02 00 0E 04 04 00 D6 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 11 [19:09: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 11 BA 02 00 0E 04 04 00 D6 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 [19:09:17]wFMCommunicate OK [19:09:17]SAM_PROTO_GetFieldsCounters done [19:09:17]requested_item shift.num is exist - process it [19:09:17]requested_item shift.opened is exist - process it [19:09:17]req_shift_opened [19:09:17]FM_GetShiftState [19:09:17]SAM_PROTO_GetShiftState [19:09:17]wFMCommunicate request_size=4 [19:09:17]MH_SAM_APDU [19:09:17]CAPDU: 80 13 01 00 [19:09:17]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [19:09:17]Write i2c OK [19:09:17]MH_I2C_Read... [19:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:17]Read from MH i2c: E2 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 0E 00 [19:09:17]MH_I2C_Read... [19:09:17]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 32 [19:09:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:09:17]wFMCommunicate OK [19:09:17]SAM_PROTO_GetShiftState done [19:09:17]FM_GetShiftState done [19:09:17]req_shift_opened done [19:09:17]requested_item shift.open_date is exist - process it [19:09:17]req_shift_open_date [19:09:17]req_shift_open_date done [19:09:17]produce_requested_data done [19:09:17]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178705,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:09:17]process_action_free close_receipt [19:09:17]json_value_free [19:09:17]json_value_free done [19:09:17]process_json_proto returns [19:09:17]Send response to host [19:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178705,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:09:17]free response buf [19:09:17]execute_script done [19:09:17]execute_script returns [19:09:17]free content buf [19:09:17]Sock 9.Close socket [19:09:17]Sock 9.Thread stoped [19:09:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D1 BB 47 00 1D 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 11 BA 02 00 F4 03 04 00 02 8A C8 66 B6 04 01 00 00 52 73 8D 0D CF F7 72 93 [19:09:19]CommunicateWithHost err = 0 [19:09:19]CheckOFDResponse [19:09:19]1017 (14) - 77093643461234 [19:09:19]1041 (16) - 0000000000871778 [19:09:19]1040 (4) - 178705 [19:09:19]1012 (4) - 23.08.2024 13:09 [19:09:19]1206 (1) - 0 [19:09:19]OFD Sender: Remove packet 178705 [19:09:19]ProducePacketName [19:09:19]name=ofd_packets/00178705 [19:09:19]NVStorageDeleteData [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:28]accept exits with 7 [19:09:28]New connection [19:09:28]New thread 3067321700 created [19:09:28]Thread 3067178340 joined [19:09:28]Waiting for new connection... [19:09:28] Sock 7.Parse request [19:09:28]Sock 7.Check first char [19:09:28]Sock 7.First char is OK [19:09:28]request: POST /json_proto HTTP/1.0 [19:09:28]Method: POST [19:09:28]URL: /json_proto [19:09:28]Method is POST - this is cgi request [19:09:28]url: /json_proto [19:09:28]query_string will be loaded in cgi processing [19:09:28]execute_cgi json_proto POST (null) [19:09:28]execute_cgi path=json_proto method=POST [19:09:28]POST find Content-Length [19:09:28]Host: 172.17.44.131:8080 [19:09:28]Content-Length: 675 [19:09:28]Content-Type: application/json [19:09:28] [19:09:28]POST finish read [19:09:28]Found Content-Length = 675 [19:09:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 0.100, "sum" : 3.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:28]execute_script... [19:09: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)294617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 0.100, "sum" : 3.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 3.00, "payments": [ { "type": 0, "sum" : 3.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:28]POST & json_proto [19:09:28]process_json_proto [19:09:28]json parsed OK: [19:09:28]protocol is kg_v1.0 [19:09:28]action value=close_receipt [19:09:28]process_action close_receipt [19:09:28]cmd_close_receipt [19:09:28]MH_GetDate [19:09:28]Write to MH i2c: F0 00 00 DE 01 CE [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: F0 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: F0 09 00 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: F0 09 00 DE 01 00 68 DE C8 66 4F 53 BE 66 11 [19:09:28]GetLastDocTimeStamp 1724440154 [19:09:28]current date 1724440168 [19:09:28]FM_GetShiftState [19:09:28]SAM_PROTO_GetShiftState [19:09:28]wFMCommunicate request_size=4 [19:09:28]MH_SAM_APDU [19:09:28]CAPDU: 80 13 01 00 [19:09:28]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [19:09:28]Write i2c OK [19:09:28]MH_I2C_Read... [19:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:28]Read from MH i2c: E2 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: E2 0E 00 [19:09:28]MH_I2C_Read... [19:09:28]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 34 [19:09:28]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:09:28]wFMCommunicate OK [19:09:28]SAM_PROTO_GetShiftState done [19:09:28]FM_GetShiftState done [19:09:28]opened in 1724371660 [19:09:28]opened+sec_in_day 1724458060 [19:09:28]quantity*price = 374 [19:09:28]sum+1 = 375 [19:09:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 3.00 Внесено: 2500.00 СДАЧА: 2497.00 НСП 1% : 0.03 НДС 12% : 0.40 Наличными: 3.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 166 23.08.2024 19:09 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178706 ФПД: 66761729269977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190928&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178706&fm=66761729269977&tin=02508201610067®Number=0000000000092561&sum=300 [19:09:29]StoreToDocumentArchive [19:09:29]shift 470 fd 178706 [19:09:29]save to /storage/0470/doc_00178706 [19:09:29]save last doc name /storage/0470/doc_00178706 to /storage/kkm_last_doc_name [19:09:29]save OK [19:09:29]Clear old archive folders... [19:09:29]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:09:29]tlvbuf is 01A25E80 [19:09:29]SAM_PROTO_ClearQueue [19:09:29]wFMCommunicate request_size=4 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 09 00 00 [19:09:29]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [19:09:29]RAPDU: 90 00 [19:09:29]wFMCommunicate OK [19:09:29]SAM_PROTO_ClearQueue done [19:09:29]KKMCreateOFDPacket [19:09:29]OFDProtocolAddRootSTLVToBuf [19:09:29]FM_MakeSignedData [19:09:29]FM_MakeSignedData [19:09:29]SAM_PROTO_SignData [19:09:29]wFMCommunicate request_size=4 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 0D 01 02 [19:09:29]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [19:09:29]RAPDU: 90 00 [19:09:29]wFMCommunicate OK [19:09:29]wFMCommunicate request_size=255 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 76 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 68 DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 12 BA 02 00 35 04 06 00 3C B8 [19:09:29]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 76 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 68 DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 12 BA 02 00 35 04 06 00 3C B8 00 00 E2 [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [19:09:29]RAPDU: 90 00 [19:09:29]wFMCommunicate OK [19:09:29]wFMCommunicate request_size=9 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 0D 02 02 04 2D 28 60 D9 [19:09:29]Write to MH i2c: E2 0C 00 EF 01 80 0D 02 02 04 00 2D 28 60 D9 00 00 00 [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [19:09:29]RAPDU: 90 00 [19:09:29]wFMCommunicate OK [19:09:29]wFMCommunicate request_size=4 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 0D 03 02 [19:09:29]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 0B 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 0B 00 F0 01 00 CB 79 64 FA 15 4D EE 4E 90 00 AD [19:09:29]RAPDU: CB 79 64 FA 15 4D EE 4E 90 00 [19:09:29]wFMCommunicate OK [19:09:29]SAM_PROTO_SignData done [19:09:29]FM_MakeSignedData done [19:09:29]CreateOFDProtocolMessage [19:09:29]wFMCommunicate request_size=4 [19:09:29]MH_SAM_APDU [19:09:29]CAPDU: 80 11 00 00 [19:09:29]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:29]Read from MH i2c: E2 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 17 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C5 [19:09:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:09:29]wFMCommunicate OK [19:09:29]CreateOFDProtocolMessage done [19:09:29]OFDSenderStorePacket 178706 [19:09:29]StoreOFDPacket docnum=178706 [19:09:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 88 F2 06 01 C9 C6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 64 00 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 76 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 00 00 00 00 00 07 04 06 00 2C 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 68 DE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 12 BA 02 00 35 04 06 00 3C B8 2D 28 60 D9 CB 79 64 FA 15 4D EE 4E [19:09:29]CheckFolder [19:09:29]dirname=/storage/ofd_packets [19:09:29]CheckFolder done [19:09:29]ProducePacketName [19:09:29]name=ofd_packets/00178706 [19:09:29]NVStorageSaveData ofd_packets/00178706 [19:09:29]File name is /storage/ofd_packets/00178706 [19:09:29]Write 300 bytes [19:09:29]NVStorageSaveData done [19:09:29]OFDSenderStorePacket done [19:09:29]KKMCreateOFDPacket done [19:09:29]NVStorageSaveData kkm_last_timestamp [19:09:29]File name is /storage/kkm_last_timestamp [19:09:29]Write 4 bytes [19:09:29]NVStorageSaveData done [19:09:29]ExternCall_PrintAddStr [19:09:29]wPrintStart [19:09:29]Write to MH i2c: 01 00 00 F2 01 F3 [19:09:29]Write i2c OK [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: 01 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: 01 07 00 [19:09:29]MH_I2C_Read... [19:09:29]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [19:09:29]RasterBufferAndPrint [19:09:29]line Счет N : (1)294617 [19:09:29]line ИНН: 02508201610067 [19:09:29]line Контрольно-Кассовый Чек [19:09:29]line ПРОДАЖА [19:09:29]line ТРК (МРК, ГНК) : 81 [19:09:29]line Товар: 2711129700 [19:09:29]line ГАЗ-К-5 [19:09:29]line 0.100 * 37.40 [19:09:29]line = 3.74 [19:09:29]line НДС 12% НСП 1% [19:09:29]line > о реализуемом товаре [19:09:29]line ОКРУГЛЕНИЕ: -0.74 [19:09:29]line ИТОГО: 3.00 [19:09:29]line Внесено: 2500.00 [19:09:29]line СДАЧА: 2497.00 [19:09:29]line НСП 1% : 0.03 [19:09:29]line НДС 12% : 0.40 [19:09:29]line Наличными: 3.00 [19:09:29]line Безнал.: 0.00 [19:09:29]line Место: АЗС № 130 "Партнер Нефть" [19:09:29]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:09:29]line СНО: Общий режим [19:09:29]line Чек 166 23.08.2024 19:09 [19:09:29]line Смена: 470 ФФД: 1.0 [19:09:29]line ЗНМ: 0300000071 [19:09:29]line РНМ: 0000000000092561 [19:09:29]line Версия ККМ: 001 [19:09:29]line ФМ: 0000000000871778 [19:09:29]line ФД: 178706 [19:09:29]line ФПД: 66761729269977 [19:09:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T190928&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178706&fm=66761729269977&tin=02508201610067®Number=0000000000092561&sum=300 [19:09:29]written 0, free lines is 4095 [19:09:29]OFD Sender: Processing packet 178706 [packets to send 499, broken 498] [19:09:29]ProducePacketName [19:09:29]name=ofd_packets/00178706 [19:09:29]OFD Sender: To server: pG, [19:09:29]CommunicateWithHost lk.salyk.kg:30040 [19:09:29]ConnectInit lk.salyk.kg [19:09:30]Write to MH i2c: 01 00 00 1D 02 1F [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: 01 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: 01 07 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 CF 0C 01 [19:09:30]RasterBufferAndPrint [19:09:30]line [19:09:30]line [19:09:30]line [19:09:30]line [19:09:30]line [19:09:30]written 0, free lines is 3289 [19:09:30]MH_Cut [19:09:30]Write to MH i2c: D1 01 00 24 02 01 F8 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: D1 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: D1 01 00 [19:09:30]MH_I2C_Read... [19:09:30]Read from MH i2c: D1 01 00 24 02 00 F7 [19:09:30]Write to MH i2c: 01 00 00 25 02 27 [19:09:30]Write i2c OK [19:09:30]MH_I2C_Read... [19:09:31]*** Cut start [19:09:31]*** Partial cut [19:09:31]*** CUTSNS_PIN = 1 [19:09:31]*** CUTSNS_PIN = 0 [19:09:31]*** Brake cut motor [19:09:31]Read from MH i2c: 01 [19:09:31]MH_I2C_Read... [19:09:31]*** Stop cut motor [19:09:31]*** Cut end [19:09:31]Read from MH i2c: 01 07 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [19:09:31]process_action close_receipt done [19:09:31]requested_data is exist [19:09:31]produce_requested_data [19:09:31]requested_item fm.sn is exist - process it [19:09:31]wFMCommunicate request_size=4 [19:09:31]MH_SAM_APDU [19:09:31]CAPDU: 80 11 00 00 [19:09:31]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:31]Read from MH i2c: E2 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 17 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FB [19:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:09:31]wFMCommunicate OK [19:09:31]requested_item fd.num is exist - process it [19:09:31]SAM_PROTO_GetFieldsCounters [19:09:31]wFMCommunicate request_size=4 [19:09:31]MH_SAM_APDU [19:09:31]CAPDU: 80 13 00 00 [19:09:31]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:31]Read from MH i2c: E2 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 62 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 12 BA 02 00 0E 04 04 00 D6 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 61 [19: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 12 BA 02 00 0E 04 04 00 D6 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 [19:09:31]wFMCommunicate OK [19:09:31]SAM_PROTO_GetFieldsCounters done [19:09:31]requested_item shift.num is exist - process it [19:09:31]requested_item shift.opened is exist - process it [19:09:31]req_shift_opened [19:09:31]FM_GetShiftState [19:09:31]SAM_PROTO_GetShiftState [19:09:31]wFMCommunicate request_size=4 [19:09:31]MH_SAM_APDU [19:09:31]CAPDU: 80 13 01 00 [19:09:31]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [19:09:31]Write i2c OK [19:09:31]MH_I2C_Read... [19:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:31]Read from MH i2c: E2 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 0E 00 [19:09:31]MH_I2C_Read... [19:09:31]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7E [19:09:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:09:31]wFMCommunicate OK [19:09:31]SAM_PROTO_GetShiftState done [19:09:31]FM_GetShiftState done [19:09:31]req_shift_opened done [19:09:31]requested_item shift.open_date is exist - process it [19:09:31]req_shift_open_date [19:09:31]req_shift_open_date done [19:09:31]produce_requested_data done [19:09:31]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178706,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:09:31]process_action_free close_receipt [19:09:31]json_value_free [19:09:31]json_value_free done [19:09:31]process_json_proto returns [19:09:31]Send response to host [19:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178706,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:09:31]free response buf [19:09:31]execute_script done [19:09:31]execute_script returns [19:09:31]free content buf [19:09:31]Sock 7.Close socket [19:09:31]Sock 7.Thread stoped [19:09:34]ConnectInit Can't take IP for lk.salyk.kg [19:09:34]CommunicateWithHost connect error [19:09:34]CommunicateWithHost err = -1 [19:09:34]OFD Sender: Server communicate error [19:09:39]OFD Sender: Processing packet 178706 [packets to send 499, broken 498] [19:09:39]ProducePacketName [19:09:39]name=ofd_packets/00178706 [19:09:39]OFD Sender: To server: pG, [19:09:39]CommunicateWithHost lk.salyk.kg:30040 [19:09:39]ConnectInit lk.salyk.kg [19:09:44]recv_with_timeout no data received [19:09:44]ConnectInit Can't take IP for lk.salyk.kg [19:09:44]CommunicateWithHost connect error [19:09:44]CommunicateWithHost err = -1 [19:09:44]OFD Sender: Server communicate error [19:09:50]OFD Sender: Processing packet 178706 [packets to send 499, broken 498] [19:09:50]ProducePacketName [19:09:50]name=ofd_packets/00178706 [19:09:50]OFD Sender: To server: pG, [19:09:50]CommunicateWithHost lk.salyk.kg:30040 [19:09:50]ConnectInit lk.salyk.kg [19:09:55]ConnectInit Can't take IP for lk.salyk.kg [19:09:55]CommunicateWithHost connect error [19:09:55]CommunicateWithHost err = -1 [19:09:55]OFD Sender: Server communicate error [19:10:00]OFD Sender: Processing packet 178706 [packets to send 499, broken 498] [19:10:00]ProducePacketName [19:10:00]name=ofd_packets/00178706 [19:25:52]ConnectInit Can't connect to host [19:25:53]OFD Sender: Processing packet 178707 [packets to send 499, broken 498] [19:25:53]ProducePacketName [19:25:53]name=ofd_packets/00178707 [19:25:53]OFD Sender: To server: pG, [19:25:53]CommunicateWithHost lk.salyk.kg:30040 [19:25:53]ConnectInit lk.salyk.kg [19:25:57]Connected sock=9 [19:25:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 7B F1 06 01 8A 42 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 14 DF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 13 BA 02 00 35 04 06 00 46 2D 7F B7 D4 7D FD 16 EA 35 B7 7A 90 75 [19:25:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AD 7F 47 00 1A 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 31 37 37 38 10 04 04 00 13 BA 02 00 F4 03 04 00 EA 8D C8 66 B6 04 01 00 00 DF BA B4 AD B0 D1 34 36 [19:25:58]CommunicateWithHost err = 0 [19:25:58]CheckOFDResponse [19:25:58]1017 (14) - 77093643461234 [19:25:58]1041 (16) - 0000000000871778 [19:25:58]1040 (4) - 178707 [19:25:58]1012 (4) - 23.08.2024 13:26 [19:25:58]1206 (1) - 0 [19:25:58]OFD Sender: Remove packet 178707 [19:25:58]ProducePacketName [19:25:58]name=ofd_packets/00178707 [19:25:58]NVStorageDeleteData [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]recv_with_timeout no data received [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:19]recv_with_timeout no data received [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:02]recv_with_timeout no data received [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:56]recv_with_timeout no data received [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:27]recv_with_timeout no data received [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:13]recv_with_timeout no data received [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]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:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:04]recv_with_timeout no data received [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:38:57]accept exits with 7 [19:38:57]New connection [19:38:57]New thread 3067321700 created [19:38:57]Thread 3067178340 joined [19:38:57]Waiting for new connection... [19:38:57] Sock 7.Parse request [19:38:57]Sock 7.Check first char [19:38:57]Sock 7.First char is OK [19:38:57]request: POST /json_proto HTTP/1.0 [19:38:57]Method: POST [19:38:57]URL: /json_proto [19:38:57]Method is POST - this is cgi request [19:38:57]url: /json_proto [19:38:57]query_string will be loaded in cgi processing [19:38:57]execute_cgi json_proto POST (null) [19:38:57]execute_cgi path=json_proto method=POST [19:38:57]POST find Content-Length [19:38:57]Host: 172.17.44.131:8080 [19:38:57]Content-Length: 677 [19:38:57]Content-Type: application/json [19:38:57] [19:38:57]POST finish read [19:38:57]Found Content-Length = 677 [19:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294644", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:57]execute_script... [19:38: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)294644", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:57]POST & json_proto [19:38:57]process_json_proto [19:38:57]json parsed OK: [19:38:57]protocol is kg_v1.0 [19:38:57]action value=close_receipt [19:38:57]process_action close_receipt [19:38:57]cmd_close_receipt [19:38:57]MH_GetDate [19:38:57]Write to MH i2c: F0 00 00 74 02 65 [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: F0 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: F0 09 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: F0 09 00 74 02 00 51 E5 C8 66 4F 53 BE 66 98 [19:38:57]GetLastDocTimeStamp 1724440340 [19:38:57]current date 1724441937 [19:38:57]FM_GetShiftState [19:38:57]SAM_PROTO_GetShiftState [19:38:57]wFMCommunicate request_size=4 [19:38:57]MH_SAM_APDU [19:38:57]CAPDU: 80 13 01 00 [19:38:57]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [19:38:57]Write i2c OK [19:38:57]MH_I2C_Read... [19:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:57]Read from MH i2c: E2 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 0E 00 [19:38:57]MH_I2C_Read... [19:38:57]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CB [19:38:57]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:38:57]wFMCommunicate OK [19:38:57]SAM_PROTO_GetShiftState done [19:38:57]FM_GetShiftState done [19:38:57]opened in 1724371660 [19:38:57]opened+sec_in_day 1724458060 [19:38:57]quantity*price = 50036 [19:38:57]sum+1 = 50037 [19:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 168 23.08.2024 19:38 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178708 ФПД: 153557695681738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T193857&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178708&fm=153557695681738&tin=02508201610067®Number=0000000000092561&sum=50000 [19:38:58]StoreToDocumentArchive [19:38:58]shift 470 fd 178708 [19:38:58]save to /storage/0470/doc_00178708 [19:38:58]save last doc name /storage/0470/doc_00178708 to /storage/kkm_last_doc_name [19:38:58]save OK [19:38:58]Clear old archive folders... [19:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:58]tlvbuf is 01A22070 [19:38:58]SAM_PROTO_ClearQueue [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 09 00 00 [19:38:58]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [19:38:58]RAPDU: 90 00 [19:38:58]wFMCommunicate OK [19:38:58]SAM_PROTO_ClearQueue done [19:38:58]KKMCreateOFDPacket [19:38:58]OFDProtocolAddRootSTLVToBuf [19:38:58]FM_MakeSignedData [19:38:58]FM_MakeSignedData [19:38:58]SAM_PROTO_SignData [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 0D 01 02 [19:38:58]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [19:38:58]RAPDU: 90 00 [19:38:58]wFMCommunicate OK [19:38:58]wFMCommunicate request_size=255 [19:38:58]MH_SAM_APDU [19:38: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 A8 00 00 00 F4 03 04 00 51 E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 14 BA 02 00 35 04 06 00 8B [19:38:58]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 A8 00 00 00 F4 03 04 00 51 E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 14 BA 02 00 35 04 06 00 8B 00 00 BF [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [19:38:58]RAPDU: 90 00 [19:38:58]wFMCommunicate OK [19:38:58]wFMCommunicate request_size=10 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 0D 02 02 05 A8 EF E7 54 CA [19:38:58]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 A8 EF E7 54 CA 00 00 A7 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [19:38:58]RAPDU: 90 00 [19:38:58]wFMCommunicate OK [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 0D 03 02 [19:38:58]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 0B 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 0B 00 86 02 00 94 E4 82 BF EA 9F 87 95 90 00 62 [19:38:58]RAPDU: 94 E4 82 BF EA 9F 87 95 90 00 [19:38:58]wFMCommunicate OK [19:38:58]SAM_PROTO_SignData done [19:38:58]FM_MakeSignedData done [19:38:58]CreateOFDProtocolMessage [19:38:58]wFMCommunicate request_size=4 [19:38:58]MH_SAM_APDU [19:38:58]CAPDU: 80 11 00 00 [19:38:58]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:58]Read from MH i2c: E2 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 17 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5C [19:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:38:58]wFMCommunicate OK [19:38:58]CreateOFDProtocolMessage done [19:38:58]OFDSenderStorePacket 178708 [19:38:58]StoreOFDPacket docnum=178708 [19:38:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 84 06 07 01 A8 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 A8 00 00 00 F4 03 04 00 51 E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 14 BA 02 00 35 04 06 00 8B A8 EF E7 54 CA 94 E4 82 BF EA 9F 87 95 [19:38:58]CheckFolder [19:38:58]dirname=/storage/ofd_packets [19:38:58]CheckFolder done [19:38:58]ProducePacketName [19:38:58]name=ofd_packets/00178708 [19:38:58]NVStorageSaveData ofd_packets/00178708 [19:38:58]File name is /storage/ofd_packets/00178708 [19:38:58]Write 301 bytes [19:38:58]NVStorageSaveData done [19:38:58]OFDSenderStorePacket done [19:38:58]KKMCreateOFDPacket done [19:38:58]NVStorageSaveData kkm_last_timestamp [19:38:58]File name is /storage/kkm_last_timestamp [19:38:58]Write 4 bytes [19:38:58]NVStorageSaveData done [19:38:58]ExternCall_PrintAddStr [19:38:58]wPrintStart [19:38:58]Write to MH i2c: 01 00 00 88 02 8A [19:38:58]Write i2c OK [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 07 00 [19:38:58]MH_I2C_Read... [19:38:58]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [19:38:58]RasterBufferAndPrint [19:38:58]line Счет N : (1)294644 [19:38:58]line ИНН: 02508201610067 [19:38:58]line Контрольно-Кассовый Чек [19:38:58]line ПРОДАЖА [19:38:58]line ТРК (МРК, ГНК) : 52 [19:38:58]line Товар: 2710124130 [19:38:58]line Аи-92-К-5 [19:38:58]line 7.380 * 67.80 [19:38:58]line = 500.36 [19:38:58]line НДС 12% НСП 1% [19:38:58]line > о реализуемом товаре [19:38:58]line ОКРУГЛЕНИЕ: -0.36 [19:38:58]line ИТОГО: 500.00 [19:38:58]line Внесено: 500.00 [19:38:58]line СДАЧА: 0.00 [19:38:58]line НСП 1% : 4.43 [19:38:58]line НДС 12% : 53.14 [19:38:58]line Наличными: 500.00 [19:38:58]line Безнал.: 0.00 [19:38:58]line Место: АЗС № 130 "Партнер Нефть" [19:38:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:38:58]line СНО: Общий режим [19:38:58]line Чек 168 23.08.2024 19:38 [19:38:58]line Смена: 470 ФФД: 1.0 [19:38:58]line ЗНМ: 0300000071 [19:38:58]line РНМ: 0000000000092561 [19:38:58]line Версия ККМ: 001 [19:38:58]line ФМ: 0000000000871778 [19:38:58]line ФД: 178708 [19:38:58]line ФПД: 153557695681738 [19:38:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T193857&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178708&fm=153557695681738&tin=02508201610067®Number=0000000000092561&sum=50000 [19:38:58]written 0, free lines is 4095 [19:38:58]OFD Sender: Processing packet 178708 [packets to send 499, broken 498] [19:38:58]ProducePacketName [19:38:58]name=ofd_packets/00178708 [19:38:58]OFD Sender: To server: pG, [19:38:58]CommunicateWithHost lk.salyk.kg:30040 [19:38:58]ConnectInit lk.salyk.kg [19:38:59]Write to MH i2c: 01 00 00 B3 02 B5 [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 07 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 D3 0C 9B [19:38:59]RasterBufferAndPrint [19:38:59]line [19:38:59]line [19:38:59]line [19:38:59]line [19:38:59]line [19:38:59]written 0, free lines is 3290 [19:38:59]MH_Cut [19:38:59]Write to MH i2c: D1 01 00 BA 02 01 8E [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: D1 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: D1 01 00 [19:38:59]MH_I2C_Read... [19:38:59]Read from MH i2c: D1 01 00 BA 02 00 8D [19:38:59]Write to MH i2c: 01 00 00 BB 02 BD [19:38:59]Write i2c OK [19:38:59]MH_I2C_Read... [19:39:00]*** Cut start [19:39:00]*** Partial cut [19:39:00]*** CUTSNS_PIN = 1 [19:39:00]*** CUTSNS_PIN = 0 [19:39:00]*** Brake cut motor [19:39:00]Read from MH i2c: 01 [19:39:00]MH_I2C_Read... [19:39:00]*** Stop cut motor [19:39:00]*** Cut end [19:39:00]Read from MH i2c: 01 07 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [19:39:00]process_action close_receipt done [19:39:00]requested_data is exist [19:39:00]produce_requested_data [19:39:00]requested_item fm.sn is exist - process it [19:39:00]wFMCommunicate request_size=4 [19:39:00]MH_SAM_APDU [19:39:00]CAPDU: 80 11 00 00 [19:39:00]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:00]Read from MH i2c: E2 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 17 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 91 [19:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:39:00]wFMCommunicate OK [19:39:00]requested_item fd.num is exist - process it [19:39:00]SAM_PROTO_GetFieldsCounters [19:39:00]wFMCommunicate request_size=4 [19:39:00]MH_SAM_APDU [19:39:00]CAPDU: 80 13 00 00 [19:39:00]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:00]Read from MH i2c: E2 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 62 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 14 BA 02 00 0E 04 04 00 D6 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 FF [19:39: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 14 BA 02 00 0E 04 04 00 D6 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 [19:39:00]wFMCommunicate OK [19:39:00]SAM_PROTO_GetFieldsCounters done [19:39:00]requested_item shift.num is exist - process it [19:39:00]requested_item shift.opened is exist - process it [19:39:00]req_shift_opened [19:39:00]FM_GetShiftState [19:39:00]SAM_PROTO_GetShiftState [19:39:00]wFMCommunicate request_size=4 [19:39:00]MH_SAM_APDU [19:39:00]CAPDU: 80 13 01 00 [19:39:00]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [19:39:00]Write i2c OK [19:39:00]MH_I2C_Read... [19:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:00]Read from MH i2c: E2 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 0E 00 [19:39:00]MH_I2C_Read... [19:39:00]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 14 [19:39:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:39:00]wFMCommunicate OK [19:39:00]SAM_PROTO_GetShiftState done [19:39:00]FM_GetShiftState done [19:39:00]req_shift_opened done [19:39:00]requested_item shift.open_date is exist - process it [19:39:00]req_shift_open_date [19:39:00]req_shift_open_date done [19:39:00]produce_requested_data done [19:39:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178708,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:39:00]process_action_free close_receipt [19:39:00]json_value_free [19:39:00]json_value_free done [19:39:00]process_json_proto returns [19:39:00]Send response to host [19:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178708,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:39:00]free response buf [19:39:00]execute_script done [19:39:00]execute_script returns [19:39:00]free content buf [19:39:00]Sock 7.Close socket [19:39:00]Sock 7.Thread stoped [19:39:14]Connected sock=11 [19:39:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 84 06 07 01 A8 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 A8 00 00 00 F4 03 04 00 51 E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 14 BA 02 00 35 04 06 00 8B A8 EF E7 54 CA 94 E4 82 BF EA 9F 87 95 [19:39:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 66 71 47 00 67 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 14 BA 02 00 F4 03 04 00 0B 91 C8 66 B6 04 01 00 00 4A 03 3D 65 A2 BD C6 BD [19:39:18]CommunicateWithHost err = 0 [19:39:18]CheckOFDResponse [19:39:18]1017 (14) - 77093643461234 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]Read from MH i2c: *** [00:00:10]A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 692808+1723749199=1724442007 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 98 E5 C8 66 4F 53 BE 66 70 [19:40:08]Current date/time: 23.08.2024 19:40 [19:40:08]FM_Init [19:40:08]wFMConnect [19:40:08]MH_SAM_On [19:40:08]Write to MH i2c: E0 00 00 08 00 E7 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_init finished! [19:40:08]*** atr: [19:40:08]*** 0F 3B D5 18 FF 81 91 FE [19:40:08]*** 1F C3 80 73 C8 21 10 0A [19:40:08]*** 00 00 00 00 00 00 00 00 [19:40:08]*** 00 00 00 00 00 00 00 00 [19:40:08]*** 00 00 00 00 00 00 00 00 [19:40:08]*** 00 00 00 00 00 00 00 00 [19:40:08]*** 00 00 00 00 00 00 00 00 [19:40:08]*** 00 00 00 00 00 00 00 00 [19:40:08]Read from MH i2c: E0 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E0 10 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:40:08]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:40:08]wFMCommunicate request_size=10 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:40:08]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:40:08]RAPDU: 90 00 [19:40:08]wFMCommunicate OK [19:40:08]wFMCommunicate request_size=4 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 11 00 00 [19:40:08]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [19:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:40:08]wFMCommunicate OK [19:40:08]Detected FM SN is 0000000000871778 [19:40:08]Stored FM SN is 0000000000871778 [19:40:08]wFMCommunicate request_size=9 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 16 00 00 04 D9 BA 00 00 [19:40:08]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:40:08]RAPDU: 90 00 [19:40:08]wFMCommunicate OK [19:40:08]FM PIN OK [19:40:08]wFMCommunicate request_size=8 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 14 04 00 03 02 00 01 [19:40:08]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:40:08]RAPDU: 90 00 [19:40:08]wFMCommunicate OK [19:40:08]wFMCommunicate request_size=13 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:40:08]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:40:08]RAPDU: 90 00 [19:40:08]wFMCommunicate OK [19:40:08]wFMCommunicate request_size=4 [19:40:08]MH_SAM_APDU [19:40:08]CAPDU: 80 11 00 00 [19:40:08]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:08]Read from MH i2c: E2 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [19:40:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:40:08]wFMCommunicate OK [19:40:08]DocumentArchiveInit [19:40:08]Start Httpd... [19:40:08]Httpd thread 3067043172 created [19:40:08]Write to MH i2c: 01 00 00 0F 00 0F [19:40:08]Write i2c OK [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 [19:40:08]MH_I2C_Read... [19:40:08]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:40:08]MH Int Process started [19:40:08]Allocated Socket 8 [19:40:08]Bind OK [19:40:08]Listen OK [19:40:08]httpd running on port 8080 [19:40:08]Waiting for new connection... [19:40:09]OFD Sender: No OFD packet to send [19:40:11]accept exits with 9 [19:40:11]New connection [19:40:11]New thread 3066756452 created [19:40:11]Waiting for new connection... [19:40:11] Sock 9.Parse request [19:40:11]Sock 9.Check first char [19:40:11]Sock 9.First char is OK [19:40:11]request: POST /json_proto HTTP/1.0 [19:40:11]Method: POST [19:40:11]URL: /json_proto [19:40:11]Method is POST - this is cgi request [19:40:11]url: /json_proto [19:40:11]query_string will be loaded in cgi processing [19:40:11]execute_cgi json_proto POST (null) [19:40:11]execute_cgi path=json_proto method=POST [19:40:11]POST find Content-Length [19:40:11]Host: 172.17.44.131:8080 [19:40:11]Content-Length: 751 [19:40:11]Content-Type: application/json [19:40:11] [19:40:11]POST finish read [19:40:11]Found Content-Length = 751 [19:40:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104782", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:11]execute_script... [19:40: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)294647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104782", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:11]POST & json_proto [19:40:11]process_json_proto [19:40:11]json parsed OK: [19:40:11]protocol is kg_v1.0 [19:40:11]action value=close_receipt [19:40:11]process_action close_receipt [19:40:11]cmd_close_receipt [19:40:11]MH_GetDate [19:40:11]Write to MH i2c: F0 00 00 10 00 FF [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 09 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: F0 09 00 10 00 00 9B E5 C8 66 4F 53 BE 66 7C [19:40:11]GetLastDocTimeStamp 1724441937 [19:40:11]current date 1724442011 [19:40:11]FM_GetShiftState [19:40:11]SAM_PROTO_GetShiftState [19:40:11]wFMCommunicate request_size=4 [19:40:11]MH_SAM_APDU [19:40:11]CAPDU: 80 13 01 00 [19:40:11]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [19:40:11]Write i2c OK [19:40:11]MH_I2C_Read... [19:40:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:11]Read from MH i2c: E2 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0E 00 [19:40:11]MH_I2C_Read... [19:40:11]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 65 [19:40:11]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:40:11]wFMCommunicate OK [19:40:11]SAM_PROTO_GetShiftState done [19:40:11]FM_GetShiftState done [19:40:11]opened in 1724371660 [19:40:11]opened+sec_in_day 1724458060 [19:40:11]quantity*price = 0 [19:40:11]sum+1 = 1 [19:40:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 169 23.08.2024 19:40 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104782 ФМ: 0000000000871778 ФД: 178709 ФПД: 4359358890933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T194011&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178709&fm=4359358890933&tin=02508201610067®Number=0000000000092561&sum=0 [19:40:12]StoreToDocumentArchive [19:40:12]shift 470 fd 178709 [19:40:12]save to /storage/0470/doc_00178709 [19:40:12]save last doc name /storage/0470/doc_00178709 to /storage/kkm_last_doc_name [19:40:12]save OK [19:40:12]Clear old archive folders... [19:40:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:40:12]tlvbuf is 01846DB0 [19:40:12]SAM_PROTO_ClearQueue [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 09 00 00 [19:40:12]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_ClearQueue done [19:40:12]KKMCreateOFDPacket [19:40:12]OFDProtocolAddRootSTLVToBuf [19:40:12]FM_MakeSignedData [19:40:12]FM_MakeSignedData [19:40:12]SAM_PROTO_SignData [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 01 02 [19:40:12]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=255 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9B E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 15 BA 02 00 35 04 06 00 03 F6 FE 09 [19:40:12]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9B E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 15 BA 02 00 35 04 06 00 03 F6 FE 09 00 00 34 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=7 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 02 02 02 C3 B5 [19:40:12]Write to MH i2c: E2 0A 00 21 00 80 0D 02 02 02 00 C3 B5 00 00 17 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [19:40:12]RAPDU: 90 00 [19:40:12]wFMCommunicate OK [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 0D 03 02 [19:40:12]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0B 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 0B 00 22 00 00 00 EA C9 1B F5 CD 8B 20 90 00 D9 [19:40:12]RAPDU: 00 EA C9 1B F5 CD 8B 20 90 00 [19:40:12]wFMCommunicate OK [19:40:12]SAM_PROTO_SignData done [19:40:12]FM_MakeSignedData done [19:40:12]CreateOFDProtocolMessage [19:40:12]wFMCommunicate request_size=4 [19:40:12]MH_SAM_APDU [19:40:12]CAPDU: 80 11 00 00 [19:40:12]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:12]Read from MH i2c: E2 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 17 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F6 [19:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:40:12]wFMCommunicate OK [19:40:12]CreateOFDProtocolMessage done [19:40:12]OFDSenderStorePacket 178709 [19:40:12]StoreOFDPacket docnum=178709 [19:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 50 BD 04 01 D9 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9B E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 15 BA 02 00 35 04 06 00 03 F6 FE 09 C3 B5 00 EA C9 1B F5 CD 8B 20 [19:40:12]CheckFolder [19:40:12]dirname=/storage/ofd_packets [19:40:12]CheckFolder done [19:40:12]ProducePacketName [19:40:12]name=ofd_packets/00178709 [19:40:12]NVStorageSaveData ofd_packets/00178709 [19:40:12]File name is /storage/ofd_packets/00178709 [19:40:12]Write 298 bytes [19:40:12]NVStorageSaveData done [19:40:12]OFDSenderStorePacket done [19:40:12]KKMCreateOFDPacket done [19:40:12]NVStorageSaveData kkm_last_timestamp [19:40:12]File name is /storage/kkm_last_timestamp [19:40:12]Write 4 bytes [19:40:12]NVStorageSaveData done [19:40:12]ExternCall_PrintAddStr [19:40:12]wPrintStart [19:40:12]Write to MH i2c: 01 00 00 24 00 24 [19:40:12]Write i2c OK [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 [19:40:12]MH_I2C_Read... [19:40:12]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [19:40:12]RasterBufferAndPrint [19:40:12]line Счет N : (1)294647 [19:40:12]line ИНН: 02508201610067 [19:40:12]line Контрольно-Кассовый Чек [19:40:12]line ПРОДАЖА [19:40:12]line ТРК (МРК, ГНК) : 64 [19:40:12]line Товар: 2710194800 [19:40:12]line ДТ-К-5 [19:40:12]line 10.000 * 0.00 [19:40:12]line = 0.00 [19:40:12]line НДС 12% НСП 1% [19:40:12]line > о реализуемом товаре [19:40:12]line ИТОГО: 0.00 [19:40:12]line НСП 1% : 0.00 [19:40:12]line НДС 12% : 0.00 [19:40:12]line Наличными: 0.00 [19:40:12]line Безнал.: 0.00 [19:40:12]line Место: АЗС № 130 "Партнер Нефть" [19:40:12]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [19:40:12]line СНО: Общий режим [19:40:12]line Чек 169 23.08.2024 19:40 [19:40:12]line Смена: 470 ФФД: 1.0 [19:40:12]line ЗНМ: 0300000071 [19:40:12]line РНМ: 0000000000092561 [19:40:12]line Версия ККМ: 001 [19:40:12]line Талоны: ТК ГПНА Online [19:40:12]line 30104782 [19:40:12]line ФМ: 0000000000871778 [19:40:12]line ФД: 178709 [19:40:12]line ФПД: 4359358890933 [19:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T194011&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178709&fm=4359358890933&tin=02508201610067®Number=0000000000092561&sum=0 [19:40:12]written 0, free lines is 4095 [19:40:13]OFD Sender: Processing packet 178709 [packets to send 499, broken 498] [19:40:13]ProducePacketName [19:40:13]name=ofd_packets/00178709 [19:40:13]OFD Sender: To server: pG, [19:40:13]CommunicateWithHost lk.salyk.kg:30040 [19:40:13]ConnectInit lk.salyk.kg [19:40:13]Write to MH i2c: 01 00 00 4E 00 4E [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 EF 0C 50 [19:40:13]RasterBufferAndPrint [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]line [19:40:13]written 0, free lines is 3317 [19:40:13]MH_Cut [19:40:13]Write to MH i2c: D1 01 00 55 00 01 27 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 01 00 [19:40:13]MH_I2C_Read... [19:40:13]Read from MH i2c: D1 01 00 55 00 00 26 [19:40:13]Write to MH i2c: 01 00 00 56 00 56 [19:40:13]Write i2c OK [19:40:13]MH_I2C_Read... [19:40:14]*** Cut start [19:40:14]*** Partial cut [19:40:14]*** CUTSNS_PIN = 1 [19:40:14]*** CUTSNS_PIN = 0 [19:40:14]*** Brake cut motor [19:40:14]Read from MH i2c: 01 [19:40:14]MH_I2C_Read... [19:40:14]*** Stop cut motor [19:40:14]*** Cut end [19:40:14]Read from MH i2c: 01 07 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [19:40:14]process_action close_receipt done [19:40:14]requested_data is exist [19:40:14]produce_requested_data [19:40:14]requested_item fm.sn is exist - process it [19:40:14]wFMCommunicate request_size=4 [19:40:14]MH_SAM_APDU [19:40:14]CAPDU: 80 11 00 00 [19:40:14]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:14]Read from MH i2c: E2 17 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2A [19:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:40:14]wFMCommunicate OK [19:40:14]requested_item fd.num is exist - process it [19:40:14]SAM_PROTO_GetFieldsCounters [19:40:14]wFMCommunicate request_size=4 [19:40:14]MH_SAM_APDU [19:40:14]CAPDU: 80 13 00 00 [19:40:14]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 62 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 15 BA 02 00 0E 04 04 00 D6 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 9C [19:40: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 15 BA 02 00 0E 04 04 00 D6 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 [19:40:14]wFMCommunicate OK [19:40:14]SAM_PROTO_GetFieldsCounters done [19:40:14]requested_item shift.num is exist - process it [19:40:14]requested_item shift.opened is exist - process it [19:40:14]req_shift_opened [19:40:14]FM_GetShiftState [19:40:14]SAM_PROTO_GetShiftState [19:40:14]wFMCommunicate request_size=4 [19:40:14]MH_SAM_APDU [19:40:14]CAPDU: 80 13 01 00 [19:40:14]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [19:40:14]Write i2c OK [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 [19:40:14]MH_I2C_Read... [19:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:14]Read from MH i2c: E2 0E 00 [19:40:14]MH_I2C_Read... [19:40:14]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AD [19:40:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:40:14]wFMCommunicate OK [19:40:14]SAM_PROTO_GetShiftState done [19:40:14]FM_GetShiftState done [19:40:14]req_shift_opened done [19:40:14]requested_item shift.open_date is exist - process it [19:40:14]req_shift_open_date [19:40:14]req_shift_open_date done [19:40:14]produce_requested_data done [19:40:14]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178709,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:40:14]process_action_free close_receipt [19:40:14]json_value_free [19:40:14]json_value_free done [19:40:14]process_json_proto returns [19:40:14]Send response to host [19:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178709,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:40:14]free response buf [19:40:14]execute_script done [19:40:14]execute_script returns [19:40:14]free content buf [19:40:14]Sock 9.Close socket [19:40:14]Sock 9.Thread stoped [19:40:16]accept exits with 6 [19:40:16]New connection [19:40:16]New thread 3066613092 created [19:40:16]Thread 3066756452 joined [19:40:16]Waiting for new connection... [19:40:16] Sock 6.Parse request [19:40:16]Sock 6.Check first char [19:40:16]Sock 6.First char is OK [19:40:16]request: POST /json_proto HTTP/1.0 [19:40:16]Method: POST [19:40:16]URL: /json_proto [19:40:16]Method is POST - this is cgi request [19:40:16]url: /json_proto [19:40:16]query_string will be loaded in cgi processing [19:40:16]execute_cgi json_proto POST (null) [19:40:16]execute_cgi path=json_proto method=POST [19:40:16]POST find Content-Length [19:40:16]Host: 172.17.44.131:8080 [19:40:16]Content-Length: 215 [19:40:16]Content-Type: application/json [19:40:16] [19:40:16]POST finish read [19:40:16]Found Content-Length = 215 [19:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:16]execute_script... [19:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:16]POST & json_proto [19:40:16]process_json_proto [19:40:16]json parsed OK: [19:40:16]protocol is kg_v1.0 [19:40:16]action value=get_value [19:40:16]process_action get_value [19:40:16]cmd_get_value [19:40:16]process_action get_value done [19:40:16]requested_data is exist [19:40:16]produce_requested_data [19:40:16]requested_item kkm.sn is exist - process it [19:40:16]requested_item kkm.ver is exist - process it [19:40:16]requested_item fm.sn is exist - process it [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 11 00 00 [19:40:16]Write to MH i2c: E2 08 00 5A 00 80 11 00 00 00 00 00 00 D4 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 17 00 5A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2D [19:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [19:40:16]wFMCommunicate OK [19:40:16]requested_item fd.num is exist - process it [19:40:16]SAM_PROTO_GetFieldsCounters [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 00 00 [19:40:16]Write to MH i2c: E2 08 00 5B 00 80 13 00 00 00 00 00 00 D7 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 62 00 5B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 15 BA 02 00 0E 04 04 00 D6 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 9F [19:40: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 15 BA 02 00 0E 04 04 00 D6 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 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetFieldsCounters done [19:40:16]requested_item shift.num is exist - process it [19:40:16]requested_item shift.opened is exist - process it [19:40:16]req_shift_opened [19:40:16]FM_GetShiftState [19:40:16]SAM_PROTO_GetShiftState [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 01 00 [19:40:16]Write to MH i2c: E2 08 00 5C 00 80 13 01 00 00 00 00 00 D9 [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:16]Read from MH i2c: E2 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 0E 00 [19:40:16]MH_I2C_Read... [19:40:16]Read from MH i2c: E2 0E 00 5C 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B0 [19:40:16]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:40:16]wFMCommunicate OK [19:40:16]SAM_PROTO_GetShiftState done [19:40:16]FM_GetShiftState done [19:40:16]req_shift_opened done [19:40:16]requested_item shift.open_date is exist - process it [19:40:16]req_shift_open_date [19:40:16]req_shift_open_date done [19:40:16]produce_requested_data done [19:40:16]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178709,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [19:40:16]process_action_free get_value [19:40:16]json_value_free [19:40:16]json_value_free done [19:40:16]process_json_proto returns [19:40:16]Send response to host [19:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178709,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [19:40:16]free response buf [19:40:16]execute_script done [19:40:16]execute_script returns [19:40:16]free content buf [19:40:16]Sock 6.Close socket [19:40:16]Sock 6.Thread stoped [19:40:16]accept exits with 9 [19:40:16]New connection [19:40:16]New thread 3066756452 created [19:40:16]Thread 3066613092 joined [19:40:16]Waiting for new connection... [19:40:16] Sock 9.Parse request [19:40:16]Sock 9.Check first char [19:40:16]Sock 9.First char is OK [19:40:16]request: POST /json_proto HTTP/1.0 [19:40:16]Method: POST [19:40:16]URL: /json_proto [19:40:16]Method is POST - this is cgi request [19:40:16]url: /json_proto [19:40:16]query_string will be loaded in cgi processing [19:40:16]execute_cgi json_proto POST (null) [19:40:16]execute_cgi path=json_proto method=POST [19:40:16]POST find Content-Length [19:40:16]Host: 172.17.44.131:8080 [19:40:16]Content-Length: 331 [19:40:16]Content-Type: application/json [19:40:16] [19:40:16]POST finish read [19:40:16]Found Content-Length = 331 [19:40:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:40:16]execute_script... [19:40:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:40:16]POST & json_proto [19:40:16]process_json_proto [19:40:16]json parsed OK: [19:40:16]protocol is kg_v1.0 [19:40:16]action value=get_value [19:40:16]process_action get_value [19:40:16]cmd_get_value [19:40:16]process_action get_value done [19:40:16]requested_data is exist [19:40:16]produce_requested_data [19:40:16]requested_item fm.sale.total is exist - process it [19:40:16]SAM_PROTO_GetFMData [19:40:16]wFMCommunicate request_size=4 [19:40:16]MH_SAM_APDU [19:40:16]CAPDU: 80 13 03 00 [19:40:16]Write to MH i2c: E2 08 00 5D 00 80 13 03 00 00 00 00 00 DC [19:40:16]Write i2c OK [19:40:16]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 5D 00 00 C6 04 85 04 C2 04 6E 04 04 00 69 B6 02 00 69 04 A4 00 6F 04 04 00 D2 B4 02 00 B1 04 05 00 6A CF 31 2B 05 70 04 05 00 7F 38 B6 14 04 72 04 05 00 EB 96 7B 16 01 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 53 93 8C 8C 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 45 2F B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 B0 [19:40:17]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 69 B6 02 00 69 04 A4 00 6F 04 04 00 D2 B4 02 00 B1 04 05 00 6A CF 31 2B 05 70 04 05 00 7F 38 B6 14 04 72 04 05 00 EB 96 7B 16 01 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 53 93 8C 8C 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 45 2F B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [19:40:17]wFMCommunicate OK [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 17 00 00 [19:40:17]Write to MH i2c: E2 08 00 5E 00 80 17 00 00 00 00 00 00 DE [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 5E 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [19:40:17]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:17]wFMCommunicate OK [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 17 00 00 [19:40:17]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 5F 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [19:40:17]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:17]wFMCommunicate OK [19:40:17]wFMCommunicate request_size=4 [19:40:17]MH_SAM_APDU [19:40:17]CAPDU: 80 17 00 00 [19:40:17]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [19:40:17]Write i2c OK [19:40:17]MH_I2C_Read... [19:40:17]recv_with_timeout no data received [19:40:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:17]Read from MH i2c: E2 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 [19:40:17]MH_I2C_Read... [19:40:17]Read from MH i2c: E2 FD 00 60 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [19:40:18]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:40:18]wFMCommunicate OK [19:40:18]wFMCommunicate request_size=4 [19:40:18]MH_SAM_APDU [19:40:18]CAPDU: 80 17 00 00 [19:40:18]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [19:40:18]ConnectInit Can't take IP for lk.salyk.kg [19:40:18]CommunicateWithHost connect error [19:40:18]CommunicateWithHost err = -1 [19:40:18]OFD Sender: Server communicate error [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [19:40:18]Read from MH i2c: E2 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 E3 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 E3 00 61 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 C0 [19:40:18]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:40:18]wFMCommunicate OK [19:40:18]SAM_PROTO_GetFMData done [19:40:18]requested_item fm.sale_refund.total is exist - process it [19:40:18]requested_item fm.buy.total is exist - process it [19:40:18]requested_item shift.sale.total is exist - process it [19:40:18]SAM_PROTO_GetShiftData [19:40:18]wFMCommunicate request_size=4 [19:40:18]MH_SAM_APDU [19:40:18]CAPDU: 80 13 02 00 [19:40:18]Write to MH i2c: E2 08 00 62 00 80 13 02 00 00 00 00 00 E0 [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:40:18]Read from MH i2c: E2 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 FD 00 [19:40:18]MH_I2C_Read... [19:40:18]Read from MH i2c: E2 FD 00 62 00 00 BA 04 AA 04 B6 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 D9 12 3D 01 70 04 03 00 9C 00 CC 72 04 03 00 3D 12 71 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 B7 AD 21 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 70 CE 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4A [19:40:18]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 A9 00 00 00 69 04 9D 00 6F 04 04 00 A8 00 00 00 B1 04 04 00 D9 12 3D 01 70 04 03 00 9C 00 CC 72 04 03 00 3D 12 71 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 B7 AD 21 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 70 CE 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:40:18]wFMCommunicate OK [19:40:18]wFMCommunicate request_size=4 [19:40:18]MH_SAM_APDU [19:40:18]CAPDU: 80 17 00 00 [19:40:18]Write to MH i2c: E2 08 00 63 00 80 17 00 00 00 00 00 00 E3 [19:40:18]Write i2c OK [19:40:18]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 63 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 05 [19:40:19]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [19:40:19]wFMCommunicate OK [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 17 00 00 [19:40:19]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 FD 00 64 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [19:40:19]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 [19:40:19]wFMCommunicate OK [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 17 00 00 [19:40:19]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 FD 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 FD 00 65 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 03 90 00 5D [19:40:20]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 [19:40:20]wFMCommunicate OK [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 17 00 00 [19:40:20]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 D7 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 D7 00 66 00 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 C9 [19:40:20]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 [19:40:20]wFMCommunicate OK [19:40:20]SAM_PROTO_GetShiftData done [19:40:20]requested_item shift.sale.total_cash is exist - process it [19:40:20]requested_item shift.sale_refund.total is exist - process it [19:40:20]requested_item shift.sale_refund.total_cash is exist - process it [19:40:20]requested_item shift.buy.total is exist - process it [19:40:20]requested_item shift.buy.total_cash is exist - process it [19:40:20]produce_requested_data done [19:40:20]produce_requested_data return {"fm.sale.total":221995211.30,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":207797.37,"shift.sale.total_cash":133695.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:40:20]process_action_free get_value [19:40:20]json_value_free [19:40:20]json_value_free done [19:40:20]process_json_proto returns [19:40:20]Send response to host [19:40:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":221995211.30,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":207797.37,"shift.sale.total_cash":133695.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:40:20]free response buf [19:40:20]execute_script done [19:40:20]execute_script returns [19:40:20]free content buf [19:40:20]Sock 9.Close socket [19:40:20]Sock 9.Thread stoped [19:40:23]OFD Sender: Processing packet 178709 [packets to send 499, broken 498] [19:40:23]ProducePacketName [19:40:23]name=ofd_packets/00178709 [19:40:23]OFD Sender: To server: pG, [19:40:23]CommunicateWithHost lk.salyk.kg:30040 [19:40:23]ConnectInit lk.salyk.kg [19:40:28]Connected sock=10 [19:40:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 50 BD 04 01 D9 D7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 9B E5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 15 BA 02 00 35 04 06 00 03 F6 FE 09 C3 B5 00 EA C9 1B F5 CD 8B 20 [19:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4E 14 47 00 14 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 31 37 37 38 10 04 04 00 15 BA 02 00 F4 03 04 00 52 91 C8 66 B6 04 01 00 00 07 38 BC 38 5E C5 E9 53 [19:40:29]CommunicateWithHost err = 0 [19:40:29]CheckOFDResponse [19:40:29]1017 (14) - 77093643461234 [19:40:29]1041 (16) - 0000000000871778 [19:40:29]1040 (4) - 178709 [19:40:29]1012 (4) - 23.08.2024 13:40 [19:40:29]1206 (1) - 0 [19:40:29]OFD Sender: Remove packet 178709 [19:40:29]ProducePacketName [19:40:29]name=ofd_packets/00178709 [19:40:29]NVStorageDeleteData [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:39]recv_with_timeout no data received [19:41:40]OFD Sender: No OFD packet to send [19:41:41]accept exits with 6 [19:41:41]New connection [19:41:41]New thread 3066613092 created [19:41:41]Thread 3066756452 joined [19:41:41]Waiting for new connection... [19:41:41] Sock 6.Parse request [19:41:41]Sock 6.Check first char [19:41:41]Sock 6.First char is OK [19:41:41]request: POST /json_proto HTTP/1.0 [19:41:41]Method: POST [19:41:41]URL: /json_proto [19:41:41]Method is POST - this is cgi request [19:41:41]url: /json_proto [19:41:41]query_string will be loaded in cgi processing [19:41:41]execute_cgi json_proto POST (null) [19:41:41]execute_cgi path=json_proto method=POST [19:41:41]POST find Content-Length [19:41:41]Host: 172.17.44.131:8080 [19:41:41]Content-Length: 754 [19:41:41]Content-Type: application/json [19:41:41] [19:41:41]POST finish read [19:41:41]Found Content-Length = 754 [19:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30006169", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:41]execute_script... [19:41: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)294648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30006169", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:41]POST & json_proto [19:41:41]process_json_proto [19:41:41]json parsed OK: [19:41:41]protocol is kg_v1.0 [19:41:41]action value=close_receipt [19:41:41]process_action close_receipt [19:41:41]cmd_close_receipt [19:41:41]MH_GetDate [19:41:41]Write to MH i2c: F0 00 00 67 00 56 [19:41:41]Write i2c OK [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: F0 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: F0 09 00 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: F0 09 00 67 00 00 F5 E5 C8 66 4F 53 BE 66 2D [19:41:41]GetLastDocTimeStamp 1724442011 [19:41:41]current date 1724442101 [19:41:41]FM_GetShiftState [19:41:41]SAM_PROTO_GetShiftState [19:41:41]wFMCommunicate request_size=4 [19:41:41]MH_SAM_APDU [19:41:41]CAPDU: 80 13 01 00 [19:41:41]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [19:41:41]Write i2c OK [19:41:41]MH_I2C_Read... [19:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:41]Read from MH i2c: E2 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 0E 00 [19:41:41]MH_I2C_Read... [19:41:41]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BC [19:41:41]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [19:41:41]wFMCommunicate OK [19:41:41]SAM_PROTO_GetShiftState done [19:41:41]FM_GetShiftState done [19:41:41]opened in 1724371660 [19:41:41]opened+sec_in_day 1724458060 [19:41:41]quantity*price = 0 [19:41:41]sum+1 = 1 [19:41:41]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 173 23.08.2024 20:03 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178713 ФПД: 200508459900583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200356&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178713&fm=200508459900583&tin=02508201610067®Number=0000000000092561&sum=500024 [20:03:57]StoreToDocumentArchive [20:03:57]shift 470 fd 178713 [20:03:57]save to /storage/0470/doc_00178713 [20:03:57]save last doc name /storage/0470/doc_00178713 to /storage/kkm_last_doc_name [20:03:57]save OK [20:03:57]Clear old archive folders... [20:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:03:57]tlvbuf is 00A04BE0 [20:03:57]SAM_PROTO_ClearQueue [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 09 00 00 [20:03:57]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:03:57]RAPDU: 90 00 [20:03:57]wFMCommunicate OK [20:03:57]SAM_PROTO_ClearQueue done [20:03:57]KKMCreateOFDPacket [20:03:57]OFDProtocolAddRootSTLVToBuf [20:03:57]FM_MakeSignedData [20:03:57]FM_MakeSignedData [20:03:57]SAM_PROTO_SignData [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 0D 01 02 [20:03:57]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:03:57]RAPDU: 90 00 [20:03:57]wFMCommunicate OK [20:03:57]wFMCommunicate request_size=255 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2C EB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 19 BA 02 00 35 04 06 00 B6 5C 83 86 [20:03:57]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2C EB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 19 BA 02 00 35 04 06 00 B6 5C 83 86 00 00 2F [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:03:57]RAPDU: 90 00 [20:03:57]wFMCommunicate OK [20:03:57]wFMCommunicate request_size=7 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 0D 02 02 02 DE A7 [20:03:57]Write to MH i2c: E2 0A 00 2E 00 80 0D 02 02 02 00 DE A7 00 00 31 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]OFD Sender: No OFD packet to send [20:03:57]Read from MH i2c: E2 03 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:03:57]RAPDU: 90 00 [20:03:57]wFMCommunicate OK [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 0D 03 02 [20:03:57]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 0B 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 0B 00 2F 00 00 52 78 7A FF B2 2A B9 59 90 00 DC [20:03:57]RAPDU: 52 78 7A FF B2 2A B9 59 90 00 [20:03:57]wFMCommunicate OK [20:03:57]SAM_PROTO_SignData done [20:03:57]FM_MakeSignedData done [20:03:57]CreateOFDProtocolMessage [20:03:57]wFMCommunicate request_size=4 [20:03:57]MH_SAM_APDU [20:03:57]CAPDU: 80 11 00 00 [20:03:57]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:57]Read from MH i2c: E2 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 17 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [20:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:03:57]wFMCommunicate OK [20:03:57]CreateOFDProtocolMessage done [20:03:57]OFDSenderStorePacket 178713 [20:03:57]StoreOFDPacket docnum=178713 [20:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F0 F6 04 01 20 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2C EB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 19 BA 02 00 35 04 06 00 B6 5C 83 86 DE A7 52 78 7A FF B2 2A B9 59 [20:03:57]CheckFolder [20:03:57]dirname=/storage/ofd_packets [20:03:57]CheckFolder done [20:03:57]ProducePacketName [20:03:57]name=ofd_packets/00178713 [20:03:57]NVStorageSaveData ofd_packets/00178713 [20:03:57]File name is /storage/ofd_packets/00178713 [20:03:57]Write 298 bytes [20:03:57]NVStorageSaveData done [20:03:57]OFDSenderStorePacket done [20:03:57]KKMCreateOFDPacket done [20:03:57]NVStorageSaveData kkm_last_timestamp [20:03:57]File name is /storage/kkm_last_timestamp [20:03:57]Write 4 bytes [20:03:57]NVStorageSaveData done [20:03:57]ExternCall_PrintAddStr [20:03:57]wPrintStart [20:03:57]Write to MH i2c: 01 00 00 31 00 31 [20:03:57]Write i2c OK [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 07 00 [20:03:57]MH_I2C_Read... [20:03:57]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:03:57]RasterBufferAndPrint [20:03:57]line Счет N : (1)294654 [20:03:57]line ИНН: 02508201610067 [20:03:57]line Контрольно-Кассовый Чек [20:03:57]line ПРОДАЖА [20:03:57]line ТРК (МРК, ГНК) : 21 [20:03:57]line Товар: 2710194800 [20:03:57]line ДТ-К-5 [20:03:57]line 65.620 * 76.20 [20:03:57]line = 5000.24 [20:03:57]line НДС 12% НСП 1% [20:03:57]line > о реализуемом товаре [20:03:57]line ИТОГО: 5000.24 [20:03:57]line НСП 1% : 44.25 [20:03:57]line НДС 12% : 531.00 [20:03:57]line Наличными: 0.00 [20:03:57]line Безнал.: 5000.24 [20:03:57]line Место: АЗС № 130 "Партнер Нефть" [20:03:57]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:03:57]line СНО: Общий режим [20:03:57]line Чек 173 23.08.2024 20:03 [20:03:57]line Смена: 470 ФФД: 1.0 [20:03:57]line ЗНМ: 0300000071 [20:03:57]line РНМ: 0000000000092561 [20:03:57]line Версия ККМ: 001 [20:03:57]line Платежная система: O! деньги [20:03:57]line ФМ: 0000000000871778 [20:03:57]line ФД: 178713 [20:03:57]line ФПД: 200508459900583 [20:03:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200356&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178713&fm=200508459900583&tin=02508201610067®Number=0000000000092561&sum=500024 [20:03:57]written 0, free lines is 4095 [20:03:57]OFD Sender: Processing packet 178713 [packets to send 500, broken 499] [20:03:57]ProducePacketName [20:03:57]name=ofd_packets/00178713 [20:03:57]OFD Sender: To server: pG, [20:03:57]CommunicateWithHost lk.salyk.kg:30040 [20:03:57]ConnectInit lk.salyk.kg [20:03:58]Write to MH i2c: 01 00 00 5B 00 5B [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 07 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 FF 0C 6D [20:03:58]RasterBufferAndPrint [20:03:58]line [20:03:58]line [20:03:58]line [20:03:58]line [20:03:58]line [20:03:58]written 0, free lines is 3333 [20:03:58]MH_Cut [20:03:58]Write to MH i2c: D1 01 00 62 00 01 34 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: D1 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: D1 01 00 [20:03:58]MH_I2C_Read... [20:03:58]Read from MH i2c: D1 01 00 62 00 00 33 [20:03:58]Write to MH i2c: 01 00 00 63 00 63 [20:03:58]Write i2c OK [20:03:58]MH_I2C_Read... [20:03:58]*** Cut start [20:03:58]*** Partial cut [20:03:58]*** CUTSNS_PIN = 1 [20:03:58]*** CUTSNS_PIN = 0 [20:03:58]*** Brake cut motor [20:03:59]Read from MH i2c: 01 [20:03:59]MH_I2C_Read... [20:03:59]*** Stop cut motor [20:03:59]*** Cut end [20:03:59]Read from MH i2c: 01 07 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [20:03:59]process_action close_receipt done [20:03:59]requested_data is exist [20:03:59]produce_requested_data [20:03:59]requested_item fm.sn is exist - process it [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 11 00 00 [20:03:59]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 17 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [20:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:03:59]wFMCommunicate OK [20:03:59]requested_item fd.num is exist - process it [20:03:59]SAM_PROTO_GetFieldsCounters [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 13 00 00 [20:03:59]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 62 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 19 BA 02 00 0E 04 04 00 D6 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 B9 [20:03: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 19 BA 02 00 0E 04 04 00 D6 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 [20:03:59]wFMCommunicate OK [20:03:59]SAM_PROTO_GetFieldsCounters done [20:03:59]requested_item shift.num is exist - process it [20:03:59]requested_item shift.opened is exist - process it [20:03:59]req_shift_opened [20:03:59]FM_GetShiftState [20:03:59]SAM_PROTO_GetShiftState [20:03:59]wFMCommunicate request_size=4 [20:03:59]MH_SAM_APDU [20:03:59]CAPDU: 80 13 01 00 [20:03:59]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [20:03:59]Write i2c OK [20:03:59]MH_I2C_Read... [20:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:03:59]Read from MH i2c: E2 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 0E 00 [20:03:59]MH_I2C_Read... [20:03:59]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BA [20:03:59]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:03:59]wFMCommunicate OK [20:03:59]SAM_PROTO_GetShiftState done [20:03:59]FM_GetShiftState done [20:03:59]req_shift_opened done [20:03:59]requested_item shift.open_date is exist - process it [20:03:59]req_shift_open_date [20:03:59]req_shift_open_date done [20:03:59]produce_requested_data done [20:03:59]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178713,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:03:59]process_action_free close_receipt [20:03:59]json_value_free [20:03:59]json_value_free done [20:03:59]process_json_proto returns [20:03:59]Send response to host [20:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178713,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:03:59]free response buf [20:03:59]execute_script done [20:03:59]execute_script returns [20:03:59]free content buf [20:03:59]Sock 9.Close socket [20:03:59]Sock 9.Thread stoped [20:04:00]recv_with_timeout no data received [20:04:02]Connected sock=11 [20:04:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F0 F6 04 01 20 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 2C EB C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 19 BA 02 00 35 04 06 00 B6 5C 83 86 DE A7 52 78 7A FF B2 2A B9 59 [20:04:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 50 4E 47 00 D1 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 31 37 37 38 10 04 04 00 19 BA 02 00 F4 03 04 00 D7 96 C8 66 B6 04 01 00 00 F9 85 09 97 AB DB 67 DF [20:04:03]CommunicateWithHost err = 0 [20:04:03]CheckOFDResponse [20:04:03]1017 (14) - 77093643461234 [20:04:03]1041 (16) - 0000000000871778 [20:04:03]1040 (4) - 178713 [20:04:03]1012 (4) - 23.08.2024 14:04 [20:04:03]1206 (1) - 0 [20:04:03]OFD Sender: Remove packet 178713 [20:04:03]ProducePacketName [20:04:03]name=ofd_packets/00178713 [20:04:03]NVStorageDeleteData [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]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:34]recv_with_timeout no data received [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:05:59]recv_with_timeout no data received [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:42]recv_with_timeout no data received [20:06:43]OFD Sender: No OFD packet to send [20:06:48]OFD Sender: No OFD packet to send [20:06:53]OFD Sender: No OFD packet to send [20:06:58]OFD Sender: No OFD packet to send [20:07:03]OFD Sender: No OFD packet to send [20:07:08]OFD Sender: No OFD packet to send [20:07:13]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:34]accept exits with 10 [20:07:34]New connection [20:07:34]New thread 3067395428 created [20:07:34]Thread 3067538788 joined [20:07:34]Waiting for new connection... [20:07:34] Sock 10.Parse request [20:07:34]Sock 10.Check first char [20:07:34]Sock 10.First char is OK [20:07:34]request: POST /json_proto HTTP/1.0 [20:07:34]Method: POST [20:07:34]URL: /json_proto [20:07:34]Method is POST - this is cgi request [20:07:34]url: /json_proto [20:07:34]query_string will be loaded in cgi processing [20:07:34]execute_cgi json_proto POST (null) [20:07:34]execute_cgi path=json_proto method=POST [20:07:34]POST find Content-Length [20:07:34]Host: 172.17.44.131:8080 [20:07:34]Content-Length: 674 [20:07:34]Content-Type: application/json [20:07:34] [20:07:34]POST finish read [20:07:34]Found Content-Length = 674 [20:07:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:34]execute_script... [20:07: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)294657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:34]POST & json_proto [20:07:34]process_json_proto [20:07:34]json parsed OK: [20:07:34]protocol is kg_v1.0 [20:07:34]action value=close_receipt [20:07:34]process_action close_receipt [20:07:34]cmd_close_receipt [20:07:34]MH_GetDate [20:07:34]Write to MH i2c: F0 00 00 67 00 56 [20:07:34]Write i2c OK [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: F0 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: F0 09 00 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: F0 09 00 67 00 00 07 EC C8 66 4F 53 BE 66 46 [20:07:34]GetLastDocTimeStamp 1724443436 [20:07:34]current date 1724443655 [20:07:34]FM_GetShiftState [20:07:34]SAM_PROTO_GetShiftState [20:07:34]wFMCommunicate request_size=4 [20:07:34]MH_SAM_APDU [20:07:34]CAPDU: 80 13 01 00 [20:07:34]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [20:07:34]Write i2c OK [20:07:34]MH_I2C_Read... [20:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:34]Read from MH i2c: E2 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: E2 0E 00 [20:07:34]MH_I2C_Read... [20:07:34]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BC [20:07:34]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:07:34]wFMCommunicate OK [20:07:34]SAM_PROTO_GetShiftState done [20:07:34]FM_GetShiftState done [20:07:34]opened in 1724371660 [20:07:34]opened+sec_in_day 1724458060 [20:07:34]quantity*price = 40005 [20:07:34]sum+1 = 40006 [20:07:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 174 23.08.2024 20:07 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178714 ФПД: 86659045386621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200735&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178714&fm=86659045386621&tin=02508201610067®Number=0000000000092561&sum=40000 [20:07:36]StoreToDocumentArchive [20:07:36]shift 470 fd 178714 [20:07:36]save to /storage/0470/doc_00178714 [20:07:36]save last doc name /storage/0470/doc_00178714 to /storage/kkm_last_doc_name [20:07:36]save OK [20:07:36]Clear old archive folders... [20:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:07:36]tlvbuf is 009FB760 [20:07:36]SAM_PROTO_ClearQueue [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 09 00 00 [20:07:36]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [20:07:36]RAPDU: 90 00 [20:07:36]wFMCommunicate OK [20:07:36]SAM_PROTO_ClearQueue done [20:07:36]KKMCreateOFDPacket [20:07:36]OFDProtocolAddRootSTLVToBuf [20:07:36]FM_MakeSignedData [20:07:36]FM_MakeSignedData [20:07:36]SAM_PROTO_SignData [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 0D 01 02 [20:07:36]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [20:07:36]RAPDU: 90 00 [20:07:36]wFMCommunicate OK [20:07:36]wFMCommunicate request_size=255 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 07 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1A BA 02 00 35 04 06 00 4E D0 E1 9D [20:07:36]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 07 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1A BA 02 00 35 04 06 00 4E D0 E1 9D 00 00 88 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:07:36]RAPDU: 90 00 [20:07:36]wFMCommunicate OK [20:07:36]wFMCommunicate request_size=7 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 0D 02 02 02 E9 7D [20:07:36]Write to MH i2c: E2 0A 00 78 00 80 0D 02 02 02 00 E9 7D 00 00 5C [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [20:07:36]RAPDU: 90 00 [20:07:36]wFMCommunicate OK [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 0D 03 02 [20:07:36]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 0B 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 0B 00 79 00 00 0D 5B B4 95 A3 90 F8 DC 90 00 AD [20:07:36]RAPDU: 0D 5B B4 95 A3 90 F8 DC 90 00 [20:07:36]wFMCommunicate OK [20:07:36]SAM_PROTO_SignData done [20:07:36]FM_MakeSignedData done [20:07:36]CreateOFDProtocolMessage [20:07:36]wFMCommunicate request_size=4 [20:07:36]MH_SAM_APDU [20:07:36]CAPDU: 80 11 00 00 [20:07:36]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:36]Read from MH i2c: E2 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 17 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [20:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:07:36]wFMCommunicate OK [20:07:36]CreateOFDProtocolMessage done [20:07:36]OFDSenderStorePacket 178714 [20:07:36]StoreOFDPacket docnum=178714 [20:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F2 6E 04 01 45 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 07 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1A BA 02 00 35 04 06 00 4E D0 E1 9D E9 7D 0D 5B B4 95 A3 90 F8 DC [20:07:36]CheckFolder [20:07:36]dirname=/storage/ofd_packets [20:07:36]CheckFolder done [20:07:36]ProducePacketName [20:07:36]name=ofd_packets/00178714 [20:07:36]NVStorageSaveData ofd_packets/00178714 [20:07:36]File name is /storage/ofd_packets/00178714 [20:07:36]Write 298 bytes [20:07:36]NVStorageSaveData done [20:07:36]OFDSenderStorePacket done [20:07:36]KKMCreateOFDPacket done [20:07:36]NVStorageSaveData kkm_last_timestamp [20:07:36]File name is /storage/kkm_last_timestamp [20:07:36]Write 4 bytes [20:07:36]NVStorageSaveData done [20:07:36]ExternCall_PrintAddStr [20:07:36]wPrintStart [20:07:36]Write to MH i2c: 01 00 00 7B 00 7B [20:07:36]Write i2c OK [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: 01 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: 01 07 00 [20:07:36]MH_I2C_Read... [20:07:36]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [20:07:36]RasterBufferAndPrint [20:07:36]line Счет N : (1)294657 [20:07:36]line ИНН: 02508201610067 [20:07:36]line Контрольно-Кассовый Чек [20:07:36]line ПРОДАЖА [20:07:36]line ТРК (МРК, ГНК) : 11 [20:07:36]line Товар: 2710194800 [20:07:36]line ДТ-К-5 [20:07:36]line 5.250 * 76.20 [20:07:36]line = 400.05 [20:07:36]line НДС 12% НСП 1% [20:07:36]line > о реализуемом товаре [20:07:36]line ОКРУГЛЕНИЕ: -0.05 [20:07:36]line ИТОГО: 400.00 [20:07:36]line Внесено: 400.00 [20:07:36]line СДАЧА: 0.00 [20:07:36]line НСП 1% : 3.54 [20:07:36]line НДС 12% : 42.48 [20:07:36]line Наличными: 400.00 [20:07:36]line Безнал.: 0.00 [20:07:36]line Место: АЗС № 130 "Партнер Нефть" [20:07:36]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:07:36]line СНО: Общий режим [20:07:36]line Чек 174 23.08.2024 20:07 [20:07:36]line Смена: 470 ФФД: 1.0 [20:07:36]line ЗНМ: 0300000071 [20:07:36]line РНМ: 0000000000092561 [20:07:36]line Версия ККМ: 001 [20:07:36]line ФМ: 0000000000871778 [20:07:36]line ФД: 178714 [20:07:36]line ФПД: 86659045386621 [20:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200735&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178714&fm=86659045386621&tin=02508201610067®Number=0000000000092561&sum=40000 [20:07:36]written 0, free lines is 4095 [20:07:36]OFD Sender: Processing packet 178714 [packets to send 500, broken 499] [20:07:36]ProducePacketName [20:07:36]name=ofd_packets/00178714 [20:07:36]OFD Sender: To server: pG, [20:07:36]CommunicateWithHost lk.salyk.kg:30040 [20:07:36]ConnectInit lk.salyk.kg [20:07:37]Write to MH i2c: 01 00 00 A6 00 A6 [20:07:37]Write i2c OK [20:07:37]MH_I2C_Read... [20:07:37]Read from MH i2c: 01 [20:07:37]MH_I2C_Read... [20:07:37]Read from MH i2c: 01 07 00 [20:07:37]MH_I2C_Read... [20:07:37]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 CF 0C 88 [20:07:37]RasterBufferAndPrint [20:07:37]line [20:07:37]line [20:07:37]line [20:07:37]line [20:07:37]line [20:07:37]written 0, free lines is 3286 [20:07:37]MH_Cut [20:07:37]Write to MH i2c: D1 01 00 AD 00 01 7F [20:07:37]Write i2c OK [20:07:37]MH_I2C_Read... [20:07:37]Read from MH i2c: D1 [20:07:37]MH_I2C_Read... [20:07:37]Read from MH i2c: D1 01 00 [20:07:37]MH_I2C_Read... [20:07:37]Read from MH i2c: D1 01 00 AD 00 00 7E [20:07:37]Write to MH i2c: 01 00 00 AE 00 AE [20:07:37]Write i2c OK [20:07:37]MH_I2C_Read... [20:07:37]*** Cut start [20:07:37]*** Partial cut [20:07:37]*** CUTSNS_PIN = 1 [20:07:37]*** CUTSNS_PIN = 0 [20:07:37]*** Brake cut motor [20:07:38]Read from MH i2c: 01 [20:07:38]MH_I2C_Read... [20:07:38]*** Stop cut motor [20:07:38]*** Cut end [20:07:38]Read from MH i2c: 01 07 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [20:07:38]process_action close_receipt done [20:07:38]requested_data is exist [20:07:38]produce_requested_data [20:07:38]requested_item fm.sn is exist - process it [20:07:38]wFMCommunicate request_size=4 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 11 00 00 [20:07:38]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 17 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [20:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:07:38]wFMCommunicate OK [20:07:38]requested_item fd.num is exist - process it [20:07:38]SAM_PROTO_GetFieldsCounters [20:07:38]wFMCommunicate request_size=4 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 13 00 00 [20:07:38]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 62 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1A BA 02 00 0E 04 04 00 D6 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 08 [20:07: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1A BA 02 00 0E 04 04 00 D6 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 [20:07:38]wFMCommunicate OK [20:07:38]SAM_PROTO_GetFieldsCounters done [20:07:38]requested_item shift.num is exist - process it [20:07:38]requested_item shift.opened is exist - process it [20:07:38]req_shift_opened [20:07:38]FM_GetShiftState [20:07:38]SAM_PROTO_GetShiftState [20:07:38]wFMCommunicate request_size=4 [20:07:38]MH_SAM_APDU [20:07:38]CAPDU: 80 13 01 00 [20:07:38]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [20:07:38]Write i2c OK [20:07:38]MH_I2C_Read... [20:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:38]Read from MH i2c: E2 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 0E 00 [20:07:38]MH_I2C_Read... [20:07:38]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 05 [20:07:38]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:07:38]wFMCommunicate OK [20:07:38]SAM_PROTO_GetShiftState done [20:07:38]FM_GetShiftState done [20:07:38]req_shift_opened done [20:07:38]requested_item shift.open_date is exist - process it [20:07:38]req_shift_open_date [20:07:38]req_shift_open_date done [20:07:38]produce_requested_data done [20:07:38]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178714,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:07:38]process_action_free close_receipt [20:07:38]json_value_free [20:07:38]json_value_free done [20:07:38]process_json_proto returns [20:07:38]Send response to host [20:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178714,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:07:38]free response buf [20:07:38]execute_script done [20:07:38]execute_script returns [20:07:38]free content buf [20:07:38]Sock 10.Close socket [20:07:38]Sock 10.Thread stoped [20:07:40]Connected sock=11 [20:07:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 F2 6E 04 01 45 C3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 07 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1A BA 02 00 35 04 06 00 4E D0 E1 9D E9 7D 0D 5B B4 95 A3 90 F8 DC [20:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A1 01 47 00 CB F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1A BA 02 00 F4 03 04 00 B1 97 C8 66 B6 04 01 00 00 89 0F 1B EC 34 A9 52 EB [20:07:41]CommunicateWithHost err = 0 [20:07:41]CheckOFDResponse [20:07:41]1017 (14) - 77093643461234 [20:07:41]1041 (16) - 0000000000871778 [20:07:41]1040 (4) - 178714 [20:07:41]1012 (4) - 23.08.2024 14:07 [20:07:41]1206 (1) - 0 [20:07:41]OFD Sender: Remove packet 178714 [20:07:41]ProducePacketName [20:07:41]name=ofd_packets/00178714 [20:07:41]NVStorageDeleteData [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:26]accept exits with 9 [20:08:26]New connection [20:08:26]New thread 3067538788 created [20:08:26]Thread 3067395428 joined [20:08:26]Waiting for new connection... [20:08:26] Sock 9.Parse request [20:08:26]Sock 9.Check first char [20:08:26]Sock 9.First char is OK [20:08:26]request: POST /json_proto HTTP/1.0 [20:08:26]Method: POST [20:08:26]URL: /json_proto [20:08:26]Method is POST - this is cgi request [20:08:26]url: /json_proto [20:08:26]query_string will be loaded in cgi processing [20:08:26]execute_cgi json_proto POST (null) [20:08:26]execute_cgi path=json_proto method=POST [20:08:26]POST find Content-Length [20:08:26]Host: 172.17.44.131:8080 [20:08:26]Content-Length: 792 [20:08:26]Content-Type: application/json [20:08:26] [20:08:26]POST finish read [20:08:26]Found Content-Length = 792 [20:08:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294656", "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" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02708", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:26]execute_script... [20:08:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294656", "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" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02708", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:26]POST & json_proto [20:08:26]process_json_proto [20:08:26]json parsed OK: [20:08:26]protocol is kg_v1.0 [20:08:26]action value=close_receipt [20:08:26]process_action close_receipt [20:08:26]cmd_close_receipt [20:08:26]MH_GetDate [20:08:26]Write to MH i2c: F0 00 00 B2 00 A1 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: F0 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: F0 09 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: F0 09 00 B2 00 00 3B EC C8 66 4F 53 BE 66 C5 [20:08:26]GetLastDocTimeStamp 1724443655 [20:08:26]current date 1724443707 [20:08:26]FM_GetShiftState [20:08:26]SAM_PROTO_GetShiftState [20:08:26]wFMCommunicate request_size=4 [20:08:26]MH_SAM_APDU [20:08:26]CAPDU: 80 13 01 00 [20:08:26]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [20:08:26]Write i2c OK [20:08:26]MH_I2C_Read... [20:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:26]Read from MH i2c: E2 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0E 00 [20:08:26]MH_I2C_Read... [20:08:26]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 07 [20:08:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:08:26]wFMCommunicate OK [20:08:26]SAM_PROTO_GetShiftState done [20:08:26]FM_GetShiftState done [20:08:26]opened in 1724371660 [20:08:26]opened+sec_in_day 1724458060 [20:08:26]quantity*price = 0 [20:08:26]sum+1 = 1 [20:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 175 23.08.2024 20:08 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливная Карта 02708 ФМ: 0000000000871778 ФД: 178715 ФПД: 238879325511677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200827&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178715&fm=238879325511677&tin=02508201610067®Number=0000000000092561&sum=0 [20:08:28]StoreToDocumentArchive [20:08:28]shift 470 fd 178715 [20:08:28]save to /storage/0470/doc_00178715 [20:08:28]save last doc name /storage/0470/doc_00178715 to /storage/kkm_last_doc_name [20:08:28]save OK [20:08:28]Clear old archive folders... [20:08:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:28]tlvbuf is 00A16390 [20:08:28]SAM_PROTO_ClearQueue [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 09 00 00 [20:08:28]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [20:08:28]RAPDU: 90 00 [20:08:28]wFMCommunicate OK [20:08:28]SAM_PROTO_ClearQueue done [20:08:28]KKMCreateOFDPacket [20:08:28]OFDProtocolAddRootSTLVToBuf [20:08:28]FM_MakeSignedData [20:08:28]FM_MakeSignedData [20:08:28]SAM_PROTO_SignData [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 0D 01 02 [20:08:28]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [20:08:28]RAPDU: 90 00 [20:08:28]wFMCommunicate OK [20:08:28]wFMCommunicate request_size=255 [20:08:28]MH_SAM_APDU [20:08: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3B EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1B BA 02 00 35 04 06 00 D9 [20:08:28]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3B EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1B BA 02 00 35 04 06 00 D9 00 00 AF [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [20:08:28]RAPDU: 90 00 [20:08:28]wFMCommunicate OK [20:08:28]wFMCommunicate request_size=10 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 0D 02 02 05 42 6D 57 5F FD [20:08:28]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 42 6D 57 5F FD 00 00 A9 [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [20:08:28]RAPDU: 90 00 [20:08:28]wFMCommunicate OK [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 0D 03 02 [20:08:28]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 0B 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 0B 00 C4 00 00 61 54 D4 F1 8F D1 BE 92 90 00 6A [20:08:28]RAPDU: 61 54 D4 F1 8F D1 BE 92 90 00 [20:08:28]wFMCommunicate OK [20:08:28]SAM_PROTO_SignData done [20:08:28]FM_MakeSignedData done [20:08:28]CreateOFDProtocolMessage [20:08:28]wFMCommunicate request_size=4 [20:08:28]MH_SAM_APDU [20:08:28]CAPDU: 80 11 00 00 [20:08:28]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:28]Read from MH i2c: E2 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 17 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [20:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:08:28]wFMCommunicate OK [20:08:28]CreateOFDProtocolMessage done [20:08:28]OFDSenderStorePacket 178715 [20:08:28]StoreOFDPacket docnum=178715 [20:08:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 52 E5 07 01 B0 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 3B EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1B BA 02 00 35 04 06 00 D9 42 6D 57 5F FD 61 54 D4 F1 8F D1 BE 92 [20:08:28]CheckFolder [20:08:28]dirname=/storage/ofd_packets [20:08:28]CheckFolder done [20:08:28]ProducePacketName [20:08:28]name=ofd_packets/00178715 [20:08:28]NVStorageSaveData ofd_packets/00178715 [20:08:28]File name is /storage/ofd_packets/00178715 [20:08:28]Write 301 bytes [20:08:28]NVStorageSaveData done [20:08:28]OFDSenderStorePacket done [20:08:28]KKMCreateOFDPacket done [20:08:28]NVStorageSaveData kkm_last_timestamp [20:08:28]File name is /storage/kkm_last_timestamp [20:08:28]Write 4 bytes [20:08:28]NVStorageSaveData done [20:08:28]ExternCall_PrintAddStr [20:08:28]wPrintStart [20:08:28]Write to MH i2c: 01 00 00 C6 00 C6 [20:08:28]Write i2c OK [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: 01 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: 01 07 00 [20:08:28]MH_I2C_Read... [20:08:28]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [20:08:28]RasterBufferAndPrint [20:08:28]line Счет N : (1)294656 [20:08:28]line ИНН: 02508201610067 [20:08:28]line Контрольно-Кассовый Чек [20:08:28]line ПРОДАЖА [20:08:28]line ТРК (МРК, ГНК) : 32 [20:08:28]line Товар: 2710124130 [20:08:28]line Аи-92-К-5 [20:08:28]line 40.000 * 0.00 [20:08:28]line = 0.00 [20:08:28]line НДС 12% НСП 1% [20:08:28]line > о реализуемом товаре [20:08:28]line ИТОГО: 0.00 [20:08:28]line НСП 1% : 0.00 [20:08:28]line НДС 12% : 0.00 [20:08:28]line Наличными: 0.00 [20:08:28]line Безнал.: 0.00 [20:08:28]line Место: АЗС № 130 "Партнер Нефть" [20:08:28]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:08:28]line СНО: Общий режим [20:08:28]line Чек 175 23.08.2024 20:08 [20:08:28]line Смена: 470 ФФД: 1.0 [20:08:28]line ЗНМ: 0300000071 [20:08:28]line РНМ: 0000000000092561 [20:08:28]line Версия ККМ: 001 [20:08:28]line Талоны: Топливная Карта [20:08:28]line 02708 [20:08:28]line ФМ: 0000000000871778 [20:08:28]line ФД: 178715 [20:08:28]line ФПД: 238879325511677 [20:08:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200827&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178715&fm=238879325511677&tin=02508201610067®Number=0000000000092561&sum=0 [20:08:28]written 0, free lines is 4095 [20:08:28]OFD Sender: Processing packet 178715 [packets to send 500, broken 499] [20:08:28]ProducePacketName [20:08:28]name=ofd_packets/00178715 [20:08:28]OFD Sender: To server: pG, [20:08:28]CommunicateWithHost lk.salyk.kg:30040 [20:08:28]ConnectInit lk.salyk.kg [20:08:29]Write to MH i2c: 01 00 00 F0 00 F0 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 07 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 E4 0C E7 [20:08:29]RasterBufferAndPrint [20:08:29]line [20:08:29]line [20:08:29]line [20:08:29]line [20:08:29]line [20:08:29]written 0, free lines is 3310 [20:08:29]MH_Cut [20:08:29]Write to MH i2c: D1 01 00 F7 00 01 C9 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: D1 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: D1 01 00 [20:08:29]MH_I2C_Read... [20:08:29]Read from MH i2c: D1 01 00 F7 00 00 C8 [20:08:29]Write to MH i2c: 01 00 00 F8 00 F8 [20:08:29]Write i2c OK [20:08:29]MH_I2C_Read... [20:08:29]*** Cut start [20:08:29]*** Partial cut [20:08:29]*** CUTSNS_PIN = 1 [20:08:29]*** CUTSNS_PIN = 0 [20:08:30]*** Brake cut motor [20:08:30]Read from MH i2c: 01 [20:08:30]MH_I2C_Read... [20:08:30]*** Stop cut motor [20:08:30]*** Cut end [20:08:30]Read from MH i2c: 01 07 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [20:08:30]process_action close_receipt done [20:08:30]requested_data is exist [20:08:30]produce_requested_data [20:08:30]requested_item fm.sn is exist - process it [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 11 00 00 [20:08:30]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 17 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CC [20:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:08:30]wFMCommunicate OK [20:08:30]requested_item fd.num is exist - process it [20:08:30]SAM_PROTO_GetFieldsCounters [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 13 00 00 [20:08:30]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 62 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1B BA 02 00 0E 04 04 00 D6 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 56 [20:08:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1B BA 02 00 0E 04 04 00 D6 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 [20:08:30]wFMCommunicate OK [20:08:30]SAM_PROTO_GetFieldsCounters done [20:08:30]requested_item shift.num is exist - process it [20:08:30]requested_item shift.opened is exist - process it [20:08:30]req_shift_opened [20:08:30]FM_GetShiftState [20:08:30]SAM_PROTO_GetShiftState [20:08:30]wFMCommunicate request_size=4 [20:08:30]MH_SAM_APDU [20:08:30]CAPDU: 80 13 01 00 [20:08:30]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [20:08:30]Write i2c OK [20:08:30]MH_I2C_Read... [20:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:30]Read from MH i2c: E2 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 0E 00 [20:08:30]MH_I2C_Read... [20:08:30]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4F [20:08:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:08:30]wFMCommunicate OK [20:08:30]SAM_PROTO_GetShiftState done [20:08:30]FM_GetShiftState done [20:08:30]req_shift_opened done [20:08:30]requested_item shift.open_date is exist - process it [20:08:30]req_shift_open_date [20:08:30]req_shift_open_date done [20:08:30]produce_requested_data done [20:08:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178715,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:08:30]process_action_free close_receipt [20:08:30]json_value_free [20:08:30]json_value_free done [20:08:30]process_json_proto returns [20:08:30]Send response to host [20:08:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178715,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:08:30]free response buf [20:08:30]execute_script done [20:08:30]execute_script returns [20:08:30]free content buf [20:08:30]Sock 9.Close socket [20:08:30]Sock 9.Thread stoped [20:08:31]accept exits with 10 [20:08:31]New connection [20:08:31]New thread 3067395428 created [20:08:31]Thread 3067538788 joined [20:08:31]Waiting for new connection... [20:08:31] Sock 10.Parse request [20:08:31]Sock 10.Check first char [20:08:31]Sock 10.First char is OK [20:08:31]request: POST /json_proto HTTP/1.0 [20:08:31]Method: POST [20:08:31]URL: /json_proto [20:08:31]Method is POST - this is cgi request [20:08:31]url: /json_proto [20:08:31]query_string will be loaded in cgi processing [20:08:31]execute_cgi json_proto POST (null) [20:08:31]execute_cgi path=json_proto method=POST [20:08:31]POST find Content-Length [20:08:31]Host: 172.17.44.131:8080 [20:08:31]Content-Length: 677 [20:08:31]Content-Type: application/json [20:08:31] [20:08:31]POST finish read [20:08:31]Found Content-Length = 677 [20:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294660", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [20:08:31]execute_script... [20:08: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)294660", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [20:08:31]POST & json_proto [20:08:31]process_json_proto [20:08:31]json parsed OK: [20:08:31]protocol is kg_v1.0 [20:08:31]action value=close_receipt [20:08:31]process_action close_receipt [20:08:31]cmd_close_receipt [20:08:31]MH_GetDate [20:08:31]Write to MH i2c: F0 00 00 FC 00 EB [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: F0 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: F0 09 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: F0 09 00 FC 00 00 3F EC C8 66 4F 53 BE 66 13 [20:08:31]GetLastDocTimeStamp 1724443707 [20:08:31]current date 1724443711 [20:08:31]FM_GetShiftState [20:08:31]SAM_PROTO_GetShiftState [20:08:31]wFMCommunicate request_size=4 [20:08:31]MH_SAM_APDU [20:08:31]CAPDU: 80 13 01 00 [20:08:31]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [20:08:31]Write i2c OK [20:08:31]MH_I2C_Read... [20:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:31]Read from MH i2c: E2 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 0E 00 [20:08:31]MH_I2C_Read... [20:08:31]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 51 [20:08:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:08:31]wFMCommunicate OK [20:08:31]SAM_PROTO_GetShiftState done [20:08:31]FM_GetShiftState done [20:08:31]opened in 1724371660 [20:08:31]opened+sec_in_day 1724458060 [20:08:31]quantity*price = 40002 [20:08:31]sum+1 = 40003 [20:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 176 23.08.2024 20:08 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178716 ФПД: 108937384408368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200831&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178716&fm=108937384408368&tin=02508201610067®Number=0000000000092561&sum=40000 [20:08:32]StoreToDocumentArchive [20:08:32]shift 470 fd 178716 [20:08:32]save to /storage/0470/doc_00178716 [20:08:32]save last doc name /storage/0470/doc_00178716 to /storage/kkm_last_doc_name [20:08:32]save OK [20:08:32]Clear old archive folders... [20:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:08:32]tlvbuf is 00A32DA0 [20:08:32]SAM_PROTO_ClearQueue [20:08:32]wFMCommunicate request_size=4 [20:08:32]MH_SAM_APDU [20:08:32]CAPDU: 80 09 00 00 [20:08:32]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [20:08:32]Write i2c OK [20:08:32]MH_I2C_Read... [20:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:32]Read from MH i2c: E2 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: E2 03 00 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [20:08:32]RAPDU: 90 00 [20:08:32]wFMCommunicate OK [20:08:32]SAM_PROTO_ClearQueue done [20:08:32]KKMCreateOFDPacket [20:08:32]OFDProtocolAddRootSTLVToBuf [20:08:32]FM_MakeSignedData [20:08:32]FM_MakeSignedData [20:08:32]SAM_PROTO_SignData [20:08:32]wFMCommunicate request_size=4 [20:08:32]MH_SAM_APDU [20:08:32]CAPDU: 80 0D 01 02 [20:08:32]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [20:08:32]Write i2c OK [20:08:32]MH_I2C_Read... [20:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:32]Read from MH i2c: E2 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: E2 03 00 [20:08:32]MH_I2C_Read... [20:08:32]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [20:08:32]RAPDU: 90 00 [20:08:32]wFMCommunicate OK [20:08:32]wFMCommunicate request_size=255 [20:08:32]MH_SAM_APDU [20:08: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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3F EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1C BA 02 00 35 04 06 00 63 [20:08:32]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3F EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1C BA 02 00 35 04 06 00 63 00 00 08 [20:08:33]OFD Sender: No OFD packet to send [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 03 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [20:08:33]RAPDU: 90 00 [20:08:33]wFMCommunicate OK [20:08:33]wFMCommunicate request_size=10 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 0D 02 02 05 13 F6 19 B5 30 [20:08:33]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 13 F6 19 B5 30 00 00 99 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:33]Read from MH i2c: E2 03 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [20:08:33]RAPDU: 90 00 [20:08:33]wFMCommunicate OK [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 0D 03 02 [20:08:33]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0B 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 0B 00 0E 01 00 2A 80 26 B8 3F 26 C8 FB 90 00 3B [20:08:33]RAPDU: 2A 80 26 B8 3F 26 C8 FB 90 00 [20:08:33]wFMCommunicate OK [20:08:33]SAM_PROTO_SignData done [20:08:33]FM_MakeSignedData done [20:08:33]CreateOFDProtocolMessage [20:08:33]wFMCommunicate request_size=4 [20:08:33]MH_SAM_APDU [20:08:33]CAPDU: 80 11 00 00 [20:08:33]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:33]Read from MH i2c: E2 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 17 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [20:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:08:33]wFMCommunicate OK [20:08:33]CreateOFDProtocolMessage done [20:08:33]OFDSenderStorePacket 178716 [20:08:33]StoreOFDPacket docnum=178716 [20:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 EE FA 07 01 94 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3F EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1C BA 02 00 35 04 06 00 63 13 F6 19 B5 30 2A 80 26 B8 3F 26 C8 FB [20:08:33]CheckFolder [20:08:33]dirname=/storage/ofd_packets [20:08:33]CheckFolder done [20:08:33]ProducePacketName [20:08:33]name=ofd_packets/00178716 [20:08:33]NVStorageSaveData ofd_packets/00178716 [20:08:33]File name is /storage/ofd_packets/00178716 [20:08:33]Write 301 bytes [20:08:33]NVStorageSaveData done [20:08:33]OFDSenderStorePacket done [20:08:33]KKMCreateOFDPacket done [20:08:33]NVStorageSaveData kkm_last_timestamp [20:08:33]File name is /storage/kkm_last_timestamp [20:08:33]Write 4 bytes [20:08:33]NVStorageSaveData done [20:08:33]ExternCall_PrintAddStr [20:08:33]wPrintStart [20:08:33]Write to MH i2c: 01 00 00 10 01 11 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 07 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [20:08:33]RasterBufferAndPrint [20:08:33]line Счет N : (1)294660 [20:08:33]line ИНН: 02508201610067 [20:08:33]line Контрольно-Кассовый Чек [20:08:33]line ПРОДАЖА [20:08:33]line ТРК (МРК, ГНК) : 52 [20:08:33]line Товар: 2710124130 [20:08:33]line Аи-92-К-5 [20:08:33]line 5.900 * 67.80 [20:08:33]line = 400.02 [20:08:33]line НДС 12% НСП 1% [20:08:33]line > о реализуемом товаре [20:08:33]line ОКРУГЛЕНИЕ: -0.02 [20:08:33]line ИТОГО: 400.00 [20:08:33]line Внесено: 400.00 [20:08:33]line СДАЧА: 0.00 [20:08:33]line НСП 1% : 3.54 [20:08:33]line НДС 12% : 42.48 [20:08:33]line Наличными: 400.00 [20:08:33]line Безнал.: 0.00 [20:08:33]line Место: АЗС № 130 "Партнер Нефть" [20:08:33]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:08:33]line СНО: Общий режим [20:08:33]line Чек 176 23.08.2024 20:08 [20:08:33]line Смена: 470 ФФД: 1.0 [20:08:33]line ЗНМ: 0300000071 [20:08:33]line РНМ: 0000000000092561 [20:08:33]line Версия ККМ: 001 [20:08:33]line ФМ: 0000000000871778 [20:08:33]line ФД: 178716 [20:08:33]line ФПД: 108937384408368 [20:08:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200831&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178716&fm=108937384408368&tin=02508201610067®Number=0000000000092561&sum=40000 [20:08:33]written 0, free lines is 4095 [20:08:33]OFD Sender: Processing packet 178716 [packets to send 500, broken 499] [20:08:33]ProducePacketName [20:08:33]name=ofd_packets/00178716 [20:08:33]OFD Sender: To server: pG, [20:08:33]CommunicateWithHost lk.salyk.kg:30040 [20:08:33]ConnectInit lk.salyk.kg [20:08:33]Write to MH i2c: 01 00 00 3B 01 3C [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 07 00 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 DC 0C 2B [20:08:33]RasterBufferAndPrint [20:08:33]line [20:08:33]line [20:08:33]line [20:08:33]line [20:08:33]line [20:08:33]written 0, free lines is 3307 [20:08:33]MH_Cut [20:08:33]Write to MH i2c: D1 01 00 42 01 01 15 [20:08:33]Write i2c OK [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: D1 [20:08:33]MH_I2C_Read... [20:08:33]Read from MH i2c: D1 01 00 [20:08:33]MH_I2C_Read... [20:08:34]Read from MH i2c: D1 01 00 42 01 00 14 [20:08:34]Write to MH i2c: 01 00 00 43 01 44 [20:08:34]Write i2c OK [20:08:34]MH_I2C_Read... [20:08:34]*** Cut start [20:08:34]*** Partial cut [20:08:34]*** CUTSNS_PIN = 1 [20:08:34]*** CUTSNS_PIN = 0 [20:08:34]*** Brake cut motor [20:08:35]Read from MH i2c: 01 [20:08:35]MH_I2C_Read... [20:08:35]*** Stop cut motor [20:08:35]*** Cut end [20:08:35]Read from MH i2c: 01 07 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [20:08:35]process_action close_receipt done [20:08:35]requested_data is exist [20:08:35]produce_requested_data [20:08:35]requested_item fm.sn is exist - process it [20:08:35]wFMCommunicate request_size=4 [20:08:35]MH_SAM_APDU [20:08:35]CAPDU: 80 11 00 00 [20:08:35]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:35]Read from MH i2c: E2 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 17 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 18 [20:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:08:35]wFMCommunicate OK [20:08:35]requested_item fd.num is exist - process it [20:08:35]SAM_PROTO_GetFieldsCounters [20:08:35]wFMCommunicate request_size=4 [20:08:35]MH_SAM_APDU [20:08:35]CAPDU: 80 13 00 00 [20:08:35]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:35]Read from MH i2c: E2 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 62 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 62 00 45 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1C BA 02 00 0E 04 04 00 D6 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 A6 [20:08: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1C BA 02 00 0E 04 04 00 D6 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 [20:08:35]wFMCommunicate OK [20:08:35]SAM_PROTO_GetFieldsCounters done [20:08:35]requested_item shift.num is exist - process it [20:08:35]requested_item shift.opened is exist - process it [20:08:35]req_shift_opened [20:08:35]FM_GetShiftState [20:08:35]SAM_PROTO_GetShiftState [20:08:35]wFMCommunicate request_size=4 [20:08:35]MH_SAM_APDU [20:08:35]CAPDU: 80 13 01 00 [20:08:35]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [20:08:35]Write i2c OK [20:08:35]MH_I2C_Read... [20:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:35]Read from MH i2c: E2 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 0E 00 [20:08:35]MH_I2C_Read... [20:08:35]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9B [20:08:35]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:08:35]wFMCommunicate OK [20:08:35]SAM_PROTO_GetShiftState done [20:08:35]FM_GetShiftState done [20:08:35]req_shift_opened done [20:08:35]requested_item shift.open_date is exist - process it [20:08:35]req_shift_open_date [20:08:35]req_shift_open_date done [20:08:35]produce_requested_data done [20:08:35]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178716,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:08:35]process_action_free close_receipt [20:08:35]json_value_free [20:08:35]json_value_free done [20:08:35]process_json_proto returns [20:08:35]Send response to host [20:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178716,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:08:35]free response buf [20:08:35]execute_script done [20:08:35]execute_script returns [20:08:35]free content buf [20:08:35]Sock 10.Close socket [20:08:35]Sock 10.Thread stoped [20:08:35]Connected sock=11 [20:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 EE FA 07 01 94 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 3F EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1C BA 02 00 35 04 06 00 63 13 F6 19 B5 30 2A 80 26 B8 3F 26 C8 FB [20:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 BA A8 47 00 CA 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 31 37 37 38 10 04 04 00 1C BA 02 00 F4 03 04 00 E8 97 C8 66 B6 04 01 00 00 67 2E 35 7B 8C F8 FA 38 [20:08:37]CommunicateWithHost err = 0 [20:08:37]CheckOFDResponse [20:08:37]1017 (14) - 77093643461234 [20:08:37]1041 (16) - 0000000000871778 [20:08:37]1040 (4) - 178716 [20:08:37]1012 (4) - 23.08.2024 14:08 [20:08:37]1206 (1) - 0 [20:08:37]OFD Sender: Remove packet 178716 [20:08:37]ProducePacketName [20:08:37]name=ofd_packets/00178716 [20:08:37]NVStorageDeleteData [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:51]accept exits with 9 [20:08:51]New connection [20:08:51]New thread 3067538788 created [20:08:51]Thread 3067395428 joined [20:08:51]Waiting for new connection... [20:08:51] Sock 9.Parse request [20:08:51]Sock 9.Check first char [20:08:51]Sock 9.First char is OK [20:08:51]request: POST /json_proto HTTP/1.0 [20:08:51]Method: POST [20:08:51]URL: /json_proto [20:08:51]Method is POST - this is cgi request [20:08:51]url: /json_proto [20:08:51]query_string will be loaded in cgi processing [20:08:51]execute_cgi json_proto POST (null) [20:08:51]execute_cgi path=json_proto method=POST [20:08:51]POST find Content-Length [20:08:51]Host: 172.17.44.131:8080 [20:08:51]Content-Length: 680 [20:08:51]Content-Type: application/json [20:08:51] [20:08:51]POST finish read [20:08:51]Found Content-Length = 680 [20:08:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 9.360, "sum" : 350.06, "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" ] } } [20:08:51]execute_script... [20:08: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)294658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 9.360, "sum" : 350.06, "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" ] } } [20:08:51]POST & json_proto [20:08:51]process_json_proto [20:08:51]json parsed OK: [20:08:51]protocol is kg_v1.0 [20:08:51]action value=close_receipt [20:08:51]process_action close_receipt [20:08:51]cmd_close_receipt [20:08:51]MH_GetDate [20:08:51]Write to MH i2c: F0 00 00 47 01 37 [20:08:51]Write i2c OK [20:08:51]MH_I2C_Read... [20:08:51]Read from MH i2c: F0 [20:08:51]MH_I2C_Read... [20:08:51]Read from MH i2c: F0 09 00 [20:08:51]MH_I2C_Read... [20:08:51]Read from MH i2c: F0 09 00 47 01 00 53 EC C8 66 4F 53 BE 66 73 [20:08:51]GetLastDocTimeStamp 1724443711 [20:08:51]current date 1724443731 [20:08:51]FM_GetShiftState [20:08:51]SAM_PROTO_GetShiftState [20:08:51]wFMCommunicate request_size=4 [20:08:51]MH_SAM_APDU [20:08:51]CAPDU: 80 13 01 00 [20:08:51]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [20:08:51]Write i2c OK [20:08:51]MH_I2C_Read... [20:08:51]Read from MH i2c: E2 [20:08:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:51]MH_I2C_Read... [20:08:51]Read from MH i2c: E2 0E 00 [20:08:51]MH_I2C_Read... [20:08:51]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9D [20:08:51]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:08:51]wFMCommunicate OK [20:08:51]SAM_PROTO_GetShiftState done [20:08:51]FM_GetShiftState done [20:08:51]opened in 1724371660 [20:08:51]opened+sec_in_day 1724458060 [20:08:51]quantity*price = 35006 [20:08:51]sum+1 = 35007 [20:08:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 177 23.08.2024 20:08 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178717 ФПД: 142515048006380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200851&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178717&fm=142515048006380&tin=02508201610067®Number=0000000000092561&sum=35000 [20:08:52]StoreToDocumentArchive [20:08:52]shift 470 fd 178717 [20:08:52]save to /storage/0470/doc_00178717 [20:08:52]save last doc name /storage/0470/doc_00178717 to /storage/kkm_last_doc_name [20:08:52]save OK [20:08:52]Clear old archive folders... [20:08:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:08:52]tlvbuf is 00A54A90 [20:08:52]SAM_PROTO_ClearQueue [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 09 00 00 [20:08:52]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]recv_with_timeout no data received [20:08:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [20:08:52]RAPDU: 90 00 [20:08:52]wFMCommunicate OK [20:08:52]SAM_PROTO_ClearQueue done [20:08:52]KKMCreateOFDPacket [20:08:52]OFDProtocolAddRootSTLVToBuf [20:08:52]FM_MakeSignedData [20:08:52]FM_MakeSignedData [20:08:52]SAM_PROTO_SignData [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 0D 01 02 [20:08:52]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [20:08:52]RAPDU: 90 00 [20:08:52]wFMCommunicate OK [20:08:52]wFMCommunicate request_size=255 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1D BA 02 00 35 04 06 00 81 9D [20:08:52]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1D BA 02 00 35 04 06 00 81 9D 00 00 68 [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [20:08:52]RAPDU: 90 00 [20:08:52]wFMCommunicate OK [20:08:52]wFMCommunicate request_size=9 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 0D 02 02 04 DE CF C2 EC [20:08:52]Write to MH i2c: E2 0C 00 58 01 80 0D 02 02 04 00 DE CF C2 EC 00 00 36 [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [20:08:52]RAPDU: 90 00 [20:08:52]wFMCommunicate OK [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 0D 03 02 [20:08:52]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0B 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 0B 00 59 01 00 CD F5 6F 3E EB 8B 75 38 90 00 68 [20:08:52]RAPDU: CD F5 6F 3E EB 8B 75 38 90 00 [20:08:52]wFMCommunicate OK [20:08:52]SAM_PROTO_SignData done [20:08:52]FM_MakeSignedData done [20:08:52]CreateOFDProtocolMessage [20:08:52]wFMCommunicate request_size=4 [20:08:52]MH_SAM_APDU [20:08:52]CAPDU: 80 11 00 00 [20:08:52]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [20:08:52]OFD Sender: No OFD packet to send [20:08:52]Write i2c OK [20:08:52]MH_I2C_Read... [20:08:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:52]Read from MH i2c: E2 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 17 00 [20:08:52]MH_I2C_Read... [20:08:52]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2E [20:08:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:08:52]wFMCommunicate OK [20:08:52]CreateOFDProtocolMessage done [20:08:52]OFDSenderStorePacket 178717 [20:08:52]StoreOFDPacket docnum=178717 [20:08:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 0D D7 06 01 A3 05 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1D BA 02 00 35 04 06 00 81 9D DE CF C2 EC CD F5 6F 3E EB 8B 75 38 [20:08:52]CheckFolder [20:08:52]dirname=/storage/ofd_packets [20:08:52]CheckFolder done [20:08:52]ProducePacketName [20:08:52]name=ofd_packets/00178717 [20:08:53]NVStorageSaveData ofd_packets/00178717 [20:08:53]File name is /storage/ofd_packets/00178717 [20:08:53]Write 300 bytes [20:08:53]NVStorageSaveData done [20:08:53]OFDSenderStorePacket done [20:08:53]KKMCreateOFDPacket done [20:08:53]NVStorageSaveData kkm_last_timestamp [20:08:53]File name is /storage/kkm_last_timestamp [20:08:53]Write 4 bytes [20:08:53]NVStorageSaveData done [20:08:53]ExternCall_PrintAddStr [20:08:53]wPrintStart [20:08:53]Write to MH i2c: 01 00 00 5B 01 5C [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [20:08:53]RasterBufferAndPrint [20:08:53]line Счет N : (1)294658 [20:08:53]line ИНН: 02508201610067 [20:08:53]line Контрольно-Кассовый Чек [20:08:53]line ПРОДАЖА [20:08:53]line ТРК (МРК, ГНК) : 81 [20:08:53]line Товар: 2711129700 [20:08:53]line ГАЗ-К-5 [20:08:53]line 9.360 * 37.40 [20:08:53]line = 350.06 [20:08:53]line НДС 12% НСП 1% [20:08:53]line > о реализуемом товаре [20:08:53]line ОКРУГЛЕНИЕ: -0.06 [20:08:53]line ИТОГО: 350.00 [20:08:53]line Внесено: 350.00 [20:08:53]line СДАЧА: 0.00 [20:08:53]line НСП 1% : 3.10 [20:08:53]line НДС 12% : 37.17 [20:08:53]line Наличными: 350.00 [20:08:53]line Безнал.: 0.00 [20:08:53]line Место: АЗС № 130 "Партнер Нефть" [20:08:53]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:08:53]line СНО: Общий режим [20:08:53]line Чек 177 23.08.2024 20:08 [20:08:53]line Смена: 470 ФФД: 1.0 [20:08:53]line ЗНМ: 0300000071 [20:08:53]line РНМ: 0000000000092561 [20:08:53]line Версия ККМ: 001 [20:08:53]line ФМ: 0000000000871778 [20:08:53]line ФД: 178717 [20:08:53]line ФПД: 142515048006380 [20:08:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200851&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178717&fm=142515048006380&tin=02508201610067®Number=0000000000092561&sum=35000 [20:08:53]OFD Sender: Processing packet 178717 [packets to send 500, broken 499] [20:08:53]ProducePacketName [20:08:53]name=ofd_packets/00178717 [20:08:53]OFD Sender: To server: pG, [20:08:53]CommunicateWithHost lk.salyk.kg:30040 [20:08:53]ConnectInit lk.salyk.kg [20:08:53]written 0, free lines is 4095 [20:08:53]Write to MH i2c: 01 00 00 86 01 87 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: 01 07 00 86 01 00 00 00 00 00 CC 0C 66 [20:08:53]RasterBufferAndPrint [20:08:53]line [20:08:53]line [20:08:53]line [20:08:53]line [20:08:53]line [20:08:53]written 0, free lines is 3297 [20:08:53]MH_Cut [20:08:53]Write to MH i2c: D1 01 00 8D 01 01 60 [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: D1 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: D1 01 00 [20:08:53]MH_I2C_Read... [20:08:53]Read from MH i2c: D1 01 00 8D 01 00 5F [20:08:53]Write to MH i2c: 01 00 00 8E 01 8F [20:08:53]Write i2c OK [20:08:53]MH_I2C_Read... [20:08:54]Connected sock=7 [20:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 0D D7 06 01 A3 05 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 BE 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 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 53 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1D BA 02 00 35 04 06 00 81 9D DE CF C2 EC CD F5 6F 3E EB 8B 75 38 [20:08:54]*** Cut start [20:08:54]*** Partial cut [20:08:54]*** CUTSNS_PIN = 1 [20:08:54]*** CUTSNS_PIN = 0 [20:08:54]*** Brake cut motor [20:08:54]Read from MH i2c: 01 [20:08:54]MH_I2C_Read... [20:08:54]*** Stop cut motor [20:08:54]*** Cut end [20:08:54]Read from MH i2c: 01 07 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [20:08:54]process_action close_receipt done [20:08:54]requested_data is exist [20:08:54]produce_requested_data [20:08:54]requested_item fm.sn is exist - process it [20:08:54]wFMCommunicate request_size=4 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 11 00 00 [20:08:54]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:54]Read from MH i2c: E2 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 17 00 [20:08:54]MH_I2C_Read... [20:08:54]Read from MH i2c: E2 17 00 8F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 63 [20:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:08:54]wFMCommunicate OK [20:08:54]requested_item fd.num is exist - process it [20:08:54]SAM_PROTO_GetFieldsCounters [20:08:54]wFMCommunicate request_size=4 [20:08:54]MH_SAM_APDU [20:08:54]CAPDU: 80 13 00 00 [20:08:54]Write to MH i2c: E2 08 00 90 01 80 13 00 00 00 00 00 00 0D [20:08:54]Write i2c OK [20:08:54]MH_I2C_Read... [20:08:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:55]Read from MH i2c: E2 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: E2 62 00 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: E2 62 00 90 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1D BA 02 00 0E 04 04 00 D6 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 F5 [20:08: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1D BA 02 00 0E 04 04 00 D6 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 [20:08:55]wFMCommunicate OK [20:08:55]SAM_PROTO_GetFieldsCounters done [20:08:55]requested_item shift.num is exist - process it [20:08:55]requested_item shift.opened is exist - process it [20:08:55]req_shift_opened [20:08:55]FM_GetShiftState [20:08:55]SAM_PROTO_GetShiftState [20:08:55]wFMCommunicate request_size=4 [20:08:55]MH_SAM_APDU [20:08:55]CAPDU: 80 13 01 00 [20:08:55]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [20:08:55]Write i2c OK [20:08:55]MH_I2C_Read... [20:08:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:55]Read from MH i2c: E2 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: E2 0E 00 [20:08:55]MH_I2C_Read... [20:08:55]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E6 [20:08:55]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:08:55]wFMCommunicate OK [20:08:55]SAM_PROTO_GetShiftState done [20:08:55]FM_GetShiftState done [20:08:55]req_shift_opened done [20:08:55]requested_item shift.open_date is exist - process it [20:08:55]req_shift_open_date [20:08:55]req_shift_open_date done [20:08:55]produce_requested_data done [20:08:55]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178717,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:08:55]process_action_free close_receipt [20:08:55]json_value_free [20:08:55]json_value_free done [20:08:55]process_json_proto returns [20:08:55]Send response to host [20:08:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178717,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:08:55]free response buf [20:08:55]execute_script done [20:08:55]execute_script returns [20:08:55]free content buf [20:08:55]Sock 9.Close socket [20:08:55]Sock 9.Thread stoped [20:08:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 66 EB 47 00 90 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 31 37 37 38 10 04 04 00 1D BA 02 00 F4 03 04 00 FB 97 C8 66 B6 04 01 00 00 38 2E 02 10 87 9D 44 D1 [20:08:56]CommunicateWithHost err = 0 [20:08:56]CheckOFDResponse [20:08:56]1017 (14) - 77093643461234 [20:08:56]1041 (16) - 0000000000871778 [20:08:56]1040 (4) - 178717 [20:08:56]1012 (4) - 23.08.2024 14:08 [20:08:56]1206 (1) - 0 [20:08:56]OFD Sender: Remove packet 178717 [20:08:56]ProducePacketName [20:08:56]name=ofd_packets/00178717 [20:08:56]NVStorageDeleteData [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:52]accept exits with 10 [20:09:52]New connection [20:09:52]New thread 3067395428 created [20:09:52]Thread 3067538788 joined [20:09:52]Waiting for new connection... [20:09:52] Sock 10.Parse request [20:09:52]Sock 10.Check first char [20:09:52]Sock 10.First char is OK [20:09:52]request: POST /json_proto HTTP/1.0 [20:09:52]Method: POST [20:09:52]URL: /json_proto [20:09:52]Method is POST - this is cgi request [20:09:52]url: /json_proto [20:09:52]query_string will be loaded in cgi processing [20:09:52]execute_cgi json_proto POST (null) [20:09:52]execute_cgi path=json_proto method=POST [20:09:52]POST find Content-Length [20:09:52]Host: 172.17.44.131:8080 [20:09:52]Content-Length: 679 [20:09:52]Content-Type: application/json [20:09:52] [20:09:52]POST finish read [20:09:52]Found Content-Length = 679 [20:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:52]execute_script... [20:09: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)294661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:52]POST & json_proto [20:09:52]process_json_proto [20:09:52]json parsed OK: [20:09:52]protocol is kg_v1.0 [20:09:52]action value=close_receipt [20:09:52]process_action close_receipt [20:09:52]cmd_close_receipt [20:09:52]MH_GetDate [20:09:52]Write to MH i2c: F0 00 00 92 01 82 [20:09:52]Write i2c OK [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: F0 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: F0 09 00 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: F0 09 00 92 01 00 90 EC C8 66 4F 53 BE 66 FB [20:09:52]GetLastDocTimeStamp 1724443731 [20:09:52]current date 1724443792 [20:09:52]FM_GetShiftState [20:09:52]SAM_PROTO_GetShiftState [20:09:52]wFMCommunicate request_size=4 [20:09:52]MH_SAM_APDU [20:09:52]CAPDU: 80 13 01 00 [20:09:52]Write to MH i2c: E2 08 00 93 01 80 13 01 00 00 00 00 00 11 [20:09:52]Write i2c OK [20:09:52]MH_I2C_Read... [20:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:52]Read from MH i2c: E2 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: E2 0E 00 [20:09:52]MH_I2C_Read... [20:09:52]Read from MH i2c: E2 0E 00 93 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E8 [20:09:52]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:09:52]wFMCommunicate OK [20:09:52]SAM_PROTO_GetShiftState done [20:09:52]FM_GetShiftState done [20:09:52]opened in 1724371660 [20:09:52]opened+sec_in_day 1724458060 [20:09:52]quantity*price = 200025 [20:09:52]sum+1 = 200026 [20:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 178 23.08.2024 20:09 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178718 ФПД: 242727873531650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T200952&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178718&fm=242727873531650&tin=02508201610067®Number=0000000000092561&sum=200000 [20:09:53]StoreToDocumentArchive [20:09:53]shift 470 fd 178718 [20:09:53]save to /storage/0470/doc_00178718 [20:09:53]save last doc name /storage/0470/doc_00178718 to /storage/kkm_last_doc_name [20:09:53]save OK [20:09:53]Clear old archive folders... [20:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:09:53]tlvbuf is 00A499F0 [20:09:53]SAM_PROTO_ClearQueue [20:09:53]wFMCommunicate request_size=4 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 09 00 00 [20:09:53]Write to MH i2c: E2 08 00 A0 01 80 09 00 00 00 00 00 00 13 [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:53]Read from MH i2c: E2 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 03 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [20:09:53]RAPDU: 90 00 [20:09:53]wFMCommunicate OK [20:09:53]SAM_PROTO_ClearQueue done [20:09:53]KKMCreateOFDPacket [20:09:53]OFDProtocolAddRootSTLVToBuf [20:09:53]FM_MakeSignedData [20:09:53]FM_MakeSignedData [20:09:53]SAM_PROTO_SignData [20:09:53]wFMCommunicate request_size=4 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 0D 01 02 [20:09:53]Write to MH i2c: E2 08 00 A1 01 80 0D 01 02 00 00 00 00 1B [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:53]Read from MH i2c: E2 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 03 00 [20:09:53]MH_I2C_Read... [20:09:53]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [20:09:53]RAPDU: 90 00 [20:09:53]wFMCommunicate OK [20:09:53]wFMCommunicate request_size=255 [20:09:53]MH_SAM_APDU [20:09:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 90 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1E BA 02 00 35 04 06 00 DC C2 7C AD [20:09:53]Write to MH i2c: E2 02 01 A2 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 90 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1E BA 02 00 35 04 06 00 DC C2 7C AD 00 00 6B [20:09:53]Write i2c OK [20:09:53]MH_I2C_Read... [20:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:54]Read from MH i2c: E2 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 03 00 [20:09:54]MH_I2C_Read... [20:09:54]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [20:09:54]RAPDU: 90 00 [20:09:54]wFMCommunicate OK [20:09:54]wFMCommunicate request_size=7 [20:09:54]MH_SAM_APDU [20:09:54]CAPDU: 80 0D 02 02 02 CF 02 [20:09:54]Write to MH i2c: E2 0A 00 A3 01 80 0D 02 02 02 00 CF 02 [20:10:41] *** EcrCore started. Build 196 *** [20:10:41]MH_InterfaceInit /dev/i2c-1 [20:10:41]Malloc ok [20:10:41]MH_GetMetrics [20:10:41]Write to MH i2c: 00 00 00 01 00 00 [20:10:41]/dev/ttyS4 opened [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 00 29 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4A [20:10:41]Are we in boot? [20:10:41]We are not in boot now [20:10:41]Write to MH i2c: 01 00 00 02 00 02 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 01 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 01 07 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 01 07 00 02 00 00 00 00 00 00 FF 0F 17 [20:10:41]Model is 3 [20:10:41]MH firmware is 30620 [20:10:41]MH boot firmware is 3 [20:10:41]MH_SetPrinterDots 448 [20:10:41]HeadWidthInBytes 56 [20:10:41]maxmasksize 7 [20:10:41]Write to MH i2c: D6 06 00 03 00 78 00 80 00 FF FF D4 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: D6 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: D6 01 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: D6 01 00 03 00 00 D9 [20:10:41]Write to MH i2c: D5 00 00 04 00 D8 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: D5 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: D5 01 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: D5 01 00 04 00 00 D9 [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]LoadDictionaryFromArray [20:10:41]Load OK [20:10:41]ExternCall_SetCallbacks [20:10:41]NVStorageInit [20:10:41]MH_GetDate [20:10:41]Write to MH i2c: F0 00 00 05 00 F4 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: F0 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: F0 09 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: F0 09 00 05 00 00 C1 EC C8 66 4F 53 BE 66 9E [20:10:41]Current date/time: 23.08.2024 20:10 [20:10:41]FM_Init [20:10:41]wFMConnect [20:10:41]MH_SAM_On [20:10:41]Write to MH i2c: E0 00 00 06 00 E5 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_init finished! [20:10:41]*** atr: [20:10:41]*** 0F 3B D5 18 FF 81 91 FE [20:10:41]*** 1F C3 80 73 C8 21 10 0A [20:10:41]*** 00 00 00 00 00 00 00 00 [20:10:41]*** 00 00 00 00 00 00 00 00 [20:10:41]*** 00 00 00 00 00 00 00 00 [20:10:41]*** 00 00 00 00 00 00 00 00 [20:10:41]*** 00 00 00 00 00 00 00 00 [20:10:41]*** 00 00 00 00 00 00 00 00 [20:10:41]Read from MH i2c: E0 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E0 10 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E0 10 00 06 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 04 [20:10:41]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:10:41]wFMCommunicate request_size=10 [20:10:41]MH_SAM_APDU [20:10:41]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:10:41]Write to MH i2c: E2 0D 00 07 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B1 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:10:41]Read from MH i2c: E2 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 07 00 00 90 00 7B [20:10:41]RAPDU: 90 00 [20:10:41]wFMCommunicate OK [20:10:41]wFMCommunicate request_size=4 [20:10:41]MH_SAM_APDU [20:10:41]CAPDU: 80 11 00 00 [20:10:41]Write to MH i2c: E2 08 00 08 00 80 11 00 00 00 00 00 00 82 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:41]Read from MH i2c: E2 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 17 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 17 00 08 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DB [20:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:10:41]wFMCommunicate OK [20:10:41]Detected FM SN is 0000000000871778 [20:10:41]Stored FM SN is 0000000000871778 [20:10:41]wFMCommunicate request_size=9 [20:10:41]MH_SAM_APDU [20:10:41]CAPDU: 80 16 00 00 04 D9 BA 00 00 [20:10:41]Write to MH i2c: E2 0C 00 09 00 80 16 00 00 04 00 D9 BA 00 00 00 00 23 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:10:41]Read from MH i2c: E2 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:10:41]RAPDU: 90 00 [20:10:41]wFMCommunicate OK [20:10:41]FM PIN OK [20:10:41]wFMCommunicate request_size=8 [20:10:41]MH_SAM_APDU [20:10:41]CAPDU: 80 14 04 00 03 02 00 01 [20:10:41]Write to MH i2c: E2 0B 00 0A 00 80 14 04 00 03 00 02 00 01 00 00 94 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:10:41]Read from MH i2c: E2 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 0A 00 00 90 00 7E [20:10:41]RAPDU: 90 00 [20:10:41]wFMCommunicate OK [20:10:41]wFMCommunicate request_size=13 [20:10:41]MH_SAM_APDU [20:10:41]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:10:41]Write to MH i2c: E2 10 00 0B 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 B9 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:10:41]Read from MH i2c: E2 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:10:41]RAPDU: 90 00 [20:10:41]wFMCommunicate OK [20:10:41]wFMCommunicate request_size=4 [20:10:41]MH_SAM_APDU [20:10:41]CAPDU: 80 11 00 00 [20:10:41]Write to MH i2c: E2 08 00 0C 00 80 11 00 00 00 00 00 00 86 [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:41]Read from MH i2c: E2 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 17 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: E2 17 00 0C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DF [20:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:10:41]wFMCommunicate OK [20:10:41]DocumentArchiveInit [20:10:41]Start Httpd... [20:10:41]Httpd thread 3067420004 created [20:10:41]Write to MH i2c: 01 00 00 0D 00 0D [20:10:41]Write i2c OK [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 01 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 01 07 00 [20:10:41]MH_I2C_Read... [20:10:41]Read from MH i2c: 01 07 00 0D 00 00 00 00 00 00 FF 0F 22 [20:10:41]MH Int Process started [20:10:41]Allocated Socket 6 [20:10:41]Bind OK [20:10:41]Listen OK [20:10:41]httpd running on port 8080 [20:10:41]Waiting for new connection... [20:10:41]OFD Sender: Processing packet 178718 [packets to send 500, broken 499] [20:10:41]ProducePacketName [20:10:41]name=ofd_packets/00178718 [20:10:41]OFD Sender: To server: pG, [20:10:41]CommunicateWithHost lk.salyk.kg:30040 [20:10:41]ConnectInit lk.salyk.kg [20:10:42]Connected sock=5 [20:10:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 B2 D1 04 01 BE D6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 90 EC C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1E BA 02 00 35 04 06 00 DC C2 7C AD CF 02 48 2E 17 0C 93 0B B6 D4 [20:10:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FC F3 47 00 A1 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 31 37 37 38 10 04 04 00 1E BA 02 00 F4 03 04 00 67 98 C8 66 B6 04 01 00 00 F4 A6 A2 33 AC 8F B8 3B [20:10:45]CommunicateWithHost err = 0 [20:10:45]CheckOFDResponse [20:10:45]1017 (14) - 77093643461234 [20:10:45]1041 (16) - 0000000000871778 [20:10:45]1040 (4) - 178718 [20:10:45]1012 (4) - 23.08.2024 14:10 [20:10:45]1206 (1) - 0 [20:10:45]OFD Sender: Remove packet 178718 [20:10:45]ProducePacketName [20:10:45]name=ofd_packets/00178718 [20:10:45]NVStorageDeleteData [20:10:45]OFD Sender: No OFD packet to send [20:10:50]OFD Sender: No OFD packet to send [20:10:55]OFD Sender: No OFD packet to send [20:11:00]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:12:21]ConnectInit Can't connect to host [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:33]recv_with_timeout no data received [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:13:57]recv_with_timeout no data received [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:13]recv_with_timeout no data received [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:28]recv_with_timeout no data received [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:47]accept exits with 8 [20:14:47]New connection [20:14:47]New thread 3067133284 created [20:14:47]Waiting for new connection... [20:14:47] Sock 8.Parse request [20:14:47]Sock 8.Check first char [20:14:47]Sock 8.First char is OK [20:14:47]request: POST /json_proto HTTP/1.0 [20:14:47]Method: POST [20:14:47]URL: /json_proto [20:14:47]Method is POST - this is cgi request [20:14:47]url: /json_proto [20:14:47]query_string will be loaded in cgi processing [20:14:47]execute_cgi json_proto POST (null) [20:14:47]execute_cgi path=json_proto method=POST [20:14:47]POST find Content-Length [20:14:47]Host: 172.17.44.131:8080 [20:14:47]Content-Length: 803 [20:14:47]Content-Type: application/json [20:14:47] [20:14:47]POST finish read [20:14:47]Found Content-Length = 803 [20:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294665", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:47]execute_script... [20:14: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)294665", "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" : 74.20, "quantity" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:47]POST & json_proto [20:14:47]process_json_proto [20:14:47]json parsed OK: [20:14:47]protocol is kg_v1.0 [20:14:47]action value=close_receipt [20:14:47]process_action close_receipt [20:14:47]cmd_close_receipt [20:14:47]MH_GetDate [20:14:47]Write to MH i2c: F0 00 00 0E 00 FD [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: F0 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: F0 09 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: F0 09 00 0E 00 00 B7 ED C8 66 4F 53 BE 66 9E [20:14:47]GetLastDocTimeStamp 1724443792 [20:14:47]current date 1724444087 [20:14:47]FM_GetShiftState [20:14:47]SAM_PROTO_GetShiftState [20:14:47]wFMCommunicate request_size=4 [20:14:47]MH_SAM_APDU [20:14:47]CAPDU: 80 13 01 00 [20:14:47]Write to MH i2c: E2 08 00 0F 00 80 13 01 00 00 00 00 00 8C [20:14:47]Write i2c OK [20:14:47]MH_I2C_Read... [20:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:47]Read from MH i2c: E2 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 0E 00 [20:14:47]MH_I2C_Read... [20:14:47]Read from MH i2c: E2 0E 00 0F 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 63 [20:14:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:14:47]wFMCommunicate OK [20:14:47]SAM_PROTO_GetShiftState done [20:14:47]FM_GetShiftState done [20:14:47]opened in 1724371660 [20:14:47]opened+sec_in_day 1724458060 [20:14:47]quantity*price = 300064 [20:14:47]sum+1 = 300066 [20:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.65 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 0.00 Безнал.: 3000.65 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 179 23.08.2024 20:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178719 ФПД: 82105523710366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T201447&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178719&fm=82105523710366&tin=02508201610067®Number=0000000000092561&sum=300065 [20:14:48]StoreToDocumentArchive [20:14:48]shift 470 fd 178719 [20:14:48]save to /storage/0470/doc_00178719 [20:14:48]save last doc name /storage/0470/doc_00178719 to /storage/kkm_last_doc_name [20:14:48]save OK [20:14:48]Clear old archive folders... [20:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:48]tlvbuf is 01AEFC40 [20:14:48]SAM_PROTO_ClearQueue [20:14:48]wFMCommunicate request_size=4 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 09 00 00 [20:14:48]Write to MH i2c: E2 08 00 1C 00 80 09 00 00 00 00 00 00 8E [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 1C 00 00 90 00 90 [20:14:48]RAPDU: 90 00 [20:14:48]wFMCommunicate OK [20:14:48]SAM_PROTO_ClearQueue done [20:14:48]KKMCreateOFDPacket [20:14:48]OFDProtocolAddRootSTLVToBuf [20:14:48]FM_MakeSignedData [20:14:48]FM_MakeSignedData [20:14:48]SAM_PROTO_SignData [20:14:48]wFMCommunicate request_size=4 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 0D 01 02 [20:14:48]Write to MH i2c: E2 08 00 1D 00 80 0D 01 02 00 00 00 00 96 [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 1D 00 00 90 00 91 [20:14:48]RAPDU: 90 00 [20:14:48]wFMCommunicate OK [20:14:48]wFMCommunicate request_size=255 [20:14:48]MH_SAM_APDU [20:14: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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 B7 ED C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1F BA 02 00 35 04 06 00 4A [20:14:48]Write to MH i2c: E2 02 01 1E 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 B7 ED C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1F BA 02 00 35 04 06 00 4A 00 00 5F [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [20:14:48]RAPDU: 90 00 [20:14:48]wFMCommunicate OK [20:14:48]wFMCommunicate request_size=10 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 0D 02 02 05 AC AE 93 29 9E [20:14:48]Write to MH i2c: E2 0D 00 1F 00 80 0D 02 02 05 00 AC AE 93 29 9E 00 00 57 [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:48]Read from MH i2c: E2 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 [20:14:48]MH_I2C_Read... [20:14:48]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [20:14:48]RAPDU: 90 00 [20:14:48]wFMCommunicate OK [20:14:48]wFMCommunicate request_size=4 [20:14:48]MH_SAM_APDU [20:14:48]CAPDU: 80 0D 03 02 [20:14:48]Write to MH i2c: E2 08 00 20 00 80 0D 03 02 00 00 00 00 9B [20:14:48]Write i2c OK [20:14:48]MH_I2C_Read... [20:14:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 0B 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 0B 00 20 00 00 94 0F 0D 36 05 BA B3 E4 90 00 D8 [20:14:49]RAPDU: 94 0F 0D 36 05 BA B3 E4 90 00 [20:14:49]wFMCommunicate OK [20:14:49]SAM_PROTO_SignData done [20:14:49]FM_MakeSignedData done [20:14:49]CreateOFDProtocolMessage [20:14:49]wFMCommunicate request_size=4 [20:14:49]MH_SAM_APDU [20:14:49]CAPDU: 80 11 00 00 [20:14:49]Write to MH i2c: E2 08 00 21 00 80 11 00 00 00 00 00 00 9B [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:49]Read from MH i2c: E2 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 17 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: E2 17 00 21 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F4 [20:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:14:49]wFMCommunicate OK [20:14:49]CreateOFDProtocolMessage done [20:14:49]OFDSenderStorePacket 178719 [20:14:49]StoreOFDPacket docnum=178719 [20:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9F 81 07 01 4B 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 B7 ED C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1F BA 02 00 35 04 06 00 4A AC AE 93 29 9E 94 0F 0D 36 05 BA B3 E4 [20:14:49]CheckFolder [20:14:49]dirname=/storage/ofd_packets [20:14:49]CheckFolder done [20:14:49]ProducePacketName [20:14:49]name=ofd_packets/00178719 [20:14:49]NVStorageSaveData ofd_packets/00178719 [20:14:49]File name is /storage/ofd_packets/00178719 [20:14:49]Write 301 bytes [20:14:49]NVStorageSaveData done [20:14:49]OFDSenderStorePacket done [20:14:49]KKMCreateOFDPacket done [20:14:49]NVStorageSaveData kkm_last_timestamp [20:14:49]File name is /storage/kkm_last_timestamp [20:14:49]Write 4 bytes [20:14:49]NVStorageSaveData done [20:14:49]ExternCall_PrintAddStr [20:14:49]wPrintStart [20:14:49]Write to MH i2c: 01 00 00 22 00 22 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 07 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 07 00 22 00 00 00 00 00 00 FF 0F 37 [20:14:49]RasterBufferAndPrint [20:14:49]line Счет N : (1)294665 [20:14:49]line ИНН: 02508201610067 [20:14:49]line Контрольно-Кассовый Чек [20:14:49]line ПРОДАЖА [20:14:49]line ТРК (МРК, ГНК) : 63 [20:14:49]line Товар: 2710124500 [20:14:49]line Аи-95-К-5 [20:14:49]line 40.440 * 74.20 [20:14:49]line = 3000.65 [20:14:49]line НДС 12% НСП 1% [20:14:49]line > о реализуемом товаре [20:14:49]line ИТОГО: 3000.65 [20:14:49]line НСП 1% : 26.55 [20:14:49]line НДС 12% : 318.65 [20:14:49]line Наличными: 0.00 [20:14:49]line Безнал.: 3000.65 [20:14:49]line Место: АЗС № 130 "Партнер Нефть" [20:14:49]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:14:49]line СНО: Общий режим [20:14:49]line Чек 179 23.08.2024 20:14 [20:14:49]line Смена: 470 ФФД: 1.0 [20:14:49]line ЗНМ: 0300000071 [20:14:49]line РНМ: 0000000000092561 [20:14:49]line Версия ККМ: 001 [20:14:49]line Платежная система: O! деньги [20:14:49]line ФМ: 0000000000871778 [20:14:49]line ФД: 178719 [20:14:49]line ФПД: 82105523710366 [20:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T201447&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178719&fm=82105523710366&tin=02508201610067®Number=0000000000092561&sum=300065 [20:14:49]OFD Sender: Processing packet 178719 [packets to send 500, broken 499] [20:14:49]ProducePacketName [20:14:49]name=ofd_packets/00178719 [20:14:49]OFD Sender: To server: pG, [20:14:49]CommunicateWithHost lk.salyk.kg:30040 [20:14:49]ConnectInit lk.salyk.kg [20:14:49]written 0, free lines is 4095 [20:14:49]Write to MH i2c: 01 00 00 4C 00 4C [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 07 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: 01 07 00 4C 00 00 00 00 00 00 DF 0C 3E [20:14:49]RasterBufferAndPrint [20:14:49]line [20:14:49]line [20:14:49]line [20:14:49]line [20:14:49]line [20:14:49]written 0, free lines is 3299 [20:14:49]MH_Cut [20:14:49]Write to MH i2c: D1 01 00 53 00 01 25 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: D1 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: D1 01 00 [20:14:49]MH_I2C_Read... [20:14:49]Read from MH i2c: D1 01 00 53 00 00 24 [20:14:49]Write to MH i2c: 01 00 00 54 00 54 [20:14:49]Write i2c OK [20:14:49]MH_I2C_Read... [20:14:50]*** Cut start [20:14:50]*** Partial cut [20:14:50]*** CUTSNS_PIN = 1 [20:14:50]*** CUTSNS_PIN = 0 [20:14:50]*** Brake cut motor [20:14:51]Read from MH i2c: 01 [20:14:51]MH_I2C_Read... [20:14:51]*** Stop cut motor [20:14:51]Read from MH i2c: 01 07 00 [20:14:51]MH_I2C_Read... [20:14:51]*** Cut end [20:14:51]Read from MH i2c: 01 07 00 54 00 00 00 00 00 00 FF 0F 69 [20:14:51]process_action close_receipt done [20:14:51]requested_data is exist [20:14:51]produce_requested_data [20:14:51]requested_item fm.sn is exist - process it [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 11 00 00 [20:14:51]Write to MH i2c: E2 08 00 55 00 80 11 00 00 00 00 00 00 CF [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 17 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 17 00 55 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 28 [20:14:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:14:51]wFMCommunicate OK [20:14:51]requested_item fd.num is exist - process it [20:14:51]SAM_PROTO_GetFieldsCounters [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 13 00 00 [20:14:51]Write to MH i2c: E2 08 00 56 00 80 13 00 00 00 00 00 00 D2 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 62 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 62 00 56 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1F BA 02 00 0E 04 04 00 D6 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 C2 [20:14: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 1F BA 02 00 0E 04 04 00 D6 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 [20:14:51]wFMCommunicate OK [20:14:51]SAM_PROTO_GetFieldsCounters done [20:14:51]requested_item shift.num is exist - process it [20:14:51]requested_item shift.opened is exist - process it [20:14:51]req_shift_opened [20:14:51]FM_GetShiftState [20:14:51]SAM_PROTO_GetShiftState [20:14:51]wFMCommunicate request_size=4 [20:14:51]MH_SAM_APDU [20:14:51]CAPDU: 80 13 01 00 [20:14:51]Write to MH i2c: E2 08 00 57 00 80 13 01 00 00 00 00 00 D4 [20:14:51]Write i2c OK [20:14:51]MH_I2C_Read... [20:14:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:51]Read from MH i2c: E2 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 0E 00 [20:14:51]MH_I2C_Read... [20:14:51]Read from MH i2c: E2 0E 00 57 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AB [20:14:51]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:14:51]wFMCommunicate OK [20:14:51]SAM_PROTO_GetShiftState done [20:14:51]FM_GetShiftState done [20:14:51]req_shift_opened done [20:14:51]requested_item shift.open_date is exist - process it [20:14:51]req_shift_open_date [20:14:51]req_shift_open_date done [20:14:51]produce_requested_data done [20:14:51]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178719,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:14:51]process_action_free close_receipt [20:14:51]json_value_free [20:14:51]json_value_free done [20:14:51]process_json_proto returns [20:14:51]Send response to host [20:14:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178719,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:14:51]free response buf [20:14:51]execute_script done [20:14:51]execute_script returns [20:14:51]free content buf [20:14:51]Sock 8.Close socket [20:14:51]Sock 8.Thread stoped [20:14:51]Connected sock=11 [20:14:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9F 81 07 01 4B 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 B7 ED C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 1F BA 02 00 35 04 06 00 4A AC AE 93 29 9E 94 0F 0D 36 05 BA B3 E4 [20:14:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1B 9F 47 00 DD 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 31 37 37 38 10 04 04 00 1F BA 02 00 F4 03 04 00 61 99 C8 66 B6 04 01 00 00 05 2F 4E 6A 5E EC 0A F8 [20:14:52]CommunicateWithHost err = 0 [20:14:52]CheckOFDResponse [20:14:52]1017 (14) - 77093643461234 [20:14:52]1041 (16) - 0000000000871778 [20:14:52]1040 (4) - 178719 [20:14:52]1012 (4) - 23.08.2024 14:14 [20:14:52]1206 (1) - 0 [20:14:52]OFD Sender: Remove packet 178719 [20:14:52]ProducePacketName [20:14:52]name=ofd_packets/00178719 [20:14:52]NVStorageDeleteData [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:20]recv_with_timeout no data received [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:12]accept exits with 9 [20:18:12]New connection [20:18:12]New thread 3066989924 created [20:18:12]Thread 3067133284 joined [20:18:12]Waiting for new connection... [20:18:12] Sock 9.Parse request [20:18:12]Sock 9.Check first char [20:18:12]Sock 9.First char is OK [20:18:12]request: POST /json_proto HTTP/1.0 [20:18:12]Method: POST [20:18:12]URL: /json_proto [20:18:12]Method is POST - this is cgi request [20:18:12]url: /json_proto [20:18:12]query_string will be loaded in cgi processing [20:18:12]execute_cgi json_proto POST (null) [20:18:12]execute_cgi path=json_proto method=POST [20:18:12]POST find Content-Length [20:18:12]Host: 172.17.44.131:8080 [20:18:12]Content-Length: 800 [20:18:12]Content-Type: application/json [20:18:12] [20:18:12]POST finish read [20:18:12]Found Content-Length = 800 [20:18:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:12]execute_script... [20:18: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)294664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:12]POST & json_proto [20:18:12]process_json_proto [20:18:12]json parsed OK: [20:18:12]protocol is kg_v1.0 [20:18:12]action value=close_receipt [20:18:12]process_action close_receipt [20:18:12]cmd_close_receipt [20:18:12]MH_GetDate [20:18:12]Write to MH i2c: F0 00 00 58 00 47 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: F0 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: F0 09 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: F0 09 00 58 00 00 85 EE C8 66 4F 53 BE 66 B7 [20:18:12]GetLastDocTimeStamp 1724444087 [20:18:12]current date 1724444293 [20:18:12]FM_GetShiftState [20:18:12]SAM_PROTO_GetShiftState [20:18:12]wFMCommunicate request_size=4 [20:18:12]MH_SAM_APDU [20:18:12]CAPDU: 80 13 01 00 [20:18:12]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [20:18:12]Write i2c OK [20:18:12]MH_I2C_Read... [20:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:12]Read from MH i2c: E2 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0E 00 [20:18:12]MH_I2C_Read... [20:18:12]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AD [20:18:12]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:18:12]wFMCommunicate OK [20:18:12]SAM_PROTO_GetShiftState done [20:18:12]FM_GetShiftState done [20:18:12]opened in 1724371660 [20:18:12]opened+sec_in_day 1724458060 [20:18:12]quantity*price = 400050 [20:18:12]sum+1 = 400051 [20:18:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 180 23.08.2024 20:18 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178720 ФПД: 53278636655832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T201813&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178720&fm=53278636655832&tin=02508201610067®Number=0000000000092561&sum=400050 [20:18:13]StoreToDocumentArchive [20:18:13]shift 470 fd 178720 [20:18:13]save to /storage/0470/doc_00178720 [20:18:13]save last doc name /storage/0470/doc_00178720 to /storage/kkm_last_doc_name [20:18:13]save OK [20:18:13]Clear old archive folders... [20:18:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:18:13]tlvbuf is 01B1C080 [20:18:13]SAM_PROTO_ClearQueue [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 09 00 00 [20:18:13]Write to MH i2c: E2 08 00 66 00 80 09 00 00 00 00 00 00 D8 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 66 00 00 90 00 DA [20:18:13]RAPDU: 90 00 [20:18:13]wFMCommunicate OK [20:18:13]SAM_PROTO_ClearQueue done [20:18:13]KKMCreateOFDPacket [20:18:13]OFDProtocolAddRootSTLVToBuf [20:18:13]FM_MakeSignedData [20:18:13]FM_MakeSignedData [20:18:13]SAM_PROTO_SignData [20:18:13]wFMCommunicate request_size=4 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 0D 01 02 [20:18:13]Write to MH i2c: E2 08 00 67 00 80 0D 01 02 00 00 00 00 E0 [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:13]Read from MH i2c: E2 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 [20:18:13]MH_I2C_Read... [20:18:13]Read from MH i2c: E2 03 00 67 00 00 90 00 DB [20:18:13]RAPDU: 90 00 [20:18:13]wFMCommunicate OK [20:18:13]wFMCommunicate request_size=255 [20:18:13]MH_SAM_APDU [20:18:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 85 EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 20 BA 02 00 35 04 06 00 30 74 E6 36 [20:18:13]Write to MH i2c: E2 02 01 68 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 85 EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 20 BA 02 00 35 04 06 00 30 74 E6 36 00 00 BF [20:18:13]Write i2c OK [20:18:13]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 03 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [20:18:14]RAPDU: 90 00 [20:18:14]wFMCommunicate OK [20:18:14]wFMCommunicate request_size=7 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 0D 02 02 02 44 D8 [20:18:14]Write to MH i2c: E2 0A 00 69 00 80 0D 02 02 02 00 44 D8 00 00 03 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 03 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [20:18:14]RAPDU: 90 00 [20:18:14]wFMCommunicate OK [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 0D 03 02 [20:18:14]Write to MH i2c: E2 08 00 6A 00 80 0D 03 02 00 00 00 00 E5 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0B 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 0B 00 6A 00 00 9A A9 04 EA B9 8B 65 08 90 00 C8 [20:18:14]RAPDU: 9A A9 04 EA B9 8B 65 08 90 00 [20:18:14]wFMCommunicate OK [20:18:14]SAM_PROTO_SignData done [20:18:14]FM_MakeSignedData done [20:18:14]CreateOFDProtocolMessage [20:18:14]wFMCommunicate request_size=4 [20:18:14]MH_SAM_APDU [20:18:14]CAPDU: 80 11 00 00 [20:18:14]Write to MH i2c: E2 08 00 6B 00 80 11 00 00 00 00 00 00 E5 [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:14]Read from MH i2c: E2 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 17 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: E2 17 00 6B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 3E [20:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:18:14]wFMCommunicate OK [20:18:14]CreateOFDProtocolMessage done [20:18:14]OFDSenderStorePacket 178720 [20:18:14]StoreOFDPacket docnum=178720 [20:18:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D9 73 04 01 00 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 85 EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 20 BA 02 00 35 04 06 00 30 74 E6 36 44 D8 9A A9 04 EA B9 8B 65 08 [20:18:14]CheckFolder [20:18:14]dirname=/storage/ofd_packets [20:18:14]CheckFolder done [20:18:14]ProducePacketName [20:18:14]name=ofd_packets/00178720 [20:18:14]NVStorageSaveData ofd_packets/00178720 [20:18:14]File name is /storage/ofd_packets/00178720 [20:18:14]Write 298 bytes [20:18:14]NVStorageSaveData done [20:18:14]OFDSenderStorePacket done [20:18:14]KKMCreateOFDPacket done [20:18:14]NVStorageSaveData kkm_last_timestamp [20:18:14]File name is /storage/kkm_last_timestamp [20:18:14]Write 4 bytes [20:18:14]NVStorageSaveData done [20:18:14]ExternCall_PrintAddStr [20:18:14]wPrintStart [20:18:14]Write to MH i2c: 01 00 00 6C 00 6C [20:18:14]Write i2c OK [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: 01 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: 01 07 00 [20:18:14]MH_I2C_Read... [20:18:14]Read from MH i2c: 01 07 00 6C 00 00 00 00 00 00 FF 0F 81 [20:18:14]RasterBufferAndPrint [20:18:14]line Счет N : (1)294664 [20:18:14]line ИНН: 02508201610067 [20:18:14]line Контрольно-Кассовый Чек [20:18:14]line ПРОДАЖА [20:18:14]line ТРК (МРК, ГНК) : 44 [20:18:14]line Товар: 2710194800 [20:18:14]line ДТ-К-5 [20:18:14]line 52.500 * 76.20 [20:18:14]line = 4000.50 [20:18:14]line НДС 12% НСП 1% [20:18:14]line > о реализуемом товаре [20:18:14]line ИТОГО: 4000.50 [20:18:14]line НСП 1% : 35.40 [20:18:14]line НДС 12% : 424.83 [20:18:14]line Наличными: 0.00 [20:18:14]line Безнал.: 4000.50 [20:18:14]line Место: АЗС № 130 "Партнер Нефть" [20:18:14]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:18:14]line СНО: Общий режим [20:18:14]line Чек 180 23.08.2024 20:18 [20:18:14]line Смена: 470 ФФД: 1.0 [20:18:14]line ЗНМ: 0300000071 [20:18:14]line РНМ: 0000000000092561 [20:18:14]line Версия ККМ: 001 [20:18:14]line Платежная система: O! деньги [20:18:14]line ФМ: 0000000000871778 [20:18:14]line ФД: 178720 [20:18:14]line ФПД: 53278636655832 [20:18:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T201813&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178720&fm=53278636655832&tin=02508201610067®Number=0000000000092561&sum=400050 [20:18:14]OFD Sender: Processing packet 178720 [packets to send 500, broken 499] [20:18:14]ProducePacketName [20:18:14]name=ofd_packets/00178720 [20:18:14]OFD Sender: To server: pG, [20:18:14]CommunicateWithHost lk.salyk.kg:30040 [20:18:14]ConnectInit lk.salyk.kg [20:18:14]written 0, free lines is 4095 [20:18:15]Connected sock=8 [20:18:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D9 73 04 01 00 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 85 EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 20 BA 02 00 35 04 06 00 30 74 E6 36 44 D8 9A A9 04 EA B9 8B 65 08 [20:18:15]Write to MH i2c: 01 00 00 96 00 96 [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: 01 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: 01 07 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 F1 0C 9A [20:18:15]RasterBufferAndPrint [20:18:15]line [20:18:15]line [20:18:15]line [20:18:15]line [20:18:15]line [20:18:15]written 0, free lines is 3319 [20:18:15]MH_Cut [20:18:15]Write to MH i2c: D1 01 00 9D 00 01 6F [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: D1 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: D1 01 00 [20:18:15]MH_I2C_Read... [20:18:15]Read from MH i2c: D1 01 00 9D 00 00 6E [20:18:15]Write to MH i2c: 01 00 00 9E 00 9E [20:18:15]Write i2c OK [20:18:15]MH_I2C_Read... [20:18:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 ED AF 47 00 FF 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 20 BA 02 00 F4 03 04 00 2C 9A C8 66 B6 04 01 00 00 63 63 BC DB 9D 86 20 B6 [20:18:15]CommunicateWithHost err = 0 [20:18:15]CheckOFDResponse [20:18:15]1017 (14) - 77093643461234 [20:18:15]1041 (16) - 0000000000871778 [20:18:15]1040 (4) - 178720 [20:18:15]1012 (4) - 23.08.2024 14:18 [20:18:15]1206 (1) - 0 [20:18:15]OFD Sender: Remove packet 178720 [20:18:15]ProducePacketName [20:18:15]name=ofd_packets/00178720 [20:18:15]NVStorageDeleteData [20:18:15]*** Cut start [20:18:15]*** Partial cut [20:18:15]*** CUTSNS_PIN = 1 [20:18:15]*** CUTSNS_PIN = 0 [20:18:16]*** Brake cut motor [20:18:16]OFD Sender: No OFD packet to send [20:18:16]Read from MH i2c: 01 [20:18:16]MH_I2C_Read... [20:18:16]*** Stop cut motor [20:18:16]*** Cut end [20:18:16]Read from MH i2c: 01 07 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: 01 07 00 9E 00 00 00 00 00 00 FF 0F B3 [20:18:16]process_action close_receipt done [20:18:16]requested_data is exist [20:18:16]produce_requested_data [20:18:16]requested_item fm.sn is exist - process it [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 11 00 00 [20:18:16]Write to MH i2c: E2 08 00 9F 00 80 11 00 00 00 00 00 00 19 [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 17 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 17 00 9F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 72 [20:18:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:18:16]wFMCommunicate OK [20:18:16]requested_item fd.num is exist - process it [20:18:16]SAM_PROTO_GetFieldsCounters [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 13 00 00 [20:18:16]Write to MH i2c: E2 08 00 A0 00 80 13 00 00 00 00 00 00 1C [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 62 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 62 00 A0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 20 BA 02 00 0E 04 04 00 D6 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 10 [20:18: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 20 BA 02 00 0E 04 04 00 D6 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 [20:18:16]wFMCommunicate OK [20:18:16]SAM_PROTO_GetFieldsCounters done [20:18:16]requested_item shift.num is exist - process it [20:18:16]requested_item shift.opened is exist - process it [20:18:16]req_shift_opened [20:18:16]FM_GetShiftState [20:18:16]SAM_PROTO_GetShiftState [20:18:16]wFMCommunicate request_size=4 [20:18:16]MH_SAM_APDU [20:18:16]CAPDU: 80 13 01 00 [20:18:16]Write to MH i2c: E2 08 00 A1 00 80 13 01 00 00 00 00 00 1E [20:18:16]Write i2c OK [20:18:16]MH_I2C_Read... [20:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:16]Read from MH i2c: E2 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0E 00 [20:18:16]MH_I2C_Read... [20:18:16]Read from MH i2c: E2 0E 00 A1 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F5 [20:18:16]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:18:16]wFMCommunicate OK [20:18:16]SAM_PROTO_GetShiftState done [20:18:16]FM_GetShiftState done [20:18:16]req_shift_opened done [20:18:16]requested_item shift.open_date is exist - process it [20:18:16]req_shift_open_date [20:18:16]req_shift_open_date done [20:18:16]produce_requested_data done [20:18:16]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178720,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:18:16]process_action_free close_receipt [20:18:16]json_value_free [20:18:16]json_value_free done [20:18:16]process_json_proto returns [20:18:16]Send response to host [20:18:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178720,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:18:16]free response buf [20:18:16]execute_script done [20:18:16]execute_script returns [20:18:16]free content buf [20:18:16]Sock 9.Close socket [20:18:16]Sock 9.Thread stoped [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:19:58]accept exits with 10 [20:19:58]New connection [20:19:58]New thread 3067133284 created [20:19:58]Thread 3066989924 joined [20:19:58]Waiting for new connection... [20:19:58] Sock 10.Parse request [20:19:58]Sock 10.Check first char [20:19:58]Sock 10.First char is OK [20:19:58]request: POST /json_proto HTTP/1.0 [20:19:58]Method: POST [20:19:58]URL: /json_proto [20:19:58]Method is POST - this is cgi request [20:19:58]url: /json_proto [20:19:58]query_string will be loaded in cgi processing [20:19:58]execute_cgi json_proto POST (null) [20:19:58]execute_cgi path=json_proto method=POST [20:19:58]POST find Content-Length [20:19:58]Host: 172.17.44.131:8080 [20:19:58]Content-Length: 674 [20:19:58]Content-Type: application/json [20:19:58] [20:19:58]POST finish read [20:19:58]Found Content-Length = 674 [20:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:58]execute_script... [20:19: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)294669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:58]POST & json_proto [20:19:58]process_json_proto [20:19:58]json parsed OK: [20:19:58]protocol is kg_v1.0 [20:19:58]action value=close_receipt [20:19:58]process_action close_receipt [20:19:58]cmd_close_receipt [20:19:58]MH_GetDate [20:19:58]Write to MH i2c: F0 00 00 A2 00 91 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: F0 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: F0 09 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: F0 09 00 A2 00 00 EF EE C8 66 4F 53 BE 66 6B [20:19:58]GetLastDocTimeStamp 1724444293 [20:19:58]current date 1724444399 [20:19:58]FM_GetShiftState [20:19:58]SAM_PROTO_GetShiftState [20:19:58]wFMCommunicate request_size=4 [20:19:58]MH_SAM_APDU [20:19:58]CAPDU: 80 13 01 00 [20:19:58]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [20:19:58]Write i2c OK [20:19:58]MH_I2C_Read... [20:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:58]Read from MH i2c: E2 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 0E 00 [20:19:58]MH_I2C_Read... [20:19:58]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F7 [20:19:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:19:58]wFMCommunicate OK [20:19:58]SAM_PROTO_GetShiftState done [20:19:58]FM_GetShiftState done [20:19:58]opened in 1724371660 [20:19:58]opened+sec_in_day 1724458060 [20:19:58]quantity*price = 50063 [20:19:58]sum+1 = 50064 [20:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 181 23.08.2024 20:19 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178721 ФПД: 163176504944541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T201959&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178721&fm=163176504944541&tin=02508201610067®Number=0000000000092561&sum=50000 [20:19:59]StoreToDocumentArchive [20:19:59]shift 470 fd 178721 [20:19:59]save to /storage/0470/doc_00178721 [20:19:59]save last doc name /storage/0470/doc_00178721 to /storage/kkm_last_doc_name [20:19:59]save OK [20:19:59]Clear old archive folders... [20:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:19:59]tlvbuf is 01B0FFC0 [20:19:59]SAM_PROTO_ClearQueue [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 09 00 00 [20:19:59]Write to MH i2c: E2 08 00 B0 00 80 09 00 00 00 00 00 00 22 [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:59]Read from MH i2c: E2 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 [20:19:59]MH_I2C_Read... [20:19:59]Read from MH i2c: E2 03 00 B0 00 00 90 00 24 [20:19:59]RAPDU: 90 00 [20:19:59]wFMCommunicate OK [20:19:59]SAM_PROTO_ClearQueue done [20:19:59]KKMCreateOFDPacket [20:19:59]OFDProtocolAddRootSTLVToBuf [20:19:59]FM_MakeSignedData [20:19:59]FM_MakeSignedData [20:19:59]SAM_PROTO_SignData [20:19:59]wFMCommunicate request_size=4 [20:19:59]MH_SAM_APDU [20:19:59]CAPDU: 80 0D 01 02 [20:19:59]Write to MH i2c: E2 08 00 B1 00 80 0D 01 02 00 00 00 00 2A [20:19:59]Write i2c OK [20:19:59]MH_I2C_Read... [20:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 B1 00 00 90 00 25 [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]wFMCommunicate request_size=255 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EF EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 21 BA 02 00 35 04 06 00 94 68 7D 9C [20:20:00]Write to MH i2c: E2 02 01 B2 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EF EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 21 BA 02 00 35 04 06 00 94 68 7D 9C 00 00 C9 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]wFMCommunicate request_size=7 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 0D 02 02 02 E7 9D [20:20:00]Write to MH i2c: E2 0A 00 B3 00 80 0D 02 02 02 00 E7 9D 00 00 B5 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [20:20:00]RAPDU: 90 00 [20:20:00]wFMCommunicate OK [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 0D 03 02 [20:20:00]Write to MH i2c: E2 08 00 B4 00 80 0D 03 02 00 00 00 00 2F [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 0B 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 0B 00 B4 00 00 9F A4 55 29 76 56 2A 55 90 00 3C [20:20:00]RAPDU: 9F A4 55 29 76 56 2A 55 90 00 [20:20:00]wFMCommunicate OK [20:20:00]SAM_PROTO_SignData done [20:20:00]FM_MakeSignedData done [20:20:00]CreateOFDProtocolMessage [20:20:00]wFMCommunicate request_size=4 [20:20:00]MH_SAM_APDU [20:20:00]CAPDU: 80 11 00 00 [20:20:00]Write to MH i2c: E2 08 00 B5 00 80 11 00 00 00 00 00 00 2F [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:00]Read from MH i2c: E2 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 17 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: E2 17 00 B5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 88 [20:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:20:00]wFMCommunicate OK [20:20:00]CreateOFDProtocolMessage done [20:20:00]OFDSenderStorePacket 178721 [20:20:00]StoreOFDPacket docnum=178721 [20:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 97 F8 04 01 84 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EF EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 21 BA 02 00 35 04 06 00 94 68 7D 9C E7 9D 9F A4 55 29 76 56 2A 55 [20:20:00]CheckFolder [20:20:00]dirname=/storage/ofd_packets [20:20:00]CheckFolder done [20:20:00]ProducePacketName [20:20:00]name=ofd_packets/00178721 [20:20:00]NVStorageSaveData ofd_packets/00178721 [20:20:00]File name is /storage/ofd_packets/00178721 [20:20:00]Write 298 bytes [20:20:00]NVStorageSaveData done [20:20:00]OFDSenderStorePacket done [20:20:00]KKMCreateOFDPacket done [20:20:00]NVStorageSaveData kkm_last_timestamp [20:20:00]File name is /storage/kkm_last_timestamp [20:20:00]Write 4 bytes [20:20:00]NVStorageSaveData done [20:20:00]ExternCall_PrintAddStr [20:20:00]wPrintStart [20:20:00]Write to MH i2c: 01 00 00 B6 00 B6 [20:20:00]Write i2c OK [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 07 00 [20:20:00]MH_I2C_Read... [20:20:00]Read from MH i2c: 01 07 00 B6 00 00 00 00 00 00 FF 0F CB [20:20:00]RasterBufferAndPrint [20:20:00]line Счет N : (1)294669 [20:20:00]line ИНН: 02508201610067 [20:20:00]line Контрольно-Кассовый Чек [20:20:00]line ПРОДАЖА [20:20:00]line ТРК (МРК, ГНК) : 64 [20:20:00]line Товар: 2710194800 [20:20:00]line ДТ-К-5 [20:20:00]line 6.570 * 76.20 [20:20:00]line = 500.63 [20:20:00]line НДС 12% НСП 1% [20:20:00]line > о реализуемом товаре [20:20:00]line ОКРУГЛЕНИЕ: -0.63 [20:20:00]line ИТОГО: 500.00 [20:20:00]line Внесено: 500.00 [20:20:00]line СДАЧА: 0.00 [20:20:00]line НСП 1% : 4.43 [20:20:00]line НДС 12% : 53.16 [20:20:00]line Наличными: 500.00 [20:20:00]line Безнал.: 0.00 [20:20:00]line Место: АЗС № 130 "Партнер Нефть" [20:20:00]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:20:00]line СНО: Общий режим [20:20:00]line Чек 181 23.08.2024 20:19 [20:20:00]line Смена: 470 ФФД: 1.0 [20:20:00]line ЗНМ: 0300000071 [20:20:00]line РНМ: 0000000000092561 [20:20:00]line Версия ККМ: 001 [20:20:00]line ФМ: 0000000000871778 [20:20:00]line ФД: 178721 [20:20:00]line ФПД: 163176504944541 [20:20:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T201959&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178721&fm=163176504944541&tin=02508201610067®Number=0000000000092561&sum=50000 [20:20:00]OFD Sender: Processing packet 178721 [packets to send 500, broken 499] [20:20:00]ProducePacketName [20:20:00]name=ofd_packets/00178721 [20:20:00]OFD Sender: To server: pG, [20:20:00]CommunicateWithHost lk.salyk.kg:30040 [20:20:00]ConnectInit lk.salyk.kg [20:20:00]written 0, free lines is 4095 [20:20:01]Write to MH i2c: 01 00 00 E1 00 E1 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 CB 0C BF [20:20:01]RasterBufferAndPrint [20:20:01]line [20:20:01]line [20:20:01]line [20:20:01]line [20:20:01]line [20:20:01]written 0, free lines is 3282 [20:20:01]MH_Cut [20:20:01]Write to MH i2c: D1 01 00 E8 00 01 BA [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: D1 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: D1 01 00 [20:20:01]MH_I2C_Read... [20:20:01]Read from MH i2c: D1 01 00 E8 00 00 B9 [20:20:01]Write to MH i2c: 01 00 00 E9 00 E9 [20:20:01]Write i2c OK [20:20:01]MH_I2C_Read... [20:20:01]*** Cut start [20:20:01]*** Partial cut [20:20:01]*** CUTSNS_PIN = 1 [20:20:01]*** CUTSNS_PIN = 0 [20:20:02]*** Brake cut motor [20:20:02]Read from MH i2c: 01 [20:20:02]MH_I2C_Read... [20:20:02]*** Stop cut motor [20:20:02]*** Cut end [20:20:02]Read from MH i2c: 01 07 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: 01 07 00 E9 00 00 00 00 00 00 FF 0F FE [20:20:02]process_action close_receipt done [20:20:02]requested_data is exist [20:20:02]produce_requested_data [20:20:02]requested_item fm.sn is exist - process it [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 11 00 00 [20:20:02]Write to MH i2c: E2 08 00 EA 00 80 11 00 00 00 00 00 00 64 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 17 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 17 00 EA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BD [20:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:20:02]wFMCommunicate OK [20:20:02]requested_item fd.num is exist - process it [20:20:02]SAM_PROTO_GetFieldsCounters [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 13 00 00 [20:20:02]Write to MH i2c: E2 08 00 EB 00 80 13 00 00 00 00 00 00 67 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 62 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 62 00 EB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 21 BA 02 00 0E 04 04 00 D6 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 5F [20:20: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 21 BA 02 00 0E 04 04 00 D6 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 [20:20:02]wFMCommunicate OK [20:20:02]SAM_PROTO_GetFieldsCounters done [20:20:02]requested_item shift.num is exist - process it [20:20:02]requested_item shift.opened is exist - process it [20:20:02]req_shift_opened [20:20:02]FM_GetShiftState [20:20:02]SAM_PROTO_GetShiftState [20:20:02]wFMCommunicate request_size=4 [20:20:02]MH_SAM_APDU [20:20:02]CAPDU: 80 13 01 00 [20:20:02]Write to MH i2c: E2 08 00 EC 00 80 13 01 00 00 00 00 00 69 [20:20:02]Write i2c OK [20:20:02]MH_I2C_Read... [20:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:02]Read from MH i2c: E2 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 0E 00 [20:20:02]MH_I2C_Read... [20:20:02]Read from MH i2c: E2 0E 00 EC 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 40 [20:20:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:20:02]wFMCommunicate OK [20:20:02]SAM_PROTO_GetShiftState done [20:20:02]FM_GetShiftState done [20:20:02]req_shift_opened done [20:20:02]requested_item shift.open_date is exist - process it [20:20:02]req_shift_open_date [20:20:02]req_shift_open_date done [20:20:02]produce_requested_data done [20:20:02]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178721,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:20:02]process_action_free close_receipt [20:20:02]json_value_free [20:20:02]json_value_free done [20:20:02]process_json_proto returns [20:20:02]Send response to host [20:20:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178721,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:20:02]free response buf [20:20:02]execute_script done [20:20:02]execute_script returns [20:20:02]free content buf [20:20:02]Sock 10.Close socket [20:20:02]Sock 10.Thread stoped [20:20:03]Connected sock=11 [20:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 97 F8 04 01 84 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 EF EE C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 21 BA 02 00 35 04 06 00 94 68 7D 9C E7 9D 9F A4 55 29 76 56 2A 55 [20:20:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 2A AB 47 00 C3 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 21 BA 02 00 F4 03 04 00 98 9A C8 66 B6 04 01 00 00 0A 7E B2 B9 BD E2 11 0B [20:20:05]CommunicateWithHost err = 0 [20:20:05]CheckOFDResponse [20:20:05]1017 (14) - 77093643461234 [20:20:05]1041 (16) - 0000000000871778 [20:20:05]1040 (4) - 178721 [20:20:05]1012 (4) - 23.08.2024 14:20 [20:20:05]1206 (1) - 0 [20:20:05]OFD Sender: Remove packet 178721 [20:20:05]ProducePacketName [20:20:05]name=ofd_packets/00178721 [20:20:05]NVStorageDeleteData [20:20:05]OFD Sender: No OFD packet to send [20:20:10]OFD Sender: No OFD packet to send [20:20:15]OFD Sender: No OFD packet to send [20:20:16]recv_with_timeout no data received [20:20:20]OFD Sender: No OFD packet to send [20:20:25]OFD Sender: No OFD packet to send [20:20:30]OFD Sender: No OFD packet to send [20:20:35]OFD Sender: No OFD packet to send [20:20:35]accept exits with 8 [20:20:35]New connection [20:20:35]New thread 3066989924 created [20:20:35]Thread 3067133284 joined [20:20:35]Waiting for new connection... [20:20:35] Sock 8.Parse request [20:20:35]Sock 8.Check first char [20:20:35]Sock 8.First char is OK [20:20:35]request: POST /json_proto HTTP/1.0 [20:20:35]Method: POST [20:20:35]URL: /json_proto [20:20:35]Method is POST - this is cgi request [20:20:35]url: /json_proto [20:20:35]query_string will be loaded in cgi processing [20:20:35]execute_cgi json_proto POST (null) [20:20:35]execute_cgi path=json_proto method=POST [20:20:35]POST find Content-Length [20:20:35]Host: 172.17.44.131:8080 [20:20:35]Content-Length: 800 [20:20:35]Content-Type: application/json [20:20:35] [20:20:35]POST finish read [20:20:35]Found Content-Length = 800 [20:20:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:35]execute_script... [20:20: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)294668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:35]POST & json_proto [20:20:35]process_json_proto [20:20:35]json parsed OK: [20:20:35]protocol is kg_v1.0 [20:20:35]action value=close_receipt [20:20:35]process_action close_receipt [20:20:35]cmd_close_receipt [20:20:35]MH_GetDate [20:20:35]Write to MH i2c: F0 00 00 ED 00 DC [20:20:35]Write i2c OK [20:20:35]MH_I2C_Read... [20:20:35]Read from MH i2c: F0 [20:20:35]MH_I2C_Read... [20:20:35]Read from MH i2c: F0 09 00 [20:20:35]MH_I2C_Read... [20:20:35]Read from MH i2c: F0 09 00 ED 00 00 14 EF C8 66 4F 53 BE 66 DC [20:20:35]GetLastDocTimeStamp 1724444399 [20:20:35]current date 1724444436 [20:20:35]FM_GetShiftState [20:20:35]SAM_PROTO_GetShiftState [20:20:35]wFMCommunicate request_size=4 [20:20:35]MH_SAM_APDU [20:20:35]CAPDU: 80 13 01 00 [20:20:35]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [20:20:35]Write i2c OK [20:20:35]MH_I2C_Read... [20:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:35]Read from MH i2c: E2 [20:20:35]MH_I2C_Read... [20:20:35]Read from MH i2c: E2 0E 00 [20:20:35]MH_I2C_Read... [20:20:35]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 42 [20:20:35]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:20:35]wFMCommunicate OK [20:20:35]SAM_PROTO_GetShiftState done [20:20:35]FM_GetShiftState done [20:20:35]opened in 1724371660 [20:20:35]opened+sec_in_day 1724458060 [20:20:35]quantity*price = 450037 [20:20:35]sum+1 = 450038 [20:20:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4500.37 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 0.00 Безнал.: 4500.37 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 182 23.08.2024 20:20 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178722 ФПД: 183928580531481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202036&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178722&fm=183928580531481&tin=02508201610067®Number=0000000000092561&sum=450037 [20:20:37]StoreToDocumentArchive [20:20:37]shift 470 fd 178722 [20:20:37]save to /storage/0470/doc_00178722 [20:20:37]save last doc name /storage/0470/doc_00178722 to /storage/kkm_last_doc_name [20:20:37]save OK [20:20:37]Clear old archive folders... [20:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:20:37]tlvbuf is 01B04A30 [20:20:37]SAM_PROTO_ClearQueue [20:20:37]wFMCommunicate request_size=4 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 09 00 00 [20:20:37]Write to MH i2c: E2 08 00 FB 00 80 09 00 00 00 00 00 00 6D [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 FB 00 00 90 00 6F [20:20:37]RAPDU: 90 00 [20:20:37]wFMCommunicate OK [20:20:37]SAM_PROTO_ClearQueue done [20:20:37]KKMCreateOFDPacket [20:20:37]OFDProtocolAddRootSTLVToBuf [20:20:37]FM_MakeSignedData [20:20:37]FM_MakeSignedData [20:20:37]SAM_PROTO_SignData [20:20:37]wFMCommunicate request_size=4 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 0D 01 02 [20:20:37]Write to MH i2c: E2 08 00 FC 00 80 0D 01 02 00 00 00 00 75 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 FC 00 00 90 00 70 [20:20:37]RAPDU: 90 00 [20:20:37]wFMCommunicate OK [20:20:37]wFMCommunicate request_size=255 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 22 BA 02 00 35 04 06 00 A7 48 35 B4 [20:20:37]Write to MH i2c: E2 02 01 FD 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 22 BA 02 00 35 04 06 00 A7 48 35 B4 00 00 59 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]recv_with_timeout no data received [20:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [20:20:37]RAPDU: 90 00 [20:20:37]wFMCommunicate OK [20:20:37]wFMCommunicate request_size=7 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 0D 02 02 02 E5 19 [20:20:37]Write to MH i2c: E2 0A 00 FE 00 80 0D 02 02 02 00 E5 19 00 00 7A [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [20:20:37]RAPDU: 90 00 [20:20:37]wFMCommunicate OK [20:20:37]wFMCommunicate request_size=4 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 0D 03 02 [20:20:37]Write to MH i2c: E2 08 00 FF 00 80 0D 03 02 00 00 00 00 7A [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 0B 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 0B 00 FF 00 00 28 52 6F EB F7 28 35 EE 90 00 91 [20:20:37]RAPDU: 28 52 6F EB F7 28 35 EE 90 00 [20:20:37]wFMCommunicate OK [20:20:37]SAM_PROTO_SignData done [20:20:37]FM_MakeSignedData done [20:20:37]CreateOFDProtocolMessage [20:20:37]wFMCommunicate request_size=4 [20:20:37]MH_SAM_APDU [20:20:37]CAPDU: 80 11 00 00 [20:20:37]Write to MH i2c: E2 08 00 00 01 80 11 00 00 00 00 00 00 7B [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:37]Read from MH i2c: E2 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 17 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: E2 17 00 00 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D4 [20:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:20:37]wFMCommunicate OK [20:20:37]CreateOFDProtocolMessage done [20:20:37]OFDSenderStorePacket 178722 [20:20:37]StoreOFDPacket docnum=178722 [20:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 EA 76 04 01 EC 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 22 BA 02 00 35 04 06 00 A7 48 35 B4 E5 19 28 52 6F EB F7 28 35 EE [20:20:37]CheckFolder [20:20:37]dirname=/storage/ofd_packets [20:20:37]CheckFolder done [20:20:37]ProducePacketName [20:20:37]name=ofd_packets/00178722 [20:20:37]NVStorageSaveData ofd_packets/00178722 [20:20:37]File name is /storage/ofd_packets/00178722 [20:20:37]Write 298 bytes [20:20:37]NVStorageSaveData done [20:20:37]OFDSenderStorePacket done [20:20:37]KKMCreateOFDPacket done [20:20:37]NVStorageSaveData kkm_last_timestamp [20:20:37]File name is /storage/kkm_last_timestamp [20:20:37]Write 4 bytes [20:20:37]NVStorageSaveData done [20:20:37]ExternCall_PrintAddStr [20:20:37]wPrintStart [20:20:37]Write to MH i2c: 01 00 00 01 01 02 [20:20:37]Write i2c OK [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: 01 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: 01 07 00 [20:20:37]MH_I2C_Read... [20:20:37]Read from MH i2c: 01 07 00 01 01 00 00 00 00 00 FF 0F 17 [20:20:37]RasterBufferAndPrint [20:20:37]line Счет N : (1)294668 [20:20:37]line ИНН: 02508201610067 [20:20:37]line Контрольно-Кассовый Чек [20:20:37]line ПРОДАЖА [20:20:37]line ТРК (МРК, ГНК) : 21 [20:20:37]line Товар: 2710194800 [20:20:37]line ДТ-К-5 [20:20:37]line 59.060 * 76.20 [20:20:37]line = 4500.37 [20:20:37]line НДС 12% НСП 1% [20:20:37]line > о реализуемом товаре [20:20:37]line ИТОГО: 4500.37 [20:20:37]line НСП 1% : 39.83 [20:20:37]line НДС 12% : 477.91 [20:20:37]line Наличными: 0.00 [20:20:37]line Безнал.: 4500.37 [20:20:37]line Место: АЗС № 130 "Партнер Нефть" [20:20:37]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:20:37]line СНО: Общий режим [20:20:37]line Чек 182 23.08.2024 20:20 [20:20:37]line Смена: 470 ФФД: 1.0 [20:20:37]line ЗНМ: 0300000071 [20:20:37]line РНМ: 0000000000092561 [20:20:37]line Версия ККМ: 001 [20:20:37]line Платежная система: O! деньги [20:20:37]line ФМ: 0000000000871778 [20:20:37]line ФД: 178722 [20:20:37]line ФПД: 183928580531481 [20:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202036&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178722&fm=183928580531481&tin=02508201610067®Number=0000000000092561&sum=450037 [20:20:37]written 0, free lines is 4095 [20:20:37]OFD Sender: Processing packet 178722 [packets to send 500, broken 499] [20:20:37]ProducePacketName [20:20:37]name=ofd_packets/00178722 [20:20:37]OFD Sender: To server: pG, [20:20:37]CommunicateWithHost lk.salyk.kg:30040 [20:20:37]ConnectInit lk.salyk.kg [20:20:38]Write to MH i2c: 01 00 00 2B 01 2C [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: 01 07 00 2B 01 00 00 00 00 00 E2 0C 21 [20:20:38]RasterBufferAndPrint [20:20:38]line [20:20:38]line [20:20:38]line [20:20:38]line [20:20:38]line [20:20:38]written 0, free lines is 3304 [20:20:38]MH_Cut [20:20:38]Write to MH i2c: D1 01 00 32 01 01 05 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: D1 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: D1 01 00 [20:20:38]MH_I2C_Read... [20:20:38]Read from MH i2c: D1 01 00 32 01 00 04 [20:20:38]Write to MH i2c: 01 00 00 33 01 34 [20:20:38]Write i2c OK [20:20:38]MH_I2C_Read... [20:20:39]*** Cut start [20:20:39]*** Partial cut [20:20:39]*** CUTSNS_PIN = 1 [20:20:39]*** CUTSNS_PIN = 0 [20:20:39]*** Brake cut motor [20:20:39]Read from MH i2c: 01 [20:20:39]MH_I2C_Read... [20:20:39]*** Stop cut motor [20:20:39]*** Cut end [20:20:39]Read from MH i2c: 01 07 00 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: 01 07 00 33 01 00 00 00 00 00 FF 0F 49 [20:20:39]process_action close_receipt done [20:20:39]requested_data is exist [20:20:39]produce_requested_data [20:20:39]requested_item fm.sn is exist - process it [20:20:39]wFMCommunicate request_size=4 [20:20:39]MH_SAM_APDU [20:20:39]CAPDU: 80 11 00 00 [20:20:39]Write to MH i2c: E2 08 00 34 01 80 11 00 00 00 00 00 00 AF [20:20:39]Write i2c OK [20:20:39]MH_I2C_Read... [20:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:39]Read from MH i2c: E2 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: E2 17 00 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: E2 17 00 34 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 08 [20:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:20:39]wFMCommunicate OK [20:20:39]requested_item fd.num is exist - process it [20:20:39]SAM_PROTO_GetFieldsCounters [20:20:39]wFMCommunicate request_size=4 [20:20:39]MH_SAM_APDU [20:20:39]CAPDU: 80 13 00 00 [20:20:39]Write to MH i2c: E2 08 00 35 01 80 13 00 00 00 00 00 00 B2 [20:20:39]Write i2c OK [20:20:39]MH_I2C_Read... [20:20:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:39]Read from MH i2c: E2 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: E2 62 00 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: E2 62 00 35 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 22 BA 02 00 0E 04 04 00 D6 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 AE [20:20: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 22 BA 02 00 0E 04 04 00 D6 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 [20:20:39]wFMCommunicate OK [20:20:39]SAM_PROTO_GetFieldsCounters done [20:20:39]requested_item shift.num is exist - process it [20:20:39]requested_item shift.opened is exist - process it [20:20:39]req_shift_opened [20:20:39]FM_GetShiftState [20:20:39]SAM_PROTO_GetShiftState [20:20:39]wFMCommunicate request_size=4 [20:20:39]MH_SAM_APDU [20:20:39]CAPDU: 80 13 01 00 [20:20:39]Write to MH i2c: E2 08 00 36 01 80 13 01 00 00 00 00 00 B4 [20:20:39]Write i2c OK [20:20:39]MH_I2C_Read... [20:20:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:39]Read from MH i2c: E2 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: E2 0E 00 [20:20:39]MH_I2C_Read... [20:20:39]Read from MH i2c: E2 0E 00 36 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 8B [20:20:39]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:20:39]wFMCommunicate OK [20:20:39]SAM_PROTO_GetShiftState done [20:20:39]FM_GetShiftState done [20:20:39]req_shift_opened done [20:20:39]requested_item shift.open_date is exist - process it [20:20:39]req_shift_open_date [20:20:39]req_shift_open_date done [20:20:39]produce_requested_data done [20:20:39]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178722,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:20:39]process_action_free close_receipt [20:20:39]json_value_free [20:20:39]json_value_free done [20:20:39]process_json_proto returns [20:20:39]Send response to host [20:20:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178722,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:20:39]free response buf [20:20:39]execute_script done [20:20:39]execute_script returns [20:20:39]free content buf [20:20:39]Sock 8.Close socket [20:20:39]Sock 8.Thread stoped [20:20:42]ConnectInit Can't take IP for lk.salyk.kg [20:20:42]CommunicateWithHost connect error [20:20:42]CommunicateWithHost err = -1 [20:20:42]OFD Sender: Server communicate error [20:20:47]OFD Sender: Processing packet 178722 [packets to send 500, broken 499] [20:20:47]ProducePacketName [20:20:47]name=ofd_packets/00178722 [20:20:47]OFD Sender: To server: pG, [20:20:47]CommunicateWithHost lk.salyk.kg:30040 [20:20:47]ConnectInit lk.salyk.kg [20:20:53]recv_with_timeout no data received [20:20:54]Connected sock=9 [20:20:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 EA 76 04 01 EC 71 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F5 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F5 DD 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 14 EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 22 BA 02 00 35 04 06 00 A7 48 35 B4 E5 19 28 52 6F EB F7 28 35 EE [20:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 1D 2B 47 00 96 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 22 BA 02 00 F4 03 04 00 CC 9A C8 66 B6 04 01 00 00 B4 D4 40 96 07 1A 34 6F [20:20:58]CommunicateWithHost err = 0 [20:20:58]CheckOFDResponse [20:20:58]1017 (14) - 77093643461234 [20:20:58]1041 (16) - 0000000000871778 [20:20:58]1040 (4) - 178722 [20:20:58]1012 (4) - 23.08.2024 14:21 [20:20:58]1206 (1) - 0 [20:20:58]OFD Sender: Remove packet 178722 [20:20:58]ProducePacketName [20:20:58]name=ofd_packets/00178722 [20:20:58]NVStorageDeleteData [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:22]recv_with_timeout no data received [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:41]recv_with_timeout no data received [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:15]recv_with_timeout no data received [20:23:18]OFD Sender: No OFD packet to send [20:23:23]accept exits with 10 [20:23:23]New connection [20:23:23]New thread 3067133284 created [20:23:23]Thread 3066989924 joined [20:23:23]Waiting for new connection... [20:23:23] Sock 10.Parse request [20:23:23]Sock 10.Check first char [20:23:23]Sock 10.First char is OK [20:23:23]request: POST /json_proto HTTP/1.0 [20:23:23]Method: POST [20:23:23]URL: /json_proto [20:23:23]Method is POST - this is cgi request [20:23:23]url: /json_proto [20:23:23]query_string will be loaded in cgi processing [20:23:23]execute_cgi json_proto POST (null) [20:23:23]execute_cgi path=json_proto method=POST [20:23:23]POST find Content-Length [20:23:23]Host: 172.17.44.131:8080 [20:23:23]Content-Length: 682 [20:23:23]Content-Type: application/json [20:23:23] [20:23:23]POST finish read [20:23:23]Found Content-Length = 682 [20:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 24.100, "sum" : 901.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 901.00, "payments": [ { "type": 0, "sum" : 901.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:23]execute_script... [20:23: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)294667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 24.100, "sum" : 901.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 901.00, "payments": [ { "type": 0, "sum" : 901.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:23]POST & json_proto [20:23:23]process_json_proto [20:23:23]json parsed OK: [20:23:23]protocol is kg_v1.0 [20:23:23]action value=close_receipt [20:23:23]process_action close_receipt [20:23:23]cmd_close_receipt [20:23:23]MH_GetDate [20:23:23]Write to MH i2c: F0 00 00 37 01 27 [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: F0 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: F0 09 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: F0 09 00 37 01 00 BC EF C8 66 4F 53 BE 66 CF [20:23:23]GetLastDocTimeStamp 1724444436 [20:23:23]current date 1724444604 [20:23:23]FM_GetShiftState [20:23:23]SAM_PROTO_GetShiftState [20:23:23]wFMCommunicate request_size=4 [20:23:23]MH_SAM_APDU [20:23:23]CAPDU: 80 13 01 00 [20:23:23]Write to MH i2c: E2 08 00 38 01 80 13 01 00 00 00 00 00 B6 [20:23:23]Write i2c OK [20:23:23]MH_I2C_Read... [20:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:23]Read from MH i2c: E2 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 0E 00 [20:23:23]MH_I2C_Read... [20:23:23]Read from MH i2c: E2 0E 00 38 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 8D [20:23:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:23:23]wFMCommunicate OK [20:23:23]SAM_PROTO_GetShiftState done [20:23:23]FM_GetShiftState done [20:23:23]opened in 1724371660 [20:23:23]opened+sec_in_day 1724458060 [20:23:23]quantity*price = 90134 [20:23:23]sum+1 = 90135 [20:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 901.00 Внесено: 1500.00 СДАЧА: 599.00 НСП 1% : 7.98 НДС 12% : 95.72 Наличными: 901.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 183 23.08.2024 20:23 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178723 ФПД: 13309694304906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202324&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178723&fm=13309694304906&tin=02508201610067®Number=0000000000092561&sum=90100 [20:23:24]StoreToDocumentArchive [20:23:24]shift 470 fd 178723 [20:23:24]save to /storage/0470/doc_00178723 [20:23:24]save last doc name /storage/0470/doc_00178723 to /storage/kkm_last_doc_name [20:23:24]save OK [20:23:24]Clear old archive folders... [20:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:23:24]tlvbuf is 01B12C00 [20:23:24]SAM_PROTO_ClearQueue [20:23:24]wFMCommunicate request_size=4 [20:23:24]MH_SAM_APDU [20:23:24]CAPDU: 80 09 00 00 [20:23:24]Write to MH i2c: E2 08 00 45 01 80 09 00 00 00 00 00 00 B8 [20:23:24]Write i2c OK [20:23:24]MH_I2C_Read... [20:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:24]Read from MH i2c: E2 [20:23:24]MH_I2C_Read... [20:23:24]Read from MH i2c: E2 03 00 [20:23:24]MH_I2C_Read... [20:23:24]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [20:23:24]RAPDU: 90 00 [20:23:24]wFMCommunicate OK [20:23:24]SAM_PROTO_ClearQueue done [20:23:24]KKMCreateOFDPacket [20:23:24]OFDProtocolAddRootSTLVToBuf [20:23:24]FM_MakeSignedData [20:23:24]FM_MakeSignedData [20:23:24]SAM_PROTO_SignData [20:23:24]wFMCommunicate request_size=4 [20:23:24]MH_SAM_APDU [20:23:24]CAPDU: 80 0D 01 02 [20:23:24]Write to MH i2c: E2 08 00 46 01 80 0D 01 02 00 00 00 00 C0 [20:23:24]Write i2c OK [20:23:24]MH_I2C_Read... [20:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:24]Read from MH i2c: E2 [20:23:24]MH_I2C_Read... [20:23:24]Read from MH i2c: E2 03 00 [20:23:24]MH_I2C_Read... [20:23:24]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [20:23:24]RAPDU: 90 00 [20:23:24]wFMCommunicate OK [20:23:24]wFMCommunicate request_size=255 [20:23:24]MH_SAM_APDU [20:23:24]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 16 60 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 25 00 00 00 00 07 04 06 00 F4 5F 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 BC EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 23 BA 02 00 35 04 06 00 0C 1A [20:23:24]Write to MH i2c: E2 02 01 47 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 16 60 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 25 00 00 00 00 07 04 06 00 F4 5F 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 BC EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 23 BA 02 00 35 04 06 00 0C 1A 00 00 DF [20:23:24]Write i2c OK [20:23:24]MH_I2C_Read... [20:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:25]Read from MH i2c: E2 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 03 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [20:23:25]RAPDU: 90 00 [20:23:25]wFMCommunicate OK [20:23:25]wFMCommunicate request_size=9 [20:23:25]MH_SAM_APDU [20:23:25]CAPDU: 80 0D 02 02 04 E7 99 E2 8A [20:23:25]Write to MH i2c: E2 0C 00 48 01 80 0D 02 02 04 00 E7 99 E2 8A 00 00 B7 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:25]Read from MH i2c: E2 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 03 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [20:23:25]RAPDU: 90 00 [20:23:25]wFMCommunicate OK [20:23:25]wFMCommunicate request_size=4 [20:23:25]MH_SAM_APDU [20:23:25]CAPDU: 80 0D 03 02 [20:23:25]Write to MH i2c: E2 08 00 49 01 80 0D 03 02 00 00 00 00 C5 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:25]Read from MH i2c: E2 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 0B 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 0B 00 49 01 00 5B 6D 5B CC 6D 83 A5 65 90 00 AF [20:23:25]RAPDU: 5B 6D 5B CC 6D 83 A5 65 90 00 [20:23:25]wFMCommunicate OK [20:23:25]SAM_PROTO_SignData done [20:23:25]FM_MakeSignedData done [20:23:25]CreateOFDProtocolMessage [20:23:25]wFMCommunicate request_size=4 [20:23:25]MH_SAM_APDU [20:23:25]CAPDU: 80 11 00 00 [20:23:25]Write to MH i2c: E2 08 00 4A 01 80 11 00 00 00 00 00 00 C5 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:25]Read from MH i2c: E2 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 17 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: E2 17 00 4A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1E [20:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:23:25]wFMCommunicate OK [20:23:25]CreateOFDProtocolMessage done [20:23:25]OFDSenderStorePacket 178723 [20:23:25]StoreOFDPacket docnum=178723 [20:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 1B E3 06 01 66 66 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 16 60 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 25 00 00 00 00 07 04 06 00 F4 5F 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 BC EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 23 BA 02 00 35 04 06 00 0C 1A E7 99 E2 8A 5B 6D 5B CC 6D 83 A5 65 [20:23:25]CheckFolder [20:23:25]dirname=/storage/ofd_packets [20:23:25]CheckFolder done [20:23:25]ProducePacketName [20:23:25]name=ofd_packets/00178723 [20:23:25]NVStorageSaveData ofd_packets/00178723 [20:23:25]File name is /storage/ofd_packets/00178723 [20:23:25]Write 300 bytes [20:23:25]NVStorageSaveData done [20:23:25]OFDSenderStorePacket done [20:23:25]KKMCreateOFDPacket done [20:23:25]NVStorageSaveData kkm_last_timestamp [20:23:25]File name is /storage/kkm_last_timestamp [20:23:25]Write 4 bytes [20:23:25]NVStorageSaveData done [20:23:25]ExternCall_PrintAddStr [20:23:25]wPrintStart [20:23:25]Write to MH i2c: 01 00 00 4B 01 4C [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 4B 01 00 00 00 00 00 FF 0F 61 [20:23:25]RasterBufferAndPrint [20:23:25]line Счет N : (1)294667 [20:23:25]line ИНН: 02508201610067 [20:23:25]line Контрольно-Кассовый Чек [20:23:25]line ПРОДАЖА [20:23:25]line ТРК (МРК, ГНК) : 71 [20:23:25]line Товар: 2711129700 [20:23:25]line ГАЗ-К-5 [20:23:25]line 24.100 * 37.40 [20:23:25]line = 901.34 [20:23:25]line НДС 12% НСП 1% [20:23:25]line > о реализуемом товаре [20:23:25]line ОКРУГЛЕНИЕ: -0.34 [20:23:25]line ИТОГО: 901.00 [20:23:25]line Внесено: 1500.00 [20:23:25]line СДАЧА: 599.00 [20:23:25]line НСП 1% : 7.98 [20:23:25]line НДС 12% : 95.72 [20:23:25]line Наличными: 901.00 [20:23:25]line Безнал.: 0.00 [20:23:25]line Место: АЗС № 130 "Партнер Нефть" [20:23:25]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:23:25]line СНО: Общий режим [20:23:25]line Чек 183 23.08.2024 20:23 [20:23:25]line Смена: 470 ФФД: 1.0 [20:23:25]line ЗНМ: 0300000071 [20:23:25]line РНМ: 0000000000092561 [20:23:25]line Версия ККМ: 001 [20:23:25]line ФМ: 0000000000871778 [20:23:25]line ФД: 178723 [20:23:25]line ФПД: 13309694304906 [20:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202324&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178723&fm=13309694304906&tin=02508201610067®Number=0000000000092561&sum=90100 [20:23:25]written 0, free lines is 4095 [20:23:25]OFD Sender: Processing packet 178723 [packets to send 500, broken 499] [20:23:25]ProducePacketName [20:23:25]name=ofd_packets/00178723 [20:23:25]OFD Sender: To server: pG, [20:23:25]CommunicateWithHost lk.salyk.kg:30040 [20:23:25]ConnectInit lk.salyk.kg [20:23:25]Write to MH i2c: 01 00 00 76 01 77 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 CF 0C 59 [20:23:25]RasterBufferAndPrint [20:23:25]line [20:23:25]line [20:23:25]line [20:23:25]line [20:23:25]line [20:23:25]written 0, free lines is 3285 [20:23:25]MH_Cut [20:23:25]Write to MH i2c: D1 01 00 7D 01 01 50 [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: D1 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: D1 01 00 [20:23:25]MH_I2C_Read... [20:23:25]Read from MH i2c: D1 01 00 7D 01 00 4F [20:23:25]Write to MH i2c: 01 00 00 7E 01 7F [20:23:25]Write i2c OK [20:23:25]MH_I2C_Read... [20:23:26]Connected sock=11 [20:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 1B E3 06 01 66 66 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 24 5E 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 16 60 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 25 00 00 00 00 07 04 06 00 F4 5F 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 BC EF C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 23 BA 02 00 35 04 06 00 0C 1A E7 99 E2 8A 5B 6D 5B CC 6D 83 A5 65 [20:23:26]*** Cut start [20:23:26]*** Partial cut [20:23:26]*** CUTSNS_PIN = 1 [20:23:26]*** CUTSNS_PIN = 0 [20:23:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DC 0D 47 00 68 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 31 37 37 38 10 04 04 00 23 BA 02 00 F4 03 04 00 63 9B C8 66 B6 04 01 00 00 A5 F4 C3 B5 AE C4 95 96 [20:23:26]CommunicateWithHost err = 0 [20:23:26]CheckOFDResponse [20:23:26]1017 (14) - 77093643461234 [20:23:26]1041 (16) - 0000000000871778 [20:23:26]1040 (4) - 178723 [20:23:26]1012 (4) - 23.08.2024 14:23 [20:23:26]1206 (1) - 0 [20:23:26]OFD Sender: Remove packet 178723 [20:23:26]ProducePacketName [20:23:26]name=ofd_packets/00178723 [20:23:26]NVStorageDeleteData [20:23:26]*** Brake cut motor [20:23:27]Read from MH i2c: 01 [20:23:27]MH_I2C_Read... [20:23:27]*** Stop cut motor [20:23:27]*** Cut end [20:23:27]Read from MH i2c: 01 07 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: 01 07 00 7E 01 00 00 00 00 00 FF 0F 94 [20:23:27]process_action close_receipt done [20:23:27]requested_data is exist [20:23:27]produce_requested_data [20:23:27]requested_item fm.sn is exist - process it [20:23:27]wFMCommunicate request_size=4 [20:23:27]MH_SAM_APDU [20:23:27]CAPDU: 80 11 00 00 [20:23:27]Write to MH i2c: E2 08 00 7F 01 80 11 00 00 00 00 00 00 FA [20:23:27]Write i2c OK [20:23:27]MH_I2C_Read... [20:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:27]Read from MH i2c: E2 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 17 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 17 00 7F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 53 [20:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:23:27]wFMCommunicate OK [20:23:27]requested_item fd.num is exist - process it [20:23:27]SAM_PROTO_GetFieldsCounters [20:23:27]wFMCommunicate request_size=4 [20:23:27]MH_SAM_APDU [20:23:27]CAPDU: 80 13 00 00 [20:23:27]Write to MH i2c: E2 08 00 80 01 80 13 00 00 00 00 00 00 FD [20:23:27]OFD Sender: No OFD packet to send [20:23:27]Write i2c OK [20:23:27]MH_I2C_Read... [20:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:27]Read from MH i2c: E2 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 62 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 62 00 80 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 23 BA 02 00 0E 04 04 00 D6 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 FD [20:23: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 23 BA 02 00 0E 04 04 00 D6 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 [20:23:27]wFMCommunicate OK [20:23:27]SAM_PROTO_GetFieldsCounters done [20:23:27]requested_item shift.num is exist - process it [20:23:27]requested_item shift.opened is exist - process it [20:23:27]req_shift_opened [20:23:27]FM_GetShiftState [20:23:27]SAM_PROTO_GetShiftState [20:23:27]wFMCommunicate request_size=4 [20:23:27]MH_SAM_APDU [20:23:27]CAPDU: 80 13 01 00 [20:23:27]Write to MH i2c: E2 08 00 81 01 80 13 01 00 00 00 00 00 FF [20:23:27]Write i2c OK [20:23:27]MH_I2C_Read... [20:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:27]Read from MH i2c: E2 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 0E 00 [20:23:27]MH_I2C_Read... [20:23:27]Read from MH i2c: E2 0E 00 81 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D6 [20:23:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:23:27]wFMCommunicate OK [20:23:27]SAM_PROTO_GetShiftState done [20:23:27]FM_GetShiftState done [20:23:27]req_shift_opened done [20:23:27]requested_item shift.open_date is exist - process it [20:23:27]req_shift_open_date [20:23:27]req_shift_open_date done [20:23:27]produce_requested_data done [20:23:27]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178723,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:23:27]process_action_free close_receipt [20:23:27]json_value_free [20:23:27]json_value_free done [20:23:27]process_json_proto returns [20:23:27]Send response to host [20:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178723,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:23:27]free response buf [20:23:27]execute_script done [20:23:27]execute_script returns [20:23:27]free content buf [20:23:27]Sock 10.Close socket [20:23:27]Sock 10.Thread stoped [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:55]recv_with_timeout no data received [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:15]recv_with_timeout no data received [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:56]accept exits with 9 [20:25:56]New connection [20:25:56]New thread 3066989924 created [20:25:56]Thread 3067133284 joined [20:25:56]Waiting for new connection... [20:25:56] Sock 9.Parse request [20:25:56]Sock 9.Check first char [20:25:56]Sock 9.First char is OK [20:25:56]request: POST /json_proto HTTP/1.0 [20:25:56]Method: POST [20:25:56]URL: /json_proto [20:25:56]Method is POST - this is cgi request [20:25:56]url: /json_proto [20:25:56]query_string will be loaded in cgi processing [20:25:56]execute_cgi json_proto POST (null) [20:25:56]execute_cgi path=json_proto method=POST [20:25:56]POST find Content-Length [20:25:56]Host: 172.17.44.131:8080 [20:25:56]Content-Length: 819 [20:25:56]Content-Type: application/json [20:25:56] [20:25:56]POST finish read [20:25:56]Found Content-Length = 819 [20:25:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294671", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:56]execute_script... [20:25: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)294671", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:56]POST & json_proto [20:25:56]process_json_proto [20:25:56]json parsed OK: [20:25:56]protocol is kg_v1.0 [20:25:56]action value=close_receipt [20:25:56]process_action close_receipt [20:25:56]cmd_close_receipt [20:25:56]MH_GetDate [20:25:56]Write to MH i2c: F0 00 00 82 01 72 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: F0 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: F0 09 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: F0 09 00 82 01 00 55 F0 C8 66 4F 53 BE 66 B4 [20:25:56]GetLastDocTimeStamp 1724444604 [20:25:56]current date 1724444757 [20:25:56]FM_GetShiftState [20:25:56]SAM_PROTO_GetShiftState [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 13 01 00 [20:25:56]Write to MH i2c: E2 08 00 83 01 80 13 01 00 00 00 00 00 01 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 83 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D8 [20:25:57]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:25:57]wFMCommunicate OK [20:25:57]SAM_PROTO_GetShiftState done [20:25:57]FM_GetShiftState done [20:25:57]opened in 1724371660 [20:25:57]opened+sec_in_day 1724458060 [20:25:57]quantity*price = 100005 [20:25:57]sum+1 = 100006 [20:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.05 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.05 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 184 23.08.2024 20:25 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178724 ФПД: 17041720599981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202557&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178724&fm=17041720599981&tin=02508201610067®Number=0000000000092561&sum=100005 [20:25:58]StoreToDocumentArchive [20:25:58]shift 470 fd 178724 [20:25:58]save to /storage/0470/doc_00178724 [20:25:58]save last doc name /storage/0470/doc_00178724 to /storage/kkm_last_doc_name [20:25:58]save OK [20:25:58]Clear old archive folders... [20:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:58]tlvbuf is 01AEEAC0 [20:25:58]SAM_PROTO_ClearQueue [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 09 00 00 [20:25:58]Write to MH i2c: E2 08 00 90 01 80 09 00 00 00 00 00 00 03 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 90 01 00 90 00 05 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_ClearQueue done [20:25:58]KKMCreateOFDPacket [20:25:58]OFDProtocolAddRootSTLVToBuf [20:25:58]FM_MakeSignedData [20:25:58]FM_MakeSignedData [20:25:58]SAM_PROTO_SignData [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 01 02 [20:25:58]Write to MH i2c: E2 08 00 91 01 80 0D 01 02 00 00 00 00 0B [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 91 01 00 90 00 06 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]wFMCommunicate request_size=255 [20:25:58]MH_SAM_APDU [20:25: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 55 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 24 BA 02 00 35 04 06 00 0F [20:25:58]Write to MH i2c: E2 02 01 92 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 55 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 24 BA 02 00 35 04 06 00 0F 00 00 18 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]wFMCommunicate request_size=10 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 02 02 05 7F D5 B3 E5 AD [20:25:58]Write to MH i2c: E2 0D 00 93 01 80 0D 02 02 05 00 7F D5 B3 E5 AD 00 00 B1 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [20:25:58]RAPDU: 90 00 [20:25:58]wFMCommunicate OK [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 0D 03 02 [20:25:58]Write to MH i2c: E2 08 00 94 01 80 0D 03 02 00 00 00 00 10 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0B 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 0B 00 94 01 00 0C D1 48 78 20 C6 3E 17 90 00 E9 [20:25:58]RAPDU: 0C D1 48 78 20 C6 3E 17 90 00 [20:25:58]wFMCommunicate OK [20:25:58]SAM_PROTO_SignData done [20:25:58]FM_MakeSignedData done [20:25:58]CreateOFDProtocolMessage [20:25:58]wFMCommunicate request_size=4 [20:25:58]MH_SAM_APDU [20:25:58]CAPDU: 80 11 00 00 [20:25:58]Write to MH i2c: E2 08 00 95 01 80 11 00 00 00 00 00 00 10 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:58]Read from MH i2c: E2 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: E2 17 00 95 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 69 [20:25:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:25:58]wFMCommunicate OK [20:25:58]CreateOFDProtocolMessage done [20:25:58]OFDSenderStorePacket 178724 [20:25:58]StoreOFDPacket docnum=178724 [20:25:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 21 F0 07 01 2C 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 55 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 24 BA 02 00 35 04 06 00 0F 7F D5 B3 E5 AD 0C D1 48 78 20 C6 3E 17 [20:25:58]CheckFolder [20:25:58]dirname=/storage/ofd_packets [20:25:58]CheckFolder done [20:25:58]ProducePacketName [20:25:58]name=ofd_packets/00178724 [20:25:58]NVStorageSaveData ofd_packets/00178724 [20:25:58]File name is /storage/ofd_packets/00178724 [20:25:58]Write 301 bytes [20:25:58]NVStorageSaveData done [20:25:58]OFDSenderStorePacket done [20:25:58]KKMCreateOFDPacket done [20:25:58]NVStorageSaveData kkm_last_timestamp [20:25:58]File name is /storage/kkm_last_timestamp [20:25:58]Write 4 bytes [20:25:58]NVStorageSaveData done [20:25:58]ExternCall_PrintAddStr [20:25:58]wPrintStart [20:25:58]Write to MH i2c: 01 00 00 96 01 97 [20:25:58]Write i2c OK [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 07 00 [20:25:58]MH_I2C_Read... [20:25:58]Read from MH i2c: 01 07 00 96 01 00 00 00 00 00 FF 0F AC [20:25:58]RasterBufferAndPrint [20:25:58]line Счет N : (1)294671 [20:25:58]line ИНН: 02508201610067 [20:25:58]line Контрольно-Кассовый Чек [20:25:58]line ПРОДАЖА [20:25:58]line ТРК (МРК, ГНК) : 42 [20:25:58]line Товар: 2710124130 [20:25:58]line Аи-92-К-5 [20:25:58]line 14.750 * 67.80 [20:25:58]line = 1000.05 [20:25:58]line НДС 12% НСП 1% [20:25:58]line > о реализуемом товаре [20:25:58]line ИТОГО: 1000.05 [20:25:58]line НСП 1% : 8.85 [20:25:58]line НДС 12% : 106.20 [20:25:58]line Наличными: 0.00 [20:25:58]line Безнал.: 1000.05 [20:25:58]line Место: АЗС № 130 "Партнер Нефть" [20:25:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:25:58]line СНО: Общий режим [20:25:58]line Чек 184 23.08.2024 20:25 [20:25:58]line Смена: 470 ФФД: 1.0 [20:25:58]line ЗНМ: 0300000071 [20:25:58]line РНМ: 0000000000092561 [20:25:58]line Версия ККМ: 001 [20:25:58]line Платежная система: Бакай Банк [20:25:58]line ФМ: 0000000000871778 [20:25:58]line ФД: 178724 [20:25:58]line ФПД: 17041720599981 [20:25:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202557&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178724&fm=17041720599981&tin=02508201610067®Number=0000000000092561&sum=100005 [20:25:58]OFD Sender: Processing packet 178724 [packets to send 500, broken 499] [20:25:58]ProducePacketName [20:25:58]name=ofd_packets/00178724 [20:25:58]OFD Sender: To server: pG, [20:25:58]CommunicateWithHost lk.salyk.kg:30040 [20:25:58]ConnectInit lk.salyk.kg [20:25:58]written 0, free lines is 4095 [20:25:59]Write to MH i2c: 01 00 00 C0 01 C1 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 07 00 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: 01 07 00 C0 01 00 00 00 00 00 E5 0C B9 [20:25:59]RasterBufferAndPrint [20:25:59]line [20:25:59]line [20:25:59]line [20:25:59]line [20:25:59]line [20:25:59]written 0, free lines is 3307 [20:25:59]MH_Cut [20:25:59]Write to MH i2c: D1 01 00 C7 01 01 9A [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: D1 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: D1 01 00 [20:25:59]MH_I2C_Read... [20:25:59]Read from MH i2c: D1 01 00 C7 01 00 99 [20:25:59]Write to MH i2c: 01 00 00 C8 01 C9 [20:25:59]Write i2c OK [20:25:59]MH_I2C_Read... [20:26:00]*** Cut start [20:26:00]*** Partial cut [20:26:00]*** CUTSNS_PIN = 1 [20:26:00]*** CUTSNS_PIN = 0 [20:26:00]*** Brake cut motor [20:26:00]Read from MH i2c: 01 [20:26:00]MH_I2C_Read... [20:26:00]*** Stop cut motor [20:26:00]*** Cut end [20:26:00]Read from MH i2c: 01 07 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: 01 07 00 C8 01 00 00 00 00 00 FF 0F DE [20:26:00]process_action close_receipt done [20:26:00]requested_data is exist [20:26:00]produce_requested_data [20:26:00]requested_item fm.sn is exist - process it [20:26:00]wFMCommunicate request_size=4 [20:26:00]MH_SAM_APDU [20:26:00]CAPDU: 80 11 00 00 [20:26:00]Write to MH i2c: E2 08 00 C9 01 80 11 00 00 00 00 00 00 44 [20:26:00]Write i2c OK [20:26:00]MH_I2C_Read... [20:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:00]Read from MH i2c: E2 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 17 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 17 00 C9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 9D [20:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:26:00]wFMCommunicate OK [20:26:00]requested_item fd.num is exist - process it [20:26:00]SAM_PROTO_GetFieldsCounters [20:26:00]wFMCommunicate request_size=4 [20:26:00]MH_SAM_APDU [20:26:00]CAPDU: 80 13 00 00 [20:26:00]Write to MH i2c: E2 08 00 CA 01 80 13 00 00 00 00 00 00 47 [20:26:00]Write i2c OK [20:26:00]MH_I2C_Read... [20:26:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:00]Read from MH i2c: E2 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 62 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 62 00 CA 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 24 BA 02 00 0E 04 04 00 D6 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 4B [20:26: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 24 BA 02 00 0E 04 04 00 D6 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 [20:26:00]wFMCommunicate OK [20:26:00]SAM_PROTO_GetFieldsCounters done [20:26:00]requested_item shift.num is exist - process it [20:26:00]requested_item shift.opened is exist - process it [20:26:00]req_shift_opened [20:26:00]FM_GetShiftState [20:26:00]SAM_PROTO_GetShiftState [20:26:00]wFMCommunicate request_size=4 [20:26:00]MH_SAM_APDU [20:26:00]CAPDU: 80 13 01 00 [20:26:00]Write to MH i2c: E2 08 00 CB 01 80 13 01 00 00 00 00 00 49 [20:26:00]Write i2c OK [20:26:00]MH_I2C_Read... [20:26:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:00]Read from MH i2c: E2 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 0E 00 [20:26:00]MH_I2C_Read... [20:26:00]Read from MH i2c: E2 0E 00 CB 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 20 [20:26:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:26:00]wFMCommunicate OK [20:26:00]SAM_PROTO_GetShiftState done [20:26:00]FM_GetShiftState done [20:26:00]req_shift_opened done [20:26:00]requested_item shift.open_date is exist - process it [20:26:00]req_shift_open_date [20:26:00]req_shift_open_date done [20:26:00]produce_requested_data done [20:26:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178724,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:26:00]process_action_free close_receipt [20:26:00]json_value_free [20:26:00]json_value_free done [20:26:00]process_json_proto returns [20:26:00]Send response to host [20:26:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178724,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:26:00]free response buf [20:26:00]execute_script done [20:26:00]execute_script returns [20:26:00]free content buf [20:26:00]Sock 9.Close socket [20:26:00]Sock 9.Thread stoped [20:26:03]ConnectInit Can't take IP for lk.salyk.kg [20:26:03]CommunicateWithHost connect error [20:26:03]CommunicateWithHost err = -1 [20:26:03]OFD Sender: Server communicate error [20:26:09]OFD Sender: Processing packet 178724 [packets to send 500, broken 499] [20:26:09]ProducePacketName [20:26:09]name=ofd_packets/00178724 [20:26:09]OFD Sender: To server: pG, [20:26:09]CommunicateWithHost lk.salyk.kg:30040 [20:26:09]ConnectInit lk.salyk.kg [20:26:09]recv_with_timeout no data received [20:26:14]ConnectInit Can't take IP for lk.salyk.kg [20:26:14]CommunicateWithHost connect error [20:26:14]CommunicateWithHost err = -1 [20:26:14]OFD Sender: Server communicate error [20:26:19]OFD Sender: Processing packet 178724 [packets to send 500, broken 499] [20:26:19]ProducePacketName [20:26:19]name=ofd_packets/00178724 [20:26:19]OFD Sender: To server: pG, [20:26:19]CommunicateWithHost lk.salyk.kg:30040 [20:26:19]ConnectInit lk.salyk.kg [20:26:24]ConnectInit Can't take IP for lk.salyk.kg [20:26:24]CommunicateWithHost connect error [20:26:24]CommunicateWithHost err = -1 [20:26:24]OFD Sender: Server communicate error [20:26:29]OFD Sender: Processing packet 178724 [packets to send 500, broken 499] [20:26:29]ProducePacketName [20:26:29]name=ofd_packets/00178724 [20:26:29]OFD Sender: To server: pG, [20:26:29]CommunicateWithHost lk.salyk.kg:30040 [20:26:29]ConnectInit lk.salyk.kg [20:26:33]recv_with_timeout no data received [20:26:34]ConnectInit Can't take IP for lk.salyk.kg [20:26:34]CommunicateWithHost connect error [20:26:34]CommunicateWithHost err = -1 [20:26:34]OFD Sender: Server communicate error [20:26:39]OFD Sender: Processing packet 178724 [packets to send 500, broken 499] [20:26:39]ProducePacketName [20:26:39]name=ofd_packets/00178724 [20:26:39]OFD Sender: To server: pG, [20:26:39]CommunicateWithHost lk.salyk.kg:30040 [20:26:39]ConnectInit lk.salyk.kg [20:26:43]Connected sock=10 [20:26:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 21 F0 07 01 2C 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 55 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 24 BA 02 00 35 04 06 00 0F 7F D5 B3 E5 AD 0C D1 48 78 20 C6 3E 17 [20:26:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 28 A5 47 00 DD FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 24 BA 02 00 F4 03 04 00 28 9C C8 66 B6 04 01 00 00 C8 77 58 63 11 39 38 DF [20:26:44]CommunicateWithHost err = 0 [20:26:44]CheckOFDResponse [20:26:44]1017 (14) - 77093643461234 [20:26:44]1041 (16) - 0000000000871778 [20:26:44]1040 (4) - 178724 [20:26:44]1012 (4) - 23.08.2024 14:26 [20:26:44]1206 (1) - 0 [20:26:44]OFD Sender: Remove packet 178724 [20:26:44]ProducePacketName [20:26:44]name=ofd_packets/00178724 [20:26:44]NVStorageDeleteData [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:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:30]OFD Sender: No OFD packet to send [20:27:35]OFD Sender: No OFD packet to send [20:27:39]recv_with_timeout no data received [20:27:40]OFD Sender: No OFD packet to send [20:27:45]OFD Sender: No OFD packet to send [20:27:50]OFD Sender: No OFD packet to send [20:27:55]OFD Sender: No OFD packet to send [20:28:00]OFD Sender: No OFD packet to send [20:28:05]OFD Sender: No OFD packet to send [20:28:10]OFD Sender: No OFD packet to send [20:28:15]OFD Sender: No OFD packet to send [20:28:20]OFD Sender: No OFD packet to send [20:28:22]accept exits with 8 [20:28:22]New connection [20:28:22]New thread 3067133284 created [20:28:22]Thread 3066989924 joined [20:28:22]Waiting for new connection... [20:28:22] Sock 8.Parse request [20:28:22]Sock 8.Check first char [20:28:22]Sock 8.First char is OK [20:28:22]request: POST /json_proto HTTP/1.0 [20:28:22]Method: POST [20:28:22]URL: /json_proto [20:28:22]Method is POST - this is cgi request [20:28:22]url: /json_proto [20:28:22]query_string will be loaded in cgi processing [20:28:22]execute_cgi json_proto POST (null) [20:28:22]execute_cgi path=json_proto method=POST [20:28:22]POST find Content-Length [20:28:22]Host: 172.17.44.131:8080 [20:28:22]Content-Length: 822 [20:28:22]Content-Type: application/json [20:28:22] [20:28:22]POST finish read [20:28:22]Found Content-Length = 822 [20:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.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" : 1000.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:22]execute_script... [20:28: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)294672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.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" : 1000.08 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:22]POST & json_proto [20:28:22]process_json_proto [20:28:22]json parsed OK: [20:28:22]protocol is kg_v1.0 [20:28:22]action value=close_receipt [20:28:22]process_action close_receipt [20:28:22]cmd_close_receipt [20:28:22]MH_GetDate [20:28:22]Write to MH i2c: F0 00 00 CC 01 BC [20:28:22]Write i2c OK [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: F0 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: F0 09 00 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: F0 09 00 CC 01 00 E6 F0 C8 66 4F 53 BE 66 8F [20:28:22]GetLastDocTimeStamp 1724444757 [20:28:22]current date 1724444902 [20:28:22]FM_GetShiftState [20:28:22]SAM_PROTO_GetShiftState [20:28:22]wFMCommunicate request_size=4 [20:28:22]MH_SAM_APDU [20:28:22]CAPDU: 80 13 01 00 [20:28:22]Write to MH i2c: E2 08 00 CD 01 80 13 01 00 00 00 00 00 4B [20:28:22]Write i2c OK [20:28:22]MH_I2C_Read... [20:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:22]Read from MH i2c: E2 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 0E 00 [20:28:22]MH_I2C_Read... [20:28:22]Read from MH i2c: E2 0E 00 CD 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 22 [20:28:22]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:28:22]wFMCommunicate OK [20:28:22]SAM_PROTO_GetShiftState done [20:28:22]FM_GetShiftState done [20:28:22]opened in 1724371660 [20:28:22]opened+sec_in_day 1724458060 [20:28:22]quantity*price = 100007 [20:28:22]sum+1 = 100009 [20:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.08 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.08 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 185 23.08.2024 20:28 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178725 ФПД: 64827860469732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202823&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178725&fm=64827860469732&tin=02508201610067®Number=0000000000092561&sum=100008 [20:28:23]StoreToDocumentArchive [20:28:23]shift 470 fd 178725 [20:28:23]save to /storage/0470/doc_00178725 [20:28:23]save last doc name /storage/0470/doc_00178725 to /storage/kkm_last_doc_name [20:28:23]save OK [20:28:23]Clear old archive folders... [20:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:28:23]tlvbuf is 01AED910 [20:28:23]SAM_PROTO_ClearQueue [20:28:23]wFMCommunicate request_size=4 [20:28:23]MH_SAM_APDU [20:28:23]CAPDU: 80 09 00 00 [20:28:23]Write to MH i2c: E2 08 00 DA 01 80 09 00 00 00 00 00 00 4D [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:23]Read from MH i2c: E2 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 03 00 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [20:28:23]RAPDU: 90 00 [20:28:23]wFMCommunicate OK [20:28:23]SAM_PROTO_ClearQueue done [20:28:23]KKMCreateOFDPacket [20:28:23]OFDProtocolAddRootSTLVToBuf [20:28:23]FM_MakeSignedData [20:28:23]FM_MakeSignedData [20:28:23]SAM_PROTO_SignData [20:28:23]wFMCommunicate request_size=4 [20:28:23]MH_SAM_APDU [20:28:23]CAPDU: 80 0D 01 02 [20:28:23]Write to MH i2c: E2 08 00 DB 01 80 0D 01 02 00 00 00 00 55 [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:23]Read from MH i2c: E2 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 03 00 [20:28:23]MH_I2C_Read... [20:28:23]Read from MH i2c: E2 03 00 DB 01 00 90 00 50 [20:28:23]RAPDU: 90 00 [20:28:23]wFMCommunicate OK [20:28:23]wFMCommunicate request_size=255 [20:28:23]MH_SAM_APDU [20:28:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 E7 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 25 BA 02 00 35 04 06 00 3A F5 [20:28:23]Write to MH i2c: E2 02 01 DC 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 E7 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 25 BA 02 00 35 04 06 00 3A F5 00 00 E8 [20:28:23]Write i2c OK [20:28:23]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 DC 01 00 90 00 51 [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]wFMCommunicate request_size=9 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 02 02 04 E9 98 47 E4 [20:28:24]Write to MH i2c: E2 0C 00 DD 01 80 0D 02 02 04 00 E9 98 47 E4 00 00 0C [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [20:28:24]RAPDU: 90 00 [20:28:24]wFMCommunicate OK [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 0D 03 02 [20:28:24]Write to MH i2c: E2 08 00 DE 01 80 0D 03 02 00 00 00 00 5A [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 0B 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 0B 00 DE 01 00 12 CE 2C E6 11 F3 49 8F 90 00 29 [20:28:24]RAPDU: 12 CE 2C E6 11 F3 49 8F 90 00 [20:28:24]wFMCommunicate OK [20:28:24]SAM_PROTO_SignData done [20:28:24]FM_MakeSignedData done [20:28:24]CreateOFDProtocolMessage [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 11 00 00 [20:28:24]Write to MH i2c: E2 08 00 DF 01 80 11 00 00 00 00 00 00 5A [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 17 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 17 00 DF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B3 [20:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:28:24]wFMCommunicate OK [20:28:24]CreateOFDProtocolMessage done [20:28:24]OFDSenderStorePacket 178725 [20:28:24]StoreOFDPacket docnum=178725 [20:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 89 4D 06 01 8A FC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 E7 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 25 BA 02 00 35 04 06 00 3A F5 E9 98 47 E4 12 CE 2C E6 11 F3 49 8F [20:28:24]CheckFolder [20:28:24]dirname=/storage/ofd_packets [20:28:24]CheckFolder done [20:28:24]ProducePacketName [20:28:24]name=ofd_packets/00178725 [20:28:24]NVStorageSaveData ofd_packets/00178725 [20:28:24]File name is /storage/ofd_packets/00178725 [20:28:24]Write 300 bytes [20:28:24]NVStorageSaveData done [20:28:24]OFDSenderStorePacket done [20:28:24]KKMCreateOFDPacket done [20:28:24]NVStorageSaveData kkm_last_timestamp [20:28:24]File name is /storage/kkm_last_timestamp [20:28:24]Write 4 bytes [20:28:24]NVStorageSaveData done [20:28:24]ExternCall_PrintAddStr [20:28:24]wPrintStart [20:28:24]Write to MH i2c: 01 00 00 E0 01 E1 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 07 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 07 00 E0 01 00 00 00 00 00 FF 0F F6 [20:28:24]RasterBufferAndPrint [20:28:24]line Счет N : (1)294672 [20:28:24]line ИНН: 02508201610067 [20:28:24]line Контрольно-Кассовый Чек [20:28:24]line ПРОДАЖА [20:28:24]line ТРК (МРК, ГНК) : 81 [20:28:24]line Товар: 2711129700 [20:28:24]line ГАЗ-К-5 [20:28:24]line 26.740 * 37.40 [20:28:24]line = 1000.08 [20:28:24]line НДС 12% НСП 1% [20:28:24]line > о реализуемом товаре [20:28:24]line ИТОГО: 1000.08 [20:28:24]line НСП 1% : 8.85 [20:28:24]line НДС 12% : 106.20 [20:28:24]line Наличными: 0.00 [20:28:24]line Безнал.: 1000.08 [20:28:24]line Место: АЗС № 130 "Партнер Нефть" [20:28:24]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:28:24]line СНО: Общий режим [20:28:24]line Чек 185 23.08.2024 20:28 [20:28:24]line Смена: 470 ФФД: 1.0 [20:28:24]line ЗНМ: 0300000071 [20:28:24]line РНМ: 0000000000092561 [20:28:24]line Версия ККМ: 001 [20:28:24]line Платежная система: Бакай Банк [20:28:24]line ФМ: 0000000000871778 [20:28:24]line ФД: 178725 [20:28:24]line ФПД: 64827860469732 [20:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202823&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178725&fm=64827860469732&tin=02508201610067®Number=0000000000092561&sum=100008 [20:28:24]written 0, free lines is 4095 [20:28:24]OFD Sender: Processing packet 178725 [packets to send 500, broken 499] [20:28:24]ProducePacketName [20:28:24]name=ofd_packets/00178725 [20:28:24]OFD Sender: To server: pG, [20:28:24]CommunicateWithHost lk.salyk.kg:30040 [20:28:24]ConnectInit lk.salyk.kg [20:28:24]Write to MH i2c: 01 00 00 0A 02 0C [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 07 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: 01 07 00 0A 02 00 00 00 00 00 E1 0C 00 [20:28:24]RasterBufferAndPrint [20:28:24]line [20:28:24]line [20:28:24]line [20:28:24]line [20:28:24]line [20:28:24]written 0, free lines is 3303 [20:28:24]MH_Cut [20:28:24]Write to MH i2c: D1 01 00 11 02 01 E5 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: D1 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: D1 01 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: D1 01 00 11 02 00 E4 [20:28:24]Write to MH i2c: 01 00 00 12 02 14 [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:25]*** Cut start [20:28:25]*** Partial cut [20:28:25]*** CUTSNS_PIN = 1 [20:28:25]*** CUTSNS_PIN = 0 [20:28:25]*** Brake cut motor [20:28:25]Read from MH i2c: 01 [20:28:25]MH_I2C_Read... [20:28:25]*** Stop cut motor [20:28:25]*** Cut end [20:28:25]Read from MH i2c: 01 07 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: 01 07 00 12 02 00 00 00 00 00 FF 0F 29 [20:28:25]process_action close_receipt done [20:28:25]requested_data is exist [20:28:25]produce_requested_data [20:28:25]requested_item fm.sn is exist - process it [20:28:25]wFMCommunicate request_size=4 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 11 00 00 [20:28:25]Write to MH i2c: E2 08 00 13 02 80 11 00 00 00 00 00 00 8F [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 17 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 17 00 13 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E8 [20:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:28:26]wFMCommunicate OK [20:28:26]requested_item fd.num is exist - process it [20:28:26]SAM_PROTO_GetFieldsCounters [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 13 00 00 [20:28:26]Write to MH i2c: E2 08 00 14 02 80 13 00 00 00 00 00 00 92 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 62 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 62 00 14 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 25 BA 02 00 0E 04 04 00 D6 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 9A [20:28: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 25 BA 02 00 0E 04 04 00 D6 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 [20:28:26]wFMCommunicate OK [20:28:26]SAM_PROTO_GetFieldsCounters done [20:28:26]requested_item shift.num is exist - process it [20:28:26]requested_item shift.opened is exist - process it [20:28:26]req_shift_opened [20:28:26]FM_GetShiftState [20:28:26]SAM_PROTO_GetShiftState [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 13 01 00 [20:28:26]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 0E 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 6B [20:28:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:28:26]wFMCommunicate OK [20:28:26]SAM_PROTO_GetShiftState done [20:28:26]FM_GetShiftState done [20:28:26]req_shift_opened done [20:28:26]requested_item shift.open_date is exist - process it [20:28:26]req_shift_open_date [20:28:26]req_shift_open_date done [20:28:26]produce_requested_data done [20:28:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178725,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:28:26]process_action_free close_receipt [20:28:26]json_value_free [20:28:26]json_value_free done [20:28:26]process_json_proto returns [20:28:26]Send response to host [20:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178725,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:28:26]free response buf [20:28:26]execute_script done [20:28:26]execute_script returns [20:28:26]free content buf [20:28:26]Sock 8.Close socket [20:28:26]Sock 8.Thread stoped [20:28:26]Connected sock=11 [20:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 89 4D 06 01 8A FC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 E7 F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 25 BA 02 00 35 04 06 00 3A F5 E9 98 47 E4 12 CE 2C E6 11 F3 49 8F [20:28:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A3 A5 47 00 2B 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 31 37 37 38 10 04 04 00 25 BA 02 00 F4 03 04 00 8F 9C C8 66 B6 04 01 00 00 F4 84 17 43 A5 D3 94 45 [20:28:28]CommunicateWithHost err = 0 [20:28:28]CheckOFDResponse [20:28:28]1017 (14) - 77093643461234 [20:28:28]1041 (16) - 0000000000871778 [20:28:28]1040 (4) - 178725 [20:28:28]1012 (4) - 23.08.2024 14:28 [20:28:28]1206 (1) - 0 [20:28:28]OFD Sender: Remove packet 178725 [20:28:28]ProducePacketName [20:28:28]name=ofd_packets/00178725 [20:28:28]NVStorageDeleteData [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:36]recv_with_timeout no data received [20:28:38]OFD Sender: No OFD packet to send [20:28:42]accept exits with 9 [20:28:42]New connection [20:28:42]New thread 3066989924 created [20:28:42]Thread 3067133284 joined [20:28:42]Waiting for new connection... [20:28:42] Sock 9.Parse request [20:28:42]Sock 9.Check first char [20:28:42]Sock 9.First char is OK [20:28:42]request: POST /json_proto HTTP/1.0 [20:28:42]Method: POST [20:28:42]URL: /json_proto [20:28:42]Method is POST - this is cgi request [20:28:42]url: /json_proto [20:28:42]query_string will be loaded in cgi processing [20:28:42]execute_cgi json_proto POST (null) [20:28:42]execute_cgi path=json_proto method=POST [20:28:42]POST find Content-Length [20:28:42]Host: 172.17.44.131:8080 [20:28:42]Content-Length: 677 [20:28:42]Content-Type: application/json [20:28:42] [20:28:42]POST finish read [20:28:42]Found Content-Length = 677 [20:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294675", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:42]execute_script... [20:28: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)294675", "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" : 74.20, "quantity" : 8.090, "sum" : 600.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:42]POST & json_proto [20:28:42]process_json_proto [20:28:42]json parsed OK: [20:28:42]protocol is kg_v1.0 [20:28:42]action value=close_receipt [20:28:42]process_action close_receipt [20:28:42]cmd_close_receipt [20:28:42]MH_GetDate [20:28:42]Write to MH i2c: F0 00 00 16 02 07 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: F0 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: F0 09 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: F0 09 00 16 02 00 FA F0 C8 66 4F 53 BE 66 EE [20:28:42]GetLastDocTimeStamp 1724444903 [20:28:42]current date 1724444922 [20:28:42]FM_GetShiftState [20:28:42]SAM_PROTO_GetShiftState [20:28:42]wFMCommunicate request_size=4 [20:28:42]MH_SAM_APDU [20:28:42]CAPDU: 80 13 01 00 [20:28:42]Write to MH i2c: E2 08 00 17 02 80 13 01 00 00 00 00 00 96 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 0E 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 0E 00 17 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 6D [20:28:42]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:28:42]wFMCommunicate OK [20:28:42]SAM_PROTO_GetShiftState done [20:28:42]FM_GetShiftState done [20:28:42]opened in 1724371660 [20:28:42]opened+sec_in_day 1724458060 [20:28:42]quantity*price = 60027 [20:28:42]sum+1 = 60029 [20:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 186 23.08.2024 20:28 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178726 ФПД: 98725228705511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202842&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178726&fm=98725228705511&tin=02508201610067®Number=0000000000092561&sum=60000 [20:28:43]StoreToDocumentArchive [20:28:43]shift 470 fd 178726 [20:28:43]save to /storage/0470/doc_00178726 [20:28:43]save last doc name /storage/0470/doc_00178726 to /storage/kkm_last_doc_name [20:28:43]save OK [20:28:43]Clear old archive folders... [20:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:43]tlvbuf is 01B14B50 [20:28:43]SAM_PROTO_ClearQueue [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 09 00 00 [20:28:43]Write to MH i2c: E2 08 00 24 02 80 09 00 00 00 00 00 00 98 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [20:28:43]RAPDU: 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_ClearQueue done [20:28:43]KKMCreateOFDPacket [20:28:43]OFDProtocolAddRootSTLVToBuf [20:28:43]FM_MakeSignedData [20:28:43]FM_MakeSignedData [20:28:43]SAM_PROTO_SignData [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 0D 01 02 [20:28:43]Write to MH i2c: E2 08 00 25 02 80 0D 01 02 00 00 00 00 A0 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [20:28:43]RAPDU: 90 00 [20:28:43]wFMCommunicate OK [20:28:43]wFMCommunicate request_size=255 [20:28:43]MH_SAM_APDU [20:28: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 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FA F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 26 BA 02 00 35 04 06 00 59 [20:28:43]Write to MH i2c: E2 02 01 26 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FA F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 26 BA 02 00 35 04 06 00 59 00 00 75 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 26 02 00 90 00 9C [20:28:43]RAPDU: 90 00 [20:28:43]wFMCommunicate OK [20:28:43]wFMCommunicate request_size=10 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 0D 02 02 05 CA 42 2F F6 E7 [20:28:43]Write to MH i2c: E2 0D 00 27 02 80 0D 02 02 05 00 CA 42 2F F6 E7 00 00 C5 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 03 00 27 02 00 90 00 9D [20:28:43]RAPDU: 90 00 [20:28:43]wFMCommunicate OK [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 0D 03 02 [20:28:43]Write to MH i2c: E2 08 00 28 02 80 0D 03 02 00 00 00 00 A5 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0B 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0B 00 28 02 00 EB A8 AB 5F 6E 5F FF 4A 90 00 59 [20:28:43]RAPDU: EB A8 AB 5F 6E 5F FF 4A 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_SignData done [20:28:43]FM_MakeSignedData done [20:28:43]CreateOFDProtocolMessage [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 11 00 00 [20:28:43]Write to MH i2c: E2 08 00 29 02 80 11 00 00 00 00 00 00 A5 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 29 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FE [20:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:28:43]wFMCommunicate OK [20:28:43]CreateOFDProtocolMessage done [20:28:43]OFDSenderStorePacket 178726 [20:28:43]StoreOFDPacket docnum=178726 [20:28:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 90 36 07 01 D6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FA F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 26 BA 02 00 35 04 06 00 59 CA 42 2F F6 E7 EB A8 AB 5F 6E 5F FF 4A [20:28:43]CheckFolder [20:28:43]dirname=/storage/ofd_packets [20:28:43]CheckFolder done [20:28:43]ProducePacketName [20:28:43]name=ofd_packets/00178726 [20:28:43]NVStorageSaveData ofd_packets/00178726 [20:28:43]File name is /storage/ofd_packets/00178726 [20:28:43]OFD Sender: No OFD packet to send [20:28:43]Write 301 bytes [20:28:43]NVStorageSaveData done [20:28:43]OFDSenderStorePacket done [20:28:43]KKMCreateOFDPacket done [20:28:43]NVStorageSaveData kkm_last_timestamp [20:28:43]File name is /storage/kkm_last_timestamp [20:28:43]Write 4 bytes [20:28:43]NVStorageSaveData done [20:28:43]ExternCall_PrintAddStr [20:28:43]wPrintStart [20:28:43]Write to MH i2c: 01 00 00 2A 02 2C [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 07 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 07 00 2A 02 00 00 00 00 00 FF 0F 41 [20:28:43]RasterBufferAndPrint [20:28:43]line Счет N : (1)294675 [20:28:43]line ИНН: 02508201610067 [20:28:43]line Контрольно-Кассовый Чек [20:28:43]line ПРОДАЖА [20:28:43]line ТРК (МРК, ГНК) : 53 [20:28:43]line Товар: 2710124500 [20:28:43]line Аи-95-К-5 [20:28:43]line 8.090 * 74.20 [20:28:43]line = 600.28 [20:28:43]line НДС 12% НСП 1% [20:28:43]line > о реализуемом товаре [20:28:43]line ОКРУГЛЕНИЕ: -0.28 [20:28:43]line ИТОГО: 600.00 [20:28:43]line Внесено: 600.00 [20:28:43]line СДАЧА: 0.00 [20:28:43]line НСП 1% : 5.31 [20:28:43]line НДС 12% : 63.75 [20:28:43]line Наличными: 600.00 [20:28:43]line Безнал.: 0.00 [20:28:43]line Место: АЗС № 130 "Партнер Нефть" [20:28:43]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:28:43]line СНО: Общий режим [20:28:43]line Чек 186 23.08.2024 20:28 [20:28:43]line Смена: 470 ФФД: 1.0 [20:28:43]line ЗНМ: 0300000071 [20:28:43]line РНМ: 0000000000092561 [20:28:43]line Версия ККМ: 001 [20:28:43]line ФМ: 0000000000871778 [20:28:43]line ФД: 178726 [20:28:43]line ФПД: 98725228705511 [20:28:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T202842&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178726&fm=98725228705511&tin=02508201610067®Number=0000000000092561&sum=60000 [20:28:43]written 0, free lines is 4095 [20:28:43]OFD Sender: Processing packet 178726 [packets to send 500, broken 499] [20:28:43]ProducePacketName [20:28:43]name=ofd_packets/00178726 [20:28:43]OFD Sender: To server: pG, [20:28:43]CommunicateWithHost lk.salyk.kg:30040 [20:28:43]ConnectInit lk.salyk.kg [20:28:44]Write to MH i2c: 01 00 00 55 02 57 [20:28:44]Write i2c OK [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: 01 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: 01 07 00 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: 01 07 00 55 02 00 00 00 00 00 E5 0C 4F [20:28:44]RasterBufferAndPrint [20:28:44]line [20:28:44]line [20:28:44]line [20:28:44]line [20:28:44]line [20:28:44]written 0, free lines is 3307 [20:28:44]MH_Cut [20:28:44]Write to MH i2c: D1 01 00 5C 02 01 30 [20:28:44]Write i2c OK [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: D1 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: D1 01 00 [20:28:44]MH_I2C_Read... [20:28:44]Read from MH i2c: D1 01 00 5C 02 00 2F [20:28:44]Write to MH i2c: 01 00 00 5D 02 5F [20:28:44]Write i2c OK [20:28:44]MH_I2C_Read... [20:28:44]Connected sock=11 [20:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 90 36 07 01 D6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 FA F0 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 26 BA 02 00 35 04 06 00 59 CA 42 2F F6 E7 EB A8 AB 5F 6E 5F FF 4A [20:28:44]*** Cut start [20:28:44]*** Partial cut [20:28:44]*** CUTSNS_PIN = 1 [20:28:45]*** CUTSNS_PIN = 0 [20:28:45]*** Brake cut motor [20:28:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 AE B6 47 00 09 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 31 37 37 38 10 04 04 00 26 BA 02 00 F4 03 04 00 A2 9C C8 66 B6 04 01 00 00 10 F7 75 A3 BA 03 7C 8A [20:28:45]CommunicateWithHost err = 0 [20:28:45]CheckOFDResponse [20:28:45]1017 (14) - 77093643461234 [20:28:45]1041 (16) - 0000000000871778 [20:28:45]1040 (4) - 178726 [20:28:45]1012 (4) - 23.08.2024 14:28 [20:28:45]1206 (1) - 0 [20:28:45]OFD Sender: Remove packet 178726 [20:28:45]ProducePacketName [20:28:45]name=ofd_packets/00178726 [20:28:45]NVStorageDeleteData [20:28:45]Read from MH i2c: 01 [20:28:45]MH_I2C_Read... [20:28:45]*** Stop cut motor [20:28:45]*** Cut end [20:28:45]Read from MH i2c: 01 07 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: 01 07 00 5D 02 00 00 00 00 00 FF 0F 74 [20:28:45]process_action close_receipt done [20:28:45]requested_data is exist [20:28:45]produce_requested_data [20:28:45]requested_item fm.sn is exist - process it [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 11 00 00 [20:28:45]Write to MH i2c: E2 08 00 5E 02 80 11 00 00 00 00 00 00 DA [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 17 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 17 00 5E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 33 [20:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:28:45]wFMCommunicate OK [20:28:45]requested_item fd.num is exist - process it [20:28:45]SAM_PROTO_GetFieldsCounters [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 13 00 00 [20:28:45]Write to MH i2c: E2 08 00 5F 02 80 13 00 00 00 00 00 00 DD [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 62 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 62 00 5F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 26 BA 02 00 0E 04 04 00 D6 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 E9 [20:28: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 26 BA 02 00 0E 04 04 00 D6 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 [20:28:45]wFMCommunicate OK [20:28:45]SAM_PROTO_GetFieldsCounters done [20:28:45]requested_item shift.num is exist - process it [20:28:45]requested_item shift.opened is exist - process it [20:28:45]req_shift_opened [20:28:45]FM_GetShiftState [20:28:45]SAM_PROTO_GetShiftState [20:28:45]wFMCommunicate request_size=4 [20:28:45]MH_SAM_APDU [20:28:45]CAPDU: 80 13 01 00 [20:28:45]Write to MH i2c: E2 08 00 60 02 80 13 01 00 00 00 00 00 DF [20:28:45]Write i2c OK [20:28:45]MH_I2C_Read... [20:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:45]Read from MH i2c: E2 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 0E 00 [20:28:45]MH_I2C_Read... [20:28:45]Read from MH i2c: E2 0E 00 60 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B6 [20:28:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:28:45]wFMCommunicate OK [20:28:45]SAM_PROTO_GetShiftState done [20:28:45]FM_GetShiftState done [20:28:45]req_shift_opened done [20:28:45]requested_item shift.open_date is exist - process it [20:28:45]req_shift_open_date [20:28:45]req_shift_open_date done [20:28:45]produce_requested_data done [20:28:45]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178726,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:28:45]process_action_free close_receipt [20:28:45]json_value_free [20:28:45]json_value_free done [20:28:45]process_json_proto returns [20:28:45]Send response to host [20:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178726,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:28:45]free response buf [20:28:45]execute_script done [20:28:45]execute_script returns [20:28:45]free content buf [20:28:45]Sock 9.Close socket [20:28:45]Sock 9.Thread stoped [20:28:45]OFD Sender: No OFD packet to send [20:28:50]OFD Sender: No OFD packet to send [20:28:55]OFD Sender: No OFD packet to send [20:29:00]OFD Sender: No OFD packet to send [20:29:03]recv_with_timeout no data received [20:29:05]OFD Sender: No OFD packet to send [20:29:10]OFD Sender: No OFD packet to send [20:29:15]OFD Sender: No OFD packet to send [20:29:20]OFD Sender: No OFD packet to send [20:29:25]OFD Sender: No OFD packet to send [20:29:30]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:01]recv_with_timeout no data received [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:11]recv_with_timeout no data received [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]recv_with_timeout no data received [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:37]accept exits with 10 [20:30:37]New connection [20:30:37]New thread 3067133284 created [20:30:37]Thread 3066989924 joined [20:30:37]Waiting for new connection... [20:30:37] Sock 10.Parse request [20:30:37]Sock 10.Check first char [20:30:37]Sock 10.First char is OK [20:30:37]request: POST /json_proto HTTP/1.0 [20:30:37]Method: POST [20:30:37]URL: /json_proto [20:30:37]Method is POST - this is cgi request [20:30:37]url: /json_proto [20:30:37]query_string will be loaded in cgi processing [20:30:37]execute_cgi json_proto POST (null) [20:30:37]execute_cgi path=json_proto method=POST [20:30:37]POST find Content-Length [20:30:37]Host: 172.17.44.131:8080 [20:30:37]Content-Length: 682 [20:30:37]Content-Type: application/json [20:30:37] [20:30:37]POST finish read [20:30:37]Found Content-Length = 682 [20:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294678", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:37]execute_script... [20:30: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)294678", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:37]POST & json_proto [20:30:37]process_json_proto [20:30:37]json parsed OK: [20:30:37]protocol is kg_v1.0 [20:30:37]action value=close_receipt [20:30:37]process_action close_receipt [20:30:37]cmd_close_receipt [20:30:37]MH_GetDate [20:30:37]Write to MH i2c: F0 00 00 61 02 52 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: F0 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: F0 09 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: F0 09 00 61 02 00 6D F1 C8 66 4F 53 BE 66 AD [20:30:37]GetLastDocTimeStamp 1724444922 [20:30:37]current date 1724445037 [20:30:37]FM_GetShiftState [20:30:37]SAM_PROTO_GetShiftState [20:30:37]wFMCommunicate request_size=4 [20:30:37]MH_SAM_APDU [20:30:37]CAPDU: 80 13 01 00 [20:30:37]Write to MH i2c: E2 08 00 62 02 80 13 01 00 00 00 00 00 E1 [20:30:37]Write i2c OK [20:30:37]MH_I2C_Read... [20:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:37]Read from MH i2c: E2 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 0E 00 [20:30:37]MH_I2C_Read... [20:30:37]Read from MH i2c: E2 0E 00 62 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B8 [20:30:37]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:30:37]wFMCommunicate OK [20:30:37]SAM_PROTO_GetShiftState done [20:30:37]FM_GetShiftState done [20:30:37]opened in 1724371660 [20:30:37]opened+sec_in_day 1724458060 [20:30:37]quantity*price = 100021 [20:30:37]sum+1 = 100023 [20:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 187 23.08.2024 20:30 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178727 ФПД: 210159043018967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203037&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178727&fm=210159043018967&tin=02508201610067®Number=0000000000092561&sum=100000 [20:30:38]StoreToDocumentArchive [20:30:38]shift 470 fd 178727 [20:30:38]save to /storage/0470/doc_00178727 [20:30:38]save last doc name /storage/0470/doc_00178727 to /storage/kkm_last_doc_name [20:30:38]save OK [20:30:38]Clear old archive folders... [20:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:38]tlvbuf is 01B32230 [20:30:38]SAM_PROTO_ClearQueue [20:30:38]wFMCommunicate request_size=4 [20:30:38]MH_SAM_APDU [20:30:38]CAPDU: 80 09 00 00 [20:30:38]Write to MH i2c: E2 08 00 6F 02 80 09 00 00 00 00 00 00 E3 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:38]Read from MH i2c: E2 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [20:30:38]RAPDU: 90 00 [20:30:38]wFMCommunicate OK [20:30:38]SAM_PROTO_ClearQueue done [20:30:38]KKMCreateOFDPacket [20:30:38]OFDProtocolAddRootSTLVToBuf [20:30:38]FM_MakeSignedData [20:30:38]FM_MakeSignedData [20:30:38]SAM_PROTO_SignData [20:30:38]wFMCommunicate request_size=4 [20:30:38]MH_SAM_APDU [20:30:38]CAPDU: 80 0D 01 02 [20:30:38]Write to MH i2c: E2 08 00 70 02 80 0D 01 02 00 00 00 00 EB [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:38]Read from MH i2c: E2 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 70 02 00 90 00 E6 [20:30:38]RAPDU: 90 00 [20:30:38]wFMCommunicate OK [20:30:38]wFMCommunicate request_size=255 [20:30:38]MH_SAM_APDU [20:30:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 6D F1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 27 BA 02 00 35 04 06 00 BF [20:30:38]Write to MH i2c: E2 02 01 71 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 6D F1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 27 BA 02 00 35 04 06 00 BF 00 00 5B [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:38]Read from MH i2c: E2 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 71 02 00 90 00 E7 [20:30:38]RAPDU: 90 00 [20:30:38]wFMCommunicate OK [20:30:38]wFMCommunicate request_size=10 [20:30:38]MH_SAM_APDU [20:30:38]CAPDU: 80 0D 02 02 05 23 77 1B 00 D7 [20:30:38]Write to MH i2c: E2 0D 00 72 02 80 0D 02 02 05 00 23 77 1B 00 D7 00 00 84 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:38]Read from MH i2c: E2 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 03 00 72 02 00 90 00 E8 [20:30:38]RAPDU: 90 00 [20:30:38]wFMCommunicate OK [20:30:38]wFMCommunicate request_size=4 [20:30:38]MH_SAM_APDU [20:30:38]CAPDU: 80 0D 03 02 [20:30:38]Write to MH i2c: E2 08 00 73 02 80 0D 03 02 00 00 00 00 F0 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:38]Read from MH i2c: E2 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 0B 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 0B 00 73 02 00 05 12 3A B9 CB 44 6E 5E 90 00 D6 [20:30:38]RAPDU: 05 12 3A B9 CB 44 6E 5E 90 00 [20:30:38]wFMCommunicate OK [20:30:38]SAM_PROTO_SignData done [20:30:38]FM_MakeSignedData done [20:30:38]CreateOFDProtocolMessage [20:30:38]wFMCommunicate request_size=4 [20:30:38]MH_SAM_APDU [20:30:38]CAPDU: 80 11 00 00 [20:30:38]Write to MH i2c: E2 08 00 74 02 80 11 00 00 00 00 00 00 F0 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:38]Read from MH i2c: E2 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 17 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: E2 17 00 74 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 49 [20:30:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:30:38]wFMCommunicate OK [20:30:38]CreateOFDProtocolMessage done [20:30:38]OFDSenderStorePacket 178727 [20:30:38]StoreOFDPacket docnum=178727 [20:30:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 2C 67 07 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 6D F1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 27 BA 02 00 35 04 06 00 BF 23 77 1B 00 D7 05 12 3A B9 CB 44 6E 5E [20:30:38]CheckFolder [20:30:38]dirname=/storage/ofd_packets [20:30:38]CheckFolder done [20:30:38]ProducePacketName [20:30:38]name=ofd_packets/00178727 [20:30:38]NVStorageSaveData ofd_packets/00178727 [20:30:38]File name is /storage/ofd_packets/00178727 [20:30:38]Write 301 bytes [20:30:38]NVStorageSaveData done [20:30:38]OFDSenderStorePacket done [20:30:38]KKMCreateOFDPacket done [20:30:38]NVStorageSaveData kkm_last_timestamp [20:30:38]File name is /storage/kkm_last_timestamp [20:30:38]Write 4 bytes [20:30:38]NVStorageSaveData done [20:30:38]ExternCall_PrintAddStr [20:30:38]wPrintStart [20:30:38]Write to MH i2c: 01 00 00 75 02 77 [20:30:38]Write i2c OK [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: 01 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: 01 07 00 [20:30:38]MH_I2C_Read... [20:30:38]Read from MH i2c: 01 07 00 75 02 00 00 00 00 00 FF 0F 8C [20:30:38]RasterBufferAndPrint [20:30:38]line Счет N : (1)294678 [20:30:38]line ИНН: 02508201610067 [20:30:38]line Контрольно-Кассовый Чек [20:30:38]line ПРОДАЖА [20:30:38]line ТРК (МРК, ГНК) : 53 [20:30:38]line Товар: 2710124500 [20:30:38]line Аи-95-К-5 [20:30:38]line 13.480 * 74.20 [20:30:38]line = 1000.22 [20:30:38]line НДС 12% НСП 1% [20:30:38]line > о реализуемом товаре [20:30:38]line ОКРУГЛЕНИЕ: -0.22 [20:30:38]line ИТОГО: 1000.00 [20:30:38]line Внесено: 1000.00 [20:30:38]line СДАЧА: 0.00 [20:30:38]line НСП 1% : 8.85 [20:30:38]line НДС 12% : 106.22 [20:30:38]line Наличными: 1000.00 [20:30:38]line Безнал.: 0.00 [20:30:38]line Место: АЗС № 130 "Партнер Нефть" [20:30:38]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:30:38]line СНО: Общий режим [20:30:38]line Чек 187 23.08.2024 20:30 [20:30:38]line Смена: 470 ФФД: 1.0 [20:30:38]line ЗНМ: 0300000071 [20:30:38]line РНМ: 0000000000092561 [20:30:38]line Версия ККМ: 001 [20:30:38]line ФМ: 0000000000871778 [20:30:38]line ФД: 178727 [20:30:38]line ФПД: 210159043018967 [20:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203037&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178727&fm=210159043018967&tin=02508201610067®Number=0000000000092561&sum=100000 [20:30:38]written 0, free lines is 4095 [20:30:38]OFD Sender: Processing packet 178727 [packets to send 500, broken 499] [20:30:38]ProducePacketName [20:30:38]name=ofd_packets/00178727 [20:30:38]OFD Sender: To server: pG, [20:30:38]CommunicateWithHost lk.salyk.kg:30040 [20:30:38]ConnectInit lk.salyk.kg [20:30:39]Write to MH i2c: 01 00 00 A0 02 A2 [20:30:39]Write i2c OK [20:30:39]MH_I2C_Read... [20:30:39]Read from MH i2c: 01 [20:30:39]MH_I2C_Read... [20:30:39]Read from MH i2c: 01 07 00 [20:30:39]MH_I2C_Read... [20:30:39]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 D7 0C 8C [20:30:39]RasterBufferAndPrint [20:30:39]line [20:30:39]line [20:30:39]line [20:30:39]line [20:30:39]line [20:30:39]written 0, free lines is 3293 [20:30:39]MH_Cut [20:30:39]Write to MH i2c: D1 01 00 A7 02 01 7B [20:30:39]Write i2c OK [20:30:39]MH_I2C_Read... [20:30:39]Read from MH i2c: D1 [20:30:39]MH_I2C_Read... [20:30:39]Read from MH i2c: D1 01 00 [20:30:39]MH_I2C_Read... [20:30:39]Read from MH i2c: D1 01 00 A7 02 00 7A [20:30:39]Write to MH i2c: 01 00 00 A8 02 AA [20:30:39]Write i2c OK [20:30:39]MH_I2C_Read... [20:30:39]Connected sock=8 [20:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 2C 67 07 01 5B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 6D F1 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 27 BA 02 00 35 04 06 00 BF 23 77 1B 00 D7 05 12 3A B9 CB 44 6E 5E [20:30:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9C 1B 47 00 B0 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 31 37 37 38 10 04 04 00 27 BA 02 00 F4 03 04 00 14 9D C8 66 B6 04 01 00 00 2F 71 1B A3 F2 73 2B E4 [20:30:39]CommunicateWithHost err = 0 [20:30:39]CheckOFDResponse [20:30:39]1017 (14) - 77093643461234 [20:30:39]1041 (16) - 0000000000871778 [20:30:39]1040 (4) - 178727 [20:30:39]1012 (4) - 23.08.2024 14:30 [20:30:39]1206 (1) - 0 [20:30:39]OFD Sender: Remove packet 178727 [20:30:39]ProducePacketName [20:30:39]name=ofd_packets/00178727 [20:30:39]NVStorageDeleteData [20:30:40]*** Cut start [20:30:40]*** Partial cut [20:30:40]*** CUTSNS_PIN = 1 [20:30:40]*** CUTSNS_PIN = 0 [20:30:40]*** Brake cut motor [20:30:40]OFD Sender: No OFD packet to send [20:30:40]Read from MH i2c: 01 [20:30:40]MH_I2C_Read... [20:30:40]*** Stop cut motor [20:30:40]*** Cut end [20:30:40]Read from MH i2c: 01 07 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: 01 07 00 A8 02 00 00 00 00 00 FF 0F BF [20:30:40]process_action close_receipt done [20:30:40]requested_data is exist [20:30:40]produce_requested_data [20:30:40]requested_item fm.sn is exist - process it [20:30:40]wFMCommunicate request_size=4 [20:30:40]MH_SAM_APDU [20:30:40]CAPDU: 80 11 00 00 [20:30:40]Write to MH i2c: E2 08 00 A9 02 80 11 00 00 00 00 00 00 25 [20:30:40]Write i2c OK [20:30:40]MH_I2C_Read... [20:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:40]Read from MH i2c: E2 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 17 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 17 00 A9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7E [20:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:30:40]wFMCommunicate OK [20:30:40]requested_item fd.num is exist - process it [20:30:40]SAM_PROTO_GetFieldsCounters [20:30:40]wFMCommunicate request_size=4 [20:30:40]MH_SAM_APDU [20:30:40]CAPDU: 80 13 00 00 [20:30:40]Write to MH i2c: E2 08 00 AA 02 80 13 00 00 00 00 00 00 28 [20:30:40]Write i2c OK [20:30:40]MH_I2C_Read... [20:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:30:40]Read from MH i2c: E2 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 62 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 62 00 AA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 27 BA 02 00 0E 04 04 00 D6 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 38 [20:30: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 27 BA 02 00 0E 04 04 00 D6 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 [20:30:40]wFMCommunicate OK [20:30:40]SAM_PROTO_GetFieldsCounters done [20:30:40]requested_item shift.num is exist - process it [20:30:40]requested_item shift.opened is exist - process it [20:30:40]req_shift_opened [20:30:40]FM_GetShiftState [20:30:40]SAM_PROTO_GetShiftState [20:30:40]wFMCommunicate request_size=4 [20:30:40]MH_SAM_APDU [20:30:40]CAPDU: 80 13 01 00 [20:30:40]Write to MH i2c: E2 08 00 AB 02 80 13 01 00 00 00 00 00 2A [20:30:40]Write i2c OK [20:30:40]MH_I2C_Read... [20:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:40]Read from MH i2c: E2 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 0E 00 [20:30:40]MH_I2C_Read... [20:30:40]Read from MH i2c: E2 0E 00 AB 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 01 [20:30:40]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:30:40]wFMCommunicate OK [20:30:40]SAM_PROTO_GetShiftState done [20:30:40]FM_GetShiftState done [20:30:40]req_shift_opened done [20:30:40]requested_item shift.open_date is exist - process it [20:30:40]req_shift_open_date [20:30:40]req_shift_open_date done [20:30:40]produce_requested_data done [20:30:40]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178727,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:30:40]process_action_free close_receipt [20:30:40]json_value_free [20:30:40]json_value_free done [20:30:40]process_json_proto returns [20:30:40]Send response to host [20:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178727,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:30:40]free response buf [20:30:40]execute_script done [20:30:40]execute_script returns [20:30:40]free content buf [20:30:40]Sock 10.Close socket [20:30:40]Sock 10.Thread stoped [20:30:45]OFD Sender: No OFD packet to send [20:30:50]OFD Sender: No OFD packet to send [20:30:55]OFD Sender: No OFD packet to send [20:31:00]OFD Sender: No OFD packet to send [20:31:05]OFD Sender: No OFD packet to send [20:31:10]OFD Sender: No OFD packet to send [20:31:15]OFD Sender: No OFD packet to send [20:31:20]OFD Sender: No OFD packet to send [20:31:25]OFD Sender: No OFD packet to send [20:31:30]OFD Sender: No OFD packet to send [20:31:35]OFD Sender: No OFD packet to send [20:31:40]OFD Sender: No OFD packet to send [20:31:45]OFD Sender: No OFD packet to send [20:31:50]OFD Sender: No OFD packet to send [20:31:55]OFD Sender: No OFD packet to send [20:32:00]OFD Sender: No OFD packet to send [20:32:04]recv_with_timeout no data received [20:32:05]OFD Sender: No OFD packet to send [20:32:10]OFD Sender: No OFD packet to send [20:32:15]OFD Sender: No OFD packet to send [20:32:20]OFD Sender: No OFD packet to send [20:32:25]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:52]recv_with_timeout no data received [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]accept exits with 9 [20:33:05]New connection [20:33:05]New thread 3066989924 created [20:33:05]Thread 3067133284 joined [20:33:05]Waiting for new connection... [20:33:05] Sock 9.Parse request [20:33:05]Sock 9.Check first char [20:33:05]Sock 9.First char is OK [20:33:05]request: POST /json_proto HTTP/1.0 [20:33:05]Method: POST [20:33:05]URL: /json_proto [20:33:05]Method is POST - this is cgi request [20:33:05]url: /json_proto [20:33:05]query_string will be loaded in cgi processing [20:33:05]execute_cgi json_proto POST (null) [20:33:05]execute_cgi path=json_proto method=POST [20:33:05]POST find Content-Length [20:33:05]Host: 172.17.44.131:8080 [20:33:05]Content-Length: 792 [20:33:05]Content-Type: application/json [20:33:05] [20:33:05]POST finish read [20:33:05]Found Content-Length = 792 [20:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:05]execute_script... [20:33: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)294676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:05]POST & json_proto [20:33:05]process_json_proto [20:33:05]json parsed OK: [20:33:05]protocol is kg_v1.0 [20:33:05]action value=close_receipt [20:33:05]process_action close_receipt [20:33:05]cmd_close_receipt [20:33:05]MH_GetDate [20:33:05]Write to MH i2c: F0 00 00 AC 02 9D [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: F0 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: F0 09 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: F0 09 00 AC 02 00 02 F2 C8 66 4F 53 BE 66 8E [20:33:05]GetLastDocTimeStamp 1724445037 [20:33:05]current date 1724445186 [20:33:05]FM_GetShiftState [20:33:05]SAM_PROTO_GetShiftState [20:33:05]wFMCommunicate request_size=4 [20:33:05]MH_SAM_APDU [20:33:05]CAPDU: 80 13 01 00 [20:33:05]Write to MH i2c: E2 08 00 AD 02 80 13 01 00 00 00 00 00 2C [20:33:05]Write i2c OK [20:33:05]MH_I2C_Read... [20:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:05]Read from MH i2c: E2 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 0E 00 [20:33:05]MH_I2C_Read... [20:33:05]Read from MH i2c: E2 0E 00 AD 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 03 [20:33:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:33:05]wFMCommunicate OK [20:33:05]SAM_PROTO_GetShiftState done [20:33:05]FM_GetShiftState done [20:33:05]opened in 1724371660 [20:33:05]opened+sec_in_day 1724458060 [20:33:05]quantity*price = 0 [20:33:05]sum+1 = 1 [20:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 188 23.08.2024 20:33 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178728 ФПД: 185397933770787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203306&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178728&fm=185397933770787&tin=02508201610067®Number=0000000000092561&sum=0 [20:33:06]StoreToDocumentArchive [20:33:06]shift 470 fd 178728 [20:33:06]save to /storage/0470/doc_00178728 [20:33:06]save last doc name /storage/0470/doc_00178728 to /storage/kkm_last_doc_name [20:33:06]save OK [20:33:06]Clear old archive folders... [20:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:33:06]tlvbuf is 01B12590 [20:33:06]SAM_PROTO_ClearQueue [20:33:06]wFMCommunicate request_size=4 [20:33:06]MH_SAM_APDU [20:33:06]CAPDU: 80 09 00 00 [20:33:06]Write to MH i2c: E2 08 00 BA 02 80 09 00 00 00 00 00 00 2E [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: E2 [20:33:06]MH_I2C_Read... [20:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:06]Read from MH i2c: E2 03 00 [20:33:06]MH_I2C_Read... [20:33:06]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [20:33:06]RAPDU: 90 00 [20:33:06]wFMCommunicate OK [20:33:06]SAM_PROTO_ClearQueue done [20:33:06]KKMCreateOFDPacket [20:33:06]OFDProtocolAddRootSTLVToBuf [20:33:06]FM_MakeSignedData [20:33:06]FM_MakeSignedData [20:33:06]SAM_PROTO_SignData [20:33:06]wFMCommunicate request_size=4 [20:33:06]MH_SAM_APDU [20:33:06]CAPDU: 80 0D 01 02 [20:33:06]Write to MH i2c: E2 08 00 BB 02 80 0D 01 02 00 00 00 00 36 [20:33:06]Write i2c OK [20:33:06]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 BB 02 00 90 00 31 [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]wFMCommunicate request_size=255 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 28 BA 02 00 35 04 06 00 A8 9E 51 FC [20:33:07]Write to MH i2c: E2 02 01 BC 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 28 BA 02 00 35 04 06 00 A8 9E 51 FC 00 00 EF [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 BC 02 00 90 00 32 [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]wFMCommunicate request_size=7 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 0D 02 02 02 08 23 [20:33:07]Write to MH i2c: E2 0A 00 BD 02 80 0D 02 02 02 00 08 23 00 00 68 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 03 00 BD 02 00 90 00 33 [20:33:07]RAPDU: 90 00 [20:33:07]wFMCommunicate OK [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 0D 03 02 [20:33:07]Write to MH i2c: E2 08 00 BE 02 80 0D 03 02 00 00 00 00 3B [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0B 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 0B 00 BE 02 00 ED 59 9A B3 2C 8F 2E BD 90 00 75 [20:33:07]RAPDU: ED 59 9A B3 2C 8F 2E BD 90 00 [20:33:07]wFMCommunicate OK [20:33:07]SAM_PROTO_SignData done [20:33:07]FM_MakeSignedData done [20:33:07]CreateOFDProtocolMessage [20:33:07]wFMCommunicate request_size=4 [20:33:07]MH_SAM_APDU [20:33:07]CAPDU: 80 11 00 00 [20:33:07]Write to MH i2c: E2 08 00 BF 02 80 11 00 00 00 00 00 00 3B [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:07]Read from MH i2c: E2 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 17 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: E2 17 00 BF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 94 [20:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:33:07]wFMCommunicate OK [20:33:07]CreateOFDProtocolMessage done [20:33:07]OFDSenderStorePacket 178728 [20:33:07]StoreOFDPacket docnum=178728 [20:33:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D3 73 04 01 C4 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 28 BA 02 00 35 04 06 00 A8 9E 51 FC 08 23 ED 59 9A B3 2C 8F 2E BD [20:33:07]CheckFolder [20:33:07]dirname=/storage/ofd_packets [20:33:07]CheckFolder done [20:33:07]ProducePacketName [20:33:07]name=ofd_packets/00178728 [20:33:07]NVStorageSaveData ofd_packets/00178728 [20:33:07]File name is /storage/ofd_packets/00178728 [20:33:07]Write 298 bytes [20:33:07]NVStorageSaveData done [20:33:07]OFDSenderStorePacket done [20:33:07]KKMCreateOFDPacket done [20:33:07]NVStorageSaveData kkm_last_timestamp [20:33:07]File name is /storage/kkm_last_timestamp [20:33:07]Write 4 bytes [20:33:07]NVStorageSaveData done [20:33:07]ExternCall_PrintAddStr [20:33:07]wPrintStart [20:33:07]Write to MH i2c: 01 00 00 C0 02 C2 [20:33:07]Write i2c OK [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 07 00 [20:33:07]MH_I2C_Read... [20:33:07]Read from MH i2c: 01 07 00 C0 02 00 00 00 00 00 FF 0F D7 [20:33:07]RasterBufferAndPrint [20:33:07]line Счет N : (1)294676 [20:33:07]line ИНН: 02508201610067 [20:33:07]line Контрольно-Кассовый Чек [20:33:07]line ПРОДАЖА [20:33:07]line ТРК (МРК, ГНК) : 11 [20:33:07]line Товар: 2710194800 [20:33:07]line ДТ-К-5 [20:33:07]line 100.000 * 0.00 [20:33:07]line = 0.00 [20:33:07]line НДС 12% НСП 1% [20:33:07]line > о реализуемом товаре [20:33:07]line ИТОГО: 0.00 [20:33:07]line НСП 1% : 0.00 [20:33:07]line НДС 12% : 0.00 [20:33:07]line Наличными: 0.00 [20:33:07]line Безнал.: 0.00 [20:33:07]line Место: АЗС № 130 "Партнер Нефть" [20:33:07]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:33:07]line СНО: Общий режим [20:33:07]line Чек 188 23.08.2024 20:33 [20:33:07]line Смена: 470 ФФД: 1.0 [20:33:07]line ЗНМ: 0300000071 [20:33:07]line РНМ: 0000000000092561 [20:33:07]line Версия ККМ: 001 [20:33:07]line Талоны: Топливные Талоны [20:33:07]line 1 [20:33:07]line ФМ: 0000000000871778 [20:33:07]line ФД: 178728 [20:33:07]line ФПД: 185397933770787 [20:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203306&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178728&fm=185397933770787&tin=02508201610067®Number=0000000000092561&sum=0 [20:33:07]OFD Sender: Processing packet 178728 [packets to send 500, broken 499] [20:33:07]ProducePacketName [20:33:07]name=ofd_packets/00178728 [20:33:07]OFD Sender: To server: pG, [20:33:07]CommunicateWithHost lk.salyk.kg:30040 [20:33:07]ConnectInit lk.salyk.kg [20:33:07]written 0, free lines is 4095 [20:33:08]Write to MH i2c: 01 00 00 EA 02 EC [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: 01 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: 01 07 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: 01 07 00 EA 02 00 00 00 00 00 E0 0C DF [20:33:08]RasterBufferAndPrint [20:33:08]line [20:33:08]line [20:33:08]line [20:33:08]line [20:33:08]line [20:33:08]written 0, free lines is 3302 [20:33:08]MH_Cut [20:33:08]Write to MH i2c: D1 01 00 F1 02 01 C5 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: D1 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: D1 01 00 [20:33:08]MH_I2C_Read... [20:33:08]Read from MH i2c: D1 01 00 F1 02 00 C4 [20:33:08]Write to MH i2c: 01 00 00 F2 02 F4 [20:33:08]Write i2c OK [20:33:08]MH_I2C_Read... [20:33:08]*** Cut start [20:33:08]*** Partial cut [20:33:08]*** CUTSNS_PIN = 1 [20:33:08]*** CUTSNS_PIN = 0 [20:33:09]*** Brake cut motor [20:33:09]Read from MH i2c: 01 [20:33:09]MH_I2C_Read... [20:33:09]*** Stop cut motor [20:33:09]*** Cut end [20:33:09]Read from MH i2c: 01 07 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: 01 07 00 F2 02 00 00 00 00 00 FF 0F 09 [20:33:09]process_action close_receipt done [20:33:09]requested_data is exist [20:33:09]produce_requested_data [20:33:09]requested_item fm.sn is exist - process it [20:33:09]wFMCommunicate request_size=4 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 11 00 00 [20:33:09]Write to MH i2c: E2 08 00 F3 02 80 11 00 00 00 00 00 00 6F [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 17 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 17 00 F3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C8 [20:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:33:09]wFMCommunicate OK [20:33:09]requested_item fd.num is exist - process it [20:33:09]SAM_PROTO_GetFieldsCounters [20:33:09]wFMCommunicate request_size=4 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 13 00 00 [20:33:09]Write to MH i2c: E2 08 00 F4 02 80 13 00 00 00 00 00 00 72 [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 62 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 62 00 F4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 28 BA 02 00 0E 04 04 00 D6 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 86 [20: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 28 BA 02 00 0E 04 04 00 D6 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 [20:33:09]wFMCommunicate OK [20:33:09]SAM_PROTO_GetFieldsCounters done [20:33:09]requested_item shift.num is exist - process it [20:33:09]requested_item shift.opened is exist - process it [20:33:09]req_shift_opened [20:33:09]FM_GetShiftState [20:33:09]SAM_PROTO_GetShiftState [20:33:09]wFMCommunicate request_size=4 [20:33:09]MH_SAM_APDU [20:33:09]CAPDU: 80 13 01 00 [20:33:09]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [20:33:09]Write i2c OK [20:33:09]MH_I2C_Read... [20:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:09]Read from MH i2c: E2 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 0E 00 [20:33:09]MH_I2C_Read... [20:33:09]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4B [20:33:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:33:09]wFMCommunicate OK [20:33:09]SAM_PROTO_GetShiftState done [20:33:09]FM_GetShiftState done [20:33:09]req_shift_opened done [20:33:09]requested_item shift.open_date is exist - process it [20:33:09]req_shift_open_date [20:33:09]req_shift_open_date done [20:33:09]produce_requested_data done [20:33:09]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178728,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:33:09]process_action_free close_receipt [20:33:09]json_value_free [20:33:09]json_value_free done [20:33:09]process_json_proto returns [20:33:09]Send response to host [20:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178728,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:33:09]free response buf [20:33:09]execute_script done [20:33:09]execute_script returns [20:33:09]free content buf [20:33:09]Sock 9.Close socket [20:33:09]Sock 9.Thread stoped [20:33:12]recv_with_timeout no data received [20:33:12]ConnectInit Can't take IP for lk.salyk.kg [20:33:12]CommunicateWithHost connect error [20:33:12]CommunicateWithHost err = -1 [20:33:12]OFD Sender: Server communicate error [20:33:15]accept exits with 8 [20:33:15]New connection [20:33:15]New thread 3067133284 created [20:33:15]Thread 3066989924 joined [20:33:15]Waiting for new connection... [20:33:15] Sock 8.Parse request [20:33:15]Sock 8.Check first char [20:33:15]Sock 8.First char is OK [20:33:15]request: POST /json_proto HTTP/1.0 [20:33:15]Method: POST [20:33:15]URL: /json_proto [20:33:15]Method is POST - this is cgi request [20:33:15]url: /json_proto [20:33:15]query_string will be loaded in cgi processing [20:33:15]execute_cgi json_proto POST (null) [20:33:15]execute_cgi path=json_proto method=POST [20:33:15]POST find Content-Length [20:33:15]Host: 172.17.44.131:8080 [20:33:15]Content-Length: 792 [20:33:15]Content-Type: application/json [20:33:15] [20:33:15]POST finish read [20:33:15]Found Content-Length = 792 [20:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:15]execute_script... [20:33: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)294677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:33:15]POST & json_proto [20:33:15]process_json_proto [20:33:15]json parsed OK: [20:33:15]protocol is kg_v1.0 [20:33:15]action value=close_receipt [20:33:15]process_action close_receipt [20:33:15]cmd_close_receipt [20:33:15]MH_GetDate [20:33:15]Write to MH i2c: F0 00 00 F6 02 E7 [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: F0 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: F0 09 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: F0 09 00 F6 02 00 0B F2 C8 66 4F 53 BE 66 E1 [20:33:15]GetLastDocTimeStamp 1724445186 [20:33:15]current date 1724445195 [20:33:15]FM_GetShiftState [20:33:15]SAM_PROTO_GetShiftState [20:33:15]wFMCommunicate request_size=4 [20:33:15]MH_SAM_APDU [20:33:15]CAPDU: 80 13 01 00 [20:33:15]Write to MH i2c: E2 08 00 F7 02 80 13 01 00 00 00 00 00 76 [20:33:15]Write i2c OK [20:33:15]MH_I2C_Read... [20:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:15]Read from MH i2c: E2 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 0E 00 [20:33:15]MH_I2C_Read... [20:33:15]Read from MH i2c: E2 0E 00 F7 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 4D [20:33:15]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:33:15]wFMCommunicate OK [20:33:15]SAM_PROTO_GetShiftState done [20:33:15]FM_GetShiftState done [20:33:15]opened in 1724371660 [20:33:15]opened+sec_in_day 1724458060 [20:33:15]quantity*price = 0 [20:33:15]sum+1 = 1 [20:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 189 23.08.2024 20:33 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178729 ФПД: 182156912473806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203315&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178729&fm=182156912473806&tin=02508201610067®Number=0000000000092561&sum=0 [20:33:16]StoreToDocumentArchive [20:33:16]shift 470 fd 178729 [20:33:16]save to /storage/0470/doc_00178729 [20:33:16]save last doc name /storage/0470/doc_00178729 to /storage/kkm_last_doc_name [20:33:16]save OK [20:33:16]Clear old archive folders... [20:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:33:16]tlvbuf is 01B2E8E0 [20:33:16]SAM_PROTO_ClearQueue [20:33:16]wFMCommunicate request_size=4 [20:33:16]MH_SAM_APDU [20:33:16]CAPDU: 80 09 00 00 [20:33:16]Write to MH i2c: E2 08 00 04 03 80 09 00 00 00 00 00 00 79 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:16]Read from MH i2c: E2 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [20:33:16]RAPDU: 90 00 [20:33:16]wFMCommunicate OK [20:33:16]SAM_PROTO_ClearQueue done [20:33:16]KKMCreateOFDPacket [20:33:16]OFDProtocolAddRootSTLVToBuf [20:33:16]FM_MakeSignedData [20:33:16]FM_MakeSignedData [20:33:16]SAM_PROTO_SignData [20:33:16]wFMCommunicate request_size=4 [20:33:16]MH_SAM_APDU [20:33:16]CAPDU: 80 0D 01 02 [20:33:16]Write to MH i2c: E2 08 00 05 03 80 0D 01 02 00 00 00 00 81 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:16]Read from MH i2c: E2 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [20:33:16]RAPDU: 90 00 [20:33:16]wFMCommunicate OK [20:33:16]wFMCommunicate request_size=255 [20:33:16]MH_SAM_APDU [20:33:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0B F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 29 BA 02 00 35 04 06 00 A5 AB B6 0F [20:33:16]Write to MH i2c: E2 02 01 06 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0B F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 29 BA 02 00 35 04 06 00 A5 AB B6 0F 00 00 C7 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:16]Read from MH i2c: E2 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 06 03 00 90 00 7D [20:33:16]RAPDU: 90 00 [20:33:16]wFMCommunicate OK [20:33:16]wFMCommunicate request_size=7 [20:33:16]MH_SAM_APDU [20:33:16]CAPDU: 80 0D 02 02 02 B6 CE [20:33:16]Write to MH i2c: E2 0A 00 07 03 80 0D 02 02 02 00 B6 CE 00 00 0C [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:16]Read from MH i2c: E2 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 03 00 07 03 00 90 00 7E [20:33:16]RAPDU: 90 00 [20:33:16]wFMCommunicate OK [20:33:16]wFMCommunicate request_size=4 [20:33:16]MH_SAM_APDU [20:33:16]CAPDU: 80 0D 03 02 [20:33:16]Write to MH i2c: E2 08 00 08 03 80 0D 03 02 00 00 00 00 86 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:16]Read from MH i2c: E2 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 0B 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 0B 00 08 03 00 67 1D B0 B7 B4 A3 89 7E 90 00 D0 [20:33:16]RAPDU: 67 1D B0 B7 B4 A3 89 7E 90 00 [20:33:16]wFMCommunicate OK [20:33:16]SAM_PROTO_SignData done [20:33:16]FM_MakeSignedData done [20:33:16]CreateOFDProtocolMessage [20:33:16]wFMCommunicate request_size=4 [20:33:16]MH_SAM_APDU [20:33:16]CAPDU: 80 11 00 00 [20:33:16]Write to MH i2c: E2 08 00 09 03 80 11 00 00 00 00 00 00 86 [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:16]Read from MH i2c: E2 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 17 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: E2 17 00 09 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DF [20:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:33:16]wFMCommunicate OK [20:33:16]CreateOFDProtocolMessage done [20:33:16]OFDSenderStorePacket 178729 [20:33:16]StoreOFDPacket docnum=178729 [20:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 1E 0A 04 01 38 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0B F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 29 BA 02 00 35 04 06 00 A5 AB B6 0F B6 CE 67 1D B0 B7 B4 A3 89 7E [20:33:16]CheckFolder [20:33:16]dirname=/storage/ofd_packets [20:33:16]CheckFolder done [20:33:16]ProducePacketName [20:33:16]name=ofd_packets/00178729 [20:33:16]NVStorageSaveData ofd_packets/00178729 [20:33:16]File name is /storage/ofd_packets/00178729 [20:33:16]Write 298 bytes [20:33:16]NVStorageSaveData done [20:33:16]OFDSenderStorePacket done [20:33:16]KKMCreateOFDPacket done [20:33:16]NVStorageSaveData kkm_last_timestamp [20:33:16]File name is /storage/kkm_last_timestamp [20:33:16]Write 4 bytes [20:33:16]NVStorageSaveData done [20:33:16]ExternCall_PrintAddStr [20:33:16]wPrintStart [20:33:16]Write to MH i2c: 01 00 00 0A 03 0D [20:33:16]Write i2c OK [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 07 00 [20:33:16]MH_I2C_Read... [20:33:16]Read from MH i2c: 01 07 00 0A 03 00 00 00 00 00 FF 0F 22 [20:33:16]RasterBufferAndPrint [20:33:16]line Счет N : (1)294677 [20:33:16]line ИНН: 02508201610067 [20:33:16]line Контрольно-Кассовый Чек [20:33:16]line ПРОДАЖА [20:33:16]line ТРК (МРК, ГНК) : 21 [20:33:16]line Товар: 2710194800 [20:33:16]line ДТ-К-5 [20:33:16]line 100.000 * 0.00 [20:33:16]line = 0.00 [20:33:16]line НДС 12% НСП 1% [20:33:16]line > о реализуемом товаре [20:33:16]line ИТОГО: 0.00 [20:33:16]line НСП 1% : 0.00 [20:33:16]line НДС 12% : 0.00 [20:33:16]line Наличными: 0.00 [20:33:16]line Безнал.: 0.00 [20:33:16]line Место: АЗС № 130 "Партнер Нефть" [20:33:16]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:33:16]line СНО: Общий режим [20:33:16]line Чек 189 23.08.2024 20:33 [20:33:16]line Смена: 470 ФФД: 1.0 [20:33:16]line ЗНМ: 0300000071 [20:33:16]line РНМ: 0000000000092561 [20:33:16]line Версия ККМ: 001 [20:33:16]line Талоны: Топливные Талоны [20:33:16]line 1 [20:33:16]line ФМ: 0000000000871778 [20:33:16]line ФД: 178729 [20:33:16]line ФПД: 182156912473806 [20:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203315&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178729&fm=182156912473806&tin=02508201610067®Number=0000000000092561&sum=0 [20:33:16]written 0, free lines is 4095 [20:33:16]OFD Sender: Processing packet 178728 [packets to send 501, broken 499] [20:33:16]ProducePacketName [20:33:16]name=ofd_packets/00178728 [20:33:16]OFD Sender: To server: pG, [20:33:16]CommunicateWithHost lk.salyk.kg:30040 [20:33:16]ConnectInit lk.salyk.kg [20:33:17]Write to MH i2c: 01 00 00 34 03 37 [20:33:17]Write i2c OK [20:33:17]MH_I2C_Read... [20:33:17]Read from MH i2c: 01 [20:33:17]MH_I2C_Read... [20:33:17]Read from MH i2c: 01 07 00 [20:33:17]MH_I2C_Read... [20:33:17]Read from MH i2c: 01 07 00 34 03 00 00 00 00 00 E0 0C 2A [20:33:17]RasterBufferAndPrint [20:33:17]line [20:33:17]line [20:33:17]line [20:33:17]line [20:33:17]line [20:33:17]written 0, free lines is 3308 [20:33:17]MH_Cut [20:33:17]Write to MH i2c: D1 01 00 3B 03 01 10 [20:33:17]Write i2c OK [20:33:17]MH_I2C_Read... [20:33:17]Read from MH i2c: D1 [20:33:17]MH_I2C_Read... [20:33:17]Read from MH i2c: D1 01 00 [20:33:17]MH_I2C_Read... [20:33:17]Read from MH i2c: D1 01 00 3B 03 00 0F [20:33:17]Write to MH i2c: 01 00 00 3C 03 3F [20:33:17]Write i2c OK [20:33:17]MH_I2C_Read... [20:33:17]Connected sock=10 [20:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D3 73 04 01 C4 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 02 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 28 BA 02 00 35 04 06 00 A8 9E 51 FC 08 23 ED 59 9A B3 2C 8F 2E BD [20:33:17]*** Cut start [20:33:17]*** Partial cut [20:33:17]*** CUTSNS_PIN = 1 [20:33:17]*** CUTSNS_PIN = 0 [20:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F3 30 47 00 D0 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 28 BA 02 00 F4 03 04 00 B2 9D C8 66 B6 04 01 00 00 80 96 CF EE 4C 83 EE BB [20:33:18]CommunicateWithHost err = 0 [20:33:18]CheckOFDResponse [20:33:18]1017 (14) - 77093643461234 [20:33:18]1041 (16) - 0000000000871778 [20:33:18]1040 (4) - 178728 [20:33:18]1012 (4) - 23.08.2024 14:33 [20:33:18]1206 (1) - 0 [20:33:18]OFD Sender: Remove packet 178728 [20:33:18]ProducePacketName [20:33:18]name=ofd_packets/00178728 [20:33:18]NVStorageDeleteData [20:33:18]*** Brake cut motor [20:33:18]Read from MH i2c: 01 [20:33:18]MH_I2C_Read... [20:33:18]*** Stop cut motor [20:33:18]*** Cut end [20:33:18]Read from MH i2c: 01 07 00 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: 01 07 00 3C 03 00 00 00 00 00 FF 0F 54 [20:33:18]process_action close_receipt done [20:33:18]requested_data is exist [20:33:18]produce_requested_data [20:33:18]requested_item fm.sn is exist - process it [20:33:18]wFMCommunicate request_size=4 [20:33:18]MH_SAM_APDU [20:33:18]CAPDU: 80 11 00 00 [20:33:18]Write to MH i2c: E2 08 00 3D 03 80 11 00 00 00 00 00 00 BA [20:33:18]Write i2c OK [20:33:18]MH_I2C_Read... [20:33:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:18]Read from MH i2c: E2 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 17 00 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 17 00 3D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 13 [20:33:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:33:18]wFMCommunicate OK [20:33:18]requested_item fd.num is exist - process it [20:33:18]SAM_PROTO_GetFieldsCounters [20:33:18]wFMCommunicate request_size=4 [20:33:18]MH_SAM_APDU [20:33:18]CAPDU: 80 13 00 00 [20:33:18]Write to MH i2c: E2 08 00 3E 03 80 13 00 00 00 00 00 00 BD [20:33:18]Write i2c OK [20:33:18]MH_I2C_Read... [20:33:18]OFD Sender: Processing packet 178729 [packets to send 500, broken 499] [20:33:18]ProducePacketName [20:33:18]name=ofd_packets/00178729 [20:33:18]OFD Sender: To server: pG, [20:33:18]CommunicateWithHost lk.salyk.kg:30040 [20:33:18]ConnectInit lk.salyk.kg [20:33:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:18]Read from MH i2c: E2 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 62 00 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 62 00 3E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 29 BA 02 00 0E 04 04 00 D6 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 D5 [20:33: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 29 BA 02 00 0E 04 04 00 D6 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 [20:33:18]wFMCommunicate OK [20:33:18]SAM_PROTO_GetFieldsCounters done [20:33:18]requested_item shift.num is exist - process it [20:33:18]requested_item shift.opened is exist - process it [20:33:18]req_shift_opened [20:33:18]FM_GetShiftState [20:33:18]SAM_PROTO_GetShiftState [20:33:18]wFMCommunicate request_size=4 [20:33:18]MH_SAM_APDU [20:33:18]CAPDU: 80 13 01 00 [20:33:18]Write to MH i2c: E2 08 00 3F 03 80 13 01 00 00 00 00 00 BF [20:33:18]Write i2c OK [20:33:18]MH_I2C_Read... [20:33:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:18]Read from MH i2c: E2 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 0E 00 [20:33:18]MH_I2C_Read... [20:33:18]Read from MH i2c: E2 0E 00 3F 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 96 [20:33:18]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:33:18]wFMCommunicate OK [20:33:18]SAM_PROTO_GetShiftState done [20:33:18]FM_GetShiftState done [20:33:18]req_shift_opened done [20:33:18]requested_item shift.open_date is exist - process it [20:33:18]req_shift_open_date [20:33:18]req_shift_open_date done [20:33:18]produce_requested_data done [20:33:18]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178729,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:33:18]process_action_free close_receipt [20:33:18]json_value_free [20:33:18]json_value_free done [20:33:18]process_json_proto returns [20:33:18]Send response to host [20:33:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178729,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:33:18]free response buf [20:33:18]execute_script done [20:33:18]execute_script returns [20:33:18]free content buf [20:33:18]Sock 8.Close socket [20:33:18]Sock 8.Thread stoped [20:33:20]Connected sock=10 [20: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 31 37 37 38 0C 01 00 00 1E 0A 04 01 38 8C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0B F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 29 BA 02 00 35 04 06 00 A5 AB B6 0F B6 CE 67 1D B0 B7 B4 A3 89 7E [20:33:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CA F0 47 00 60 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 31 37 37 38 10 04 04 00 29 BA 02 00 F4 03 04 00 B5 9D C8 66 B6 04 01 00 00 71 5D C7 29 BD 68 76 4F [20:33:20]CommunicateWithHost err = 0 [20:33:20]CheckOFDResponse [20:33:20]1017 (14) - 77093643461234 [20:33:20]1041 (16) - 0000000000871778 [20:33:20]1040 (4) - 178729 [20:33:20]1012 (4) - 23.08.2024 14:33 [20:33:20]1206 (1) - 0 [20:33:20]OFD Sender: Remove packet 178729 [20:33:20]ProducePacketName [20:33:20]name=ofd_packets/00178729 [20:33:20]NVStorageDeleteData [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:27]accept exits with 9 [20:34:27]New connection [20:34:27]New thread 3066989924 created [20:34:27]Thread 3067133284 joined [20:34:27]Waiting for new connection... [20:34:27] Sock 9.Parse request [20:34:27]Sock 9.Check first char [20:34:27]Sock 9.First char is OK [20:34:27]request: POST /json_proto HTTP/1.0 [20:34:27]Method: POST [20:34:27]URL: /json_proto [20:34:27]Method is POST - this is cgi request [20:34:27]url: /json_proto [20:34:27]query_string will be loaded in cgi processing [20:34:27]execute_cgi json_proto POST (null) [20:34:27]execute_cgi path=json_proto method=POST [20:34:27]POST find Content-Length [20:34:27]Host: 172.17.44.131:8080 [20:34:27]Content-Length: 681 [20:34:27]Content-Type: application/json [20:34:27] [20:34:27]POST finish read [20:34:27]Found Content-Length = 681 [20:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 8.460, "sum" : 316.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 316.00, "payments": [ { "type": 0, "sum" : 316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:27]execute_script... [20:34: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)294674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 8.460, "sum" : 316.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 316.00, "payments": [ { "type": 0, "sum" : 316.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:34:27]POST & json_proto [20:34:27]process_json_proto [20:34:27]json parsed OK: [20:34:27]protocol is kg_v1.0 [20:34:27]action value=close_receipt [20:34:27]process_action close_receipt [20:34:27]cmd_close_receipt [20:34:27]MH_GetDate [20:34:27]Write to MH i2c: F0 00 00 40 03 32 [20:34:27]Write i2c OK [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: F0 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: F0 09 00 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: F0 09 00 40 03 00 54 F2 C8 66 4F 53 BE 66 75 [20:34:27]GetLastDocTimeStamp 1724445195 [20:34:27]current date 1724445268 [20:34:27]FM_GetShiftState [20:34:27]SAM_PROTO_GetShiftState [20:34:27]wFMCommunicate request_size=4 [20:34:27]MH_SAM_APDU [20:34:27]CAPDU: 80 13 01 00 [20:34:27]Write to MH i2c: E2 08 00 41 03 80 13 01 00 00 00 00 00 C1 [20:34:27]Write i2c OK [20:34:27]MH_I2C_Read... [20:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:27]Read from MH i2c: E2 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: E2 0E 00 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: E2 0E 00 41 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 98 [20:34:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:34:27]wFMCommunicate OK [20:34:27]SAM_PROTO_GetShiftState done [20:34:27]FM_GetShiftState done [20:34:27]opened in 1724371660 [20:34:27]opened+sec_in_day 1724458060 [20:34:27]quantity*price = 31640 [20:34:27]sum+1 = 31641 [20:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 316.00 Внесено: 1000.00 СДАЧА: 684.00 НСП 1% : 2.80 НДС 12% : 33.60 Наличными: 316.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 190 23.08.2024 20:34 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178730 ФПД: 167209268100480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203428&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178730&fm=167209268100480&tin=02508201610067®Number=0000000000092561&sum=31600 [20:34:28]StoreToDocumentArchive [20:34:28]shift 470 fd 178730 [20:34:28]save to /storage/0470/doc_00178730 [20:34:28]save last doc name /storage/0470/doc_00178730 to /storage/kkm_last_doc_name [20:34:28]save OK [20:34:28]Clear old archive folders... [20:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:34:28]tlvbuf is 01B044B0 [20:34:28]SAM_PROTO_ClearQueue [20:34:28]wFMCommunicate request_size=4 [20:34:28]MH_SAM_APDU [20:34:28]CAPDU: 80 09 00 00 [20:34:28]Write to MH i2c: E2 08 00 4E 03 80 09 00 00 00 00 00 00 C3 [20:34:28]Write i2c OK [20:34:28]MH_I2C_Read... [20:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:28]Read from MH i2c: E2 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 03 00 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [20:34:28]RAPDU: 90 00 [20:34:28]wFMCommunicate OK [20:34:28]SAM_PROTO_ClearQueue done [20:34:28]KKMCreateOFDPacket [20:34:28]OFDProtocolAddRootSTLVToBuf [20:34:28]FM_MakeSignedData [20:34:28]FM_MakeSignedData [20:34:28]SAM_PROTO_SignData [20:34:28]wFMCommunicate request_size=4 [20:34:28]MH_SAM_APDU [20:34:28]CAPDU: 80 0D 01 02 [20:34:28]Write to MH i2c: E2 08 00 4F 03 80 0D 01 02 00 00 00 00 CB [20:34:28]Write i2c OK [20:34:28]MH_I2C_Read... [20:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:28]Read from MH i2c: E2 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 03 00 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [20:34:28]RAPDU: 90 00 [20:34:28]wFMCommunicate OK [20:34:28]wFMCommunicate request_size=255 [20:34:28]MH_SAM_APDU [20:34:28]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0C 21 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0D 00 00 00 00 07 04 06 00 70 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 54 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2A BA 02 00 35 04 06 00 98 13 [20:34:28]Write to MH i2c: E2 02 01 50 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0C 21 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0D 00 00 00 00 07 04 06 00 70 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 54 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2A BA 02 00 35 04 06 00 98 13 00 00 29 [20:34:28]Write i2c OK [20:34:28]MH_I2C_Read... [20:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:29]Read from MH i2c: E2 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 03 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [20:34:29]RAPDU: 90 00 [20:34:29]wFMCommunicate OK [20:34:29]wFMCommunicate request_size=9 [20:34:29]MH_SAM_APDU [20:34:29]CAPDU: 80 0D 02 02 04 71 07 3D 80 [20:34:29]Write to MH i2c: E2 0C 00 51 03 80 0D 02 02 04 00 71 07 3D 80 00 00 0B [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:29]Read from MH i2c: E2 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 03 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 03 00 51 03 00 90 00 C8 [20:34:29]RAPDU: 90 00 [20:34:29]wFMCommunicate OK [20:34:29]wFMCommunicate request_size=4 [20:34:29]MH_SAM_APDU [20:34:29]CAPDU: 80 0D 03 02 [20:34:29]Write to MH i2c: E2 08 00 52 03 80 0D 03 02 00 00 00 00 D0 [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:29]Read from MH i2c: E2 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 0B 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 0B 00 52 03 00 30 21 E1 A5 4D B3 21 25 90 00 EE [20:34:29]RAPDU: 30 21 E1 A5 4D B3 21 25 90 00 [20:34:29]wFMCommunicate OK [20:34:29]SAM_PROTO_SignData done [20:34:29]FM_MakeSignedData done [20:34:29]CreateOFDProtocolMessage [20:34:29]wFMCommunicate request_size=4 [20:34:29]MH_SAM_APDU [20:34:29]CAPDU: 80 11 00 00 [20:34:29]Write to MH i2c: E2 08 00 53 03 80 11 00 00 00 00 00 00 D0 [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:29]Read from MH i2c: E2 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 17 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: E2 17 00 53 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 29 [20:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:34:29]wFMCommunicate OK [20:34:29]CreateOFDProtocolMessage done [20:34:29]OFDSenderStorePacket 178730 [20:34:29]StoreOFDPacket docnum=178730 [20:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 CE 9C 06 01 2E DF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0C 21 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0D 00 00 00 00 07 04 06 00 70 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 54 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2A BA 02 00 35 04 06 00 98 13 71 07 3D 80 30 21 E1 A5 4D B3 21 25 [20:34:29]CheckFolder [20:34:29]dirname=/storage/ofd_packets [20:34:29]CheckFolder done [20:34:29]ProducePacketName [20:34:29]name=ofd_packets/00178730 [20:34:29]NVStorageSaveData ofd_packets/00178730 [20:34:29]File name is /storage/ofd_packets/00178730 [20:34:29]Write 300 bytes [20:34:29]NVStorageSaveData done [20:34:29]OFDSenderStorePacket done [20:34:29]KKMCreateOFDPacket done [20:34:29]NVStorageSaveData kkm_last_timestamp [20:34:29]File name is /storage/kkm_last_timestamp [20:34:29]Write 4 bytes [20:34:29]NVStorageSaveData done [20:34:29]ExternCall_PrintAddStr [20:34:29]wPrintStart [20:34:29]Write to MH i2c: 01 00 00 54 03 57 [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: 01 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: 01 07 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: 01 07 00 54 03 00 00 00 00 00 FF 0F 6C [20:34:29]RasterBufferAndPrint [20:34:29]line Счет N : (1)294674 [20:34:29]line ИНН: 02508201610067 [20:34:29]line Контрольно-Кассовый Чек [20:34:29]line ПРОДАЖА [20:34:29]line ТРК (МРК, ГНК) : 71 [20:34:29]line Товар: 2711129700 [20:34:29]line ГАЗ-К-5 [20:34:29]line 8.460 * 37.40 [20:34:29]line = 316.40 [20:34:29]line НДС 12% НСП 1% [20:34:29]line > о реализуемом товаре [20:34:29]line ОКРУГЛЕНИЕ: -0.40 [20:34:29]line ИТОГО: 316.00 [20:34:29]line Внесено: 1000.00 [20:34:29]line СДАЧА: 684.00 [20:34:29]line НСП 1% : 2.80 [20:34:29]line НДС 12% : 33.60 [20:34:29]line Наличными: 316.00 [20:34:29]line Безнал.: 0.00 [20:34:29]line Место: АЗС № 130 "Партнер Нефть" [20:34:29]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:34:29]line СНО: Общий режим [20:34:29]line Чек 190 23.08.2024 20:34 [20:34:29]line Смена: 470 ФФД: 1.0 [20:34:29]line ЗНМ: 0300000071 [20:34:29]line РНМ: 0000000000092561 [20:34:29]line Версия ККМ: 001 [20:34:29]line ФМ: 0000000000871778 [20:34:29]line ФД: 178730 [20:34:29]line ФПД: 167209268100480 [20:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203428&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178730&fm=167209268100480&tin=02508201610067®Number=0000000000092561&sum=31600 [20:34:29]written 0, free lines is 4095 [20:34:29]OFD Sender: Processing packet 178730 [packets to send 500, broken 499] [20:34:29]ProducePacketName [20:34:29]name=ofd_packets/00178730 [20:34:29]OFD Sender: To server: pG, [20:34:29]CommunicateWithHost lk.salyk.kg:30040 [20:34:29]ConnectInit lk.salyk.kg [20:34:29]Write to MH i2c: 01 00 00 7F 03 82 [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: 01 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: 01 07 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: 01 07 00 7F 03 00 00 00 00 00 D9 0C 6E [20:34:29]RasterBufferAndPrint [20:34:29]line [20:34:29]line [20:34:29]line [20:34:29]line [20:34:29]line [20:34:29]written 0, free lines is 3296 [20:34:29]MH_Cut [20:34:29]Write to MH i2c: D1 01 00 86 03 01 5B [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: D1 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: D1 01 00 [20:34:29]MH_I2C_Read... [20:34:29]Read from MH i2c: D1 01 00 86 03 00 5A [20:34:29]Write to MH i2c: 01 00 00 87 03 8A [20:34:29]Write i2c OK [20:34:29]MH_I2C_Read... [20:34:30]Connected sock=8 [20:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 CE 9C 06 01 2E DF 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 0C 21 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 98 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0D 00 00 00 00 07 04 06 00 70 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 54 F2 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2A BA 02 00 35 04 06 00 98 13 71 07 3D 80 30 21 E1 A5 4D B3 21 25 [20:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 BD 35 47 00 AD 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 31 37 37 38 10 04 04 00 2A BA 02 00 F4 03 04 00 FB 9D C8 66 B6 04 01 00 00 9D C4 ED B8 CC 33 24 55 [20:34:30]CommunicateWithHost err = 0 [20:34:30]CheckOFDResponse [20:34:30]1017 (14) - 77093643461234 [20:34:30]1041 (16) - 0000000000871778 [20:34:30]1040 (4) - 178730 [20:34:30]1012 (4) - 23.08.2024 14:34 [20:34:30]1206 (1) - 0 [20:34:30]OFD Sender: Remove packet 178730 [20:34:30]ProducePacketName [20:34:30]name=ofd_packets/00178730 [20:34:30]NVStorageDeleteData [20:34:30]*** Cut start [20:34:30]*** Partial cut [20:34:30]*** CUTSNS_PIN = 1 [20:34:30]*** CUTSNS_PIN = 0 [20:34:30]*** Brake cut motor [20:34:30]OFD Sender: No OFD packet to send [20:34:31]Read from MH i2c: 01 [20:34:31]MH_I2C_Read... [20:34:31]*** Stop cut motor [20:34:31]*** Cut end [20:34:31]Read from MH i2c: 01 07 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 FF 0F 9F [20:34:31]process_action close_receipt done [20:34:31]requested_data is exist [20:34:31]produce_requested_data [20:34:31]requested_item fm.sn is exist - process it [20:34:31]wFMCommunicate request_size=4 [20:34:31]MH_SAM_APDU [20:34:31]CAPDU: 80 11 00 00 [20:34:31]Write to MH i2c: E2 08 00 88 03 80 11 00 00 00 00 00 00 05 [20:34:31]Write i2c OK [20:34:31]MH_I2C_Read... [20:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:31]Read from MH i2c: E2 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 17 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 17 00 88 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5E [20:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:34:31]wFMCommunicate OK [20:34:31]requested_item fd.num is exist - process it [20:34:31]SAM_PROTO_GetFieldsCounters [20:34:31]wFMCommunicate request_size=4 [20:34:31]MH_SAM_APDU [20:34:31]CAPDU: 80 13 00 00 [20:34:31]Write to MH i2c: E2 08 00 89 03 80 13 00 00 00 00 00 00 08 [20:34:31]Write i2c OK [20:34:31]MH_I2C_Read... [20:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:31]Read from MH i2c: E2 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 62 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 62 00 89 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2A BA 02 00 0E 04 04 00 D6 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 24 [20:34: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2A BA 02 00 0E 04 04 00 D6 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 [20:34:31]wFMCommunicate OK [20:34:31]SAM_PROTO_GetFieldsCounters done [20:34:31]requested_item shift.num is exist - process it [20:34:31]requested_item shift.opened is exist - process it [20:34:31]req_shift_opened [20:34:31]FM_GetShiftState [20:34:31]SAM_PROTO_GetShiftState [20:34:31]wFMCommunicate request_size=4 [20:34:31]MH_SAM_APDU [20:34:31]CAPDU: 80 13 01 00 [20:34:31]Write to MH i2c: E2 08 00 8A 03 80 13 01 00 00 00 00 00 0A [20:34:31]Write i2c OK [20:34:31]MH_I2C_Read... [20:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:31]Read from MH i2c: E2 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 0E 00 [20:34:31]MH_I2C_Read... [20:34:31]Read from MH i2c: E2 0E 00 8A 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E1 [20:34:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:34:31]wFMCommunicate OK [20:34:31]SAM_PROTO_GetShiftState done [20:34:31]FM_GetShiftState done [20:34:31]req_shift_opened done [20:34:31]requested_item shift.open_date is exist - process it [20:34:31]req_shift_open_date [20:34:31]req_shift_open_date done [20:34:31]produce_requested_data done [20:34:31]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178730,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:34:31]process_action_free close_receipt [20:34:31]json_value_free [20:34:31]json_value_free done [20:34:31]process_json_proto returns [20:34:31]Send response to host [20:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178730,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:34:31]free response buf [20:34:31]execute_script done [20:34:31]execute_script returns [20:34:31]free content buf [20:34:31]Sock 9.Close socket [20:34:31]Sock 9.Thread stoped [20:34:35]OFD Sender: No OFD packet to send [20:34:39]recv_with_timeout no data received [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]recv_with_timeout no data received [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:53]recv_with_timeout no data received [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:45]accept exits with 10 [20:37:45]New connection [20:37:45]New thread 3067133284 created [20:37:45]Thread 3066989924 joined [20:37:45]Waiting for new connection... [20:37:45] Sock 10.Parse request [20:37:45]Sock 10.Check first char [20:37:45]Sock 10.First char is OK [20:37:45]request: POST /json_proto HTTP/1.0 [20:37:45]Method: POST [20:37:45]URL: /json_proto [20:37:45]Method is POST - this is cgi request [20:37:45]url: /json_proto [20:37:45]query_string will be loaded in cgi processing [20:37:45]execute_cgi json_proto POST (null) [20:37:45]execute_cgi path=json_proto method=POST [20:37:45]POST find Content-Length [20:37:45]Host: 172.17.44.131:8080 [20:37:45]Content-Length: 791 [20:37:45]Content-Type: application/json [20:37:45] [20:37:45]POST finish read [20:37:45]Found Content-Length = 791 [20:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:45]execute_script... [20:37: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)294684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:45]POST & json_proto [20:37:45]process_json_proto [20:37:45]json parsed OK: [20:37:45]protocol is kg_v1.0 [20:37:45]action value=close_receipt [20:37:45]process_action close_receipt [20:37:45]cmd_close_receipt [20:37:45]MH_GetDate [20:37:45]Write to MH i2c: F0 00 00 8B 03 7D [20:37:45]Write i2c OK [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: F0 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: F0 09 00 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: F0 09 00 8B 03 00 19 F3 C8 66 4F 53 BE 66 86 [20:37:45]GetLastDocTimeStamp 1724445268 [20:37:45]current date 1724445465 [20:37:45]FM_GetShiftState [20:37:45]SAM_PROTO_GetShiftState [20:37:45]wFMCommunicate request_size=4 [20:37:45]MH_SAM_APDU [20:37:45]CAPDU: 80 13 01 00 [20:37:45]Write to MH i2c: E2 08 00 8C 03 80 13 01 00 00 00 00 00 0C [20:37:45]Write i2c OK [20:37:45]MH_I2C_Read... [20:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:45]Read from MH i2c: E2 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: E2 0E 00 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: E2 0E 00 8C 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E3 [20:37:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:37:45]wFMCommunicate OK [20:37:45]SAM_PROTO_GetShiftState done [20:37:45]FM_GetShiftState done [20:37:45]opened in 1724371660 [20:37:45]opened+sec_in_day 1724458060 [20:37:45]quantity*price = 0 [20:37:45]sum+1 = 1 [20:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре [20:38:24]line ИТОГО: 0.00 [20:38:24]line НСП 1% : 0.00 [20:38:24]line НДС 12% : 0.00 [20:38:24]line Наличными: 0.00 [20:38:24]line Безнал.: 0.00 [20:38:24]line Место: АЗС № 130 "Партнер Нефть" [20:38:24]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:38:24]line СНО: Общий режим [20:38:24]line Чек 192 23.08.2024 20:38 [20:38:24]line Смена: 470 ФФД: 1.0 [20:38:24]line ЗНМ: 0300000071 [20:38:24]line РНМ: 0000000000092561 [20:38:24]line Версия ККМ: 001 [20:38:24]line Талоны: Топливные Талоны [20:38:24]line 1 [20:38:24]line ФМ: 0000000000871778 [20:38:24]line ФД: 178732 [20:38:24]line ФПД: 170361429995474 [20:38:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203823&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178732&fm=170361429995474&tin=02508201610067®Number=0000000000092561&sum=0 [20:38:24]written 0, free lines is 4095 [20:38:25]Write to MH i2c: 01 00 00 13 04 17 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 13 04 00 00 00 00 00 E0 0C 0A [20:38:25]RasterBufferAndPrint [20:38:25]line [20:38:25]line [20:38:25]line [20:38:25]line [20:38:25]line [20:38:25]written 0, free lines is 3305 [20:38:25]MH_Cut [20:38:25]Write to MH i2c: D1 01 00 1A 04 01 F0 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: D1 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: D1 01 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: D1 01 00 1A 04 00 EF [20:38:25]Write to MH i2c: 01 00 00 1B 04 1F [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:26]*** Cut start [20:38:26]*** Partial cut [20:38:26]*** CUTSNS_PIN = 1 [20:38:26]*** CUTSNS_PIN = 0 [20:38:26]*** Brake cut motor [20:38:26]Read from MH i2c: 01 [20:38:26]MH_I2C_Read... [20:38:26]*** Stop cut motor [20:38:26]*** Cut end [20:38:26]Read from MH i2c: 01 07 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 FF 0F 34 [20:38:26]process_action close_receipt done [20:38:26]requested_data is exist [20:38:26]produce_requested_data [20:38:26]requested_item fm.sn is exist - process it [20:38:26]wFMCommunicate request_size=4 [20:38:26]MH_SAM_APDU [20:38:26]CAPDU: 80 11 00 00 [20:38:26]Write to MH i2c: E2 08 00 1C 04 80 11 00 00 00 00 00 00 9A [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 17 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 17 00 1C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F3 [20:38:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:38:26]wFMCommunicate OK [20:38:26]requested_item fd.num is exist - process it [20:38:26]SAM_PROTO_GetFieldsCounters [20:38:26]wFMCommunicate request_size=4 [20:38:26]MH_SAM_APDU [20:38:26]CAPDU: 80 13 00 00 [20:38:26]Write to MH i2c: E2 08 00 1D 04 80 13 00 00 00 00 00 00 9D [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 62 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 62 00 1D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2C BA 02 00 0E 04 04 00 D6 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 C1 [20:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2C BA 02 00 0E 04 04 00 D6 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 [20:38:26]wFMCommunicate OK [20:38:26]SAM_PROTO_GetFieldsCounters done [20:38:26]requested_item shift.num is exist - process it [20:38:26]requested_item shift.opened is exist - process it [20:38:26]req_shift_opened [20:38:26]FM_GetShiftState [20:38:26]SAM_PROTO_GetShiftState [20:38:26]wFMCommunicate request_size=4 [20:38:26]MH_SAM_APDU [20:38:26]CAPDU: 80 13 01 00 [20:38:26]Write to MH i2c: E2 08 00 1E 04 80 13 01 00 00 00 00 00 9F [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:26]Read from MH i2c: E2 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 0E 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: E2 0E 00 1E 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 76 [20:38:26]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:38:26]wFMCommunicate OK [20:38:26]SAM_PROTO_GetShiftState done [20:38:26]FM_GetShiftState done [20:38:26]req_shift_opened done [20:38:26]requested_item shift.open_date is exist - process it [20:38:26]req_shift_open_date [20:38:26]req_shift_open_date done [20:38:26]produce_requested_data done [20:38:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178732,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:38:26]process_action_free close_receipt [20:38:26]json_value_free [20:38:26]json_value_free done [20:38:26]process_json_proto returns [20:38:26]Send response to host [20:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178732,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:38:26]free response buf [20:38:26]execute_script done [20:38:26]execute_script returns [20:38:26]free content buf [20:38:26]Sock 9.Close socket [20:38:26]Sock 9.Thread stoped [20:38:27]ConnectInit Can't take IP for lk.salyk.kg [20:38:27]CommunicateWithHost connect error [20:38:27]CommunicateWithHost err = -1 [20:38:27]OFD Sender: Server communicate error [20:38:27]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:38:27]ProducePacketName [20:38:27]name=ofd_packets/00178731 [20:38:27]OFD Sender: To server: pG, [20:38:27]CommunicateWithHost lk.salyk.kg:30040 [20:38:27]ConnectInit lk.salyk.kg [20:38:32]ConnectInit Can't take IP for lk.salyk.kg [20:38:32]CommunicateWithHost connect error [20:38:32]CommunicateWithHost err = -1 [20:38:32]OFD Sender: Server communicate error [20:38:37]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:38:37]ProducePacketName [20:38:37]name=ofd_packets/00178731 [20:38:37]OFD Sender: To server: pG, [20:38:37]CommunicateWithHost lk.salyk.kg:30040 [20:38:37]ConnectInit lk.salyk.kg [20:38:42]ConnectInit Can't take IP for lk.salyk.kg [20:38:42]CommunicateWithHost connect error [20:38:42]CommunicateWithHost err = -1 [20:38:42]OFD Sender: Server communicate error [20:38:47]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:38:47]ProducePacketName [20:38:47]name=ofd_packets/00178731 [20:38:47]OFD Sender: To server: pG, [20:38:47]CommunicateWithHost lk.salyk.kg:30040 [20:38:47]ConnectInit lk.salyk.kg [20:38:52]recv_with_timeout no data received [20:38:52]ConnectInit Can't take IP for lk.salyk.kg [20:38:52]CommunicateWithHost connect error [20:38:52]CommunicateWithHost err = -1 [20:38:52]OFD Sender: Server communicate error [20:38:57]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:38:57]ProducePacketName [20:38:57]name=ofd_packets/00178731 [20:38:57]OFD Sender: To server: pG, [20:38:57]CommunicateWithHost lk.salyk.kg:30040 [20:38:57]ConnectInit lk.salyk.kg [20:39:02]ConnectInit Can't take IP for lk.salyk.kg [20:39:02]CommunicateWithHost connect error [20:39:02]CommunicateWithHost err = -1 [20:39:02]OFD Sender: Server communicate error [20:39:07]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:39:07]ProducePacketName [20:39:07]name=ofd_packets/00178731 [20:39:07]OFD Sender: To server: pG, [20:39:07]CommunicateWithHost lk.salyk.kg:30040 [20:39:07]ConnectInit lk.salyk.kg [20:39:12]ConnectInit Can't take IP for lk.salyk.kg [20:39:12]CommunicateWithHost connect error [20:39:12]CommunicateWithHost err = -1 [20:39:12]OFD Sender: Server communicate error [20:39:17]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:39:17]ProducePacketName [20:39:17]name=ofd_packets/00178731 [20:39:17]OFD Sender: To server: pG, [20:39:17]CommunicateWithHost lk.salyk.kg:30040 [20:39:17]ConnectInit lk.salyk.kg [20:39:22]ConnectInit Can't take IP for lk.salyk.kg [20:39:22]CommunicateWithHost connect error [20:39:22]CommunicateWithHost err = -1 [20:39:22]OFD Sender: Server communicate error [20:39:27]int [20:39:27]Write to MH i2c: 01 00 00 1F 04 23 [20:39:27]*** FLAG_PRN_KEY set [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 1F 04 00 08 00 00 00 FF 0F 40 [20:39:27]state=0 [20:39:27]Key pressed [20:39:27]Feed [20:39:27]Write to MH i2c: D8 00 00 20 04 FB [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: D8 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: D8 01 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: D8 01 00 20 04 00 FC [20:39:27]int [20:39:27]Write to MH i2c: 01 00 00 21 04 25 [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 21 04 00 48 00 00 00 3C 00 B0 [20:39:27]state=2 [20:39:27]Key pressed [20:39:27]int [20:39:27]Write to MH i2c: 01 00 00 22 04 26 [20:39:27]*** FLAG_PRN_KEY reset [20:39:27]Write i2c OK [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 [20:39:27]MH_I2C_Read... [20:39:27]Read from MH i2c: 01 07 00 22 04 00 00 00 00 00 F8 0F 34 [20:39:27]state=2 [20:39:27]Stop feed [20:39:28]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:39:28]ProducePacketName [20:39:28]name=ofd_packets/00178731 [20:39:28]OFD Sender: To server: pG, [20:39:28]CommunicateWithHost lk.salyk.kg:30040 [20:39:28]ConnectInit lk.salyk.kg [20:39:29]ConnectInit Can't connect to host [20:39:33]ConnectInit Can't take IP for lk.salyk.kg [20:39:33]CommunicateWithHost connect error [20:39:33]CommunicateWithHost err = -1 [20:39:33]OFD Sender: Server communicate error [20:39:34]ConnectInit Can't connect to host [20:39:38]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:39:38]ProducePacketName [20:39:38]name=ofd_packets/00178731 [20:39:38]OFD Sender: To server: pG, [20:39:38]CommunicateWithHost lk.salyk.kg:30040 [20:39:38]ConnectInit lk.salyk.kg [20:39:39]ConnectInit Can't connect to host [20:39:43]ConnectInit Can't take IP for lk.salyk.kg [20:39:43]CommunicateWithHost connect error [20:39:43]CommunicateWithHost err = -1 [20:39:43]OFD Sender: Server communicate error [20:39:48]OFD Sender: Processing packet 178731 [packets to send 501, broken 499] [20:39:48]ProducePacketName [20:39:48]name=ofd_packets/00178731 [20:39:48]OFD Sender: To server: pG, [20:39:48]CommunicateWithHost lk.salyk.kg:30040 [20:39:48]ConnectInit lk.salyk.kg [20:39:50]accept exits with 12 [20:39:50]New connection [20:39:50]New thread 3067133284 created [20:39:50]Thread 3066989924 joined [20:39:50]Waiting for new connection... [20:39:50] Sock 12.Parse request [20:39:50]Sock 12.Check first char [20:39:50]Sock 12.First char is OK [20:39:50]request: POST /json_proto HTTP/1.0 [20:39:50]Method: POST [20:39:50]URL: /json_proto [20:39:50]Method is POST - this is cgi request [20:39:50]url: /json_proto [20:39:50]query_string will be loaded in cgi processing [20:39:50]execute_cgi json_proto POST (null) [20:39:50]execute_cgi path=json_proto method=POST [20:39:50]POST find Content-Length [20:39:50]Host: 172.17.44.131:8080 [20:39:50]Content-Length: 677 [20:39:50]Content-Type: application/json [20:39:50] [20:39:50]POST finish read [20:39:50]Found Content-Length = 677 [20:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294693", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [20:39:50]execute_script... [20:39: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)294693", "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" : 67.80, "quantity" : 5.900, "sum" : 400.02, "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" ] } } [20:39:50]POST & json_proto [20:39:50]process_json_proto [20:39:50]json parsed OK: [20:39:50]protocol is kg_v1.0 [20:39:50]action value=close_receipt [20:39:50]process_action close_receipt [20:39:50]cmd_close_receipt [20:39:50]MH_GetDate [20:39:50]Write to MH i2c: F0 00 00 23 04 16 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: F0 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: F0 09 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: F0 09 00 23 04 00 96 F3 C8 66 4F 53 BE 66 9C [20:39:50]GetLastDocTimeStamp 1724445503 [20:39:50]current date 1724445590 [20:39:50]FM_GetShiftState [20:39:50]SAM_PROTO_GetShiftState [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 13 01 00 [20:39:50]Write to MH i2c: E2 08 00 24 04 80 13 01 00 00 00 00 00 A5 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 0E 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 0E 00 24 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7C [20:39:50]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:39:50]wFMCommunicate OK [20:39:50]SAM_PROTO_GetShiftState done [20:39:50]FM_GetShiftState done [20:39:50]opened in 1724371660 [20:39:50]opened+sec_in_day 1724458060 [20:39:50]quantity*price = 40002 [20:39:50]sum+1 = 40003 [20:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 193 23.08.2024 20:39 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178733 ФПД: 24598430891093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203950&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178733&fm=24598430891093&tin=02508201610067®Number=0000000000092561&sum=40000 [20:39:51]StoreToDocumentArchive [20:39:51]shift 470 fd 178733 [20:39:51]save to /storage/0470/doc_00178733 [20:39:51]save last doc name /storage/0470/doc_00178733 to /storage/kkm_last_doc_name [20:39:51]save OK [20:39:51]Clear old archive folders... [20:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:51]tlvbuf is 01B05340 [20:39:51]SAM_PROTO_ClearQueue [20:39:51]wFMCommunicate request_size=4 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 09 00 00 [20:39:51]Write to MH i2c: E2 08 00 31 04 80 09 00 00 00 00 00 00 A7 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [20:39:51]RAPDU: 90 00 [20:39:51]wFMCommunicate OK [20:39:51]SAM_PROTO_ClearQueue done [20:39:51]KKMCreateOFDPacket [20:39:51]OFDProtocolAddRootSTLVToBuf [20:39:51]FM_MakeSignedData [20:39:51]FM_MakeSignedData [20:39:51]SAM_PROTO_SignData [20:39:51]wFMCommunicate request_size=4 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 0D 01 02 [20:39:51]Write to MH i2c: E2 08 00 32 04 80 0D 01 02 00 00 00 00 AF [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 32 04 00 90 00 AA [20:39:51]RAPDU: 90 00 [20:39:51]wFMCommunicate OK [20:39:51]wFMCommunicate request_size=255 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 96 F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2D BA 02 00 35 04 06 00 16 [20:39:51]Write to MH i2c: E2 02 01 33 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 96 F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2D BA 02 00 35 04 06 00 16 00 00 65 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 33 04 00 90 00 AB [20:39:51]RAPDU: 90 00 [20:39:51]wFMCommunicate OK [20:39:51]wFMCommunicate request_size=10 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 0D 02 02 05 5F 44 BC 3C 55 [20:39:51]Write to MH i2c: E2 0D 00 34 04 80 0D 02 02 05 00 5F 44 BC 3C 55 00 00 AC [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 03 00 34 04 00 90 00 AC [20:39:51]RAPDU: 90 00 [20:39:51]wFMCommunicate OK [20:39:51]wFMCommunicate request_size=4 [20:39:51]MH_SAM_APDU [20:39:51]CAPDU: 80 0D 03 02 [20:39:51]Write to MH i2c: E2 08 00 35 04 80 0D 03 02 00 00 00 00 B4 [20:39:51]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 0B 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 0B 00 35 04 00 AE E0 8E 51 ED 01 E4 95 90 00 89 [20:39:52]RAPDU: AE E0 8E 51 ED 01 E4 95 90 00 [20:39:52]wFMCommunicate OK [20:39:52]SAM_PROTO_SignData done [20:39:52]FM_MakeSignedData done [20:39:52]CreateOFDProtocolMessage [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 11 00 00 [20:39:52]Write to MH i2c: E2 08 00 36 04 80 11 00 00 00 00 00 00 B4 [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 17 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 17 00 36 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 0D [20:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:39:52]wFMCommunicate OK [20:39:52]CreateOFDProtocolMessage done [20:39:52]OFDSenderStorePacket 178733 [20:39:52]StoreOFDPacket docnum=178733 [20:39:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 30 47 07 01 BB 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 96 F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2D BA 02 00 35 04 06 00 16 5F 44 BC 3C 55 AE E0 8E 51 ED 01 E4 95 [20:39:52]CheckFolder [20:39:52]dirname=/storage/ofd_packets [20:39:52]CheckFolder done [20:39:52]ProducePacketName [20:39:52]name=ofd_packets/00178733 [20:39:52]NVStorageSaveData ofd_packets/00178733 [20:39:52]File name is /storage/ofd_packets/00178733 [20:39:52]Write 301 bytes [20:39:52]NVStorageSaveData done [20:39:52]OFDSenderStorePacket done [20:39:52]KKMCreateOFDPacket done [20:39:52]NVStorageSaveData kkm_last_timestamp [20:39:52]File name is /storage/kkm_last_timestamp [20:39:52]Write 4 bytes [20:39:52]NVStorageSaveData done [20:39:52]ExternCall_PrintAddStr [20:39:52]wPrintStart [20:39:52]Write to MH i2c: 01 00 00 37 04 3B [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 37 04 00 00 00 00 00 FF 0F 50 [20:39:52]RasterBufferAndPrint [20:39:52]line Счет N : (1)294693 [20:39:52]line ИНН: 02508201610067 [20:39:52]line Контрольно-Кассовый Чек [20:39:52]line ПРОДАЖА [20:39:52]line ТРК (МРК, ГНК) : 62 [20:39:52]line Товар: 2710124130 [20:39:52]line Аи-92-К-5 [20:39:52]line 5.900 * 67.80 [20:39:52]line = 400.02 [20:39:52]line НДС 12% НСП 1% [20:39:52]line > о реализуемом товаре [20:39:52]line ОКРУГЛЕНИЕ: -0.02 [20:39:52]line ИТОГО: 400.00 [20:39:52]line Внесено: 400.00 [20:39:52]line СДАЧА: 0.00 [20:39:52]line НСП 1% : 3.54 [20:39:52]line НДС 12% : 42.48 [20:39:52]line Наличными: 400.00 [20:39:52]line Безнал.: 0.00 [20:39:52]line Место: АЗС № 130 "Партнер Нефть" [20:39:52]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:39:52]line СНО: Общий режим [20:39:52]line Чек 193 23.08.2024 20:39 [20:39:52]line Смена: 470 ФФД: 1.0 [20:39:52]line ЗНМ: 0300000071 [20:39:52]line РНМ: 0000000000092561 [20:39:52]line Версия ККМ: 001 [20:39:52]line ФМ: 0000000000871778 [20:39:52]line ФД: 178733 [20:39:52]line ФПД: 24598430891093 [20:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203950&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178733&fm=24598430891093&tin=02508201610067®Number=0000000000092561&sum=40000 [20:39:52]written 0, free lines is 4095 [20:39:52]Write to MH i2c: 01 00 00 62 04 66 [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 62 04 00 00 00 00 00 E0 0C 59 [20:39:52]RasterBufferAndPrint [20:39:52]line [20:39:52]line [20:39:52]line [20:39:52]line [20:39:52]line [20:39:52]written 0, free lines is 3302 [20:39:52]MH_Cut [20:39:52]Write to MH i2c: D1 01 00 69 04 01 3F [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: D1 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: D1 01 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: D1 01 00 69 04 00 3E [20:39:52]Write to MH i2c: 01 00 00 6A 04 6E [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:53]*** Cut start [20:39:53]*** Partial cut [20:39:53]*** CUTSNS_PIN = 1 [20:39:53]*** CUTSNS_PIN = 0 [20:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F2 D0 47 00 2E 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 31 37 37 38 10 04 04 00 2B BA 02 00 F4 03 04 00 3E 9F C8 66 B6 04 01 00 00 C9 8D 17 BC 1E 1F C7 51 [20:39:53]CommunicateWithHost err = 0 [20:39:53]CheckOFDResponse [20:39:53]1017 (14) - 77093643461234 [20:39:53]1041 (16) - 0000000000871778 [20:39:53]1040 (4) - 178731 [20:39:53]1012 (4) - 23.08.2024 14:39 [20:39:53]1206 (1) - 0 [20:39:53]OFD Sender: Remove packet 178731 [20:39:53]ProducePacketName [20:39:53]name=ofd_packets/00178731 [20:39:53]NVStorageDeleteData [20:39:53]*** Brake cut motor [20:39:54]Read from MH i2c: 01 [20:39:54]MH_I2C_Read... [20:39:54]*** Stop cut motor [20:39:54]*** Cut end [20:39:54]Read from MH i2c: 01 07 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 FF 0F 83 [20:39:54]process_action close_receipt done [20:39:54]requested_data is exist [20:39:54]produce_requested_data [20:39:54]requested_item fm.sn is exist - process it [20:39:54]wFMCommunicate request_size=4 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 11 00 00 [20:39:54]Write to MH i2c: E2 08 00 6B 04 80 11 00 00 00 00 00 00 E9 [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 17 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 17 00 6B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 42 [20:39:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:39:54]wFMCommunicate OK [20:39:54]requested_item fd.num is exist - process it [20:39:54]SAM_PROTO_GetFieldsCounters [20:39:54]wFMCommunicate request_size=4 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 13 00 00 [20:39:54]Write to MH i2c: E2 08 00 6C 04 80 13 00 00 00 00 00 00 EC [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]OFD Sender: Processing packet 178732 [packets to send 501, broken 499] [20:39:54]ProducePacketName [20:39:54]name=ofd_packets/00178732 [20:39:54]OFD Sender: To server: pG, [20:39:54]CommunicateWithHost lk.salyk.kg:30040 [20:39:54]ConnectInit lk.salyk.kg [20:39:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 62 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 62 00 6C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2D BA 02 00 0E 04 04 00 D6 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 14 [20:39: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2D BA 02 00 0E 04 04 00 D6 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 [20:39:54]wFMCommunicate OK [20:39:54]SAM_PROTO_GetFieldsCounters done [20:39:54]requested_item shift.num is exist - process it [20:39:54]requested_item shift.opened is exist - process it [20:39:54]req_shift_opened [20:39:54]FM_GetShiftState [20:39:54]SAM_PROTO_GetShiftState [20:39:54]wFMCommunicate request_size=4 [20:39:54]MH_SAM_APDU [20:39:54]CAPDU: 80 13 01 00 [20:39:54]Write to MH i2c: E2 08 00 6D 04 80 13 01 00 00 00 00 00 EE [20:39:54]Write i2c OK [20:39:54]MH_I2C_Read... [20:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:54]Read from MH i2c: E2 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 0E 00 [20:39:54]MH_I2C_Read... [20:39:54]Read from MH i2c: E2 0E 00 6D 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C5 [20:39:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:39:54]wFMCommunicate OK [20:39:54]SAM_PROTO_GetShiftState done [20:39:54]FM_GetShiftState done [20:39:54]req_shift_opened done [20:39:54]requested_item shift.open_date is exist - process it [20:39:54]req_shift_open_date [20:39:54]req_shift_open_date done [20:39:54]produce_requested_data done [20:39:54]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178733,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:39:54]process_action_free close_receipt [20:39:54]json_value_free [20:39:54]json_value_free done [20:39:54]process_json_proto returns [20:39:54]Send response to host [20:39:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178733,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:39:54]free response buf [20:39:54]execute_script done [20:39:54]execute_script returns [20:39:54]free content buf [20:39:54]Sock 12.Close socket [20:39:54]Sock 12.Thread stoped [20:39:56]Connected sock=8 [20:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 65 2E 04 01 72 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 3F F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2C BA 02 00 35 04 06 00 9A F1 5C 84 AF D2 C4 64 CA B6 DC BA 9E F4 [20:39:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 85 45 47 00 32 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2C BA 02 00 F4 03 04 00 42 9F C8 66 B6 04 01 00 00 35 67 EB F3 D6 27 00 ED [20:39:57]CommunicateWithHost err = 0 [20:39:57]CheckOFDResponse [20:39:57]1017 (14) - 77093643461234 [20:39:57]1041 (16) - 0000000000871778 [20:39:57]1040 (4) - 178732 [20:39:57]1012 (4) - 23.08.2024 14:40 [20:39:57]1206 (1) - 0 [20:39:57]OFD Sender: Remove packet 178732 [20:39:57]ProducePacketName [20:39:57]name=ofd_packets/00178732 [20:39:57]NVStorageDeleteData [20:39:57]OFD Sender: Processing packet 178733 [packets to send 500, broken 499] [20:39:57]ProducePacketName [20:39:57]name=ofd_packets/00178733 [20:39:57]OFD Sender: To server: pG, [20:39:57]CommunicateWithHost lk.salyk.kg:30040 [20:39:57]ConnectInit lk.salyk.kg [20:39:58]Connected sock=8 [20:39:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 30 47 07 01 BB 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 0C 17 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 96 F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2D BA 02 00 35 04 06 00 16 5F 44 BC 3C 55 AE E0 8E 51 ED 01 E4 95 [20:39:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FB 32 47 00 69 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 31 37 37 38 10 04 04 00 2D BA 02 00 F4 03 04 00 43 9F C8 66 B6 04 01 00 00 6D 15 F8 07 5E 74 7C 34 [20:39:58]CommunicateWithHost err = 0 [20:39:58]CheckOFDResponse [20:39:58]1017 (14) - 77093643461234 [20:39:58]1041 (16) - 0000000000871778 [20:39:58]1040 (4) - 178733 [20:39:58]1012 (4) - 23.08.2024 14:40 [20:39:58]1206 (1) - 0 [20:39:58]OFD Sender: Remove packet 178733 [20:39:58]ProducePacketName [20:39:58]name=ofd_packets/00178733 [20:39:58]NVStorageDeleteData [20:39:59]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:09]recv_with_timeout no data received [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:30]recv_with_timeout no data received [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:13]accept exits with 11 [20:41:13]New connection [20:41:13]New thread 3066989924 created [20:41:13]Thread 3067133284 joined [20:41:13]Waiting for new connection... [20:41:13] Sock 11.Parse request [20:41:13]Sock 11.Check first char [20:41:13]Sock 11.First char is OK [20:41:13]request: POST /json_proto HTTP/1.0 [20:41:13]Method: POST [20:41:13]URL: /json_proto [20:41:13]Method is POST - this is cgi request [20:41:13]url: /json_proto [20:41:13]query_string will be loaded in cgi processing [20:41:13]execute_cgi json_proto POST (null) [20:41:13]execute_cgi path=json_proto method=POST [20:41:13]POST find Content-Length [20:41:13]Host: 172.17.44.131:8080 [20:41:13]Content-Length: 800 [20:41:13]Content-Type: application/json [20:41:13] [20:41:13]POST finish read [20:41:13]Found Content-Length = 800 [20:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294696", "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" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:13]execute_script... [20:41: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)294696", "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" : 67.80, "quantity" : 2.950, "sum" : 200.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:13]POST & json_proto [20:41:13]process_json_proto [20:41:13]json parsed OK: [20:41:13]protocol is kg_v1.0 [20:41:13]action value=close_receipt [20:41:13]process_action close_receipt [20:41:13]cmd_close_receipt [20:41:13]MH_GetDate [20:41:13]Write to MH i2c: F0 00 00 6E 04 61 [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: F0 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: F0 09 00 [20:41:13]MH_I2C_Read... [20:41:13]Read from MH i2c: F0 09 00 6E 04 00 EA F3 C8 66 4F 53 BE 66 3B [20:41:13]GetLastDocTimeStamp 1724445590 [20:41:13]current date 1724445674 [20:41:13]FM_GetShiftState [20:41:13]SAM_PROTO_GetShiftState [20:41:13]wFMCommunicate request_size=4 [20:41:13]MH_SAM_APDU [20:41:13]CAPDU: 80 13 01 00 [20:41:13]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [20:41:13]Write i2c OK [20:41:13]MH_I2C_Read... [20:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:14]Read from MH i2c: E2 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 0E 00 [20:41:14]MH_I2C_Read... [20:41:14]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C7 [20:41:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:41:14]wFMCommunicate OK [20:41:14]SAM_PROTO_GetShiftState done [20:41:14]FM_GetShiftState done [20:41:14]opened in 1724371660 [20:41:14]opened+sec_in_day 1724458060 [20:41:14]quantity*price = 20001 [20:41:14]sum+1 = 20002 [20:41:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.01 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.01 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 194 23.08.2024 20:41 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178734 ФПД: 246404198198831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T204114&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178734&fm=246404198198831&tin=02508201610067®Number=0000000000092561&sum=20001 [20:41:15]StoreToDocumentArchive [20:41:15]shift 470 fd 178734 [20:41:15]save to /storage/0470/doc_00178734 [20:41:15]save last doc name /storage/0470/doc_00178734 to /storage/kkm_last_doc_name [20:41:15]save OK [20:41:15]Clear old archive folders... [20:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:41:15]tlvbuf is 01B1ACB0 [20:41:15]SAM_PROTO_ClearQueue [20:41:15]wFMCommunicate request_size=4 [20:41:15]MH_SAM_APDU [20:41:15]CAPDU: 80 09 00 00 [20:41:15]Write to MH i2c: E2 08 00 7C 04 80 09 00 00 00 00 00 00 F2 [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [20:41:15]RAPDU: 90 00 [20:41:15]wFMCommunicate OK [20:41:15]SAM_PROTO_ClearQueue done [20:41:15]KKMCreateOFDPacket [20:41:15]OFDProtocolAddRootSTLVToBuf [20:41:15]FM_MakeSignedData [20:41:15]FM_MakeSignedData [20:41:15]SAM_PROTO_SignData [20:41:15]wFMCommunicate request_size=4 [20:41:15]MH_SAM_APDU [20:41:15]CAPDU: 80 0D 01 02 [20:41:15]Write to MH i2c: E2 08 00 7D 04 80 0D 01 02 00 00 00 00 FA [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 7D 04 00 90 00 F5 [20:41:15]RAPDU: 90 00 [20:41:15]wFMCommunicate OK [20:41:15]wFMCommunicate request_size=255 [20:41:15]MH_SAM_APDU [20:41: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 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EA F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2E BA 02 00 35 04 06 00 E0 [20:41:15]Write to MH i2c: E2 02 01 7E 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EA F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2E BA 02 00 35 04 06 00 E0 00 00 EF [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [20:41:15]RAPDU: 90 00 [20:41:15]wFMCommunicate OK [20:41:15]wFMCommunicate request_size=10 [20:41:15]MH_SAM_APDU [20:41:15]CAPDU: 80 0D 02 02 05 1A 72 B4 6E 2F [20:41:15]Write to MH i2c: E2 0D 00 7F 04 80 0D 02 02 05 00 1A 72 B4 6E 2F 00 00 E4 [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [20:41:15]RAPDU: 90 00 [20:41:15]wFMCommunicate OK [20:41:15]wFMCommunicate request_size=4 [20:41:15]MH_SAM_APDU [20:41:15]CAPDU: 80 0D 03 02 [20:41:15]Write to MH i2c: E2 08 00 80 04 80 0D 03 02 00 00 00 00 FF [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 0B 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 0B 00 80 04 00 EA 9A 4E 69 E0 2F 25 BE 90 00 2D [20:41:15]RAPDU: EA 9A 4E 69 E0 2F 25 BE 90 00 [20:41:15]wFMCommunicate OK [20:41:15]SAM_PROTO_SignData done [20:41:15]FM_MakeSignedData done [20:41:15]CreateOFDProtocolMessage [20:41:15]wFMCommunicate request_size=4 [20:41:15]MH_SAM_APDU [20:41:15]CAPDU: 80 11 00 00 [20:41:15]Write to MH i2c: E2 08 00 81 04 80 11 00 00 00 00 00 00 FF [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 17 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 17 00 81 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 58 [20:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:41:15]wFMCommunicate OK [20:41:15]CreateOFDProtocolMessage done [20:41:15]OFDSenderStorePacket 178734 [20:41:15]StoreOFDPacket docnum=178734 [20:41:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 96 E1 07 01 7E A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EA F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2E BA 02 00 35 04 06 00 E0 1A 72 B4 6E 2F EA 9A 4E 69 E0 2F 25 BE [20:41:15]CheckFolder [20:41:15]dirname=/storage/ofd_packets [20:41:15]CheckFolder done [20:41:15]ProducePacketName [20:41:15]name=ofd_packets/00178734 [20:41:15]NVStorageSaveData ofd_packets/00178734 [20:41:15]File name is /storage/ofd_packets/00178734 [20:41:15]Write 301 bytes [20:41:15]NVStorageSaveData done [20:41:15]OFDSenderStorePacket done [20:41:15]KKMCreateOFDPacket done [20:41:15]NVStorageSaveData kkm_last_timestamp [20:41:15]File name is /storage/kkm_last_timestamp [20:41:15]Write 4 bytes [20:41:15]NVStorageSaveData done [20:41:15]ExternCall_PrintAddStr [20:41:15]wPrintStart [20:41:15]Write to MH i2c: 01 00 00 82 04 86 [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: 01 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: 01 07 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: 01 07 00 82 04 00 00 00 00 00 FF 0F 9B [20:41:15]RasterBufferAndPrint [20:41:15]line Счет N : (1)294696 [20:41:15]line ИНН: 02508201610067 [20:41:15]line Контрольно-Кассовый Чек [20:41:15]line ПРОДАЖА [20:41:15]line ТРК (МРК, ГНК) : 32 [20:41:15]line Товар: 2710124130 [20:41:15]line Аи-92-К-5 [20:41:15]line 2.950 * 67.80 [20:41:15]line = 200.01 [20:41:15]line НДС 12% НСП 1% [20:41:15]line > о реализуемом товаре [20:41:15]line ИТОГО: 200.01 [20:41:15]line НСП 1% : 1.77 [20:41:15]line НДС 12% : 21.24 [20:41:15]line Наличными: 0.00 [20:41:15]line Безнал.: 200.01 [20:41:15]line Место: АЗС № 130 "Партнер Нефть" [20:41:15]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:41:15]line СНО: Общий режим [20:41:15]line Чек 194 23.08.2024 20:41 [20:41:15]line Смена: 470 ФФД: 1.0 [20:41:15]line ЗНМ: 0300000071 [20:41:15]line РНМ: 0000000000092561 [20:41:15]line Версия ККМ: 001 [20:41:15]line Платежная система: O! деньги [20:41:15]line ФМ: 0000000000871778 [20:41:15]line ФД: 178734 [20:41:15]line ФПД: 246404198198831 [20:41:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T204114&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178734&fm=246404198198831&tin=02508201610067®Number=0000000000092561&sum=20001 [20:41:15]written 0, free lines is 4095 [20:41:15]OFD Sender: Processing packet 178734 [packets to send 500, broken 499] [20:41:15]ProducePacketName [20:41:15]name=ofd_packets/00178734 [20:41:15]OFD Sender: To server: pG, [20:41:15]CommunicateWithHost lk.salyk.kg:30040 [20:41:15]ConnectInit lk.salyk.kg [20:41:16]Write to MH i2c: 01 00 00 AC 04 B0 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: 01 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: 01 07 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 E1 0C A4 [20:41:16]RasterBufferAndPrint [20:41:16]line [20:41:16]line [20:41:16]line [20:41:16]line [20:41:16]line [20:41:16]written 0, free lines is 3303 [20:41:16]MH_Cut [20:41:16]Write to MH i2c: D1 01 00 B3 04 01 89 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: D1 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: D1 01 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: D1 01 00 B3 04 00 88 [20:41:16]Write to MH i2c: 01 00 00 B4 04 B8 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]*** Cut start [20:41:16]*** Partial cut [20:41:16]*** CUTSNS_PIN = 1 [20:41:16]*** CUTSNS_PIN = 0 [20:41:17]*** Brake cut motor [20:41:17]Read from MH i2c: 01 [20:41:17]MH_I2C_Read... [20:41:17]*** Stop cut motor [20:41:17]*** Cut end [20:41:17]Read from MH i2c: 01 07 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [20:41:17]process_action close_receipt done [20:41:17]requested_data is exist [20:41:17]produce_requested_data [20:41:17]requested_item fm.sn is exist - process it [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 11 00 00 [20:41:17]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 17 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 8C [20:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:41:17]wFMCommunicate OK [20:41:17]requested_item fd.num is exist - process it [20:41:17]SAM_PROTO_GetFieldsCounters [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 13 00 00 [20:41:17]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 62 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2E BA 02 00 0E 04 04 00 D6 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 62 [20:41: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 2E BA 02 00 0E 04 04 00 D6 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 [20:41:17]wFMCommunicate OK [20:41:17]SAM_PROTO_GetFieldsCounters done [20:41:17]requested_item shift.num is exist - process it [20:41:17]requested_item shift.opened is exist - process it [20:41:17]req_shift_opened [20:41:17]FM_GetShiftState [20:41:17]SAM_PROTO_GetShiftState [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 13 01 00 [20:41:17]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0E 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 0F [20:41:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:41:17]wFMCommunicate OK [20:41:17]SAM_PROTO_GetShiftState done [20:41:17]FM_GetShiftState done [20:41:17]req_shift_opened done [20:41:17]requested_item shift.open_date is exist - process it [20:41:17]req_shift_open_date [20:41:17]req_shift_open_date done [20:41:17]produce_requested_data done [20:41:17]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178734,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:41:17]process_action_free close_receipt [20:41:17]json_value_free [20:41:17]json_value_free done [20:41:17]process_json_proto returns [20:41:17]Send response to host [20:41:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178734,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:41:17]free response buf [20:41:17]execute_script done [20:41:17]execute_script returns [20:41:17]free content buf [20:41:17]Sock 11.Close socket [20:41:17]Sock 11.Thread stoped [20:41:20]ConnectInit Can't take IP for lk.salyk.kg [20:41:20]CommunicateWithHost connect error [20:41:20]CommunicateWithHost err = -1 [20:41:20]OFD Sender: Server communicate error [20:41:25]OFD Sender: Processing packet 178734 [packets to send 500, broken 499] [20:41:25]ProducePacketName [20:41:25]name=ofd_packets/00178734 [20:41:25]OFD Sender: To server: pG, [20:41:25]CommunicateWithHost lk.salyk.kg:30040 [20:41:25]ConnectInit lk.salyk.kg [20:41:30]ConnectInit Can't take IP for lk.salyk.kg [20:41:30]CommunicateWithHost connect error [20:41:30]CommunicateWithHost err = -1 [20:41:30]OFD Sender: Server communicate error [20:41:33]recv_with_timeout no data received [20:41:35]OFD Sender: Processing packet 178734 [packets to send 500, broken 499] [20:41:35]ProducePacketName [20:41:35]name=ofd_packets/00178734 [20:41:35]OFD Sender: To server: pG, [20:41:35]CommunicateWithHost lk.salyk.kg:30040 [20:41:35]ConnectInit lk.salyk.kg [20:41:40]ConnectInit Can't take IP for lk.salyk.kg [20:41:40]CommunicateWithHost connect error [20:41:40]CommunicateWithHost err = -1 [20:41:40]OFD Sender: Server communicate error [20:41:45]OFD Sender: Processing packet 178734 [packets to send 500, broken 499] [20:41:45]ProducePacketName [20:43:22]ConnectInit Can't connect to host [20:43:26]OFD Sender: Processing packet 178734 [packets to send 502, broken 499] [20:43:26]ProducePacketName [20:43:26]name=ofd_packets/00178734 [20:43:26]OFD Sender: To server: pG, [20:43:26]CommunicateWithHost lk.salyk.kg:30040 [20:43:26]ConnectInit lk.salyk.kg [20:37:45]wFMCommunicate request_size=13 [20:37:45]MH_SAM_APDU [20:37:45]CAPDU: 80 15 02 00 08 F4 03 04 00 19 F3 C8 66 [20:37:45]Write to MH i2c: E2 10 00 95 03 80 15 02 00 08 00 F4 03 04 00 19 F3 C8 66 00 00 5D [20:37:45]Write i2c OK [20:37:45]MH_I2C_Read... [20:37:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:37:45]Read from MH i2c: E2 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: E2 03 00 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [20:37:45]RAPDU: 90 00 [20:37:45]wFMCommunicate OK [20:37:45]wFMCommunicate request_size=25 [20:37:45]MH_SAM_APDU [20:37:45]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [20:37:45]Write to MH i2c: E2 1C 00 96 03 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 79 [20:37:45]Write i2c OK [20:37:45]MH_I2C_Read... [20:37:45]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [20:37:45]Read from MH i2c: E2 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: E2 03 00 [20:37:45]MH_I2C_Read... [20:37:45]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [20:37:45]RAPDU: 90 00 [20:37:45]wFMCommunicate OK [20:37:45]wFMCommunicate request_size=4 [20:37:45]MH_SAM_APDU [20:37:45]CAPDU: 80 15 03 00 [20:37:45]Write to MH i2c: E2 08 00 97 03 80 15 03 00 00 00 00 00 1B [20:37:45]Write i2c OK [20:37:45]MH_I2C_Read... [20:37:46]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [20:37:46]Read from MH i2c: E2 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 40 00 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 40 00 97 03 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2B BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 BF 00 00 00 35 04 06 00 68 89 86 EF 3C 10 90 00 46 [20:37:46]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2B BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 BF 00 00 00 35 04 06 00 68 89 86 EF 3C 10 90 00 [20:37:46]wFMCommunicate OK [20:37:46]SAM_PROTO_ProcessDocument answer len = 59 [20:37:46]SAM_PROTO_ProcessDocument done [20:37:46]SetTLVBufToDocument [20:37:46]Processing tag 1209 (04B9) [20:37:46]Malloc new data [20:37:46]Processing tag 1041 (0411) [20:37:46]Processing tag 1040 (0410) [20:37:46]Malloc new data [20:37:46]Processing tag 1038 (040E) [20:37:46]Malloc new data [20:37:46]Processing tag 1042 (0412) [20:37:46]Malloc new data [20:37:46]Processing tag 1077 (0435) [20:37:46]Malloc new data [20:37:46]SetTLVBufToDocument err=0 [20:37:46]KKMLoadAndSignReceiptData store KKM data [20:37:46]KKMLoadAndSignReceiptData err=0 [20:37:46]wFMCommunicate request_size=4 [20:37:46]MH_SAM_APDU [20:37:46]CAPDU: 80 11 00 00 [20:37:46]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [20:37:46]Write i2c OK [20:37:46]MH_I2C_Read... [20:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:46]Read from MH i2c: E2 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 17 00 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6E [20:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:37:46]wFMCommunicate OK [20:37:46]Счет N : (1)294684 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710194800 ДТ-К-5 50.000 * 0.00 = 0.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 191 23.08.2024 20:37 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливные Талоны 1 ФМ: 0000000000871778 ФД: 178731 ФПД: 114939883633680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T203745&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178731&fm=114939883633680&tin=02508201610067®Number=0000000000092561&sum=0 [20:37:46]StoreToDocumentArchive [20:37:46]shift 470 fd 178731 [20:37:46]save to /storage/0470/doc_00178731 [20:37:46]save last doc name /storage/0470/doc_00178731 to /storage/kkm_last_doc_name [20:37:46]save OK [20:37:46]Clear old archive folders... [20:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:37:46]tlvbuf is 01AF7C50 [20:37:46]SAM_PROTO_ClearQueue [20:37:46]wFMCommunicate request_size=4 [20:37:46]MH_SAM_APDU [20:37:46]CAPDU: 80 09 00 00 [20:37:46]Write to MH i2c: E2 08 00 99 03 80 09 00 00 00 00 00 00 0E [20:37:46]Write i2c OK [20:37:46]MH_I2C_Read... [20:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:46]Read from MH i2c: E2 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 03 00 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [20:37:46]RAPDU: 90 00 [20:37:46]wFMCommunicate OK [20:37:46]SAM_PROTO_ClearQueue done [20:37:46]KKMCreateOFDPacket [20:37:46]OFDProtocolAddRootSTLVToBuf [20:37:46]FM_MakeSignedData [20:37:46]FM_MakeSignedData [20:37:46]SAM_PROTO_SignData [20:37:46]wFMCommunicate request_size=4 [20:37:46]MH_SAM_APDU [20:37:46]CAPDU: 80 0D 01 02 [20:37:46]Write to MH i2c: E2 08 00 9A 03 80 0D 01 02 00 00 00 00 16 [20:37:46]Write i2c OK [20:37:46]MH_I2C_Read... [20:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:46]Read from MH i2c: E2 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 03 00 [20:37:46]MH_I2C_Read... [20:37:46]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [20:37:46]RAPDU: 90 00 [20:37:46]wFMCommunicate OK [20:37:46]wFMCommunicate request_size=255 [20:37:46]MH_SAM_APDU [20:37:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 19 F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [20:45:39]ConnectInit Can't connect to host [20:45:39]CommunicateWithHost connect error [20:45:39]CommunicateWithHost err = -1 [20:45:39]OFD Sender: Server communicate error [20:45:44]OFD Sender: Processing packet 178734 [packets to send 502, broken 499] [20:45:44]ProducePacketName [20:45:44]name=ofd_packets/00178734 [20:45:44]OFD Sender: To server: pG, [20:45:44]CommunicateWithHost lk.salyk.kg:30040 [20:45:44]ConnectInit lk.salyk.kg [20:45:49]ConnectInit Can't take IP for lk.salyk.kg [20:45:49]CommunicateWithHost connect error [20:45:49]CommunicateWithHost err = -1 [20:45:49]OFD Sender: Server communicate error [20:45:54]OFD Sender: Processing packet 178734 [packets to send 502, broken 499] [20:45:54]ProducePacketName [20:45:54]name=ofd_packets/00178734 [20:45:54]OFD Sender: To server: pG, [20:45:54]CommunicateWithHost lk.salyk.kg:30040 [20:45:54]ConnectInit lk.salyk.kg [20:45:59]ConnectInit Can't take IP for lk.salyk.kg [20:45:59]CommunicateWithHost connect error [20:45:59]CommunicateWithHost err = -1 [20:45:59]OFD Sender: Server communicate error [20:46:04]OFD Sender: Processing packet 178734 [packets to send 502, broken 499] [20:46:04]ProducePacketName [20:46:04]name=ofd_packets/00178734 [20:46:04]OFD Sender: To server: pG, [20:46:04]CommunicateWithHost lk.salyk.kg:30040 [20:46:04]ConnectInit lk.salyk.kg [20:46:09]ConnectInit Can't take IP for lk.salyk.kg [20:46:09]CommunicateWithHost connect error [20:46:09]CommunicateWithHost err = -1 [20:46:09]OFD Sender: Server communicate error [20:46:14]OFD Sender: Processing packet 178734 [packets to send 502, broken 499] [20:46:14]ProducePacketName [20:46:14]name=ofd_packets/00178734 [20:46:14]OFD Sender: To server: pG, [20:46:14]CommunicateWithHost lk.salyk.kg:30040 [20:46:14]ConnectInit lk.salyk.kg [20:46:19]ConnectInit Can't take IP for lk.salyk.kg [20:46:19]CommunicateWithHost connect error [20:46:19]CommunicateWithHost err = -1 [20:46:19]OFD Sender: Server communicate error [20:46:24]OFD Sender: Processing packet 178734 [packets to send 502, broken 499] [20:46:24]ProducePacketName [20:46:24]name=ofd_packets/00178734 [20:46:24]OFD Sender: To server: pG, [20:46:24]CommunicateWithHost lk.salyk.kg:30040 [20:46:24]ConnectInit lk.salyk.kg [20:46:31]recv_with_timeout no data received [20:46:36]Connected sock=10 [20:46:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 96 E1 07 01 7E A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 21 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 21 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 21 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 EA F3 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2E BA 02 00 35 04 06 00 E0 1A 72 B4 6E 2F EA 9A 4E 69 E0 2F 25 BE [20:46:47]OFD Sender: Processing packet 178735 [packets to send 501, broken 499] [20:46:47]ProducePacketName [20:46:47]name=ofd_packets/00178735 [20:46:47]OFD Sender: To server: pG, [20:46:47]CommunicateWithHost lk.salyk.kg:30040 [20:46:47]ConnectInit lk.salyk.kg [20:46:52]ConnectInit Can't take IP for lk.salyk.kg [20:46:52]CommunicateWithHost connect error [20:46:52]CommunicateWithHost err = -1 [20:46:52]OFD Sender: Server communicate error [20:46:57]OFD Sender: Processing packet 178735 [packets to send 501, broken 499] [20:46:57]ProducePacketName [20:46:57]name=ofd_packets/00178735 [20:46:57]OFD Sender: To server: pG, [20:46:57]CommunicateWithHost lk.salyk.kg:30040 [20:46:57]ConnectInit lk.salyk.kg [20:46:59]recv_with_timeout no data received [20:47:02]ConnectInit Can't take IP for lk.salyk.kg [20:47:02]CommunicateWithHost connect error [20:47:02]CommunicateWithHost err = -1 [20:47:02]OFD Sender: Server communicate error [20:47:07]OFD Sender: Processing packet 178735 [packets to send 501, broken 499] [20:47:07]ProducePacketName [20:47:07]name=ofd_packets/00178735 [20:47:07]OFD Sender: To server: pG, [20:47:07]CommunicateWithHost lk.salyk.kg:30040 [20:47:07]ConnectInit lk.salyk.kg [20:47:12]ConnectInit Can't take IP for lk.salyk.kg [20:47:12]CommunicateWithHost connect error [20:47:12]CommunicateWithHost err = -1 [20:47:12]OFD Sender: Server communicate error [20:47:17]OFD Sender: Processing packet 178735 [packets to send 501, broken 499] [20:47:17]ProducePacketName [20:47:17]name=ofd_packets/00178735 [20:47:17]OFD Sender: To server: pG, [20:47:17]CommunicateWithHost lk.salyk.kg:30040 [20:47:17]ConnectInit lk.salyk.kg [20:47:24]Connected sock=10 [20:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 98 0B 04 01 FC 31 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 35 F4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 2F BA 02 00 35 04 06 00 50 7C 56 25 B8 31 C5 3A B6 71 82 2A 92 1D [20:47:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 7F 9E 47 00 FA 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 31 37 37 38 10 04 04 00 2F BA 02 00 F4 03 04 00 01 A1 C8 66 B6 04 01 00 00 E6 11 68 11 09 40 FF 07 [20:47:25]CommunicateWithHost err = 0 [20:47:25]CheckOFDResponse [20:47:25]1017 (14) - 77093643461234 [20:47:25]1041 (16) - 0000000000871778 [20:47:25]1040 (4) - 178735 [20:47:25]1012 (4) - 23.08.2024 14:47 [20:47:25]1206 (1) - 0 [20:47:25]OFD Sender: Remove packet 178735 [20:47:25]ProducePacketName [20:47:25]name=ofd_packets/00178735 [20:47:25]NVStorageDeleteData [20:47:25]OFD Sender: Processing packet 178736 [packets to send 500, broken 499] [20:47:25]ProducePacketName [20:47:25]name=ofd_packets/00178736 [20:47:25]OFD Sender: To server: pG, [20:47:25]CommunicateWithHost lk.salyk.kg:30040 [20:47:25]ConnectInit lk.salyk.kg [20:47:26]Connected sock=9 [20:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 71 81 07 01 D5 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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 4D F4 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 30 BA 02 00 35 04 06 00 75 38 A2 42 00 F0 7F 91 BD F3 FB 34 B1 24 [20:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4E 00 47 00 39 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 31 37 37 38 10 04 04 00 30 BA 02 00 F4 03 04 00 03 A1 C8 66 B6 04 01 00 00 CB C2 E7 2F 69 89 51 C7 [20:47:27]CommunicateWithHost err = 0 [20:47:27]CheckOFDResponse [20:47:27]1017 (14) - 77093643461234 [20:47:27]1041 (16) - 0000000000871778 [20:47:27]1040 (4) - 178736 [20:47:27]1012 (4) - 23.08.2024 14:47 [20:47:27]1206 (1) - 0 [20:47:27]OFD Sender: Remove packet 178736 [20:47:27]ProducePacketName [20:47:27]name=ofd_packets/00178736 [20:47:27]NVStorageDeleteData [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:32]recv_with_timeout no data received [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:47]accept exits with 8 [20:48:47]New connection [20:48:47]New thread 3067133284 created [20:48:47]Thread 3066989924 joined [20:48:47]Waiting for new connection... [20:48:47] Sock 8.Parse request [20:48:47]Sock 8.Check first char [20:48:47]Sock 8.First char is OK [20:48:47]request: POST /json_proto HTTP/1.0 [20:48:47]Method: POST [20:48:47]URL: /json_proto [20:48:47]Method is POST - this is cgi request [20:48:47]url: /json_proto [20:48:47]query_string will be loaded in cgi processing [20:48:47]execute_cgi json_proto POST (null) [20:48:47]execute_cgi path=json_proto method=POST [20:48:47]POST find Content-Length [20:48:47]Host: 172.17.44.131:8080 [20:48:47]Content-Length: 679 [20:48:47]Content-Type: application/json [20:48:47] [20:48:47]POST finish read [20:48:47]Found Content-Length = 679 [20:48:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:47]execute_script... [20:48: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)294703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:48:47]POST & json_proto [20:48:47]process_json_proto [20:48:47]json parsed OK: [20:48:47]protocol is kg_v1.0 [20:48:47]action value=close_receipt [20:48:47]process_action close_receipt [20:48:47]cmd_close_receipt [20:48:47]MH_GetDate [20:48:47]Write to MH i2c: F0 00 00 4E 05 42 [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: F0 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: F0 09 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: F0 09 00 4E 05 00 AF F5 C8 66 4F 53 BE 66 E3 [20:48:47]GetLastDocTimeStamp 1724445773 [20:48:47]current date 1724446127 [20:48:47]FM_GetShiftState [20:48:47]SAM_PROTO_GetShiftState [20:48:47]wFMCommunicate request_size=4 [20:48:47]MH_SAM_APDU [20:48:47]CAPDU: 80 13 01 00 [20:48:47]Write to MH i2c: E2 08 00 4F 05 80 13 01 00 00 00 00 00 D1 [20:48:47]Write i2c OK [20:48:47]MH_I2C_Read... [20:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:47]Read from MH i2c: E2 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 0E 00 [20:48:47]MH_I2C_Read... [20:48:47]Read from MH i2c: E2 0E 00 4F 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A8 [20:48:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:48:47]wFMCommunicate OK [20:48:47]SAM_PROTO_GetShiftState done [20:48:47]FM_GetShiftState done [20:48:47]opened in 1724371660 [20:48:47]opened+sec_in_day 1724458060 [20:48:47]quantity*price = 100050 [20:48:47]sum+1 = 100052 [20:48:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 197 23.08.2024 20:48 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178737 ФПД: 161185198106431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T204847&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178737&fm=161185198106431&tin=02508201610067®Number=0000000000092561&sum=100000 [20:48:48]StoreToDocumentArchive [20:48:48]shift 470 fd 178737 [20:48:48]save to /storage/0470/doc_00178737 [20:48:48]save last doc name /storage/0470/doc_00178737 to /storage/kkm_last_doc_name [20:48:48]save OK [20:48:48]Clear old archive folders... [20:48:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:48:48]tlvbuf is 01B16D60 [20:48:48]SAM_PROTO_ClearQueue [20:48:48]wFMCommunicate request_size=4 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 09 00 00 [20:48:48]Write to MH i2c: E2 08 00 5C 05 80 09 00 00 00 00 00 00 D3 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [20:48:48]RAPDU: 90 00 [20:48:48]wFMCommunicate OK [20:48:48]SAM_PROTO_ClearQueue done [20:48:48]KKMCreateOFDPacket [20:48:48]OFDProtocolAddRootSTLVToBuf [20:48:48]FM_MakeSignedData [20:48:48]FM_MakeSignedData [20:48:48]SAM_PROTO_SignData [20:48:48]wFMCommunicate request_size=4 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 0D 01 02 [20:48:48]Write to MH i2c: E2 08 00 5D 05 80 0D 01 02 00 00 00 00 DB [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [20:48:48]RAPDU: 90 00 [20:48:48]wFMCommunicate OK [20:48:48]wFMCommunicate request_size=255 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AF F5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 31 BA 02 00 35 04 06 00 92 98 DA 79 [20:48:48]Write to MH i2c: E2 02 01 5E 05 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AF F5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 31 BA 02 00 35 04 06 00 92 98 DA 79 00 00 41 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]OFD Sender: No OFD packet to send [20:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [20:48:48]RAPDU: 90 00 [20:48:48]wFMCommunicate OK [20:48:48]wFMCommunicate request_size=7 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 0D 02 02 02 E7 3F [20:48:48]Write to MH i2c: E2 0A 00 5F 05 80 0D 02 02 02 00 E7 3F 00 00 08 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [20:48:48]RAPDU: 90 00 [20:48:48]wFMCommunicate OK [20:48:48]wFMCommunicate request_size=4 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 0D 03 02 [20:48:48]Write to MH i2c: E2 08 00 60 05 80 0D 03 02 00 00 00 00 E0 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 0B 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 0B 00 60 05 00 54 A3 93 74 B7 58 59 92 90 00 D9 [20:48:48]RAPDU: 54 A3 93 74 B7 58 59 92 90 00 [20:48:48]wFMCommunicate OK [20:48:48]SAM_PROTO_SignData done [20:48:48]FM_MakeSignedData done [20:48:48]CreateOFDProtocolMessage [20:48:48]wFMCommunicate request_size=4 [20:48:48]MH_SAM_APDU [20:48:48]CAPDU: 80 11 00 00 [20:48:48]Write to MH i2c: E2 08 00 61 05 80 11 00 00 00 00 00 00 E0 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:48]Read from MH i2c: E2 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 17 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: E2 17 00 61 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 39 [20:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:48:48]wFMCommunicate OK [20:48:48]CreateOFDProtocolMessage done [20:48:48]OFDSenderStorePacket 178737 [20:48:48]StoreOFDPacket docnum=178737 [20:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 CD 43 04 01 93 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AF F5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 31 BA 02 00 35 04 06 00 92 98 DA 79 E7 3F 54 A3 93 74 B7 58 59 92 [20:48:48]CheckFolder [20:48:48]dirname=/storage/ofd_packets [20:48:48]CheckFolder done [20:48:48]ProducePacketName [20:48:48]name=ofd_packets/00178737 [20:48:48]NVStorageSaveData ofd_packets/00178737 [20:48:48]File name is /storage/ofd_packets/00178737 [20:48:48]Write 298 bytes [20:48:48]NVStorageSaveData done [20:48:48]OFDSenderStorePacket done [20:48:48]KKMCreateOFDPacket done [20:48:48]NVStorageSaveData kkm_last_timestamp [20:48:48]File name is /storage/kkm_last_timestamp [20:48:48]Write 4 bytes [20:48:48]NVStorageSaveData done [20:48:48]ExternCall_PrintAddStr [20:48:48]wPrintStart [20:48:48]Write to MH i2c: 01 00 00 62 05 67 [20:48:48]Write i2c OK [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: 01 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: 01 07 00 [20:48:48]MH_I2C_Read... [20:48:48]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 FF 0F 7C [20:48:48]RasterBufferAndPrint [20:48:48]line Счет N : (1)294703 [20:48:48]line ИНН: 02508201610067 [20:48:48]line Контрольно-Кассовый Чек [20:48:48]line ПРОДАЖА [20:48:48]line ТРК (МРК, ГНК) : 21 [20:48:48]line Товар: 2710194800 [20:48:48]line ДТ-К-5 [20:48:48]line 13.130 * 76.20 [20:48:48]line = 1000.51 [20:48:48]line НДС 12% НСП 1% [20:48:48]line > о реализуемом товаре [20:48:48]line ОКРУГЛЕНИЕ: -0.51 [20:48:48]line ИТОГО: 1000.00 [20:48:48]line Внесено: 1000.00 [20:48:48]line СДАЧА: 0.00 [20:48:48]line НСП 1% : 8.85 [20:48:48]line НДС 12% : 106.25 [20:48:48]line Наличными: 1000.00 [20:48:48]line Безнал.: 0.00 [20:48:48]line Место: АЗС № 130 "Партнер Нефть" [20:48:48]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:48:48]line СНО: Общий режим [20:48:48]line Чек 197 23.08.2024 20:48 [20:48:48]line Смена: 470 ФФД: 1.0 [20:48:48]line ЗНМ: 0300000071 [20:48:48]line РНМ: 0000000000092561 [20:48:48]line Версия ККМ: 001 [20:48:48]line ФМ: 0000000000871778 [20:48:48]line ФД: 178737 [20:48:48]line ФПД: 161185198106431 [20:48:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T204847&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178737&fm=161185198106431&tin=02508201610067®Number=0000000000092561&sum=100000 [20:48:49]OFD Sender: Processing packet 178737 [packets to send 500, broken 499] [20:48:49]ProducePacketName [20:48:49]name=ofd_packets/00178737 [20:48:49]OFD Sender: To server: pG, [20:48:49]CommunicateWithHost lk.salyk.kg:30040 [20:48:49]ConnectInit lk.salyk.kg [20:48:49]written 0, free lines is 4095 [20:48:49]Write to MH i2c: 01 00 00 8D 05 92 [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 07 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 D0 0C 75 [20:48:49]RasterBufferAndPrint [20:48:49]line [20:48:49]line [20:48:49]line [20:48:49]line [20:48:49]line [20:48:49]written 0, free lines is 3287 [20:48:49]MH_Cut [20:48:49]Write to MH i2c: D1 01 00 94 05 01 6B [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: D1 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: D1 01 00 [20:48:49]MH_I2C_Read... [20:48:49]Read from MH i2c: D1 01 00 94 05 00 6A [20:48:49]Write to MH i2c: 01 00 00 95 05 9A [20:48:49]Write i2c OK [20:48:49]MH_I2C_Read... [20:48:50]*** Cut start [20:48:50]*** Partial cut [20:48:50]*** CUTSNS_PIN = 1 [20:48:50]*** CUTSNS_PIN = 0 [20:48:50]*** Brake cut motor [20:48:50]Read from MH i2c: 01 [20:48:50]MH_I2C_Read... [20:48:50]*** Stop cut motor [20:48:50]*** Cut end [20:48:50]Read from MH i2c: 01 07 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [20:48:50]process_action close_receipt done [20:48:50]requested_data is exist [20:48:50]produce_requested_data [20:48:50]requested_item fm.sn is exist - process it [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 11 00 00 [20:48:50]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:48:50]Read from MH i2c: E2 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 17 00 [20:48:50]MH_I2C_Read... [20:48:50]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6E [20:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:48:50]wFMCommunicate OK [20:48:50]requested_item fd.num is exist - process it [20:48:50]SAM_PROTO_GetFieldsCounters [20:48:50]wFMCommunicate request_size=4 [20:48:50]MH_SAM_APDU [20:48:50]CAPDU: 80 13 00 00 [20:48:50]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [20:48:50]Write i2c OK [20:48:50]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 62 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 62 00 97 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 31 BA 02 00 0E 04 04 00 D6 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 50 [20:48: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 31 BA 02 00 0E 04 04 00 D6 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 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_GetFieldsCounters done [20:48:51]requested_item shift.num is exist - process it [20:48:51]requested_item shift.opened is exist - process it [20:48:51]req_shift_opened [20:48:51]FM_GetShiftState [20:48:51]SAM_PROTO_GetShiftState [20:48:51]wFMCommunicate request_size=4 [20:48:51]MH_SAM_APDU [20:48:51]CAPDU: 80 13 01 00 [20:48:51]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [20:48:51]Write i2c OK [20:48:51]MH_I2C_Read... [20:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:48:51]Read from MH i2c: E2 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0E 00 [20:48:51]MH_I2C_Read... [20:48:51]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F1 [20:48:51]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:48:51]wFMCommunicate OK [20:48:51]SAM_PROTO_GetShiftState done [20:48:51]FM_GetShiftState done [20:48:51]req_shift_opened done [20:48:51]requested_item shift.open_date is exist - process it [20:48:51]req_shift_open_date [20:48:51]req_shift_open_date done [20:48:51]produce_requested_data done [20:48:51]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178737,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:48:51]process_action_free close_receipt [20:48:51]json_value_free [20:48:51]json_value_free done [20:48:51]process_json_proto returns [20:48:51]Send response to host [20:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178737,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:48:51]free response buf [20:48:51]execute_script done [20:48:51]execute_script returns [20:48:51]free content buf [20:48:51]Sock 8.Close socket [20:48:51]Sock 8.Thread stoped [20:48:52]recv_with_timeout no data received [20:48:54]ConnectInit Can't take IP for lk.salyk.kg [20:48:54]CommunicateWithHost connect error [20:48:54]CommunicateWithHost err = -1 [20:48:54]OFD Sender: Server communicate error [20:48:59]OFD Sender: Processing packet 178737 [packets to send 500, broken 499] [20:48:59]ProducePacketName [20:48:59]name=ofd_packets/00178737 [20:48:59]OFD Sender: To server: pG, [20:48:59]CommunicateWithHost lk.salyk.kg:30040 [20:48:59]ConnectInit lk.salyk.kg [20:49:04]ConnectInit Can't take IP for lk.salyk.kg [20:49:04]CommunicateWithHost connect error [20:49:04]CommunicateWithHost err = -1 [20:49:04]OFD Sender: Server communicate error [20:49:09]OFD Sender: Processing packet 178737 [packets to send 500, broken 499] [20:49:09]ProducePacketName [20:49:09]name=ofd_packets/00178737 [20:49:09]OFD Sender: To server: pG, [20:49:09]CommunicateWithHost lk.salyk.kg:30040 [20:49:09]ConnectInit lk.salyk.kg [20:49:14]Connected sock=9 [20:49:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 CD 43 04 01 93 CD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AF F5 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 31 BA 02 00 35 04 06 00 92 98 DA 79 E7 3F 54 A3 93 74 B7 58 59 92 [20:49:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 6D 34 47 00 72 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 31 37 37 38 10 04 04 00 31 BA 02 00 F4 03 04 00 6F A1 C8 66 B6 04 01 00 00 2A 10 0C E2 AE 61 99 32 [20:49:14]CommunicateWithHost err = 0 [20:49:14]CheckOFDResponse [20:49:14]1017 (14) - 77093643461234 [20:49:14]1041 (16) - 0000000000871778 [20:49:14]1040 (4) - 178737 [20:49:14]1012 (4) - 23.08.2024 14:49 [20:49:14]1206 (1) - 0 [20:49:14]OFD Sender: Remove packet 178737 [20:49:14]ProducePacketName [20:49:14]name=ofd_packets/00178737 [20:49:14]NVStorageDeleteData [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:33]recv_with_timeout no data received [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:17]recv_with_timeout no data received [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]accept exits with 10 [20:51:00]New connection [20:51:00]New thread 3066989924 created [20:51:00]Thread 3067133284 joined [20:51:00]Waiting for new connection... [20:51:00] Sock 10.Parse request [20:51:00]Sock 10.Check first char [20:51:00]Sock 10.First char is OK [20:51:00]request: POST /json_proto HTTP/1.0 [20:51:00]Method: POST [20:51:00]URL: /json_proto [20:51:00]Method is POST - this is cgi request [20:51:00]url: /json_proto [20:51:00]query_string will be loaded in cgi processing [20:51:00]execute_cgi json_proto POST (null) [20:51:00]execute_cgi path=json_proto method=POST [20:51:00]POST find Content-Length [20:51:00]Host: 172.17.44.131:8080 [20:51:00]Content-Length: 672 [20:51:00]Content-Type: application/json [20:51:00] [20:51:00]POST finish read [20:51:00]Found Content-Length = 672 [20:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 52.350, "sum" : 3601.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3601.00, "payments": [ { "type": 0, "sum" : 3601.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:00]execute_script... [20:51: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)294705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 52.350, "sum" : 3601.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3601.00, "payments": [ { "type": 0, "sum" : 3601.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:51:00]POST & json_proto [20:51:00]process_json_proto [20:51:00]json parsed OK: [20:51:00]protocol is kg_v1.0 [20:51:00]action value=close_receipt [20:51:00]process_action close_receipt [20:51:00]cmd_close_receipt [20:51:00]MH_GetDate [20:51:00]Write to MH i2c: F0 00 00 99 05 8D [20:51:00]Write i2c OK [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: F0 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: F0 09 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: F0 09 00 99 05 00 34 F6 C8 66 4F 53 BE 66 B4 [20:51:00]GetLastDocTimeStamp 1724446127 [20:51:00]current date 1724446260 [20:51:00]FM_GetShiftState [20:51:00]SAM_PROTO_GetShiftState [20:51:00]wFMCommunicate request_size=4 [20:51:00]MH_SAM_APDU [20:51:00]CAPDU: 80 13 01 00 [20:51:00]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [20:51:00]Write i2c OK [20:51:00]MH_I2C_Read... [20:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:00]Read from MH i2c: E2 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 0E 00 [20:51:00]MH_I2C_Read... [20:51:00]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F3 [20:51:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:51:00]wFMCommunicate OK [20:51:00]SAM_PROTO_GetShiftState done [20:51:00]FM_GetShiftState done [20:51:00]opened in 1724371660 [20:51:00]opened+sec_in_day 1724458060 [20:51:00]quantity*price = 360168 [20:51:00]sum+1 = 360169 [20:51:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 3601.00 Внесено: 4000.00 СДАЧА: 399.00 НСП 1% : 31.87 НДС 12% : 382.48 Наличными: 3601.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 198 23.08.2024 20:51 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178738 ФПД: 62352183603241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205100&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178738&fm=62352183603241&tin=02508201610067®Number=0000000000092561&sum=360100 [20:51:01]StoreToDocumentArchive [20:51:01]shift 470 fd 178738 [20:51:01]save to /storage/0470/doc_00178738 [20:51:01]save last doc name /storage/0470/doc_00178738 to /storage/kkm_last_doc_name [20:51:01]save OK [20:51:01]Clear old archive folders... [20:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=249 [20:51:01]tlvbuf is B6F84AB0 [20:51:01]SAM_PROTO_ClearQueue [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 09 00 00 [20:51:01]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [20:51:01]RAPDU: 90 00 [20:51:01]wFMCommunicate OK [20:51:01]SAM_PROTO_ClearQueue done [20:51:01]KKMCreateOFDPacket [20:51:01]OFDProtocolAddRootSTLVToBuf [20:51:01]FM_MakeSignedData [20:51:01]FM_MakeSignedData [20:51:01]SAM_PROTO_SignData [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 0D 01 02 [20:51:01]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [20:51:01]RAPDU: 90 00 [20:51:01]wFMCommunicate OK [20:51:01]wFMCommunicate request_size=255 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 95 00 00 00 00 07 04 06 00 A4 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 34 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 32 BA 02 00 35 04 06 00 38 B5 7F [20:51:01]Write to MH i2c: E2 02 01 A9 05 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 95 00 00 00 00 07 04 06 00 A4 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 34 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 32 BA 02 00 35 04 06 00 38 B5 7F 00 00 B6 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [20:51:01]RAPDU: 90 00 [20:51:01]wFMCommunicate OK [20:51:01]wFMCommunicate request_size=8 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 0D 02 02 03 C1 30 29 [20:51:01]Write to MH i2c: E2 0B 00 AA 05 80 0D 02 02 03 00 C1 30 29 00 00 49 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 03 00 AA 05 00 90 00 23 [20:51:01]RAPDU: 90 00 [20:51:01]wFMCommunicate OK [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 0D 03 02 [20:51:01]Write to MH i2c: E2 08 00 AB 05 80 0D 03 02 00 00 00 00 2B [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 0B 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 0B 00 AB 05 00 18 87 11 2D 7A 0D C4 AA 90 00 FE [20:51:01]RAPDU: 18 87 11 2D 7A 0D C4 AA 90 00 [20:51:01]wFMCommunicate OK [20:51:01]SAM_PROTO_SignData done [20:51:01]FM_MakeSignedData done [20:51:01]CreateOFDProtocolMessage [20:51:01]wFMCommunicate request_size=4 [20:51:01]MH_SAM_APDU [20:51:01]CAPDU: 80 11 00 00 [20:51:01]Write to MH i2c: E2 08 00 AC 05 80 11 00 00 00 00 00 00 2B [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:01]Read from MH i2c: E2 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 17 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: E2 17 00 AC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 84 [20:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:51:01]wFMCommunicate OK [20:51:01]CreateOFDProtocolMessage done [20:51:01]OFDSenderStorePacket 178738 [20:51:01]StoreOFDPacket docnum=178738 [20:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 44 B6 05 01 5D 5F 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 95 00 00 00 00 07 04 06 00 A4 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 34 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 32 BA 02 00 35 04 06 00 38 B5 7F C1 30 29 18 87 11 2D 7A 0D C4 AA [20:51:01]CheckFolder [20:51:01]dirname=/storage/ofd_packets [20:51:01]CheckFolder done [20:51:01]ProducePacketName [20:51:01]name=ofd_packets/00178738 [20:51:01]NVStorageSaveData ofd_packets/00178738 [20:51:01]File name is /storage/ofd_packets/00178738 [20:51:01]Write 299 bytes [20:51:01]NVStorageSaveData done [20:51:01]OFDSenderStorePacket done [20:51:01]KKMCreateOFDPacket done [20:51:01]NVStorageSaveData kkm_last_timestamp [20:51:01]File name is /storage/kkm_last_timestamp [20:51:01]Write 4 bytes [20:51:01]NVStorageSaveData done [20:51:01]ExternCall_PrintAddStr [20:51:01]wPrintStart [20:51:01]Write to MH i2c: 01 00 00 AD 05 B2 [20:51:01]Write i2c OK [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 07 00 [20:51:01]MH_I2C_Read... [20:51:01]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 FF 0F C7 [20:51:01]RasterBufferAndPrint [20:51:01]line Счет N : (1)294705 [20:51:01]line ИНН: 02508201610067 [20:51:01]line Контрольно-Кассовый Чек [20:51:01]line ПРОДАЖА [20:51:01]line ТРК (МРК, ГНК) : 61 [20:51:01]line Товар: 2710124130 [20:51:01]line SU-92-К-5 [20:51:01]line 52.350 * 68.80 [20:51:01]line = 3601.68 [20:51:01]line НДС 12% НСП 1% [20:51:01]line > о реализуемом товаре [20:51:01]line ОКРУГЛЕНИЕ: -0.68 [20:51:01]line ИТОГО: 3601.00 [20:51:01]line Внесено: 4000.00 [20:51:01]line СДАЧА: 399.00 [20:51:01]line НСП 1% : 31.87 [20:51:01]line НДС 12% : 382.48 [20:51:01]line Наличными: 3601.00 [20:51:01]line Безнал.: 0.00 [20:51:01]line Место: АЗС № 130 "Партнер Нефть" [20:51:01]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:51:01]line СНО: Общий режим [20:51:01]line Чек 198 23.08.2024 20:51 [20:51:01]line Смена: 470 ФФД: 1.0 [20:51:01]line ЗНМ: 0300000071 [20:51:02]line РНМ: 0000000000092561 [20:51:02]line Версия ККМ: 001 [20:51:02]line ФМ: 0000000000871778 [20:51:02]line ФД: 178738 [20:51:02]line ФПД: 62352183603241 [20:51:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205100&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178738&fm=62352183603241&tin=02508201610067®Number=0000000000092561&sum=360100 [20:51:02]OFD Sender: Processing packet 178738 [packets to send 500, broken 499] [20:51:02]ProducePacketName [20:51:02]name=ofd_packets/00178738 [20:51:02]OFD Sender: To server: pG, [20:51:02]CommunicateWithHost lk.salyk.kg:30040 [20:51:02]ConnectInit lk.salyk.kg [20:51:02]written 0, free lines is 4095 [20:51:02]Write to MH i2c: 01 00 00 D8 05 DD [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 07 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 DF 0C CF [20:51:02]RasterBufferAndPrint [20:51:02]line [20:51:02]line [20:51:02]line [20:51:02]line [20:51:02]line [20:51:02]written 0, free lines is 3302 [20:51:02]MH_Cut [20:51:02]Write to MH i2c: D1 01 00 DF 05 01 B6 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: D1 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: D1 01 00 [20:51:02]MH_I2C_Read... [20:51:02]Read from MH i2c: D1 01 00 DF 05 00 B5 [20:51:02]Write to MH i2c: 01 00 00 E0 05 E5 [20:51:02]Write i2c OK [20:51:02]MH_I2C_Read... [20:51:03]*** Cut start [20:51:03]*** Partial cut [20:51:03]*** CUTSNS_PIN = 1 [20:51:03]*** CUTSNS_PIN = 0 [20:51:03]*** Brake cut motor [20:51:03]Read from MH i2c: 01 [20:51:03]MH_I2C_Read... [20:51:03]*** Stop cut motor [20:51:03]*** Cut end [20:51:03]Read from MH i2c: 01 07 00 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: 01 07 00 E0 05 00 00 00 00 00 FF 0F FA [20:51:03]process_action close_receipt done [20:51:03]requested_data is exist [20:51:03]produce_requested_data [20:51:03]requested_item fm.sn is exist - process it [20:51:03]wFMCommunicate request_size=4 [20:51:03]MH_SAM_APDU [20:51:03]CAPDU: 80 11 00 00 [20:51:03]Write to MH i2c: E2 08 00 E1 05 80 11 00 00 00 00 00 00 60 [20:51:03]Write i2c OK [20:51:03]MH_I2C_Read... [20:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:03]Read from MH i2c: E2 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: E2 17 00 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: E2 17 00 E1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B9 [20:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:51:03]wFMCommunicate OK [20:51:03]requested_item fd.num is exist - process it [20:51:03]SAM_PROTO_GetFieldsCounters [20:51:03]wFMCommunicate request_size=4 [20:51:03]MH_SAM_APDU [20:51:03]CAPDU: 80 13 00 00 [20:51:03]Write to MH i2c: E2 08 00 E2 05 80 13 00 00 00 00 00 00 63 [20:51:03]Write i2c OK [20:51:03]MH_I2C_Read... [20:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:03]Read from MH i2c: E2 [20:51:03]MH_I2C_Read... [20:51:03]Read from MH i2c: E2 62 00 [20:51:03]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 62 00 E2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 32 BA 02 00 0E 04 04 00 D6 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 9F [20:51: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 32 BA 02 00 0E 04 04 00 D6 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 [20:51:04]wFMCommunicate OK [20:51:04]SAM_PROTO_GetFieldsCounters done [20:51:04]requested_item shift.num is exist - process it [20:51:04]requested_item shift.opened is exist - process it [20:51:04]req_shift_opened [20:51:04]FM_GetShiftState [20:51:04]SAM_PROTO_GetShiftState [20:51:04]wFMCommunicate request_size=4 [20:51:04]MH_SAM_APDU [20:51:04]CAPDU: 80 13 01 00 [20:51:04]Write to MH i2c: E2 08 00 E3 05 80 13 01 00 00 00 00 00 65 [20:51:04]Write i2c OK [20:51:04]MH_I2C_Read... [20:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:04]Read from MH i2c: E2 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 0E 00 [20:51:04]MH_I2C_Read... [20:51:04]Read from MH i2c: E2 0E 00 E3 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3C [20:51:04]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:51:04]wFMCommunicate OK [20:51:04]SAM_PROTO_GetShiftState done [20:51:04]FM_GetShiftState done [20:51:04]req_shift_opened done [20:51:04]requested_item shift.open_date is exist - process it [20:51:04]req_shift_open_date [20:51:04]req_shift_open_date done [20:51:04]produce_requested_data done [20:51:04]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178738,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:51:04]process_action_free close_receipt [20:51:04]json_value_free [20:51:04]json_value_free done [20:51:04]process_json_proto returns [20:51:04]Send response to host [20:51:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178738,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:51:04]free response buf [20:51:04]execute_script done [20:51:04]execute_script returns [20:51:04]free content buf [20:51:04]Sock 10.Close socket [20:51:04]Sock 10.Thread stoped [20:51:07]ConnectInit Can't take IP for lk.salyk.kg [20:51:07]CommunicateWithHost connect error [20:51:07]CommunicateWithHost err = -1 [20:51:07]OFD Sender: Server communicate error [20:51:12]OFD Sender: Processing packet 178738 [packets to send 500, broken 499] [20:51:12]ProducePacketName [20:51:12]name=ofd_packets/00178738 [20:51:12]OFD Sender: To server: pG, [20:51:12]CommunicateWithHost lk.salyk.kg:30040 [20:51:12]ConnectInit lk.salyk.kg [20:51:17]ConnectInit Can't take IP for lk.salyk.kg [20:51:17]CommunicateWithHost connect error [20:51:17]CommunicateWithHost err = -1 [20:51:17]OFD Sender: Server communicate error [20:51:22]OFD Sender: Processing packet 178738 [packets to send 500, broken 499] [20:51:22]ProducePacketName [20:51:22]name=ofd_packets/00178738 [20:51:22]OFD Sender: To server: pG, [20:51:22]CommunicateWithHost lk.salyk.kg:30040 [20:51:22]ConnectInit lk.salyk.kg [20:51:27]ConnectInit Can't take IP for lk.salyk.kg [20:51:27]CommunicateWithHost connect error [20:51:27]CommunicateWithHost err = -1 [20:51:27]OFD Sender: Server communicate error [20:51:32]OFD Sender: Processing packet 178738 [packets to send 500, broken 499] [20:51:32]ProducePacketName [20:51:32]name=ofd_packets/00178738 [20:51:32]OFD Sender: To server: pG, [20:51:32]CommunicateWithHost lk.salyk.kg:30040 [20:51:32]ConnectInit lk.salyk.kg [20:51:34]Connected sock=10 [20:51:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 44 B6 05 01 5D 5F 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E CC 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 7E 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 7E 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 95 00 00 00 00 07 04 06 00 A4 7E 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 34 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 32 BA 02 00 35 04 06 00 38 B5 7F C1 30 29 18 87 11 2D 7A 0D C4 AA [20:51:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 DE DD 47 00 7D 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 31 37 37 38 10 04 04 00 32 BA 02 00 F4 03 04 00 FB A1 C8 66 B6 04 01 00 00 1F AC 08 F7 1B 98 DB 0B [20:51:34]CommunicateWithHost err = 0 [20:51:34]CheckOFDResponse [20:51:34]1017 (14) - 77093643461234 [20:51:34]1041 (16) - 0000000000871778 [20:51:34]1040 (4) - 178738 [20:51:34]1012 (4) - 23.08.2024 14:51 [20:51:34]1206 (1) - 0 [20:51:34]OFD Sender: Remove packet 178738 [20:51:34]ProducePacketName [20:51:34]name=ofd_packets/00178738 [20:51:34]NVStorageDeleteData [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:53]accept exits with 8 [20:51:53]New connection [20:51:53]New thread 3067133284 created [20:51:53]Thread 3066989924 joined [20:51:53]Waiting for new connection... [20:51:53] Sock 8.Parse request [20:51:53]Sock 8.Check first char [20:51:53]Sock 8.First char is OK [20:51:53]request: POST /json_proto HTTP/1.0 [20:51:53]Method: POST [20:51:53]URL: /json_proto [20:51:53]Method is POST - this is cgi request [20:51:53]url: /json_proto [20:51:53]query_string will be loaded in cgi processing [20:51:53]execute_cgi json_proto POST (null) [20:51:53]execute_cgi path=json_proto method=POST [20:51:53]POST find Content-Length [20:51:53]Host: 172.17.44.131:8080 [20:51:53]Content-Length: 682 [20:51:53]Content-Type: application/json [20:51:53] [20:51:53]POST finish read [20:51:53]Found Content-Length = 682 [20:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294707", "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" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [20:51:53]execute_script... [20:51: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)294707", "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" : 67.80, "quantity" : 22.130, "sum" : 1500.41, "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" ] } } [20:51:53]POST & json_proto [20:51:53]process_json_proto [20:51:53]json parsed OK: [20:51:53]protocol is kg_v1.0 [20:51:53]action value=close_receipt [20:51:53]process_action close_receipt [20:51:53]cmd_close_receipt [20:51:53]MH_GetDate [20:51:53]Write to MH i2c: F0 00 00 E4 05 D8 [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: F0 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: F0 09 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: F0 09 00 E4 05 00 69 F6 C8 66 4F 53 BE 66 34 [20:51:53]GetLastDocTimeStamp 1724446260 [20:51:53]current date 1724446313 [20:51:53]FM_GetShiftState [20:51:53]SAM_PROTO_GetShiftState [20:51:53]wFMCommunicate request_size=4 [20:51:53]MH_SAM_APDU [20:51:53]CAPDU: 80 13 01 00 [20:51:53]Write to MH i2c: E2 08 00 E5 05 80 13 01 00 00 00 00 00 67 [20:51:53]Write i2c OK [20:51:53]MH_I2C_Read... [20:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:53]Read from MH i2c: E2 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 [20:51:53]MH_I2C_Read... [20:51:53]Read from MH i2c: E2 0E 00 E5 05 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3E [20:51:53]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:51:53]wFMCommunicate OK [20:51:53]SAM_PROTO_GetShiftState done [20:51:53]FM_GetShiftState done [20:51:53]opened in 1724371660 [20:51:53]opened+sec_in_day 1724458060 [20:51:53]quantity*price = 150041 [20:51:53]sum+1 = 150042 [20:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.34 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 199 23.08.2024 20:51 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178739 ФПД: 60833390060145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205153&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178739&fm=60833390060145&tin=02508201610067®Number=0000000000092561&sum=150000 [20:51:54]StoreToDocumentArchive [20:51:54]shift 470 fd 178739 [20:51:54]save to /storage/0470/doc_00178739 [20:51:54]save last doc name /storage/0470/doc_00178739 to /storage/kkm_last_doc_name [20:51:54]save OK [20:51:54]Clear old archive folders... [20:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:51:54]tlvbuf is 01B09CF0 [20:51:54]SAM_PROTO_ClearQueue [20:51:54]wFMCommunicate request_size=4 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 09 00 00 [20:51:54]Write to MH i2c: E2 08 00 F2 05 80 09 00 00 00 00 00 00 69 [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [20:51:54]RAPDU: 90 00 [20:51:54]wFMCommunicate OK [20:51:54]SAM_PROTO_ClearQueue done [20:51:54]KKMCreateOFDPacket [20:51:54]OFDProtocolAddRootSTLVToBuf [20:51:54]FM_MakeSignedData [20:51:54]FM_MakeSignedData [20:51:54]SAM_PROTO_SignData [20:51:54]wFMCommunicate request_size=4 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 0D 01 02 [20:51:54]Write to MH i2c: E2 08 00 F3 05 80 0D 01 02 00 00 00 00 71 [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [20:51:54]RAPDU: 90 00 [20:51:54]wFMCommunicate OK [20:51:54]wFMCommunicate request_size=255 [20:51:54]MH_SAM_APDU [20:51: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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 C7 00 00 00 F4 03 04 00 69 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 33 BA 02 00 35 04 06 00 37 [20:51:54]Write to MH i2c: E2 02 01 F4 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 C7 00 00 00 F4 03 04 00 69 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 33 BA 02 00 35 04 06 00 37 00 00 BA [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [20:51:54]RAPDU: 90 00 [20:51:54]wFMCommunicate OK [20:51:54]wFMCommunicate request_size=10 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 0D 02 02 05 53 E0 9A E2 71 [20:51:54]Write to MH i2c: E2 0D 00 F5 05 80 0D 02 02 05 00 53 E0 9A E2 71 00 00 9E [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 03 00 F5 05 00 90 00 6E [20:51:54]RAPDU: 90 00 [20:51:54]wFMCommunicate OK [20:51:54]wFMCommunicate request_size=4 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 0D 03 02 [20:51:54]Write to MH i2c: E2 08 00 F6 05 80 0D 03 02 00 00 00 00 76 [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 0B 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 0B 00 F6 05 00 F1 32 D4 D2 33 1B FF 8C 90 00 19 [20:51:54]RAPDU: F1 32 D4 D2 33 1B FF 8C 90 00 [20:51:54]wFMCommunicate OK [20:51:54]SAM_PROTO_SignData done [20:51:54]FM_MakeSignedData done [20:51:54]CreateOFDProtocolMessage [20:51:54]wFMCommunicate request_size=4 [20:51:54]MH_SAM_APDU [20:51:54]CAPDU: 80 11 00 00 [20:51:54]Write to MH i2c: E2 08 00 F7 05 80 11 00 00 00 00 00 00 76 [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:54]Read from MH i2c: E2 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 17 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: E2 17 00 F7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CF [20:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:51:54]wFMCommunicate OK [20:51:54]CreateOFDProtocolMessage done [20:51:54]OFDSenderStorePacket 178739 [20:51:54]StoreOFDPacket docnum=178739 [20:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 0E 0E 07 01 D7 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 C7 00 00 00 F4 03 04 00 69 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 33 BA 02 00 35 04 06 00 37 53 E0 9A E2 71 F1 32 D4 D2 33 1B FF 8C [20:51:54]CheckFolder [20:51:54]dirname=/storage/ofd_packets [20:51:54]CheckFolder done [20:51:54]ProducePacketName [20:51:54]name=ofd_packets/00178739 [20:51:54]NVStorageSaveData ofd_packets/00178739 [20:51:54]File name is /storage/ofd_packets/00178739 [20:51:54]Write 301 bytes [20:51:54]NVStorageSaveData done [20:51:54]OFDSenderStorePacket done [20:51:54]KKMCreateOFDPacket done [20:51:54]NVStorageSaveData kkm_last_timestamp [20:51:54]File name is /storage/kkm_last_timestamp [20:51:54]Write 4 bytes [20:51:54]NVStorageSaveData done [20:51:54]ExternCall_PrintAddStr [20:51:54]wPrintStart [20:51:54]Write to MH i2c: 01 00 00 F8 05 FD [20:51:54]Write i2c OK [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: 01 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: 01 07 00 [20:51:54]MH_I2C_Read... [20:51:54]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 FF 0F 12 [20:51:54]RasterBufferAndPrint [20:51:54]line Счет N : (1)294707 [20:51:54]line ИНН: 02508201610067 [20:51:54]line Контрольно-Кассовый Чек [20:51:54]line ПРОДАЖА [20:51:54]line ТРК (МРК, ГНК) : 32 [20:51:54]line Товар: 2710124130 [20:51:54]line Аи-92-К-5 [20:51:54]line 22.130 * 67.80 [20:51:54]line = 1500.41 [20:51:54]line НДС 12% НСП 1% [20:51:54]line > о реализуемом товаре [20:51:54]line ОКРУГЛЕНИЕ: -0.41 [20:51:54]line ИТОГО: 1500.00 [20:51:54]line Внесено: 1500.00 [20:51:54]line СДАЧА: 0.00 [20:51:54]line НСП 1% : 13.28 [20:51:54]line НДС 12% : 159.34 [20:51:54]line Наличными: 1500.00 [20:51:54]line Безнал.: 0.00 [20:51:54]line Место: АЗС № 130 "Партнер Нефть" [20:51:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:51:54]line СНО: Общий режим [20:51:54]line Чек 199 23.08.2024 20:51 [20:51:54]line Смена: 470 ФФД: 1.0 [20:51:54]line ЗНМ: 0300000071 [20:51:54]line РНМ: 0000000000092561 [20:51:54]line Версия ККМ: 001 [20:51:54]line ФМ: 0000000000871778 [20:51:54]line ФД: 178739 [20:51:54]line ФПД: 60833390060145 [20:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205153&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178739&fm=60833390060145&tin=02508201610067®Number=0000000000092561&sum=150000 [20:51:54]written 0, free lines is 4095 [20:51:54]OFD Sender: Processing packet 178739 [packets to send 500, broken 499] [20:51:54]ProducePacketName [20:51:54]name=ofd_packets/00178739 [20:51:54]OFD Sender: To server: pG, [20:51:54]CommunicateWithHost lk.salyk.kg:30040 [20:51:54]ConnectInit lk.salyk.kg [20:51:55]Write to MH i2c: 01 00 00 23 06 29 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: 01 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: 01 07 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: 01 07 00 23 06 00 00 00 00 00 D5 0C 11 [20:51:55]RasterBufferAndPrint [20:51:55]line [20:51:55]line [20:51:55]line [20:51:55]line [20:51:55]line [20:51:55]written 0, free lines is 3291 [20:51:55]MH_Cut [20:51:55]Write to MH i2c: D1 01 00 2A 06 01 02 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: D1 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: D1 01 00 [20:51:55]MH_I2C_Read... [20:51:55]Read from MH i2c: D1 01 00 2A 06 00 01 [20:51:55]Write to MH i2c: 01 00 00 2B 06 31 [20:51:55]Write i2c OK [20:51:55]MH_I2C_Read... [20:51:56]*** Cut start [20:51:56]*** Partial cut [20:51:56]*** CUTSNS_PIN = 1 [20:51:56]*** CUTSNS_PIN = 0 [20:51:56]*** Brake cut motor [20:51:56]Read from MH i2c: 01 [20:51:56]MH_I2C_Read... [20:51:56]*** Stop cut motor [20:51:56]*** Cut end [20:51:56]Read from MH i2c: 01 07 00 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: 01 07 00 2B 06 00 00 00 00 00 FF 0F 46 [20:51:56]process_action close_receipt done [20:51:56]requested_data is exist [20:51:56]produce_requested_data [20:51:56]requested_item fm.sn is exist - process it [20:51:56]wFMCommunicate request_size=4 [20:51:56]MH_SAM_APDU [20:51:56]CAPDU: 80 11 00 00 [20:51:56]Write to MH i2c: E2 08 00 2C 06 80 11 00 00 00 00 00 00 AC [20:51:56]Write i2c OK [20:51:56]MH_I2C_Read... [20:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:51:56]Read from MH i2c: E2 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: E2 17 00 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: E2 17 00 2C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 05 [20:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:51:56]wFMCommunicate OK [20:51:56]requested_item fd.num is exist - process it [20:51:56]SAM_PROTO_GetFieldsCounters [20:51:56]wFMCommunicate request_size=4 [20:51:56]MH_SAM_APDU [20:51:56]CAPDU: 80 13 00 00 [20:51:56]Write to MH i2c: E2 08 00 2D 06 80 13 00 00 00 00 00 00 AF [20:51:56]Write i2c OK [20:51:56]MH_I2C_Read... [20:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:51:56]Read from MH i2c: E2 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: E2 62 00 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: E2 62 00 2D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 33 BA 02 00 0E 04 04 00 D6 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 EF [20:51: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 33 BA 02 00 0E 04 04 00 D6 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 [20:51:56]wFMCommunicate OK [20:51:56]SAM_PROTO_GetFieldsCounters done [20:51:56]requested_item shift.num is exist - process it [20:51:56]requested_item shift.opened is exist - process it [20:51:56]req_shift_opened [20:51:56]FM_GetShiftState [20:51:56]SAM_PROTO_GetShiftState [20:51:56]wFMCommunicate request_size=4 [20:51:56]MH_SAM_APDU [20:51:56]CAPDU: 80 13 01 00 [20:51:56]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [20:51:56]Write i2c OK [20:51:56]MH_I2C_Read... [20:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:51:56]Read from MH i2c: E2 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: E2 0E 00 [20:51:56]MH_I2C_Read... [20:51:56]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 88 [20:51:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:51:56]wFMCommunicate OK [20:51:56]SAM_PROTO_GetShiftState done [20:51:56]FM_GetShiftState done [20:51:56]req_shift_opened done [20:51:56]requested_item shift.open_date is exist - process it [20:51:56]req_shift_open_date [20:51:56]req_shift_open_date done [20:51:56]produce_requested_data done [20:51:56]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178739,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:51:56]process_action_free close_receipt [20:51:56]json_value_free [20:51:56]json_value_free done [20:51:56]process_json_proto returns [20:51:56]Send response to host [20:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178739,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:51:56]free response buf [20:51:56]execute_script done [20:51:56]execute_script returns [20:51:56]free content buf [20:51:56]Sock 8.Close socket [20:51:56]Sock 8.Thread stoped [20:51:59]ConnectInit Can't take IP for lk.salyk.kg [20:51:59]CommunicateWithHost connect error [20:51:59]CommunicateWithHost err = -1 [20:51:59]OFD Sender: Server communicate error [20:52:04]OFD Sender: Processing packet 178739 [packets to send 500, broken 499] [20:52:04]ProducePacketName [20:52:04]name=ofd_packets/00178739 [20:52:04]OFD Sender: To server: pG, [20:52:04]CommunicateWithHost lk.salyk.kg:30040 [20:52:04]ConnectInit lk.salyk.kg [20:52:07]Connected sock=8 [20:52:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 0E 0E 07 01 D7 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 72 56 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 19 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 C7 00 00 00 F4 03 04 00 69 F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 33 BA 02 00 35 04 06 00 37 53 E0 9A E2 71 F1 32 D4 D2 33 1B FF 8C [20:52:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 E7 D4 47 00 3C 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 33 BA 02 00 F4 03 04 00 1C A2 C8 66 B6 04 01 00 00 82 D6 73 28 C2 9B 3D 19 [20:52:11]CommunicateWithHost err = 0 [20:52:11]CheckOFDResponse [20:52:11]1017 (14) - 77093643461234 [20:52:11]1041 (16) - 0000000000871778 [20:52:11]1040 (4) - 178739 [20:52:11]1012 (4) - 23.08.2024 14:52 [20:52:11]1206 (1) - 0 [20:52:11]OFD Sender: Remove packet 178739 [20:52:11]ProducePacketName [20:52:11]name=ofd_packets/00178739 [20:52:11]NVStorageDeleteData [20:52:11]OFD Sender: No OFD packet to send [20:52:13]accept exits with 10 [20:52:13]New connection [20:52:13]New thread 3066989924 created [20:52:13]Thread 3067133284 joined [20:52:13]Waiting for new connection... [20:52:13] Sock 10.Parse request [20:52:13]Sock 10.Check first char [20:52:13]Sock 10.First char is OK [20:52:13]request: POST /json_proto HTTP/1.0 [20:52:13]Method: POST [20:52:13]URL: /json_proto [20:52:13]Method is POST - this is cgi request [20:52:13]url: /json_proto [20:52:13]query_string will be loaded in cgi processing [20:52:13]execute_cgi json_proto POST (null) [20:52:13]execute_cgi path=json_proto method=POST [20:52:13]POST find Content-Length [20:52:13]Host: 172.17.44.131:8080 [20:52:13]Content-Length: 803 [20:52:13]Content-Type: application/json [20:52:13] [20:52:13]POST finish read [20:52:13]Found Content-Length = 803 [20:52:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294708", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:13]execute_script... [20:52: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)294708", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:52:13]POST & json_proto [20:52:13]process_json_proto [20:52:13]json parsed OK: [20:52:13]protocol is kg_v1.0 [20:52:13]action value=close_receipt [20:52:13]process_action close_receipt [20:52:13]cmd_close_receipt [20:52:13]MH_GetDate [20:52:13]Write to MH i2c: F0 00 00 2F 06 24 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 09 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: F0 09 00 2F 06 00 7D F6 C8 66 4F 53 BE 66 94 [20:52:13]GetLastDocTimeStamp 1724446313 [20:52:13]current date 1724446333 [20:52:13]FM_GetShiftState [20:52:13]SAM_PROTO_GetShiftState [20:52:13]wFMCommunicate request_size=4 [20:52:13]MH_SAM_APDU [20:52:13]CAPDU: 80 13 01 00 [20:52:13]Write to MH i2c: E2 08 00 30 06 80 13 01 00 00 00 00 00 B3 [20:52:13]Write i2c OK [20:52:13]MH_I2C_Read... [20:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:13]Read from MH i2c: E2 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 [20:52:13]MH_I2C_Read... [20:52:13]Read from MH i2c: E2 0E 00 30 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 8A [20:52:13]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:52:13]wFMCommunicate OK [20:52:13]SAM_PROTO_GetShiftState done [20:52:13]FM_GetShiftState done [20:52:13]opened in 1724371660 [20:52:13]opened+sec_in_day 1724458060 [20:52:13]quantity*price = 200043 [20:52:13]sum+1 = 200044 [20:52:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 200 23.08.2024 20:52 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178740 ФПД: 193831718481846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205213&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178740&fm=193831718481846&tin=02508201610067®Number=0000000000092561&sum=200043 [20:52:14]StoreToDocumentArchive [20:52:14]shift 470 fd 178740 [20:52:14]save to /storage/0470/doc_00178740 [20:52:14]save last doc name /storage/0470/doc_00178740 to /storage/kkm_last_doc_name [20:52:14]save OK [20:52:14]Clear old archive folders... [20:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:52:14]tlvbuf is 01AFB2F0 [20:52:14]SAM_PROTO_ClearQueue [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 09 00 00 [20:52:14]Write to MH i2c: E2 08 00 3D 06 80 09 00 00 00 00 00 00 B5 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]SAM_PROTO_ClearQueue done [20:52:14]KKMCreateOFDPacket [20:52:14]OFDProtocolAddRootSTLVToBuf [20:52:14]FM_MakeSignedData [20:52:14]FM_MakeSignedData [20:52:14]SAM_PROTO_SignData [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 0D 01 02 [20:52:14]Write to MH i2c: E2 08 00 3E 06 80 0D 01 02 00 00 00 00 BD [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]wFMCommunicate request_size=255 [20:52:14]MH_SAM_APDU [20:52: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7D F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 34 BA 02 00 35 04 06 00 B0 [20:52:14]Write to MH i2c: E2 02 01 3F 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7D F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 34 BA 02 00 35 04 06 00 B0 00 00 2E [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 3F 06 00 90 00 B9 [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]wFMCommunicate request_size=10 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 0D 02 02 05 49 F6 B9 EF B6 [20:52:14]Write to MH i2c: E2 0D 00 40 06 80 0D 02 02 05 00 49 F6 B9 EF B6 00 00 67 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 [20:52:14]MH_I2C_Read... [20:52:14]Read from MH i2c: E2 03 00 40 06 00 90 00 BA [20:52:14]RAPDU: 90 00 [20:52:14]wFMCommunicate OK [20:52:14]wFMCommunicate request_size=4 [20:52:14]MH_SAM_APDU [20:52:14]CAPDU: 80 0D 03 02 [20:52:14]Write to MH i2c: E2 08 00 41 06 80 0D 03 02 00 00 00 00 C2 [20:52:14]Write i2c OK [20:52:14]MH_I2C_Read... [20:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:52:14]Read from MH i2c: E2 [20:52:14]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0B 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 0B 00 41 06 00 EA 40 40 D2 8C 25 41 3C 90 00 2D [20:52:15]RAPDU: EA 40 40 D2 8C 25 41 3C 90 00 [20:52:15]wFMCommunicate OK [20:52:15]SAM_PROTO_SignData done [20:52:15]FM_MakeSignedData done [20:52:15]CreateOFDProtocolMessage [20:52:15]wFMCommunicate request_size=4 [20:52:15]MH_SAM_APDU [20:52:15]CAPDU: 80 11 00 00 [20:52:15]Write to MH i2c: E2 08 00 42 06 80 11 00 00 00 00 00 00 C2 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:15]Read from MH i2c: E2 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 17 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: E2 17 00 42 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 1B [20:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:52:15]wFMCommunicate OK [20:52:15]CreateOFDProtocolMessage done [20:52:15]OFDSenderStorePacket 178740 [20:52:15]StoreOFDPacket docnum=178740 [20:52:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 3C 28 07 01 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7D F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 34 BA 02 00 35 04 06 00 B0 49 F6 B9 EF B6 EA 40 40 D2 8C 25 41 3C [20:52:15]CheckFolder [20:52:15]dirname=/storage/ofd_packets [20:52:15]CheckFolder done [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00178740 [20:52:15]NVStorageSaveData ofd_packets/00178740 [20:52:15]File name is /storage/ofd_packets/00178740 [20:52:15]Write 301 bytes [20:52:15]NVStorageSaveData done [20:52:15]OFDSenderStorePacket done [20:52:15]KKMCreateOFDPacket done [20:52:15]NVStorageSaveData kkm_last_timestamp [20:52:15]File name is /storage/kkm_last_timestamp [20:52:15]Write 4 bytes [20:52:15]NVStorageSaveData done [20:52:15]ExternCall_PrintAddStr [20:52:15]wPrintStart [20:52:15]Write to MH i2c: 01 00 00 43 06 49 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 FF 0F 5E [20:52:15]RasterBufferAndPrint [20:52:15]line Счет N : (1)294708 [20:52:15]line ИНН: 02508201610067 [20:52:15]line Контрольно-Кассовый Чек [20:52:15]line ПРОДАЖА [20:52:15]line ТРК (МРК, ГНК) : 53 [20:52:15]line Товар: 2710124500 [20:52:15]line Аи-95-К-5 [20:52:15]line 26.960 * 74.20 [20:52:15]line = 2000.43 [20:52:15]line НДС 12% НСП 1% [20:52:15]line > о реализуемом товаре [20:52:15]line ИТОГО: 2000.43 [20:52:15]line НСП 1% : 17.70 [20:52:15]line НДС 12% : 212.43 [20:52:15]line Наличными: 0.00 [20:52:15]line Безнал.: 2000.43 [20:52:15]line Место: АЗС № 130 "Партнер Нефть" [20:52:15]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:52:15]line СНО: Общий режим [20:52:15]line Чек 200 23.08.2024 20:52 [20:52:15]line Смена: 470 ФФД: 1.0 [20:52:15]line ЗНМ: 0300000071 [20:52:15]line РНМ: 0000000000092561 [20:52:15]line Версия ККМ: 001 [20:52:15]line Платежная система: O! деньги [20:52:15]line ФМ: 0000000000871778 [20:52:15]line ФД: 178740 [20:52:15]line ФПД: 193831718481846 [20:52:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205213&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178740&fm=193831718481846&tin=02508201610067®Number=0000000000092561&sum=200043 [20:52:15]written 0, free lines is 4095 [20:52:15]OFD Sender: Processing packet 178740 [packets to send 500, broken 499] [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00178740 [20:52:15]OFD Sender: To server: pG, [20:52:15]CommunicateWithHost lk.salyk.kg:30040 [20:52:15]ConnectInit lk.salyk.kg [20:52:15]Connected sock=9 [20:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 3C 28 07 01 40 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 7D F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 34 BA 02 00 35 04 06 00 B0 49 F6 B9 EF B6 EA 40 40 D2 8C 25 41 3C [20:52:15]Write to MH i2c: 01 00 00 6D 06 73 [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: 01 07 00 6D 06 00 00 00 00 00 EC 0C 72 [20:52:15]RasterBufferAndPrint [20:52:15]line [20:52:15]line [20:52:15]line [20:52:15]line [20:52:15]line [20:52:15]written 0, free lines is 3317 [20:52:15]MH_Cut [20:52:15]Write to MH i2c: D1 01 00 74 06 01 4C [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: D1 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: D1 01 00 [20:52:15]MH_I2C_Read... [20:52:15]Read from MH i2c: D1 01 00 74 06 00 4B [20:52:15]Write to MH i2c: 01 00 00 75 06 7B [20:52:15]Write i2c OK [20:52:15]MH_I2C_Read... [20:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 E3 C7 47 00 25 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 31 37 37 38 10 04 04 00 34 BA 02 00 F4 03 04 00 24 A2 C8 66 B6 04 01 00 00 71 FD 14 10 65 9C 8E 32 [20:52:15]CommunicateWithHost err = 0 [20:52:15]CheckOFDResponse [20:52:15]1017 (14) - 77093643461234 [20:52:15]1041 (16) - 0000000000871778 [20:52:15]1040 (4) - 178740 [20:52:15]1012 (4) - 23.08.2024 14:52 [20:52:15]1206 (1) - 0 [20:52:15]OFD Sender: Remove packet 178740 [20:52:15]ProducePacketName [20:52:15]name=ofd_packets/00178740 [20:52:15]NVStorageDeleteData [20:52:16]*** Cut start [20:52:16]*** Partial cut [20:52:16]*** CUTSNS_PIN = 1 [20:52:16]*** CUTSNS_PIN = 0 [20:52:16]OFD Sender: No OFD packet to send [20:52:16]*** Brake cut motor [20:52:16]Read from MH i2c: 01 [20:52:16]MH_I2C_Read... [20:52:16]*** Stop cut motor [20:52:16]*** Cut end [20:52:16]Read from MH i2c: 01 07 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [20:52:16]process_action close_receipt done [20:52:16]requested_data is exist [20:52:16]produce_requested_data [20:52:16]requested_item fm.sn is exist - process it [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 11 00 00 [20:52:16]Write to MH i2c: E2 08 00 76 06 80 11 00 00 00 00 00 00 F6 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:52:16]Read from MH i2c: E2 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 17 00 [20:52:16]MH_I2C_Read... [20:52:16]Read from MH i2c: E2 17 00 76 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4F [20:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:52:16]wFMCommunicate OK [20:52:16]requested_item fd.num is exist - process it [20:52:16]SAM_PROTO_GetFieldsCounters [20:52:16]wFMCommunicate request_size=4 [20:52:16]MH_SAM_APDU [20:52:16]CAPDU: 80 13 00 00 [20:52:16]Write to MH i2c: E2 08 00 77 06 80 13 00 00 00 00 00 00 F9 [20:52:16]Write i2c OK [20:52:16]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 62 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 62 00 77 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 34 BA 02 00 0E 04 04 00 D6 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 3D [20:52: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 34 BA 02 00 0E 04 04 00 D6 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:52:17]wFMCommunicate OK [20:52:17]SAM_PROTO_GetFieldsCounters done [20:52:17]requested_item shift.num is exist - process it [20:52:17]requested_item shift.opened is exist - process it [20:52:17]req_shift_opened [20:52:17]FM_GetShiftState [20:52:17]SAM_PROTO_GetShiftState [20:52:17]wFMCommunicate request_size=4 [20:52:17]MH_SAM_APDU [20:52:17]CAPDU: 80 13 01 00 [20:52:17]Write to MH i2c: E2 08 00 78 06 80 13 01 00 00 00 00 00 FB [20:52:17]Write i2c OK [20:52:17]MH_I2C_Read... [20:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:52:17]Read from MH i2c: E2 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 [20:52:17]MH_I2C_Read... [20:52:17]Read from MH i2c: E2 0E 00 78 06 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 697269+1723749199=1724446468 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 04 F7 C8 66 4F 53 BE 66 EE [20:54:28]Current date/time: 23.08.2024 20:54 [20:54:28]FM_Init [20:54:28]wFMConnect [20:54:28]MH_SAM_On [20:54:28]Write to MH i2c: E0 00 00 08 00 E7 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_init finished! [20:54:28]*** atr: [20:54:28]*** 0F 3B D5 18 FF 81 91 FE [20:54:28]*** 1F C3 80 73 C8 21 10 0A [20:54:28]*** 00 00 00 00 00 00 00 00 [20:54:28]*** 00 00 00 00 00 00 00 00 [20:54:28]*** 00 00 00 00 00 00 00 00 [20:54:28]*** 00 00 00 00 00 00 00 00 [20:54:28]*** 00 00 00 00 00 00 00 00 [20:54:28]*** 00 00 00 00 00 00 00 00 [20:54:28]Read from MH i2c: E0 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E0 10 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [20:54:28]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [20:54:28]wFMCommunicate request_size=10 [20:54:28]MH_SAM_APDU [20:54:28]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [20:54:28]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [20:54:28]Read from MH i2c: E2 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [20:54:28]RAPDU: 90 00 [20:54:28]wFMCommunicate OK [20:54:28]wFMCommunicate request_size=4 [20:54:28]MH_SAM_APDU [20:54:28]CAPDU: 80 11 00 00 [20:54:28]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:28]Read from MH i2c: E2 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 17 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [20:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:54:28]wFMCommunicate OK [20:54:28]Detected FM SN is 0000000000871778 [20:54:28]Stored FM SN is 0000000000871778 [20:54:28]wFMCommunicate request_size=9 [20:54:28]MH_SAM_APDU [20:54:28]CAPDU: 80 16 00 00 04 D9 BA 00 00 [20:54:28]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [20:54:28]Read from MH i2c: E2 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [20:54:28]RAPDU: 90 00 [20:54:28]wFMCommunicate OK [20:54:28]FM PIN OK [20:54:28]wFMCommunicate request_size=8 [20:54:28]MH_SAM_APDU [20:54:28]CAPDU: 80 14 04 00 03 02 00 01 [20:54:28]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [20:54:28]Read from MH i2c: E2 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [20:54:28]RAPDU: 90 00 [20:54:28]wFMCommunicate OK [20:54:28]wFMCommunicate request_size=13 [20:54:28]MH_SAM_APDU [20:54:28]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [20:54:28]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [20:54:28]Read from MH i2c: E2 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [20:54:28]RAPDU: 90 00 [20:54:28]wFMCommunicate OK [20:54:28]wFMCommunicate request_size=4 [20:54:28]MH_SAM_APDU [20:54:28]CAPDU: 80 11 00 00 [20:54:28]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:28]Read from MH i2c: E2 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 17 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [20:54:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:54:28]wFMCommunicate OK [20:54:28]DocumentArchiveInit [20:54:28]Start Httpd... [20:54:28]Httpd thread 3067653476 created [20:54:28]Write to MH i2c: 01 00 00 0F 00 0F [20:54:28]Write i2c OK [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: 01 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: 01 07 00 [20:54:28]MH_I2C_Read... [20:54:28]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [20:54:28]MH Int Process started [20:54:28]Allocated Socket 7 [20:54:28]Bind OK [20:54:28]Listen OK [20:54:28]httpd running on port 8080 [20:54:28]Waiting for new connection... [20:54:29]OFD Sender: Processing packet 178741 [packets to send 500, broken 499] [20:54:29]ProducePacketName [20:54:29]name=ofd_packets/00178741 [20:54:29]OFD Sender: To server: pG, [20:54:29]CommunicateWithHost lk.salyk.kg:30040 [20:54:29]ConnectInit lk.salyk.kg [20:54:29]accept exits with 8 [20:54:29]New connection [20:54:29]New thread 3067366756 created [20:54:29]Waiting for new connection... [20:54:29] Sock 8.Parse request [20:54:29]Sock 8.Check first char [20:54:29]Sock 8.First char is OK [20:54:29]request: POST /json_proto HTTP/1.0 [20:54:29]Method: POST [20:54:29]URL: /json_proto [20:54:29]Method is POST - this is cgi request [20:54:29]url: /json_proto [20:54:29]query_string will be loaded in cgi processing [20:54:29]execute_cgi json_proto POST (null) [20:54:29]execute_cgi path=json_proto method=POST [20:54:29]POST find Content-Length [20:54:29]Host: 172.17.44.131:8080 [20:54:29]Content-Length: 215 [20:54:29]Content-Type: application/json [20:54:29] [20:54:29]POST finish read [20:54:29]Found Content-Length = 215 [20:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:29]execute_script... [20:54:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:29]POST & json_proto [20:54:29]process_json_proto [20:54:29]json parsed OK: [20:54:29]protocol is kg_v1.0 [20:54:29]action value=get_value [20:54:29]process_action get_value [20:54:29]cmd_get_value [20:54:29]process_action get_value done [20:54:29]requested_data is exist [20:54:29]produce_requested_data [20:54:29]requested_item kkm.sn is exist - process it [20:54:29]requested_item kkm.ver is exist - process it [20:54:29]requested_item fm.sn is exist - process it [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 11 00 00 [20:54:29]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 17 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [20:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:54:29]wFMCommunicate OK [20:54:29]requested_item fd.num is exist - process it [20:54:29]SAM_PROTO_GetFieldsCounters [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 00 00 [20:54:29]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 62 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 35 BA 02 00 0E 04 04 00 D6 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 D5 [20:54: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 35 BA 02 00 0E 04 04 00 D6 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:54:29]wFMCommunicate OK [20:54:29]SAM_PROTO_GetFieldsCounters done [20:54:29]requested_item shift.num is exist - process it [20:54:29]requested_item shift.opened is exist - process it [20:54:29]req_shift_opened [20:54:29]FM_GetShiftState [20:54:29]SAM_PROTO_GetShiftState [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 01 00 [20:54:29]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [20:54:29]Write i2c OK [20:54:29]MH_I2C_Read... [20:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:29]Read from MH i2c: E2 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 [20:54:29]MH_I2C_Read... [20:54:29]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [20:54:29]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:54:29]wFMCommunicate OK [20:54:29]SAM_PROTO_GetShiftState done [20:54:29]FM_GetShiftState done [20:54:29]req_shift_opened done [20:54:29]requested_item shift.open_date is exist - process it [20:54:29]req_shift_open_date [20:54:29]req_shift_open_date done [20:54:29]produce_requested_data done [20:54:29]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178741,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:54:29]process_action_free get_value [20:54:29]json_value_free [20:54:29]json_value_free done [20:54:29]process_json_proto returns [20:54:29]Send response to host [20:54:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178741,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:54:29]free response buf [20:54:29]execute_script done [20:54:29]execute_script returns [20:54:29]free content buf [20:54:29]Sock 8.Close socket [20:54:29]Sock 8.Thread stoped [20:54:29]accept exits with 11 [20:54:29]New connection [20:54:29]New thread 3067223396 created [20:54:29]Thread 3067366756 joined [20:54:29]Waiting for new connection... [20:54:29] Sock 11.Parse request [20:54:29]Sock 11.Check first char [20:54:29]Sock 11.First char is OK [20:54:29]request: POST /json_proto HTTP/1.0 [20:54:29]Method: POST [20:54:29]URL: /json_proto [20:54:29]Method is POST - this is cgi request [20:54:29]url: /json_proto [20:54:29]query_string will be loaded in cgi processing [20:54:29]execute_cgi json_proto POST (null) [20:54:29]execute_cgi path=json_proto method=POST [20:54:29]POST find Content-Length [20:54:29]Host: 172.17.44.131:8080 [20:54:29]Content-Length: 331 [20:54:29]Content-Type: application/json [20:54:29] [20:54:29]POST finish read [20:54:29]Found Content-Length = 331 [20:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:54:29]execute_script... [20:54:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:54:29]POST & json_proto [20:54:29]process_json_proto [20:54:29]json parsed OK: [20:54:29]protocol is kg_v1.0 [20:54:29]action value=get_value [20:54:29]process_action get_value [20:54:29]cmd_get_value [20:54:29]process_action get_value done [20:54:29]requested_data is exist [20:54:29]produce_requested_data [20:54:29]requested_item fm.sale.total is exist - process it [20:54:29]SAM_PROTO_GetFMData [20:54:29]wFMCommunicate request_size=4 [20:54:29]MH_SAM_APDU [20:54:29]CAPDU: 80 13 03 00 [20:54:29]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:30]Connected sock=9 [20:54:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 A1 D1 05 01 C0 D7 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 C9 00 00 00 F4 03 04 00 9E F6 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 35 BA 02 00 35 04 06 00 31 56 6B F5 06 24 71 25 83 B5 22 3C EC 35 [20:54:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:54:30]Read from MH i2c: E2 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 FD 00 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 89 B6 02 00 69 04 A4 00 6F 04 04 00 F2 B4 02 00 B1 04 05 00 5B 4F 72 2B 05 70 04 05 00 5F 80 CF 14 04 72 04 05 00 FC CE A2 16 01 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FC 6C 93 8C 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 67 C1 B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 46 [20:54:30]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 89 B6 02 00 69 04 A4 00 6F 04 04 00 F2 B4 02 00 B1 04 05 00 5B 4F 72 2B 05 70 04 05 00 5F 80 CF 14 04 72 04 05 00 FC CE A2 16 01 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 FC 6C 93 8C 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 67 C1 B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [20:54:30]wFMCommunicate OK [20:54:30]wFMCommunicate request_size=4 [20:54:30]MH_SAM_APDU [20:54:30]CAPDU: 80 17 00 00 [20:54:30]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:54:30]Read from MH i2c: E2 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 FD 00 [20:54:30]MH_I2C_Read... [20:54:30]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [20:54:30]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:54:30]wFMCommunicate OK [20:54:30]wFMCommunicate request_size=4 [20:54:30]MH_SAM_APDU [20:54:30]CAPDU: 80 17 00 00 [20:54:30]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [20:54:30]Write i2c OK [20:54:30]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 FD 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [20:54:31]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:54:31]wFMCommunicate OK [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 17 00 00 [20:54:31]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 48 B8 47 00 69 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 31 37 37 38 10 04 04 00 35 BA 02 00 F4 03 04 00 AC A2 C8 66 B6 04 01 00 00 C0 0D 60 41 2B 07 C1 EB [20:54:31]CommunicateWithHost err = 0 [20:54:31]CheckOFDResponse [20:54:31]1017 (14) - 77093643461234 [20:54:31]1041 (16) - 0000000000871778 [20:54:31]1040 (4) - 178741 [20:54:31]1012 (4) - 23.08.2024 14:54 [20:54:31]1206 (1) - 0 [20:54:31]OFD Sender: Remove packet 178741 [20:54:31]ProducePacketName [20:54:31]name=ofd_packets/00178741 [20:54:31]NVStorageDeleteData [20:54:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 FD 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [20:54:31]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:54:31]wFMCommunicate OK [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 17 00 00 [20:54:31]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [20:54:31]Read from MH i2c: E2 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 E3 00 [20:54:31]MH_I2C_Read... [20:54:31]Read from MH i2c: E2 E3 00 17 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 76 [20:54:31]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:54:31]wFMCommunicate OK [20:54:31]SAM_PROTO_GetFMData done [20:54:31]requested_item fm.sale_refund.total is exist - process it [20:54:31]requested_item fm.buy.total is exist - process it [20:54:31]requested_item shift.sale.total is exist - process it [20:54:31]SAM_PROTO_GetShiftData [20:54:31]wFMCommunicate request_size=4 [20:54:31]MH_SAM_APDU [20:54:31]CAPDU: 80 13 02 00 [20:54:31]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [20:54:31]OFD Sender: No OFD packet to send [20:54:31]Write i2c OK [20:54:31]MH_I2C_Read... [20:54:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:54:32]Read from MH i2c: E2 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 FD 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9D 00 6F 04 04 00 C8 00 00 00 B1 04 04 00 CA 92 7D 01 70 04 03 00 7C 48 E5 72 04 03 00 4E 4A 98 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 60 87 28 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 92 60 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E1 [20:54:32]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 C9 00 00 00 69 04 9D 00 6F 04 04 00 C8 00 00 00 B1 04 04 00 CA 92 7D 01 70 04 03 00 7C 48 E5 72 04 03 00 4E 4A 98 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 60 87 28 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 92 60 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [20:54:32]wFMCommunicate OK [20:54:32]wFMCommunicate request_size=4 [20:54:32]MH_SAM_APDU [20:54:32]CAPDU: 80 17 00 00 [20:54:32]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:54:32]Read from MH i2c: E2 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 FD 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 BB [20:54:32]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [20:54:32]wFMCommunicate OK [20:54:32]wFMCommunicate request_size=4 [20:54:32]MH_SAM_APDU [20:54:32]CAPDU: 80 17 00 00 [20:54:32]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:54:32]Read from MH i2c: E2 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 FD 00 [20:54:32]MH_I2C_Read... [20:54:32]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [20:54:32]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 [20:54:32]wFMCommunicate OK [20:54:32]wFMCommunicate request_size=4 [20:54:32]MH_SAM_APDU [20:54:32]CAPDU: 80 17 00 00 [20:54:32]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [20:54:32]Write i2c OK [20:54:32]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 FD 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 FD 00 1B 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 03 90 00 13 [20:54:33]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 [20:54:33]wFMCommunicate OK [20:54:33]wFMCommunicate request_size=4 [20:54:33]MH_SAM_APDU [20:54:33]CAPDU: 80 17 00 00 [20:54:33]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [20:54:33]Read from MH i2c: E2 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 D7 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: E2 D7 00 1C 00 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 7F [20:54:33]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 [20:54:33]wFMCommunicate OK [20:54:33]SAM_PROTO_GetShiftData done [20:54:33]requested_item shift.sale.total_cash is exist - process it [20:54:33]requested_item shift.sale_refund.total is exist - process it [20:54:33]requested_item shift.sale_refund.total_cash is exist - process it [20:54:33]requested_item shift.buy.total is exist - process it [20:54:33]requested_item shift.buy.total_cash is exist - process it [20:54:33]produce_requested_data done [20:54:33]produce_requested_data return {"fm.sale.total":222037481.87,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":250067.94,"shift.sale.total_cash":150263.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [20:54:33]process_action_free get_value [20:54:33]json_value_free [20:54:33]json_value_free done [20:54:33]process_json_proto returns [20:54:33]Send response to host [20:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222037481.87,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":250067.94,"shift.sale.total_cash":150263.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [20:54:33]free response buf [20:54:33]execute_script done [20:54:33]execute_script returns [20:54:33]free content buf [20:54:33]Sock 11.Close socket [20:54:33]Sock 11.Thread stoped [20:54:33]accept exits with 8 [20:54:33]New connection [20:54:33]New thread 3067366756 created [20:54:33]Thread 3067223396 joined [20:54:33]Waiting for new connection... [20:54:33] Sock 8.Parse request [20:54:33]Sock 8.Check first char [20:54:33]Sock 8.First char is OK [20:54:33]request: POST /json_proto HTTP/1.0 [20:54:33]Method: POST [20:54:33]URL: /json_proto [20:54:33]Method is POST - this is cgi request [20:54:33]url: /json_proto [20:54:33]query_string will be loaded in cgi processing [20:54:33]execute_cgi json_proto POST (null) [20:54:33]execute_cgi path=json_proto method=POST [20:54:33]POST find Content-Length [20:54:33]Host: 172.17.44.131:8080 [20:54:33]Content-Length: 144 [20:54:33]Content-Type: application/json [20:54:33] [20:54:33]POST finish read [20:54:33]Found Content-Length = 144 [20:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:54:33]execute_script... [20:54:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [20:54:33]POST & json_proto [20:54:33]process_json_proto [20:54:33]json parsed OK: [20:54:33]protocol is kg_v1.0 [20:54:33]action value=print_doc [20:54:33]process_action print_doc [20:54:33]ExternCall_PrintAddStr [20:54:33]wPrintStart [20:54:33]Write to MH i2c: 01 00 00 1D 00 1D [20:54:33]Write i2c OK [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 07 00 [20:54:33]MH_I2C_Read... [20:54:33]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [20:54:33]RasterBufferAndPrint [20:54:33]line Счет N : (1)294704 [20:54:33]line ИНН: 02508201610067 [20:54:33]line Контрольно-Кассовый Чек [20:54:33]line ПРОДАЖА [20:54:33]line ТРК (МРК, ГНК) : 41 [20:54:33]line Товар: 2710124130 [20:54:33]line SU-92-К-5 [20:54:33]line 14.540 * 68.80 [20:54:33]line = 1000.35 [20:54:33]line НДС 12% НСП 1% [20:54:33]line > о реализуемом товаре [20:54:33]line ОКРУГЛЕНИЕ: -0.35 [20:54:33]line ИТОГО: 1000.00 [20:54:33]line Внесено: 1000.00 [20:54:33]line СДАЧА: 0.00 [20:54:33]line НСП 1% : 8.85 [20:54:33]line НДС 12% : 106.23 [20:54:33]line Наличными: 1000.00 [20:54:33]line Безнал.: 0.00 [20:54:33]line Место: АЗС № 130 "Партнер Нефть" [20:54:33]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:54:33]line СНО: Общий режим [20:54:33]line Чек 201 23.08.2024 20:52 [20:54:33]line Смена: 470 ФФД: 1.0 [20:54:33]line ЗНМ: 0300000071 [20:54:33]line РНМ: 0000000000092561 [20:54:33]line Версия ККМ: 001 [20:54:33]line ФМ: 0000000000871778 [20:54:33]line ФД: 178741 [20:54:33]line ФПД: 54247248168484 [20:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205246&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178741&fm=54247248168484&tin=02508201610067®Number=0000000000092561&sum=100000 [20:54:33]written 0, free lines is 4095 [20:54:34]Write to MH i2c: 01 00 00 48 00 48 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E2 0C 3D [20:54:34]RasterBufferAndPrint [20:54:34]line [20:54:34]line [20:54:34]line [20:54:34]line [20:54:34]line [20:54:34]written 0, free lines is 3316 [20:54:34]MH_Cut [20:54:34]Write to MH i2c: D1 01 00 4F 00 01 21 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: D1 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: D1 01 00 [20:54:34]MH_I2C_Read... [20:54:34]Read from MH i2c: D1 01 00 4F 00 00 20 [20:54:34]Write to MH i2c: 01 00 00 50 00 50 [20:54:34]Write i2c OK [20:54:34]MH_I2C_Read... [20:54:35]*** Cut start [20:54:35]*** Partial cut [20:54:35]*** CUTSNS_PIN = 1 [20:54:35]*** CUTSNS_PIN = 0 [20:54:35]*** Brake cut motor [20:54:35]Read from MH i2c: 01 [20:54:35]MH_I2C_Read... [20:54:35]*** Stop cut motor [20:54:35]*** Cut end [20:54:35]Read from MH i2c: 01 07 00 [20:54:35]MH_I2C_Read... [20:54:35]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [20:54:35]process_action print_doc done [20:54:35]requested_data is exist [20:54:35]produce_requested_data [20:54:35]produce_requested_data return (null) [20:54:35]process_action_free print_doc [20:54:35]json_value_free [20:54:35]json_value_free done [20:54:35]process_json_proto returns [20:54:35]Send response to host [20:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [20:54:35]free response buf [20:54:35]execute_script done [20:54:35]execute_script returns [20:54:35]free content buf [20:54:35]Sock 8.Close socket [20:54:35]Sock 8.Thread stoped [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:10]accept exits with 10 [20:55:10]New connection [20:55:10]New thread 3067223396 created [20:55:10]Thread 3067366756 joined [20:55:10]Waiting for new connection... [20:55:10] Sock 10.Parse request [20:55:10]Sock 10.Check first char [20:55:10]Sock 10.First char is OK [20:55:10]request: POST /json_proto HTTP/1.0 [20:55:10]Method: POST [20:55:10]URL: /json_proto [20:55:10]Method is POST - this is cgi request [20:55:10]url: /json_proto [20:55:10]query_string will be loaded in cgi processing [20:55:10]execute_cgi json_proto POST (null) [20:55:10]execute_cgi path=json_proto method=POST [20:55:10]POST find Content-Length [20:55:10]Host: 172.17.44.131:8080 [20:55:10]Content-Length: 677 [20:55:10]Content-Type: application/json [20:55:10] [20:55:10]POST finish read [20:55:10]Found Content-Length = 677 [20:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294714", "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" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [20:55:10]execute_script... [20:55: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)294714", "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" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [20:55:10]POST & json_proto [20:55:10]process_json_proto [20:55:10]json parsed OK: [20:55:10]protocol is kg_v1.0 [20:55:10]action value=close_receipt [20:55:10]process_action close_receipt [20:55:10]cmd_close_receipt [20:55:10]MH_GetDate [20:55:10]Write to MH i2c: F0 00 00 51 00 40 [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: F0 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: F0 09 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: F0 09 00 51 00 00 2F F7 C8 66 4F 53 BE 66 63 [20:55:10]GetLastDocTimeStamp 1724446366 [20:55:10]current date 1724446511 [20:55:10]FM_GetShiftState [20:55:10]SAM_PROTO_GetShiftState [20:55:10]wFMCommunicate request_size=4 [20:55:10]MH_SAM_APDU [20:55:10]CAPDU: 80 13 01 00 [20:55:10]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [20:55:10]Write i2c OK [20:55:10]MH_I2C_Read... [20:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:10]Read from MH i2c: E2 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 0E 00 [20:55:10]MH_I2C_Read... [20:55:10]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 A6 [20:55:10]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:55:10]wFMCommunicate OK [20:55:10]SAM_PROTO_GetShiftState done [20:55:10]FM_GetShiftState done [20:55:10]opened in 1724371660 [20:55:10]opened+sec_in_day 1724458060 [20:55:10]quantity*price = 60003 [20:55:10]sum+1 = 60004 [20:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 202 23.08.2024 20:55 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178742 ФПД: 173034695640527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205511&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178742&fm=173034695640527&tin=02508201610067®Number=0000000000092561&sum=60000 [20:55:11]StoreToDocumentArchive [20:55:11]shift 470 fd 178742 [20:55:11]save to /storage/0470/doc_00178742 [20:55:11]save last doc name /storage/0470/doc_00178742 to /storage/kkm_last_doc_name [20:55:11]save OK [20:55:11]Clear old archive folders... [20:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:55:11]tlvbuf is 00238160 [20:55:11]SAM_PROTO_ClearQueue [20:55:11]wFMCommunicate request_size=4 [20:55:11]MH_SAM_APDU [20:55:11]CAPDU: 80 09 00 00 [20:55:11]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:11]Read from MH i2c: E2 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 03 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [20:55:11]RAPDU: 90 00 [20:55:11]wFMCommunicate OK [20:55:11]SAM_PROTO_ClearQueue done [20:55:11]KKMCreateOFDPacket [20:55:11]OFDProtocolAddRootSTLVToBuf [20:55:11]FM_MakeSignedData [20:55:11]FM_MakeSignedData [20:55:11]SAM_PROTO_SignData [20:55:11]wFMCommunicate request_size=4 [20:55:11]MH_SAM_APDU [20:55:11]CAPDU: 80 0D 01 02 [20:55:11]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:11]Read from MH i2c: E2 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 03 00 [20:55:11]MH_I2C_Read... [20:55:11]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [20:55:11]RAPDU: 90 00 [20:55:11]wFMCommunicate OK [20:55:11]wFMCommunicate request_size=255 [20:55:11]MH_SAM_APDU [20:55: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 CA 00 00 00 F4 03 04 00 2F F7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 36 BA 02 00 35 04 06 00 9D [20:55:11]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 CA 00 00 00 F4 03 04 00 2F F7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 36 BA 02 00 35 04 06 00 9D 00 00 A7 [20:55:11]Write i2c OK [20:55:11]MH_I2C_Read... [20:55:11]OFD Sender: No OFD packet to send [20:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:12]Read from MH i2c: E2 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 03 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [20:55:12]RAPDU: 90 00 [20:55:12]wFMCommunicate OK [20:55:12]wFMCommunicate request_size=10 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 0D 02 02 05 5F C7 91 45 CF [20:55:12]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 5F C7 91 45 CF 00 00 B1 [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:12]Read from MH i2c: E2 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 03 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [20:55:12]RAPDU: 90 00 [20:55:12]wFMCommunicate OK [20:55:12]wFMCommunicate request_size=4 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 0D 03 02 [20:55:12]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:12]Read from MH i2c: E2 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 0B 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 0B 00 63 00 00 0E 0B 66 4E 92 5A E4 2B 90 00 A7 [20:55:12]RAPDU: 0E 0B 66 4E 92 5A E4 2B 90 00 [20:55:12]wFMCommunicate OK [20:55:12]SAM_PROTO_SignData done [20:55:12]FM_MakeSignedData done [20:55:12]CreateOFDProtocolMessage [20:55:12]wFMCommunicate request_size=4 [20:55:12]MH_SAM_APDU [20:55:12]CAPDU: 80 11 00 00 [20:55:12]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:12]Read from MH i2c: E2 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 17 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [20:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:55:12]wFMCommunicate OK [20:55:12]CreateOFDProtocolMessage done [20:55:12]OFDSenderStorePacket 178742 [20:55:12]StoreOFDPacket docnum=178742 [20:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9F 6A 07 01 BA DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 CA 00 00 00 F4 03 04 00 2F F7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 36 BA 02 00 35 04 06 00 9D 5F C7 91 45 CF 0E 0B 66 4E 92 5A E4 2B [20:55:12]CheckFolder [20:55:12]dirname=/storage/ofd_packets [20:55:12]CheckFolder done [20:55:12]ProducePacketName [20:55:12]name=ofd_packets/00178742 [20:55:12]NVStorageSaveData ofd_packets/00178742 [20:55:12]File name is /storage/ofd_packets/00178742 [20:55:12]Write 301 bytes [20:55:12]NVStorageSaveData done [20:55:12]OFDSenderStorePacket done [20:55:12]KKMCreateOFDPacket done [20:55:12]NVStorageSaveData kkm_last_timestamp [20:55:12]File name is /storage/kkm_last_timestamp [20:55:12]Write 4 bytes [20:55:12]NVStorageSaveData done [20:55:12]ExternCall_PrintAddStr [20:55:12]wPrintStart [20:55:12]Write to MH i2c: 01 00 00 65 00 65 [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 07 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [20:55:12]RasterBufferAndPrint [20:55:12]line Счет N : (1)294714 [20:55:12]line ИНН: 02508201610067 [20:55:12]line Контрольно-Кассовый Чек [20:55:12]line ПРОДАЖА [20:55:12]line ТРК (МРК, ГНК) : 52 [20:55:12]line Товар: 2710124130 [20:55:12]line Аи-92-К-5 [20:55:12]line 8.850 * 67.80 [20:55:12]line = 600.03 [20:55:12]line НДС 12% НСП 1% [20:55:12]line > о реализуемом товаре [20:55:12]line ОКРУГЛЕНИЕ: -0.03 [20:55:12]line ИТОГО: 600.00 [20:55:12]line Внесено: 600.00 [20:55:12]line СДАЧА: 0.00 [20:55:12]line НСП 1% : 5.31 [20:55:12]line НДС 12% : 63.72 [20:55:12]line Наличными: 600.00 [20:55:12]line Безнал.: 0.00 [20:55:12]line Место: АЗС № 130 "Партнер Нефть" [20:55:12]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:55:12]line СНО: Общий режим [20:55:12]line Чек 202 23.08.2024 20:55 [20:55:12]line Смена: 470 ФФД: 1.0 [20:55:12]line ЗНМ: 0300000071 [20:55:12]line РНМ: 0000000000092561 [20:55:12]line Версия ККМ: 001 [20:55:12]line ФМ: 0000000000871778 [20:55:12]line ФД: 178742 [20:55:12]line ФПД: 173034695640527 [20:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205511&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178742&fm=173034695640527&tin=02508201610067®Number=0000000000092561&sum=60000 [20:55:12]written 0, free lines is 4095 [20:55:12]OFD Sender: Processing packet 178742 [packets to send 500, broken 499] [20:55:12]ProducePacketName [20:55:12]name=ofd_packets/00178742 [20:55:12]OFD Sender: To server: pG, [20:55:12]CommunicateWithHost lk.salyk.kg:30040 [20:55:12]ConnectInit lk.salyk.kg [20:55:12]Write to MH i2c: 01 00 00 90 00 90 [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 07 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 D6 0C 79 [20:55:12]RasterBufferAndPrint [20:55:12]line [20:55:12]line [20:55:12]line [20:55:12]line [20:55:12]line [20:55:12]written 0, free lines is 3297 [20:55:12]MH_Cut [20:55:12]Write to MH i2c: D1 01 00 97 00 01 69 [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: D1 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: D1 01 00 [20:55:12]MH_I2C_Read... [20:55:12]Read from MH i2c: D1 01 00 97 00 00 68 [20:55:12]Write to MH i2c: 01 00 00 98 00 98 [20:55:12]Write i2c OK [20:55:12]MH_I2C_Read... [20:55:12]Connected sock=9 [20:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9F 6A 07 01 BA DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 CA 00 00 00 F4 03 04 00 2F F7 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 36 BA 02 00 35 04 06 00 9D 5F C7 91 45 CF 0E 0B 66 4E 92 5A E4 2B [20:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F2 94 47 00 B7 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 31 37 37 38 10 04 04 00 36 BA 02 00 F4 03 04 00 D6 A2 C8 66 B6 04 01 00 00 5E 63 29 D3 2B B1 07 FB [20:55:13]CommunicateWithHost err = 0 [20:55:13]CheckOFDResponse [20:55:13]1017 (14) - 77093643461234 [20:55:13]1041 (16) - 0000000000871778 [20:55:13]1040 (4) - 178742 [20:55:13]1012 (4) - 23.08.2024 14:55 [20:55:13]1206 (1) - 0 [20:55:13]OFD Sender: Remove packet 178742 [20:55:13]ProducePacketName [20:55:13]name=ofd_packets/00178742 [20:55:13]NVStorageDeleteData [20:55:13]*** Cut start [20:55:13]*** Partial cut [20:55:13]*** CUTSNS_PIN = 1 [20:55:13]*** CUTSNS_PIN = 0 [20:55:13]*** Brake cut motor [20:55:13]OFD Sender: No OFD packet to send [20:55:14]Read from MH i2c: 01 [20:55:14]MH_I2C_Read... [20:55:14]*** Stop cut motor [20:55:14]*** Cut end [20:55:14]Read from MH i2c: 01 07 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [20:55:14]process_action close_receipt done [20:55:14]requested_data is exist [20:55:14]produce_requested_data [20:55:14]requested_item fm.sn is exist - process it [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 11 00 00 [20:55:14]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 17 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6C [20:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:55:14]wFMCommunicate OK [20:55:14]requested_item fd.num is exist - process it [20:55:14]SAM_PROTO_GetFieldsCounters [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 13 00 00 [20:55:14]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 62 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 36 BA 02 00 0E 04 04 00 D6 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 62 [20:55: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 36 BA 02 00 0E 04 04 00 D6 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:55:14]wFMCommunicate OK [20:55:14]SAM_PROTO_GetFieldsCounters done [20:55:14]requested_item shift.num is exist - process it [20:55:14]requested_item shift.opened is exist - process it [20:55:14]req_shift_opened [20:55:14]FM_GetShiftState [20:55:14]SAM_PROTO_GetShiftState [20:55:14]wFMCommunicate request_size=4 [20:55:14]MH_SAM_APDU [20:55:14]CAPDU: 80 13 01 00 [20:55:14]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [20:55:14]Write i2c OK [20:55:14]MH_I2C_Read... [20:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:14]Read from MH i2c: E2 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 0E 00 [20:55:14]MH_I2C_Read... [20:55:14]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 EF [20:55:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:55:14]wFMCommunicate OK [20:55:14]SAM_PROTO_GetShiftState done [20:55:14]FM_GetShiftState done [20:55:14]req_shift_opened done [20:55:14]requested_item shift.open_date is exist - process it [20:55:14]req_shift_open_date [20:55:14]req_shift_open_date done [20:55:14]produce_requested_data done [20:55:14]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178742,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:55:14]process_action_free close_receipt [20:55:14]json_value_free [20:55:14]json_value_free done [20:55:14]process_json_proto returns [20:55:14]Send response to host [20:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178742,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:55:14]free response buf [20:55:14]execute_script done [20:55:14]execute_script returns [20:55:14]free content buf [20:55:14]Sock 10.Close socket [20:55:14]Sock 10.Thread stoped [20:55:18]OFD Sender: No OFD packet to send [20:55:21]recv_with_timeout no data received [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:12]recv_with_timeout no data received [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:22]recv_with_timeout no data received [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]recv_with_timeout no data received [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:40]recv_with_timeout no data received [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:02]accept exits with 8 [20:59:02]New connection [20:59:02]New thread 3067366756 created [20:59:02]Thread 3067223396 joined [20:59:02]Waiting for new connection... [20:59:02] Sock 8.Parse request [20:59:02]Sock 8.Check first char [20:59:02]Sock 8.First char is OK [20:59:02]request: POST /json_proto HTTP/1.0 [20:59:02]Method: POST [20:59:02]URL: /json_proto [20:59:02]Method is POST - this is cgi request [20:59:02]url: /json_proto [20:59:02]query_string will be loaded in cgi processing [20:59:02]execute_cgi json_proto POST (null) [20:59:02]execute_cgi path=json_proto method=POST [20:59:02]POST find Content-Length [20:59:02]Host: 172.17.44.131:8080 [20:59:02]Content-Length: 685 [20:59:02]Content-Type: application/json [20:59:02] [20:59:02]POST finish read [20:59:02]Found Content-Length = 685 [20:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 32.090, "sum" : 1200.17, "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" ] } } [20:59:02]execute_script... [20:59: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)294716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 32.090, "sum" : 1200.17, "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" ] } } [20:59:02]POST & json_proto [20:59:02]process_json_proto [20:59:02]json parsed OK: [20:59:02]protocol is kg_v1.0 [20:59:02]action value=close_receipt [20:59:02]process_action close_receipt [20:59:02]cmd_close_receipt [20:59:02]MH_GetDate [20:59:02]Write to MH i2c: F0 00 00 9C 00 8B [20:59:02]Write i2c OK [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: F0 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: F0 09 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: F0 09 00 9C 00 00 16 F8 C8 66 4F 53 BE 66 96 [20:59:02]GetLastDocTimeStamp 1724446511 [20:59:02]current date 1724446742 [20:59:02]FM_GetShiftState [20:59:02]SAM_PROTO_GetShiftState [20:59:02]wFMCommunicate request_size=4 [20:59:02]MH_SAM_APDU [20:59:02]CAPDU: 80 13 01 00 [20:59:02]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [20:59:02]Write i2c OK [20:59:02]MH_I2C_Read... [20:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:02]Read from MH i2c: E2 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 0E 00 [20:59:02]MH_I2C_Read... [20:59:02]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F1 [20:59:02]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:59:02]wFMCommunicate OK [20:59:02]SAM_PROTO_GetShiftState done [20:59:02]FM_GetShiftState done [20:59:02]opened in 1724371660 [20:59:02]opened+sec_in_day 1724458060 [20:59:02]quantity*price = 120016 [20:59:02]sum+1 = 120018 [20:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 203 23.08.2024 20:59 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178743 ФПД: 18439745452883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205902&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178743&fm=18439745452883&tin=02508201610067®Number=0000000000092561&sum=120000 [20:59:03]StoreToDocumentArchive [20:59:03]shift 470 fd 178743 [20:59:03]save to /storage/0470/doc_00178743 [20:59:03]save last doc name /storage/0470/doc_00178743 to /storage/kkm_last_doc_name [20:59:03]save OK [20:59:03]Clear old archive folders... [20:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:59:03]tlvbuf is 001E5D80 [20:59:03]SAM_PROTO_ClearQueue [20:59:03]wFMCommunicate request_size=4 [20:59:03]MH_SAM_APDU [20:59:03]CAPDU: 80 09 00 00 [20:59:03]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:03]Read from MH i2c: E2 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [20:59:03]RAPDU: 90 00 [20:59:03]wFMCommunicate OK [20:59:03]SAM_PROTO_ClearQueue done [20:59:03]KKMCreateOFDPacket [20:59:03]OFDProtocolAddRootSTLVToBuf [20:59:03]FM_MakeSignedData [20:59:03]FM_MakeSignedData [20:59:03]SAM_PROTO_SignData [20:59:03]wFMCommunicate request_size=4 [20:59:03]MH_SAM_APDU [20:59:03]CAPDU: 80 0D 01 02 [20:59:03]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:03]Read from MH i2c: E2 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [20:59:03]RAPDU: 90 00 [20:59:03]wFMCommunicate OK [20:59:03]wFMCommunicate request_size=255 [20:59:03]MH_SAM_APDU [20:59:03]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 16 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 37 BA 02 00 35 04 06 00 10 C5 [20:59:03]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 16 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 37 BA 02 00 35 04 06 00 10 C5 00 00 FD [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:03]Read from MH i2c: E2 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [20:59:03]RAPDU: 90 00 [20:59:03]wFMCommunicate OK [20:59:03]wFMCommunicate request_size=9 [20:59:03]MH_SAM_APDU [20:59:03]CAPDU: 80 0D 02 02 04 56 7A 3B 53 [20:59:03]Write to MH i2c: E2 0C 00 AD 00 80 0D 02 02 04 00 56 7A 3B 53 00 00 8D [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:03]Read from MH i2c: E2 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [20:59:03]RAPDU: 90 00 [20:59:03]wFMCommunicate OK [20:59:03]wFMCommunicate request_size=4 [20:59:03]MH_SAM_APDU [20:59:03]CAPDU: 80 0D 03 02 [20:59:03]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:03]Read from MH i2c: E2 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 0B 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 0B 00 AE 00 00 38 F9 64 CB DC BA AB 7D 90 00 48 [20:59:03]RAPDU: 38 F9 64 CB DC BA AB 7D 90 00 [20:59:03]wFMCommunicate OK [20:59:03]SAM_PROTO_SignData done [20:59:03]FM_MakeSignedData done [20:59:03]CreateOFDProtocolMessage [20:59:03]wFMCommunicate request_size=4 [20:59:03]MH_SAM_APDU [20:59:03]CAPDU: 80 11 00 00 [20:59:03]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:03]Read from MH i2c: E2 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 17 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [20:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:59:03]wFMCommunicate OK [20:59:03]CreateOFDProtocolMessage done [20:59:03]OFDSenderStorePacket 178743 [20:59:03]StoreOFDPacket docnum=178743 [20:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 37 EE 06 01 CF 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 16 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 37 BA 02 00 35 04 06 00 10 C5 56 7A 3B 53 38 F9 64 CB DC BA AB 7D [20:59:03]CheckFolder [20:59:03]dirname=/storage/ofd_packets [20:59:03]CheckFolder done [20:59:03]ProducePacketName [20:59:03]name=ofd_packets/00178743 [20:59:03]NVStorageSaveData ofd_packets/00178743 [20:59:03]File name is /storage/ofd_packets/00178743 [20:59:03]Write 300 bytes [20:59:03]NVStorageSaveData done [20:59:03]OFDSenderStorePacket done [20:59:03]KKMCreateOFDPacket done [20:59:03]NVStorageSaveData kkm_last_timestamp [20:59:03]File name is /storage/kkm_last_timestamp [20:59:03]Write 4 bytes [20:59:03]NVStorageSaveData done [20:59:03]ExternCall_PrintAddStr [20:59:03]wPrintStart [20:59:03]Write to MH i2c: 01 00 00 B0 00 B0 [20:59:03]Write i2c OK [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 07 00 [20:59:03]MH_I2C_Read... [20:59:03]Read from MH i2c: 01 07 00 B0 00 00 00 00 00 00 FF 0F C5 [20:59:03]RasterBufferAndPrint [20:59:03]line Счет N : (1)294716 [20:59:03]line ИНН: 02508201610067 [20:59:03]line Контрольно-Кассовый Чек [20:59:03]line ПРОДАЖА [20:59:03]line ТРК (МРК, ГНК) : 81 [20:59:03]line Товар: 2711129700 [20:59:03]line ГАЗ-К-5 [20:59:03]line 32.090 * 37.40 [20:59:03]line = 1200.17 [20:59:03]line НДС 12% НСП 1% [20:59:03]line > о реализуемом товаре [20:59:03]line ОКРУГЛЕНИЕ: -0.17 [20:59:03]line ИТОГО: 1200.00 [20:59:03]line Внесено: 1200.00 [20:59:03]line СДАЧА: 0.00 [20:59:03]line НСП 1% : 10.62 [20:59:03]line НДС 12% : 127.45 [20:59:03]line Наличными: 1200.00 [20:59:03]line Безнал.: 0.00 [20:59:03]line Место: АЗС № 130 "Партнер Нефть" [20:59:03]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [20:59:03]line СНО: Общий режим [20:59:03]line Чек 203 23.08.2024 20:59 [20:59:03]line Смена: 470 ФФД: 1.0 [20:59:03]line ЗНМ: 0300000071 [20:59:03]line РНМ: 0000000000092561 [20:59:03]line Версия ККМ: 001 [20:59:03]line ФМ: 0000000000871778 [20:59:03]line ФД: 178743 [20:59:03]line ФПД: 18439745452883 [20:59:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T205902&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178743&fm=18439745452883&tin=02508201610067®Number=0000000000092561&sum=120000 [20:59:03]written 0, free lines is 4095 [20:59:03]OFD Sender: Processing packet 178743 [packets to send 500, broken 499] [20:59:03]ProducePacketName [20:59:03]name=ofd_packets/00178743 [20:59:03]OFD Sender: To server: pG, [20:59:03]CommunicateWithHost lk.salyk.kg:30040 [20:59:03]ConnectInit lk.salyk.kg [20:59:04]Write to MH i2c: 01 00 00 DB 00 DB [20:59:04]Write i2c OK [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: 01 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: 01 07 00 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: 01 07 00 DB 00 00 00 00 00 00 D3 0C C1 [20:59:04]RasterBufferAndPrint [20:59:04]line [20:59:04]line [20:59:04]line [20:59:04]line [20:59:04]line [20:59:04]written 0, free lines is 3290 [20:59:04]MH_Cut [20:59:04]Write to MH i2c: D1 01 00 E2 00 01 B4 [20:59:04]Write i2c OK [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: D1 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: D1 01 00 [20:59:04]MH_I2C_Read... [20:59:04]Read from MH i2c: D1 01 00 E2 00 00 B3 [20:59:04]Write to MH i2c: 01 00 00 E3 00 E3 [20:59:04]Write i2c OK [20:59:04]MH_I2C_Read... [20:59:05]*** Cut start [20:59:05]*** Partial cut [20:59:05]*** CUTSNS_PIN = 1 [20:59:05]*** CUTSNS_PIN = 0 [20:59:05]*** Brake cut motor [20:59:05]Read from MH i2c: 01 [20:59:05]MH_I2C_Read... [20:59:05]*** Stop cut motor [20:59:05]*** Cut end [20:59:05]Read from MH i2c: 01 07 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 FF 0F F8 [20:59:05]process_action close_receipt done [20:59:05]requested_data is exist [20:59:05]produce_requested_data [20:59:05]requested_item fm.sn is exist - process it [20:59:05]wFMCommunicate request_size=4 [20:59:05]MH_SAM_APDU [20:59:05]CAPDU: 80 11 00 00 [20:59:05]Write to MH i2c: E2 08 00 E4 00 80 11 00 00 00 00 00 00 5E [20:59:05]Write i2c OK [20:59:05]MH_I2C_Read... [20:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:05]Read from MH i2c: E2 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 17 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 17 00 E4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B7 [20:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [20:59:05]wFMCommunicate OK [20:59:05]requested_item fd.num is exist - process it [20:59:05]SAM_PROTO_GetFieldsCounters [20:59:05]wFMCommunicate request_size=4 [20:59:05]MH_SAM_APDU [20:59:05]CAPDU: 80 13 00 00 [20:59:05]Write to MH i2c: E2 08 00 E5 00 80 13 00 00 00 00 00 00 61 [20:59:05]Write i2c OK [20:59:05]MH_I2C_Read... [20:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:05]Read from MH i2c: E2 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 62 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 62 00 E5 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 37 BA 02 00 0E 04 04 00 D6 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 B1 [20:59: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 37 BA 02 00 0E 04 04 00 D6 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:59:05]wFMCommunicate OK [20:59:05]SAM_PROTO_GetFieldsCounters done [20:59:05]requested_item shift.num is exist - process it [20:59:05]requested_item shift.opened is exist - process it [20:59:05]req_shift_opened [20:59:05]FM_GetShiftState [20:59:05]SAM_PROTO_GetShiftState [20:59:05]wFMCommunicate request_size=4 [20:59:05]MH_SAM_APDU [20:59:05]CAPDU: 80 13 01 00 [20:59:05]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [20:59:05]Write i2c OK [20:59:05]MH_I2C_Read... [20:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:05]Read from MH i2c: E2 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 0E 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3A [20:59:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [20:59:05]wFMCommunicate OK [20:59:05]SAM_PROTO_GetShiftState done [20:59:05]FM_GetShiftState done [20:59:05]req_shift_opened done [20:59:05]requested_item shift.open_date is exist - process it [20:59:05]req_shift_open_date [20:59:05]req_shift_open_date done [20:59:05]produce_requested_data done [20:59:05]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178743,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [20:59:05]process_action_free close_receipt [20:59:05]json_value_free [20:59:05]json_value_free done [20:59:05]process_json_proto returns [20:59:05]Send response to host [20:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178743,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [20:59:05]free response buf [20:59:05]execute_script done [20:59:05]execute_script returns [20:59:05]free content buf [20:59:05]Sock 8.Close socket [20:59:05]Sock 8.Thread stoped [20:59:08]Connected sock=10 [20:59:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 37 EE 06 01 CF 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5A 7D 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 D1 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 16 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 37 BA 02 00 35 04 06 00 10 C5 56 7A 3B 53 38 F9 64 CB DC BA AB 7D [20:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 64 C1 47 00 AA 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 31 37 37 38 10 04 04 00 37 BA 02 00 F4 03 04 00 C5 A3 C8 66 B6 04 01 00 00 C1 75 A5 C2 4F 94 96 77 [20:59:12]CommunicateWithHost err = 0 [20:59:12]CheckOFDResponse [20:59:12]1017 (14) - 77093643461234 [20:59:12]1041 (16) - 0000000000871778 [20:59:12]1040 (4) - 178743 [20:59:12]1012 (4) - 23.08.2024 14:59 [20:59:12]1206 (1) - 0 [20:59:12]OFD Sender: Remove packet 178743 [20:59:12]ProducePacketName [20:59:12]name=ofd_packets/00178743 [20:59:12]NVStorageDeleteData [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [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:52]recv_with_timeout no data received [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:34]recv_with_timeout no data received [21:02:38]OFD Sender: No OFD packet to send [21:02:43]accept exits with 9 [21:02:43]New connection [21:02:43]New thread 3067223396 created [21:02:43]Thread 3067366756 joined [21:02:43]Waiting for new connection... [21:02:43]OFD Sender: No OFD packet to send [21:02:43] Sock 9.Parse request [21:02:43]Sock 9.Check first char [21:02:43]Sock 9.First char is OK [21:02:43]request: POST /json_proto HTTP/1.0 [21:02:43]Method: POST [21:02:43]URL: /json_proto [21:02:43]Method is POST - this is cgi request [21:02:43]url: /json_proto [21:02:43]query_string will be loaded in cgi processing [21:02:43]execute_cgi json_proto POST (null) [21:02:43]execute_cgi path=json_proto method=POST [21:02:43]POST find Content-Length [21:02:43]Host: 172.17.44.131:8080 [21:02:43]Content-Length: 803 [21:02:43]Content-Type: application/json [21:02:43] [21:02:43]POST finish read [21:02:43]Found Content-Length = 803 [21:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:43]execute_script... [21:02: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)294725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:43]POST & json_proto [21:02:43]process_json_proto [21:02:43]json parsed OK: [21:02:43]protocol is kg_v1.0 [21:02:43]action value=close_receipt [21:02:43]process_action close_receipt [21:02:43]cmd_close_receipt [21:02:43]MH_GetDate [21:02:43]Write to MH i2c: F0 00 00 E7 00 D6 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: F0 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: F0 09 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: F0 09 00 E7 00 00 F4 F8 C8 66 4F 53 BE 66 BF [21:02:43]GetLastDocTimeStamp 1724446742 [21:02:43]current date 1724446964 [21:02:43]FM_GetShiftState [21:02:43]SAM_PROTO_GetShiftState [21:02:43]wFMCommunicate request_size=4 [21:02:43]MH_SAM_APDU [21:02:43]CAPDU: 80 13 01 00 [21:02:43]Write to MH i2c: E2 08 00 E8 00 80 13 01 00 00 00 00 00 65 [21:02:43]Write i2c OK [21:02:43]MH_I2C_Read... [21:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:43]Read from MH i2c: E2 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 0E 00 [21:02:43]MH_I2C_Read... [21:02:43]Read from MH i2c: E2 0E 00 E8 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 3C [21:02:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:02:43]wFMCommunicate OK [21:02:43]SAM_PROTO_GetShiftState done [21:02:43]FM_GetShiftState done [21:02:43]opened in 1724371660 [21:02:43]opened+sec_in_day 1724458060 [21:02:43]quantity*price = 150032 [21:02:43]sum+1 = 150033 [21:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 204 23.08.2024 21:02 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178744 ФПД: 65678324871165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T210244&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178744&fm=65678324871165&tin=02508201610067®Number=0000000000092561&sum=150032 [21:02:44]StoreToDocumentArchive [21:02:44]shift 470 fd 178744 [21:02:44]save to /storage/0470/doc_00178744 [21:02:44]save last doc name /storage/0470/doc_00178744 to /storage/kkm_last_doc_name [21:02:44]save OK [21:02:44]Clear old archive folders... [21:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:44]tlvbuf is 001E3700 [21:02:44]SAM_PROTO_ClearQueue [21:02:44]wFMCommunicate request_size=4 [21:02:44]MH_SAM_APDU [21:02:44]CAPDU: 80 09 00 00 [21:02:44]Write to MH i2c: E2 08 00 F5 00 80 09 00 00 00 00 00 00 67 [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:44]Read from MH i2c: E2 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: E2 03 00 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [21:02:44]RAPDU: 90 00 [21:02:44]wFMCommunicate OK [21:02:44]SAM_PROTO_ClearQueue done [21:02:44]KKMCreateOFDPacket [21:02:44]OFDProtocolAddRootSTLVToBuf [21:02:44]FM_MakeSignedData [21:02:44]FM_MakeSignedData [21:02:44]SAM_PROTO_SignData [21:02:44]wFMCommunicate request_size=4 [21:02:44]MH_SAM_APDU [21:02:44]CAPDU: 80 0D 01 02 [21:02:44]Write to MH i2c: E2 08 00 F6 00 80 0D 01 02 00 00 00 00 6F [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:44]Read from MH i2c: E2 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: E2 03 00 [21:02:44]MH_I2C_Read... [21:02:44]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [21:02:44]RAPDU: 90 00 [21:02:44]wFMCommunicate OK [21:02:44]wFMCommunicate request_size=255 [21:02:44]MH_SAM_APDU [21:02: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F4 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 38 BA 02 00 35 04 06 00 3B [21:02:44]Write to MH i2c: E2 02 01 F7 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F4 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 38 BA 02 00 35 04 06 00 3B 00 00 93 [21:02:44]Write i2c OK [21:02:44]MH_I2C_Read... [21:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:45]Read from MH i2c: E2 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [21:02:45]RAPDU: 90 00 [21:02:45]wFMCommunicate OK [21:02:45]wFMCommunicate request_size=10 [21:02:45]MH_SAM_APDU [21:02:45]CAPDU: 80 0D 02 02 05 BB ED 39 2F FD [21:02:45]Write to MH i2c: E2 0D 00 F8 00 80 0D 02 02 05 00 BB ED 39 2F FD 00 00 89 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:45]Read from MH i2c: E2 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 03 00 F8 00 00 90 00 6C [21:02:45]RAPDU: 90 00 [21:02:45]wFMCommunicate OK [21:02:45]wFMCommunicate request_size=4 [21:02:45]MH_SAM_APDU [21:02:45]CAPDU: 80 0D 03 02 [21:02:45]Write to MH i2c: E2 08 00 F9 00 80 0D 03 02 00 00 00 00 74 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:45]Read from MH i2c: E2 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 0B 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 0B 00 F9 00 00 76 72 6F D8 3A 7F EA 03 90 00 4A [21:02:45]RAPDU: 76 72 6F D8 3A 7F EA 03 90 00 [21:02:45]wFMCommunicate OK [21:02:45]SAM_PROTO_SignData done [21:02:45]FM_MakeSignedData done [21:02:45]CreateOFDProtocolMessage [21:02:45]wFMCommunicate request_size=4 [21:02:45]MH_SAM_APDU [21:02:45]CAPDU: 80 11 00 00 [21:02:45]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:45]Read from MH i2c: E2 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 17 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [21:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:02:45]wFMCommunicate OK [21:02:45]CreateOFDProtocolMessage done [21:02:45]OFDSenderStorePacket 178744 [21:02:45]StoreOFDPacket docnum=178744 [21:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8F 7F 07 01 73 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F4 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 38 BA 02 00 35 04 06 00 3B BB ED 39 2F FD 76 72 6F D8 3A 7F EA 03 [21:02:45]CheckFolder [21:02:45]dirname=/storage/ofd_packets [21:02:45]CheckFolder done [21:02:45]ProducePacketName [21:02:45]name=ofd_packets/00178744 [21:02:45]NVStorageSaveData ofd_packets/00178744 [21:02:45]File name is /storage/ofd_packets/00178744 [21:02:45]Write 301 bytes [21:02:45]NVStorageSaveData done [21:02:45]OFDSenderStorePacket done [21:02:45]KKMCreateOFDPacket done [21:02:45]NVStorageSaveData kkm_last_timestamp [21:02:45]File name is /storage/kkm_last_timestamp [21:02:45]Write 4 bytes [21:02:45]NVStorageSaveData done [21:02:45]ExternCall_PrintAddStr [21:02:45]wPrintStart [21:02:45]Write to MH i2c: 01 00 00 FB 00 FB [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 FF 0F 10 [21:02:45]RasterBufferAndPrint [21:02:45]line Счет N : (1)294725 [21:02:45]line ИНН: 02508201610067 [21:02:45]line Контрольно-Кассовый Чек [21:02:45]line ПРОДАЖА [21:02:45]line ТРК (МРК, ГНК) : 43 [21:02:45]line Товар: 2710124500 [21:02:45]line Аи-95-К-5 [21:02:45]line 20.220 * 74.20 [21:02:45]line = 1500.32 [21:02:45]line НДС 12% НСП 1% [21:02:45]line > о реализуемом товаре [21:02:45]line ИТОГО: 1500.32 [21:02:45]line НСП 1% : 13.28 [21:02:45]line НДС 12% : 159.33 [21:02:45]line Наличными: 0.00 [21:02:45]line Безнал.: 1500.32 [21:02:45]line Место: АЗС № 130 "Партнер Нефть" [21:02:45]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:02:45]line СНО: Общий режим [21:02:45]line Чек 204 23.08.2024 21:02 [21:02:45]line Смена: 470 ФФД: 1.0 [21:02:45]line ЗНМ: 0300000071 [21:02:45]line РНМ: 0000000000092561 [21:02:45]line Версия ККМ: 001 [21:02:45]line Платежная система: O! деньги [21:02:45]line ФМ: 0000000000871778 [21:02:45]line ФД: 178744 [21:02:45]line ФПД: 65678324871165 [21:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T210244&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178744&fm=65678324871165&tin=02508201610067®Number=0000000000092561&sum=150032 [21:02:45]written 0, free lines is 4095 [21:02:45]OFD Sender: Processing packet 178744 [packets to send 500, broken 499] [21:02:45]ProducePacketName [21:02:45]name=ofd_packets/00178744 [21:02:45]OFD Sender: To server: pG, [21:02:45]CommunicateWithHost lk.salyk.kg:30040 [21:02:45]ConnectInit lk.salyk.kg [21:02:45]Write to MH i2c: 01 00 00 25 01 26 [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 E2 0C 1B [21:02:45]RasterBufferAndPrint [21:02:45]line [21:02:45]line [21:02:45]line [21:02:45]line [21:02:45]line [21:02:45]written 0, free lines is 3304 [21:02:45]MH_Cut [21:02:45]Write to MH i2c: D1 01 00 2C 01 01 FF [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: D1 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: D1 01 00 [21:02:45]MH_I2C_Read... [21:02:45]Read from MH i2c: D1 01 00 2C 01 00 FE [21:02:45]Write to MH i2c: 01 00 00 2D 01 2E [21:02:45]Write i2c OK [21:02:45]MH_I2C_Read... [21:02:46]*** Cut start [21:02:46]*** Partial cut [21:02:46]*** CUTSNS_PIN = 1 [21:02:46]*** CUTSNS_PIN = 0 [21:02:46]*** Brake cut motor [21:02:47]Read from MH i2c: 01 [21:02:47]MH_I2C_Read... [21:02:47]*** Stop cut motor [21:02:47]*** Cut end [21:02:47]Read from MH i2c: 01 07 00 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [21:02:47]process_action close_receipt done [21:02:47]requested_data is exist [21:02:47]produce_requested_data [21:02:47]requested_item fm.sn is exist - process it [21:02:47]wFMCommunicate request_size=4 [21:02:47]MH_SAM_APDU [21:02:47]CAPDU: 80 11 00 00 [21:02:47]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [21:02:47]Write i2c OK [21:02:47]MH_I2C_Read... [21:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:47]Read from MH i2c: E2 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: E2 17 00 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 02 [21:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:02:47]wFMCommunicate OK [21:02:47]requested_item fd.num is exist - process it [21:02:47]SAM_PROTO_GetFieldsCounters [21:02:47]wFMCommunicate request_size=4 [21:02:47]MH_SAM_APDU [21:02:47]CAPDU: 80 13 00 00 [21:02:47]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [21:02:47]Write i2c OK [21:02:47]MH_I2C_Read... [21:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:47]Read from MH i2c: E2 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: E2 62 00 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 38 BA 02 00 0E 04 04 00 D6 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 00 [21: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 38 BA 02 00 0E 04 04 00 D6 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 [21:02:47]wFMCommunicate OK [21:02:47]SAM_PROTO_GetFieldsCounters done [21:02:47]requested_item shift.num is exist - process it [21:02:47]requested_item shift.opened is exist - process it [21:02:47]req_shift_opened [21:02:47]FM_GetShiftState [21:02:47]SAM_PROTO_GetShiftState [21:02:47]wFMCommunicate request_size=4 [21:02:47]MH_SAM_APDU [21:02:47]CAPDU: 80 13 01 00 [21:02:47]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [21:02:47]Write i2c OK [21:02:47]MH_I2C_Read... [21:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:47]Read from MH i2c: E2 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: E2 0E 00 [21:02:47]MH_I2C_Read... [21:02:47]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 85 [21:02:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:02:47]wFMCommunicate OK [21:02:47]SAM_PROTO_GetShiftState done [21:02:47]FM_GetShiftState done [21:02:47]req_shift_opened done [21:02:47]requested_item shift.open_date is exist - process it [21:02:47]req_shift_open_date [21:02:47]req_shift_open_date done [21:02:47]produce_requested_data done [21:02:47]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178744,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:02:47]process_action_free close_receipt [21:02:47]json_value_free [21:02:47]json_value_free done [21:02:47]process_json_proto returns [21:02:47]Send response to host [21:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178744,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:02:47]free response buf [21:02:47]execute_script done [21:02:47]execute_script returns [21:02:47]free content buf [21:02:47]Sock 9.Close socket [21:02:47]Sock 9.Thread stoped [21:02:50]ConnectInit Can't take IP for lk.salyk.kg [21:02:50]CommunicateWithHost connect error [21:02:50]CommunicateWithHost err = -1 [21:02:50]OFD Sender: Server communicate error [21:02:54]recv_with_timeout no data received [21:02:55]OFD Sender: Processing packet 178744 [packets to send 500, broken 499] [21:02:55]ProducePacketName [21:02:55]name=ofd_packets/00178744 [21:02:55]OFD Sender: To server: pG, [21:02:55]CommunicateWithHost lk.salyk.kg:30040 [21:02:55]ConnectInit lk.salyk.kg [21:02:59]Connected sock=8 [21:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 8F 7F 07 01 73 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F4 F8 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 38 BA 02 00 35 04 06 00 3B BB ED 39 2F FD 76 72 6F D8 3A 7F EA 03 [21:03:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 EE CC 47 00 12 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 31 37 37 38 10 04 04 00 38 BA 02 00 F4 03 04 00 A8 A4 C8 66 B6 04 01 00 00 87 F2 6C A2 F3 D9 73 9D [21:03:01]CommunicateWithHost err = 0 [21:03:01]CheckOFDResponse [21:03:01]1017 (14) - 77093643461234 [21:03:01]1041 (16) - 0000000000871778 [21:03:01]1040 (4) - 178744 [21:03:01]1012 (4) - 23.08.2024 15:03 [21:03:01]1206 (1) - 0 [21:03:01]OFD Sender: Remove packet 178744 [21:03:01]ProducePacketName [21:03:01]name=ofd_packets/00178744 [21:03:01]NVStorageDeleteData [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]recv_with_timeout no data received [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:03]recv_with_timeout no data received [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:23]accept exits with 11 [21:04:23]New connection [21:04:23]New thread 3067366756 created [21:04:23]Thread 3067223396 joined [21:04:23]Waiting for new connection... [21:04:23] Sock 11.Parse request [21:04:23]Sock 11.Check first char [21:04:23]Sock 11.First char is OK [21:04:23]request: POST /json_proto HTTP/1.0 [21:04:23]Method: POST [21:04:23]URL: /json_proto [21:04:23]Method is POST - this is cgi request [21:04:23]url: /json_proto [21:04:23]query_string will be loaded in cgi processing [21:04:23]execute_cgi json_proto POST (null) [21:04:23]execute_cgi path=json_proto method=POST [21:04:23]POST find Content-Length [21:04:23]Host: 172.17.44.131:8080 [21:04:23]Content-Length: 682 [21:04:23]Content-Type: application/json [21:04:23] [21:04:23]POST finish read [21:04:23]Found Content-Length = 682 [21:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294727", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:23]execute_script... [21:04: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)294727", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:23]POST & json_proto [21:04:23]process_json_proto [21:04:23]json parsed OK: [21:04:23]protocol is kg_v1.0 [21:04:23]action value=close_receipt [21:04:23]process_action close_receipt [21:04:23]cmd_close_receipt [21:04:23]MH_GetDate [21:04:23]Write to MH i2c: F0 00 00 31 01 21 [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: F0 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: F0 09 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: F0 09 00 31 01 00 58 F9 C8 66 4F 53 BE 66 6F [21:04:23]GetLastDocTimeStamp 1724446964 [21:04:23]current date 1724447064 [21:04:23]FM_GetShiftState [21:04:23]SAM_PROTO_GetShiftState [21:04:23]wFMCommunicate request_size=4 [21:04:23]MH_SAM_APDU [21:04:23]CAPDU: 80 13 01 00 [21:04:23]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [21:04:23]Write i2c OK [21:04:23]MH_I2C_Read... [21:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:23]Read from MH i2c: E2 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 0E 00 [21:04:23]MH_I2C_Read... [21:04:23]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 87 [21:04:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:04:23]wFMCommunicate OK [21:04:23]SAM_PROTO_GetShiftState done [21:04:23]FM_GetShiftState done [21:04:23]opened in 1724371660 [21:04:23]opened+sec_in_day 1724458060 [21:04:23]quantity*price = 100021 [21:04:23]sum+1 = 100023 [21:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 205 23.08.2024 21:04 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178745 ФПД: 79778012629324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T210424&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178745&fm=79778012629324&tin=02508201610067®Number=0000000000092561&sum=100000 [21:04:25]StoreToDocumentArchive [21:04:25]shift 470 fd 178745 [21:04:25]save to /storage/0470/doc_00178745 [21:04:25]save last doc name /storage/0470/doc_00178745 to /storage/kkm_last_doc_name [21:04:25]save OK [21:04:25]Clear old archive folders... [21:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:25]tlvbuf is B6F0DAC0 [21:04:25]SAM_PROTO_ClearQueue [21:04:25]wFMCommunicate request_size=4 [21:04:25]MH_SAM_APDU [21:04:25]CAPDU: 80 09 00 00 [21:04:25]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:25]Read from MH i2c: E2 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [21:04:25]RAPDU: 90 00 [21:04:25]wFMCommunicate OK [21:04:25]SAM_PROTO_ClearQueue done [21:04:25]KKMCreateOFDPacket [21:04:25]OFDProtocolAddRootSTLVToBuf [21:04:25]FM_MakeSignedData [21:04:25]FM_MakeSignedData [21:04:25]SAM_PROTO_SignData [21:04:25]wFMCommunicate request_size=4 [21:04:25]MH_SAM_APDU [21:04:25]CAPDU: 80 0D 01 02 [21:04:25]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:25]Read from MH i2c: E2 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [21:04:25]RAPDU: 90 00 [21:04:25]wFMCommunicate OK [21:04:25]wFMCommunicate request_size=255 [21:04:25]MH_SAM_APDU [21:04: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 F9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 39 BA 02 00 35 04 06 00 48 [21:04:25]Write to MH i2c: E2 02 01 41 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 F9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 39 BA 02 00 35 04 06 00 48 00 00 CA [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:25]Read from MH i2c: E2 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [21:04:25]RAPDU: 90 00 [21:04:25]wFMCommunicate OK [21:04:25]wFMCommunicate request_size=10 [21:04:25]MH_SAM_APDU [21:04:25]CAPDU: 80 0D 02 02 05 8E C4 1A 89 4C [21:04:25]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 8E C4 1A 89 4C 00 00 08 [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:25]Read from MH i2c: E2 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [21:04:25]RAPDU: 90 00 [21:04:25]wFMCommunicate OK [21:04:25]wFMCommunicate request_size=4 [21:04:25]MH_SAM_APDU [21:04:25]CAPDU: 80 0D 03 02 [21:04:25]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:25]Read from MH i2c: E2 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 0B 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 0B 00 43 01 00 CD 5E 22 FA 20 2C 84 AA 90 00 81 [21:04:25]RAPDU: CD 5E 22 FA 20 2C 84 AA 90 00 [21:04:25]wFMCommunicate OK [21:04:25]SAM_PROTO_SignData done [21:04:25]FM_MakeSignedData done [21:04:25]CreateOFDProtocolMessage [21:04:25]wFMCommunicate request_size=4 [21:04:25]MH_SAM_APDU [21:04:25]CAPDU: 80 11 00 00 [21:04:25]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:25]Read from MH i2c: E2 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 17 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 18 [21:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:04:25]wFMCommunicate OK [21:04:25]CreateOFDProtocolMessage done [21:04:25]OFDSenderStorePacket 178745 [21:04:25]StoreOFDPacket docnum=178745 [21:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 89 FB 07 01 F8 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 58 F9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 39 BA 02 00 35 04 06 00 48 8E C4 1A 89 4C CD 5E 22 FA 20 2C 84 AA [21:04:25]CheckFolder [21:04:25]dirname=/storage/ofd_packets [21:04:25]CheckFolder done [21:04:25]ProducePacketName [21:04:25]name=ofd_packets/00178745 [21:04:25]NVStorageSaveData ofd_packets/00178745 [21:04:25]File name is /storage/ofd_packets/00178745 [21:04:25]Write 301 bytes [21:04:25]NVStorageSaveData done [21:04:25]OFDSenderStorePacket done [21:04:25]KKMCreateOFDPacket done [21:04:25]NVStorageSaveData kkm_last_timestamp [21:04:25]File name is /storage/kkm_last_timestamp [21:04:25]Write 4 bytes [21:04:25]NVStorageSaveData done [21:04:25]ExternCall_PrintAddStr [21:04:25]wPrintStart [21:04:25]Write to MH i2c: 01 00 00 45 01 46 [21:04:25]Write i2c OK [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: 01 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: 01 07 00 [21:04:25]MH_I2C_Read... [21:04:25]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [21:04:25]RasterBufferAndPrint [21:04:25]line Счет N : (1)294727 [21:04:25]line ИНН: 02508201610067 [21:04:25]line Контрольно-Кассовый Чек [21:04:25]line ПРОДАЖА [21:04:25]line ТРК (МРК, ГНК) : 63 [21:04:25]line Товар: 2710124500 [21:04:25]line Аи-95-К-5 [21:04:25]line 13.480 * 74.20 [21:04:25]line = 1000.22 [21:04:25]line НДС 12% НСП 1% [21:04:25]line > о реализуемом товаре [21:04:25]line ОКРУГЛЕНИЕ: -0.22 [21:04:25]line ИТОГО: 1000.00 [21:04:25]line Внесено: 1000.00 [21:04:25]line СДАЧА: 0.00 [21:04:25]line НСП 1% : 8.85 [21:04:25]line НДС 12% : 106.22 [21:04:25]line Наличными: 1000.00 [21:04:25]line Безнал.: 0.00 [21:04:25]line Место: АЗС № 130 "Партнер Нефть" [21:04:25]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:04:25]line СНО: Общий режим [21:04:25]line Чек 205 23.08.2024 21:04 [21:04:25]line Смена: 470 ФФД: 1.0 [21:04:25]line ЗНМ: 0300000071 [21:04:25]line РНМ: 0000000000092561 [21:04:25]line Версия ККМ: 001 [21:04:25]line ФМ: 0000000000871778 [21:04:25]line ФД: 178745 [21:04:25]line ФПД: 79778012629324 [21:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T210424&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178745&fm=79778012629324&tin=02508201610067®Number=0000000000092561&sum=100000 [21:04:25]OFD Sender: Processing packet 178745 [packets to send 500, broken 499] [21:04:25]ProducePacketName [21:04:25]name=ofd_packets/00178745 [21:04:25]OFD Sender: To server: pG, [21:04:25]CommunicateWithHost lk.salyk.kg:30040 [21:04:25]ConnectInit lk.salyk.kg [21:04:25]written 0, free lines is 4095 [21:04:26]Write to MH i2c: 01 00 00 70 01 71 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: 01 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: 01 07 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: 01 07 00 70 01 00 00 00 00 00 D4 0C 58 [21:04:26]RasterBufferAndPrint [21:04:26]line [21:04:26]line [21:04:26]line [21:04:26]line [21:04:26]line [21:04:26]written 0, free lines is 3292 [21:04:26]MH_Cut [21:04:26]Write to MH i2c: D1 01 00 77 01 01 4A [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: D1 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: D1 01 00 [21:04:26]MH_I2C_Read... [21:04:26]Read from MH i2c: D1 01 00 77 01 00 49 [21:04:26]Write to MH i2c: 01 00 00 78 01 79 [21:04:26]Write i2c OK [21:04:26]MH_I2C_Read... [21:04:27]*** Cut start [21:04:27]*** Partial cut [21:04:27]*** CUTSNS_PIN = 1 [21:04:27]*** CUTSNS_PIN = 0 [21:04:27]*** Brake cut motor [21:04:27]Read from MH i2c: 01 [21:04:27]MH_I2C_Read... [21:04:27]*** Stop cut motor [21:04:27]*** Cut end [21:04:27]Read from MH i2c: 01 07 00 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 FF 0F 8E [21:04:27]process_action close_receipt done [21:04:27]requested_data is exist [21:04:27]produce_requested_data [21:04:27]requested_item fm.sn is exist - process it [21:04:27]wFMCommunicate request_size=4 [21:04:27]MH_SAM_APDU [21:04:27]CAPDU: 80 11 00 00 [21:04:27]Write to MH i2c: E2 08 00 79 01 80 11 00 00 00 00 00 00 F4 [21:04:27]Write i2c OK [21:04:27]MH_I2C_Read... [21:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:27]Read from MH i2c: E2 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 17 00 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 17 00 79 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [21:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:04:27]wFMCommunicate OK [21:04:27]requested_item fd.num is exist - process it [21:04:27]SAM_PROTO_GetFieldsCounters [21:04:27]wFMCommunicate request_size=4 [21:04:27]MH_SAM_APDU [21:04:27]CAPDU: 80 13 00 00 [21:04:27]Write to MH i2c: E2 08 00 7A 01 80 13 00 00 00 00 00 00 F7 [21:04:27]Write i2c OK [21:04:27]MH_I2C_Read... [21:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:27]Read from MH i2c: E2 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 62 00 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 62 00 7A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 39 BA 02 00 0E 04 04 00 D6 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 4F [21:04: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 39 BA 02 00 0E 04 04 00 D6 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 [21:04:27]wFMCommunicate OK [21:04:27]SAM_PROTO_GetFieldsCounters done [21:04:27]requested_item shift.num is exist - process it [21:04:27]requested_item shift.opened is exist - process it [21:04:27]req_shift_opened [21:04:27]FM_GetShiftState [21:04:27]SAM_PROTO_GetShiftState [21:04:27]wFMCommunicate request_size=4 [21:04:27]MH_SAM_APDU [21:04:27]CAPDU: 80 13 01 00 [21:04:27]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [21:04:27]Write i2c OK [21:04:27]MH_I2C_Read... [21:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:27]Read from MH i2c: E2 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 0E 00 [21:04:27]MH_I2C_Read... [21:04:27]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D0 [21:04:27]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:04:27]wFMCommunicate OK [21:04:27]SAM_PROTO_GetShiftState done [21:04:27]FM_GetShiftState done [21:04:27]req_shift_opened done [21:04:27]requested_item shift.open_date is exist - process it [21:04:27]req_shift_open_date [21:04:27]req_shift_open_date done [21:04:27]produce_requested_data done [21:04:27]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178745,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:04:27]process_action_free close_receipt [21:04:27]json_value_free [21:04:27]json_value_free done [21:04:27]process_json_proto returns [21:04:27]Send response to host [21:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178745,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:04:27]free response buf [21:04:27]execute_script done [21:04:27]execute_script returns [21:04:27]free content buf [21:04:27]Sock 11.Close socket [21:04:27]Sock 11.Thread stoped [21:04:30]ConnectInit Can't take IP for lk.salyk.kg [21:04:30]CommunicateWithHost connect error [21:04:30]CommunicateWithHost err = -1 [21:04:30]OFD Sender: Server communicate error [21:04:35]OFD Sender: Processing packet 178745 [packets to send 500, broken 499] [21:04:35]ProducePacketName [21:04:35]name=ofd_packets/00178745 [21:04:35]OFD Sender: To server: pG, [21:04:35]CommunicateWithHost lk.salyk.kg:30040 [21:04:35]ConnectInit lk.salyk.kg [21:04:40]ConnectInit Can't take IP for lk.salyk.kg [21:04:40]CommunicateWithHost connect error [21:04:40]CommunicateWithHost err = -1 [21:04:40]OFD Sender: Server communicate error [21:04:45]accept exits with 8 [21:04:45]New connection [21:04:45]New thread 3067223396 created [21:04:45]Thread 3067366756 joined [21:04:45]Waiting for new connection... [21:04:45] Sock 8.Parse request [21:04:45]Sock 8.Check first char [21:04:45]Sock 8.First char is OK [21:04:45]request: POST /json_proto HTTP/1.0 [21:04:45]Method: POST [21:04:45]URL: /json_proto [21:04:45]Method is POST - this is cgi request [21:04:45]url: /json_proto [21:04:45]query_string will be loaded in cgi processing [21:04:45]execute_cgi json_proto POST (null) [21:04:45]execute_cgi path=json_proto method=POST [21:04:45]POST find Content-Length [21:04:45]Host: 172.17.44.131:8080 [21:04:45]Content-Length: 678 [21:04:45]Content-Type: application/json [21:04:45] [21:04:45]POST finish read [21:04:45]Found Content-Length = 678 [21:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294729", "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" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [21:04:45]execute_script... [21:04: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)294729", "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" : 67.80, "quantity" : 11.800, "sum" : 800.04, "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" ] } } [21:04:45]POST & json_proto [21:04:45]process_json_proto [21:04:45]json parsed OK: [21:04:45]protocol is kg_v1.0 [21:04:45]action value=close_receipt [21:04:45]process_action close_receipt [21:04:45]cmd_close_receipt [21:04:45]MH_GetDate [21:04:45]Write to MH i2c: F0 00 00 7C 01 6C [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: F0 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: F0 09 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: F0 09 00 7C 01 00 6E F9 C8 66 4F 53 BE 66 D0 [21:04:45]GetLastDocTimeStamp 1724447064 [21:04:45]current date 1724447086 [21:04:45]FM_GetShiftState [21:04:45]SAM_PROTO_GetShiftState [21:04:45]wFMCommunicate request_size=4 [21:04:45]MH_SAM_APDU [21:04:45]CAPDU: 80 13 01 00 [21:04:45]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:45]Read from MH i2c: E2 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 0E 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D2 [21:04:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:04:45]wFMCommunicate OK [21:04:45]SAM_PROTO_GetShiftState done [21:04:45]FM_GetShiftState done [21:04:45]opened in 1724371660 [21:04:45]opened+sec_in_day 1724458060 [21:04:45]quantity*price = 80004 [21:04:45]sum+1 = 80005 [21:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 206 23.08.2024 21:04 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178746 ФПД: 79998056516643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T210446&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178746&fm=79998056516643&tin=02508201610067®Number=0000000000092561&sum=80000 [21:04:46]StoreToDocumentArchive [21:04:46]shift 470 fd 178746 [21:04:46]save to /storage/0470/doc_00178746 [21:04:46]save last doc name /storage/0470/doc_00178746 to /storage/kkm_last_doc_name [21:04:46]save OK [21:04:46]Clear old archive folders... [21:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:46]tlvbuf is B6F3FA80 [21:04:46]SAM_PROTO_ClearQueue [21:04:46]wFMCommunicate request_size=4 [21:04:46]MH_SAM_APDU [21:04:46]CAPDU: 80 09 00 00 [21:04:46]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [21:04:46]Write i2c OK [21:04:46]MH_I2C_Read... [21:04:46]Connected sock=10 [21:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 89 FB 07 01 F8 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 Read from MH i2c: 58 E2 F9 [21:04:46]C8 MH_I2C_Read... [21:04:46]66 0E Read from MH i2c: 04 E2 04 03 00 00 D6 [21:04:46]01 MH_I2C_Read... [21:04:46]00 00 B9 04 01 Read from MH i2c: 00 E2 01 03 0D 00 04 8A 10 01 00 00 90 30 00 30 FF 30 [21:04:46]30 RAPDU: 30 90 30 30 00 30 [21:04:46]30 wFMCommunicate OK [21:04:46]30 SAM_PROTO_ClearQueue done [21:04:46]30 KKMCreateOFDPacket [21:04:46]39 OFDProtocolAddRootSTLVToBuf [21:04:46]32 FM_MakeSignedData [21:04:46]35 FM_MakeSignedData [21:04:46]36 SAM_PROTO_SignData [21:04:46]31 wFMCommunicate request_size=4 [21:04:46]11 MH_SAM_APDU [21:04:46]04 CAPDU: 10 80 00 0D 30 01 30 02 30 [21:04:46]30 Write to MH i2c: 30 E2 30 08 30 00 8B 01 30 80 30 0D 30 01 38 02 37 00 31 00 00 37 00 37 05 38 [21:04:46]10 04 04 00 39 BA 02 00 35 04 06 00 48 8E C4 1A 89 4C CD 5E 22 FA 20 2C 84 AA [21:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:46]Write i2c OK [21:04:46]MH_I2C_Read... [21:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:46]Read from MH i2c: E2 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 03 00 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [21:04:46]RAPDU: 90 00 [21:04:46]wFMCommunicate OK [21:04:46]wFMCommunicate request_size=255 [21:04:46]MH_SAM_APDU [21:04: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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 CE 00 00 00 F4 03 04 00 6E F9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3A BA 02 00 35 04 06 00 48 [21:04:46]Write to MH i2c: E2 02 01 8C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 CE 00 00 00 F4 03 04 00 6E F9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3A BA 02 00 35 04 06 00 48 00 00 AD [21:04:46]Write i2c OK [21:04:46]MH_I2C_Read... [21:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 39 DE 47 00 36 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 39 BA 02 00 F4 03 04 00 13 A5 C8 66 B6 04 01 00 00 42 85 2C E2 4D F0 CA AC [21:04:46]CommunicateWithHost err = 0 [21:04:46]CheckOFDResponse [21:04:46]1017 (14) - 77093643461234 [21:04:46]1041 (16) - 0000000000871778 [21:04:46]1040 (4) - 178745 [21:04:46]1012 (4) - 23.08.2024 15:04 [21:04:46]1206 (1) - 0 [21:04:46]OFD Sender: Remove packet 178745 [21:04:46]ProducePacketName [21:04:46]name=ofd_packets/00178745 [21:04:46]NVStorageDeleteData [21:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:46]Read from MH i2c: E2 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 03 00 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [21:04:46]RAPDU: 90 00 [21:04:46]wFMCommunicate OK [21:04:46]wFMCommunicate request_size=10 [21:04:46]MH_SAM_APDU [21:04:46]CAPDU: 80 0D 02 02 05 C1 FF BD CC 23 [21:04:46]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 C1 FF BD CC 23 00 00 7E [21:04:46]Write i2c OK [21:04:46]MH_I2C_Read... [21:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:46]Read from MH i2c: E2 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 03 00 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [21:04:46]RAPDU: 90 00 [21:04:46]wFMCommunicate OK [21:04:46]wFMCommunicate request_size=4 [21:04:46]MH_SAM_APDU [21:04:46]CAPDU: 80 0D 03 02 [21:04:46]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [21:04:46]Write i2c OK [21:04:46]MH_I2C_Read... [21:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:46]Read from MH i2c: E2 [21:04:46]MH_I2C_Read... [21:04:46]Read from MH i2c: E2 0B 00 [21:04:46]MH_I2C_Read... [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 699774+1723749199=1724448973 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 CE 00 C9 66 4F 53 BE 66 C2 [21:36:14]Current date/time: 23.08.2024 21:36 [21:36:14]FM_Init [21:36:14]wFMConnect [21:36:14]MH_SAM_On [21:36:14]Write to MH i2c: E0 00 00 08 00 E7 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_init finished! [21:36:14]*** atr: [21:36:14]*** 0F 3B D5 18 FF 81 91 FE [21:36:14]*** 1F C3 80 73 C8 21 10 0A [21:36:14]*** 00 00 00 00 00 00 00 00 [21:36:14]*** 00 00 00 00 00 00 00 00 [21:36:14]*** 00 00 00 00 00 00 00 00 [21:36:14]*** 00 00 00 00 00 00 00 00 [21:36:14]*** 00 00 00 00 00 00 00 00 [21:36:14]*** 00 00 00 00 00 00 00 00 [21:36:14]Read from MH i2c: E0 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E0 10 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:36:14]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:36:14]wFMCommunicate request_size=10 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:36:14]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:36:14]RAPDU: 90 00 [21:36:14]wFMCommunicate OK [21:36:14]wFMCommunicate request_size=4 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 80 11 00 00 [21:36:14]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 17 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [21:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:36:14]wFMCommunicate OK [21:36:14]Detected FM SN is 0000000000871778 [21:36:14]Stored FM SN is 0000000000871778 [21:36:14]wFMCommunicate request_size=9 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 80 16 00 00 04 D9 BA 00 00 [21:36:14]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:36:14]RAPDU: 90 00 [21:36:14]wFMCommunicate OK [21:36:14]FM PIN OK [21:36:14]wFMCommunicate request_size=8 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 80 14 04 00 03 02 00 01 [21:36:14]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:36:14]RAPDU: 90 00 [21:36:14]wFMCommunicate OK [21:36:14]wFMCommunicate request_size=13 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:36:14]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:36:14]RAPDU: 90 00 [21:36:14]wFMCommunicate OK [21:36:14]wFMCommunicate request_size=4 [21:36:14]MH_SAM_APDU [21:36:14]CAPDU: 80 11 00 00 [21:36:14]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:14]Read from MH i2c: E2 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 17 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [21:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:36:14]wFMCommunicate OK [21:36:14]DocumentArchiveInit [21:36:14]Start Httpd... [21:36:14]Httpd thread 3067563364 created [21:36:14]Write to MH i2c: 01 00 00 0F 00 0F [21:36:14]Write i2c OK [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 [21:36:14]MH_I2C_Read... [21:36:14]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:36:14]MH Int Process started [21:36:14]Allocated Socket 8 [21:36:14]Bind OK [21:36:14]Listen OK [21:36:14]httpd running on port 8080 [21:36:14]Waiting for new connection... [21:36:15]OFD Sender: Processing packet 178746 [packets to send 501, broken 499] [21:36:15]ProducePacketName [21:36:15]name=ofd_packets/00178746 [21:36:15]OFD Sender: To server: pG, [21:36:15]CommunicateWithHost lk.salyk.kg:30040 [21:36:15]ConnectInit lk.salyk.kg [21:36:15]accept exits with 9 [21:36:15]New connection [21:36:15]New thread 3067276644 created [21:36:15]Waiting for new connection... [21:36:15] Sock 9.Parse request [21:36:15]Sock 9.Check first char [21:36:15]Sock 9.First char is OK [21:36:15]request: POST /json_proto HTTP/1.0 [21:36:15]Method: POST [21:36:15]URL: /json_proto [21:36:15]Method is POST - this is cgi request [21:36:15]url: /json_proto [21:36:15]query_string will be loaded in cgi processing [21:36:15]execute_cgi json_proto POST (null) [21:36:15]execute_cgi path=json_proto method=POST [21:36:15]POST find Content-Length [21:36:15]Host: 172.17.44.131:8080 [21:36:15]Content-Length: 215 [21:36:15]Content-Type: application/json [21:36:15] [21:36:15]POST finish read [21:36:15]Found Content-Length = 215 [21:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:15]execute_script... [21:36:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:15]POST & json_proto [21:36:15]process_json_proto [21:36:15]json parsed OK: [21:36:15]protocol is kg_v1.0 [21:36:15]action value=get_value [21:36:15]process_action get_value [21:36:15]cmd_get_value [21:36:15]process_action get_value done [21:36:15]requested_data is exist [21:36:15]produce_requested_data [21:36:15]requested_item kkm.sn is exist - process it [21:36:15]requested_item kkm.ver is exist - process it [21:36:15]requested_item fm.sn is exist - process it [21:36:15]wFMCommunicate request_size=4 [21:36:15]MH_SAM_APDU [21:36:15]CAPDU: 80 11 00 00 [21:36:15]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:36:15]Write i2c OK [21:36:15]MH_I2C_Read... [21:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:15]Read from MH i2c: E2 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 17 00 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [21:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:36:15]wFMCommunicate OK [21:36:15]requested_item fd.num is exist - process it [21:36:15]SAM_PROTO_GetFieldsCounters [21:36:15]wFMCommunicate request_size=4 [21:36:15]MH_SAM_APDU [21:36:15]CAPDU: 80 13 00 00 [21:36:15]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:36:15]Write i2c OK [21:36:15]MH_I2C_Read... [21:36:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:15]Read from MH i2c: E2 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 62 00 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3B BA 02 00 0E 04 04 00 D6 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 ED [21:36:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3B BA 02 00 0E 04 04 00 D6 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 [21:36:15]wFMCommunicate OK [21:36:15]SAM_PROTO_GetFieldsCounters done [21:36:15]requested_item shift.num is exist - process it [21:36:15]requested_item shift.opened is exist - process it [21:36:15]req_shift_opened [21:36:15]FM_GetShiftState [21:36:15]SAM_PROTO_GetShiftState [21:36:15]wFMCommunicate request_size=4 [21:36:15]MH_SAM_APDU [21:36:15]CAPDU: 80 13 01 00 [21:36:15]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:36:15]Write i2c OK [21:36:15]MH_I2C_Read... [21:36:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:15]Read from MH i2c: E2 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 0E 00 [21:36:15]MH_I2C_Read... [21:36:15]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [21:36:15]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:36:15]wFMCommunicate OK [21:36:15]SAM_PROTO_GetShiftState done [21:36:15]FM_GetShiftState done [21:36:15]req_shift_opened done [21:36:15]requested_item shift.open_date is exist - process it [21:36:15]req_shift_open_date [21:36:15]req_shift_open_date done [21:36:15]produce_requested_data done [21:36:15]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178747,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:36:15]process_action_free get_value [21:36:15]json_value_free [21:36:15]json_value_free done [21:36:15]process_json_proto returns [21:36:15]Send response to host [21:36:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178747,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:36:15]free response buf [21:36:15]execute_script done [21:36:15]execute_script returns [21:36:15]free content buf [21:36:15]Sock 9.Close socket [21:36:15]Sock 9.Thread stoped [21:36:15]accept exits with 11 [21:36:15]New connection [21:36:15]New thread 3067133284 created [21:36:15]Thread 3067276644 joined [21:36:15]Waiting for new connection... [21:36:15] Sock 11.Parse request [21:36:15]Sock 11.Check first char [21:36:15]Sock 11.First char is OK [21:36:15]request: POST /json_proto HTTP/1.0 [21:36:15]Method: POST [21:36:15]URL: /json_proto [21:36:15]Method is POST - this is cgi request [21:36:15]url: /json_proto [21:36:15]query_string will be loaded in cgi processing [21:36:15]execute_cgi json_proto POST (null) [21:36:15]execute_cgi path=json_proto method=POST [21:36:15]POST find Content-Length [21:36:15]Host: 172.17.44.131:8080 [21:36:15]Content-Length: 331 [21:36:15]Content-Type: application/json [21:36:15] [21:36:15]POST finish read [21:36:15]Found Content-Length = 331 [21:36:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:36:15]execute_script... [21:36:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:36:15]POST & json_proto [21:36:15]process_json_proto [21:36:15]json parsed OK: [21:36:15]protocol is kg_v1.0 [21:36:15]action value=get_value [21:36:15]process_action get_value [21:36:15]cmd_get_value [21:36:15]process_action get_value done [21:36:15]requested_data is exist [21:36:15]produce_requested_data [21:36:15]requested_item fm.sale.total is exist - process it [21:36:15]SAM_PROTO_GetFMData [21:36:15]wFMCommunicate request_size=4 [21:36:15]MH_SAM_APDU [21:36:15]CAPDU: 80 13 03 00 [21:36:15]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:36:15]Write i2c OK [21:36:15]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 FD 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 8F B6 02 00 69 04 A4 00 6F 04 04 00 F8 B4 02 00 B1 04 05 00 1B 29 7B 2B 05 70 04 05 00 0F 10 D6 14 04 72 04 05 00 0C 19 A5 16 01 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 A2 5D 94 8C 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 75 D5 B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 54 [21:36:16]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 8F B6 02 00 69 04 A4 00 6F 04 04 00 F8 B4 02 00 B1 04 05 00 1B 29 7B 2B 05 70 04 05 00 0F 10 D6 14 04 72 04 05 00 0C 19 A5 16 01 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 A2 5D 94 8C 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 75 D5 B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [21:36:16]wFMCommunicate OK [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 17 00 00 [21:36:16]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 FD 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [21:36:16]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:36:16]wFMCommunicate OK [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 17 00 00 [21:36:16]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:16]Read from MH i2c: E2 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 FD 00 [21:36:16]MH_I2C_Read... [21:36:16]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [21:36:16]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:36:16]wFMCommunicate OK [21:36:16]wFMCommunicate request_size=4 [21:36:16]MH_SAM_APDU [21:36:16]CAPDU: 80 17 00 00 [21:36:16]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:36:16]Write i2c OK [21:36:16]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 FD 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [21:36:17]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:36:17]wFMCommunicate OK [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 17 00 00 [21:36:17]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 E3 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 E3 00 17 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 76 [21:36:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:36:17]wFMCommunicate OK [21:36:17]SAM_PROTO_GetFMData done [21:36:17]requested_item fm.sale_refund.total is exist - process it [21:36:17]requested_item fm.buy.total is exist - process it [21:36:17]requested_item shift.sale.total is exist - process it [21:36:17]SAM_PROTO_GetShiftData [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 13 02 00 [21:36:17]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:17]Connected sock=7 [21:36:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 2E F3 07 01 37 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 18 2E 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 84 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 30 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 CE 00 00 00 F4 03 04 00 6E F9 C8 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3A BA 02 00 35 04 06 00 48 C1 FF BD CC 23 DA 8D F9 34 E9 8E 6C 57 [21:36:17]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:36:17]Read from MH i2c: E2 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 FD 00 [21:36:17]MH_I2C_Read... [21:36:17]Read from MH i2c: E2 FD 00 18 00 00 BA 04 AA 04 B6 04 6E 04 04 00 CF 00 00 00 69 04 9D 00 6F 04 04 00 CE 00 00 00 B1 04 04 00 8A 6C 86 01 70 04 03 00 2C D8 EB 72 04 03 00 5E 94 9A 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 06 78 29 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 A0 74 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 EC [21:36:17]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 CF 00 00 00 69 04 9D 00 6F 04 04 00 CE 00 00 00 B1 04 04 00 8A 6C 86 01 70 04 03 00 2C D8 EB 72 04 03 00 5E 94 9A 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 06 78 29 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 A0 74 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [21:36:17]wFMCommunicate OK [21:36:17]wFMCommunicate request_size=4 [21:36:17]MH_SAM_APDU [21:36:17]CAPDU: 80 17 00 00 [21:36:17]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:36:17]Write i2c OK [21:36:17]MH_I2C_Read... [21:36:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:18]Read from MH i2c: E2 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 FD 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 FD 00 19 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 BB [21:36:18]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [21:36:18]wFMCommunicate OK [21:36:18]wFMCommunicate request_size=4 [21:36:18]MH_SAM_APDU [21:36:18]CAPDU: 80 17 00 00 [21:36:18]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F8 AB 47 00 AB 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 31 37 37 38 10 04 04 00 3A BA 02 00 F4 03 04 00 76 AC C8 66 B6 04 01 00 00 6F C6 28 0B 58 77 F5 93 [21:36:18]CommunicateWithHost err = 0 [21:36:18]CheckOFDResponse [21:36:18]1017 (14) - 77093643461234 [21:36:18]1041 (16) - 0000000000871778 [21:36:18]1040 (4) - 178746 [21:36:18]1012 (4) - 23.08.2024 15:36 [21:36:18]1206 (1) - 0 [21:36:18]OFD Sender: Remove packet 178746 [21:36:18]ProducePacketName [21:36:18]name=ofd_packets/00178746 [21:36:18]NVStorageDeleteData [21:36:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:18]Read from MH i2c: E2 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 FD 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 FD 00 1A 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [21:36:18]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 [21:36:18]wFMCommunicate OK [21:36:18]wFMCommunicate request_size=4 [21:36:18]MH_SAM_APDU [21:36:18]CAPDU: 80 17 00 00 [21:36:18]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:36:18]Read from MH i2c: E2 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 FD 00 [21:36:18]MH_I2C_Read... [21:36:18]Read from MH i2c: E2 FD 00 1B 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 03 90 00 13 [21:36:18]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 [21:36:18]wFMCommunicate OK [21:36:18]wFMCommunicate request_size=4 [21:36:18]MH_SAM_APDU [21:36:18]CAPDU: 80 17 00 00 [21:36:18]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:36:18]Write i2c OK [21:36:18]MH_I2C_Read... [21:36:18]OFD Sender: Processing packet 178747 [packets to send 500, broken 499] [21:36:18]ProducePacketName [21:36:18]name=ofd_packets/00178747 [21:36:18]OFD Sender: To server: pG, [21:36:18]CommunicateWithHost lk.salyk.kg:30040 [21:36:18]ConnectInit lk.salyk.kg [21:36:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [21:36:19]Read from MH i2c: E2 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 D7 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 D7 00 1C 00 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 7F [21:36:19]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 [21:36:19]wFMCommunicate OK [21:36:19]SAM_PROTO_GetShiftData done [21:36:19]requested_item shift.sale.total_cash is exist - process it [21:36:19]requested_item shift.sale_refund.total is exist - process it [21:36:19]requested_item shift.sale_refund.total_cash is exist - process it [21:36:19]requested_item shift.buy.total is exist - process it [21:36:19]requested_item shift.buy.total_cash is exist - process it [21:36:19]produce_requested_data done [21:36:19]produce_requested_data return {"fm.sale.total":222043282.19,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":255868.26,"shift.sale.total_cash":154563.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:36:19]process_action_free get_value [21:36:19]json_value_free [21:36:19]json_value_free done [21:36:19]process_json_proto returns [21:36:19]Send response to host [21:36:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222043282.19,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":255868.26,"shift.sale.total_cash":154563.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:36:19]free response buf [21:36:19]execute_script done [21:36:19]execute_script returns [21:36:19]free content buf [21:36:19]Sock 11.Close socket [21:36:19]Sock 11.Thread stoped [21:36:19]accept exits with 9 [21:36:19]New connection [21:36:19]New thread 3067276644 created [21:36:19]Thread 3067133284 joined [21:36:19]Waiting for new connection... [21:36:19] Sock 9.Parse request [21:36:19]Sock 9.Check first char [21:36:19]Sock 9.First char is OK [21:36:19]request: POST /json_proto HTTP/1.0 [21:36:19]Method: POST [21:36:19]URL: /json_proto [21:36:19]Method is POST - this is cgi request [21:36:19]url: /json_proto [21:36:19]query_string will be loaded in cgi processing [21:36:19]execute_cgi json_proto POST (null) [21:36:19]execute_cgi path=json_proto method=POST [21:36:19]POST find Content-Length [21:36:19]Host: 172.17.44.131:8080 [21:36:19]Content-Length: 667 [21:36:19]Content-Type: application/json [21:36:19] [21:36:19]POST finish read [21:36:19]Found Content-Length = 667 [21:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "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:36:19]execute_script... [21:36: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)294731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 4.370, "sum" : 300.66, "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:36:19]POST & json_proto [21:36:19]process_json_proto [21:36:19]json parsed OK: [21:36:19]protocol is kg_v1.0 [21:36:19]action value=close_receipt [21:36:19]process_action close_receipt [21:36:19]cmd_close_receipt [21:36:19]MH_GetDate [21:36:19]Write to MH i2c: F0 00 00 1D 00 0C [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 09 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: F0 09 00 1D 00 00 D3 00 C9 66 4F 53 BE 66 DD [21:36:19]GetLastDocTimeStamp 1724447111 [21:36:19]current date 1724448979 [21:36:19]FM_GetShiftState [21:36:19]SAM_PROTO_GetShiftState [21:36:19]wFMCommunicate request_size=4 [21:36:19]MH_SAM_APDU [21:36:19]CAPDU: 80 13 01 00 [21:36:19]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [21:36:19]Write i2c OK [21:36:19]MH_I2C_Read... [21:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:19]Read from MH i2c: E2 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 0E 00 [21:36:19]MH_I2C_Read... [21:36:19]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [21:36:19]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:36:19]wFMCommunicate OK [21:36:19]SAM_PROTO_GetShiftState done [21:36:19]FM_GetShiftState done [21:36:19]opened in 1724371660 [21:36:19]opened+sec_in_day 1724458060 [21:36:19]quantity*price = 30065 [21:36:19]sum+1 = 30067 [21:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.93 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 208 23.08.2024 21:36 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178748 ФПД: 148114119324043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213619&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178748&fm=148114119324043&tin=02508201610067®Number=0000000000092561&sum=30000 [21:36:21]StoreToDocumentArchive [21:36:21]shift 470 fd 178748 [21:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C3 39 47 00 CF 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 31 37 37 38 10 04 04 00 3B BA 02 00 F4 03 04 00 79 AC C8 66 B6 04 01 00 00 DF 89 DA 68 BA 9C 9F 1C [21:36:21]CommunicateWithHost err = 0 [21:36:21]CheckOFDResponse [21:36:21]1017 (14) - 77093643461234 [21:36:21]1041 (16) - 0000000000871778 [21:36:21]1040 (4) - 178747 [21:36:21]1012 (4) - 23.08.2024 15:36 [21:36:21]1206 (1) - 0 [21:36:21]OFD Sender: Remove packet 178747 [21:36:21]ProducePacketName [21:36:21]name=ofd_packets/00178747 [21:36:21]NVStorageDeleteData [21:36:21]save to /storage/0470/doc_00178748 [21:36:21]save last doc name /storage/0470/doc_00178748 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=249 [21:36:21]tlvbuf is 00F9ABF0 [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 2B 00 80 09 00 00 00 00 00 00 9D [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 2B 00 00 90 00 9F [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 2C 00 80 0D 01 02 00 00 00 00 A5 [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 2C 00 00 90 00 A0 [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 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 D0 00 00 00 F4 03 04 00 D3 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3C BA 02 00 35 04 06 00 86 B5 81 [21:36:21]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 D0 00 00 00 F4 03 04 00 D3 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3C BA 02 00 35 04 06 00 86 B5 81 00 00 A8 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]OFD Sender: No OFD packet to send [21:36:21]*** iso7816_exchange 80 0D 02 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 2D 00 00 90 00 A1 [21:36:21]RAPDU: 90 00 [21:36:21]wFMCommunicate OK [21:36:21]wFMCommunicate request_size=8 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 0D 02 02 03 77 F1 8B [21:36:21]Write to MH i2c: E2 0B 00 2E 00 80 0D 02 02 03 00 77 F1 8B 00 00 A1 [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 0D 02 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 2E 00 00 90 00 A2 [21:36:21]RAPDU: 90 00 [21:36:21]wFMCommunicate OK [21:36:21]wFMCommunicate request_size=4 [21:36:21]MH_SAM_APDU [21:36:21]CAPDU: 80 0D 03 02 [21:36:21]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:36:21]Write i2c OK [21:36:21]MH_I2C_Read... [21:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:21]Read from MH i2c: E2 [21:36:21]MH_I2C_Read... [21:36:21]Read from MH i2c: E2 0B 00 [21:36:21]MH_I2C_Read... [21:36:22]Read from MH i2c: E2 0B 00 2F 00 00 FA 7C E6 9B 6F 18 01 5E 90 00 88 [21:36:22]RAPDU: FA 7C E6 9B 6F 18 01 5E 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 30 00 80 11 00 00 00 00 00 00 AA [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 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [21:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:36:22]wFMCommunicate OK [21:36:22]CreateOFDProtocolMessage done [21:36:22]OFDSenderStorePacket 178748 [21:36:22]StoreOFDPacket docnum=178748 [21:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 E7 08 05 01 AF A1 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 D0 00 00 00 F4 03 04 00 D3 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3C BA 02 00 35 04 06 00 86 B5 81 77 F1 8B FA 7C E6 9B 6F 18 01 5E [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/00178748 [21:36:22]NVStorageSaveData ofd_packets/00178748 [21:36:22]File name is /storage/ofd_packets/00178748 [21:36:22]Write 299 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 31 00 31 [21:36:22]OFD Sender: Processing packet 178748 [packets to send 500, broken 499] [21:36:22]ProducePacketName [21:36:22]name=ofd_packets/00178748 [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]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 31 00 00 00 00 00 00 FF 0F 46 [21:36:22]RasterBufferAndPrint [21:36:22]line Счет N : (1)294731 [21:36:22]line ИНН: 02508201610067 [21:36:22]line Контрольно-Кассовый Чек [21:36:22]line ПРОДАЖА [21:36:22]line ТРК (МРК, ГНК) : 41 [21:36:22]line Товар: 2710124130 [21:36:22]line SU-92-К-5 [21:36:22]line 4.370 * 68.80 [21:36:22]line = 300.66 [21:36:22]line НДС 12% НСП 1% [21:36:22]line > о реализуемом товаре [21:36:22]line ОКРУГЛЕНИЕ: -0.66 [21:36:22]line ИТОГО: 300.00 [21:36:22]line Внесено: 300.00 [21:36:22]line СДАЧА: 0.00 [21:36:22]line НСП 1% : 2.66 [21:36:22]line НДС 12% : 31.93 [21:36:22]line Наличными: 300.00 [21:36:22]line Безнал.: 0.00 [21:36:22]line Место: АЗС № 130 "Партнер Нефть" [21:36:22]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:36:22]line СНО: Общий режим [21:36:22]line Чек 208 23.08.2024 21:36 [21:36:22]line Смена: 470 ФФД: 1.0 [21:36:22]line ЗНМ: 0300000071 [21:36:22]line РНМ: 0000000000092561 [21:36:22]line Версия ККМ: 001 [21:36:22]line ФМ: 0000000000871778 [21:36:22]line ФД: 178748 [21:36:22]line ФПД: 148114119324043 [21:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213619&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178748&fm=148114119324043&tin=02508201610067®Number=0000000000092561&sum=30000 [21:36:22]written 0, free lines is 4095 [21:36:22]Write to MH i2c: 01 00 00 5C 00 5C [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 5C 00 00 00 00 00 00 D2 0C 41 [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 3306 [21:36:22]MH_Cut [21:36:22]Write to MH i2c: D1 01 00 63 00 01 35 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: D1 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: D1 01 00 [21:36:22]MH_I2C_Read... [21:36:22]Read from MH i2c: D1 01 00 63 00 00 34 [21:36:22]Write to MH i2c: 01 00 00 64 00 64 [21:36:22]Write i2c OK [21:36:22]MH_I2C_Read... [21:36:23]Connected sock=7 [21:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 E7 08 05 01 AF A1 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 11 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 72 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 79 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 D0 00 00 00 F4 03 04 00 D3 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3C BA 02 00 35 04 06 00 86 B5 81 77 F1 8B FA 7C E6 9B 6F 18 01 5E [21:36:23]*** Cut start [21:36:23]*** Partial cut [21:36:23]*** CUTSNS_PIN = 1 [21:36:23]*** CUTSNS_PIN = 0 [21:36:23]*** Brake cut motor [21:36:23]Read from MH i2c: 01 [21:36:23]MH_I2C_Read... [21:36:23]*** Stop cut motor [21:36:23]*** Cut end [21:36:23]Read from MH i2c: 01 07 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [21:36:23]process_action close_receipt done [21:36:23]requested_data is exist [21:36:23]produce_requested_data [21:36:23]requested_item fm.sn is exist - process it [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 11 00 00 [21:36:23]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 17 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [21:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:36:24]wFMCommunicate OK [21:36:24]requested_item fd.num is exist - process it [21:36:24]SAM_PROTO_GetFieldsCounters [21:36:24]wFMCommunicate request_size=4 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 13 00 00 [21:36:24]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 62 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3C BA 02 00 0E 04 04 00 D6 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 46 [21:36: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3C BA 02 00 0E 04 04 00 D6 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 [21:36:24]wFMCommunicate OK [21:36:24]SAM_PROTO_GetFieldsCounters done [21:36:24]requested_item shift.num is exist - process it [21:36:24]requested_item shift.opened is exist - process it [21:36:24]req_shift_opened [21:36:24]FM_GetShiftState [21:36:24]SAM_PROTO_GetShiftState [21:36:24]wFMCommunicate request_size=4 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 13 01 00 [21:36:24]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 0E 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BB [21:36:24]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:36:24]wFMCommunicate OK [21:36:24]SAM_PROTO_GetShiftState done [21:36:24]FM_GetShiftState done [21:36:24]req_shift_opened done [21:36:24]requested_item shift.open_date is exist - process it [21:36:24]req_shift_open_date [21:36:24]req_shift_open_date done [21:36:24]produce_requested_data done [21:36:24]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178748,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:36:24]process_action_free close_receipt [21:36:24]json_value_free [21:36:24]json_value_free done [21:36:24]process_json_proto returns [21:36:24]Send response to host [21:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178748,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:36:24]free response buf [21:36:24]execute_script done [21:36:24]execute_script returns [21:36:24]free content buf [21:36:24]Sock 9.Close socket [21:36:24]Sock 9.Thread stoped [21:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 59 69 47 00 7C FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3C BA 02 00 F4 03 04 00 7C AC C8 66 B6 04 01 00 00 1E A3 64 3E DE 49 24 1A [21:36:25]CommunicateWithHost err = 0 [21:36:25]CheckOFDResponse [21:36:25]1017 (14) - 77093643461234 [21:36:25]1041 (16) - 0000000000871778 [21:36:25]1040 (4) - 178748 [21:36:25]1012 (4) - 23.08.2024 15:36 [21:36:25]1206 (1) - 0 [21:36:25]OFD Sender: Remove packet 178748 [21:36:25]ProducePacketName [21:36:25]name=ofd_packets/00178748 [21:36:25]NVStorageDeleteData [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:52]recv_with_timeout no data received [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:01]accept exits with 11 [21:37:01]New connection [21:37:01]New thread 3067133284 created [21:37:01]Thread 3067276644 joined [21:37:01]Waiting for new connection... [21:37:01] Sock 11.Parse request [21:37:01]Sock 11.Check first char [21:37:01]Sock 11.First char is OK [21:37:01]request: POST /json_proto HTTP/1.0 [21:37:01]Method: POST [21:37:01]URL: /json_proto [21:37:01]Method is POST - this is cgi request [21:37:01]url: /json_proto [21:37:01]query_string will be loaded in cgi processing [21:37:01]execute_cgi json_proto POST (null) [21:37:01]execute_cgi path=json_proto method=POST [21:37:01]POST find Content-Length [21:37:01]Host: 172.17.44.131:8080 [21:37:01]Content-Length: 677 [21:37:01]Content-Type: application/json [21:37:01] [21:37:01]POST finish read [21:37:01]Found Content-Length = 677 [21:37:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294749", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [21:37:01]execute_script... [21:37: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)294749", "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" : 67.80, "quantity" : 7.380, "sum" : 500.36, "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" ] } } [21:37:01]POST & json_proto [21:37:01]process_json_proto [21:37:01]json parsed OK: [21:37:01]protocol is kg_v1.0 [21:37:01]action value=close_receipt [21:37:01]process_action close_receipt [21:37:01]cmd_close_receipt [21:37:01]MH_GetDate [21:37:01]Write to MH i2c: F0 00 00 68 00 57 [21:37:01]Write i2c OK [21:37:01]MH_I2C_Read... [21:37:01]Read from MH i2c: F0 [21:37:01]MH_I2C_Read... [21:37:01]Read from MH i2c: F0 09 00 [21:37:01]MH_I2C_Read... [21:37:01]Read from MH i2c: F0 09 00 68 00 00 FD 00 C9 66 4F 53 BE 66 52 [21:37:01]GetLastDocTimeStamp 1724448979 [21:37:01]current date 1724449021 [21:37:01]FM_GetShiftState [21:37:01]SAM_PROTO_GetShiftState [21:37:01]wFMCommunicate request_size=4 [21:37:01]MH_SAM_APDU [21:37:01]CAPDU: 80 13 01 00 [21:37:01]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [21:37:01]Write i2c OK [21:37:01]MH_I2C_Read... [21:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:01]Read from MH i2c: E2 [21:37:01]MH_I2C_Read... [21:37:01]Read from MH i2c: E2 0E 00 [21:37:01]MH_I2C_Read... [21:37:01]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BD [21:37:01]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:37:01]wFMCommunicate OK [21:37:01]SAM_PROTO_GetShiftState done [21:37:01]FM_GetShiftState done [21:37:01]opened in 1724371660 [21:37:01]opened+sec_in_day 1724458060 [21:37:01]quantity*price = 50036 [21:37:01]sum+1 = 50037 [21:37:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 209 23.08.2024 21:37 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178749 ФПД: 128573926183198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213701&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178749&fm=128573926183198&tin=02508201610067®Number=0000000000092561&sum=50000 [21:37:02]StoreToDocumentArchive [21:37:02]shift 470 fd 178749 [21:37:02]save to /storage/0470/doc_00178749 [21:37:02]save last doc name /storage/0470/doc_00178749 to /storage/kkm_last_doc_name [21:37:02]save OK [21:37:02]Clear old archive folders... [21:37:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:02]tlvbuf is 00F4A630 [21:37:02]SAM_PROTO_ClearQueue [21:37:02]wFMCommunicate request_size=4 [21:37:02]MH_SAM_APDU [21:37:02]CAPDU: 80 09 00 00 [21:37:02]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:02]Read from MH i2c: E2 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [21:37:02]RAPDU: 90 00 [21:37:02]wFMCommunicate OK [21:37:02]SAM_PROTO_ClearQueue done [21:37:02]KKMCreateOFDPacket [21:37:02]OFDProtocolAddRootSTLVToBuf [21:37:02]FM_MakeSignedData [21:37:02]FM_MakeSignedData [21:37:02]SAM_PROTO_SignData [21:37:02]wFMCommunicate request_size=4 [21:37:02]MH_SAM_APDU [21:37:02]CAPDU: 80 0D 01 02 [21:37:02]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:02]Read from MH i2c: E2 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [21:37:02]RAPDU: 90 00 [21:37:02]wFMCommunicate OK [21:37:02]wFMCommunicate request_size=255 [21:37:02]MH_SAM_APDU [21:37: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 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 D1 00 00 00 F4 03 04 00 FD 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3D BA 02 00 35 04 06 00 74 [21:37:02]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 D1 00 00 00 F4 03 04 00 FD 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3D BA 02 00 35 04 06 00 74 00 00 B4 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:02]Read from MH i2c: E2 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [21:37:02]RAPDU: 90 00 [21:37:02]wFMCommunicate OK [21:37:02]wFMCommunicate request_size=10 [21:37:02]MH_SAM_APDU [21:37:02]CAPDU: 80 0D 02 02 05 EF F3 32 91 1E [21:37:02]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 EF F3 32 91 1E 00 00 C0 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:02]Read from MH i2c: E2 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [21:37:02]RAPDU: 90 00 [21:37:02]wFMCommunicate OK [21:37:02]wFMCommunicate request_size=4 [21:37:02]MH_SAM_APDU [21:37:02]CAPDU: 80 0D 03 02 [21:37:02]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:02]Read from MH i2c: E2 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 0B 00 [21:37:02]MH_I2C_Read... [21:37:02]Read from MH i2c: E2 0B 00 7A 00 00 38 1F 93 9C FA 12 8C 64 90 00 78 [21:37:02]RAPDU: 38 1F 93 9C FA 12 8C 64 90 00 [21:37:02]wFMCommunicate OK [21:37:02]SAM_PROTO_SignData done [21:37:02]FM_MakeSignedData done [21:37:02]CreateOFDProtocolMessage [21:37:02]wFMCommunicate request_size=4 [21:37:02]MH_SAM_APDU [21:37:02]CAPDU: 80 11 00 00 [21:37:02]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [21:37:02]Write i2c OK [21:37:02]MH_I2C_Read... [21:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:03]Read from MH i2c: E2 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: E2 17 00 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4E [21:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:37:03]wFMCommunicate OK [21:37:03]CreateOFDProtocolMessage done [21:37:03]OFDSenderStorePacket 178749 [21:37:03]StoreOFDPacket docnum=178749 [21:37:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E0 C2 07 01 AF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 D1 00 00 00 F4 03 04 00 FD 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3D BA 02 00 35 04 06 00 74 EF F3 32 91 1E 38 1F 93 9C FA 12 8C 64 [21:37:03]CheckFolder [21:37:03]dirname=/storage/ofd_packets [21:37:03]CheckFolder done [21:37:03]ProducePacketName [21:37:03]name=ofd_packets/00178749 [21:37:03]NVStorageSaveData ofd_packets/00178749 [21:37:03]File name is /storage/ofd_packets/00178749 [21:37:03]Write 301 bytes [21:37:03]NVStorageSaveData done [21:37:03]OFDSenderStorePacket done [21:37:03]KKMCreateOFDPacket done [21:37:03]NVStorageSaveData kkm_last_timestamp [21:37:03]File name is /storage/kkm_last_timestamp [21:37:03]Write 4 bytes [21:37:03]NVStorageSaveData done [21:37:03]ExternCall_PrintAddStr [21:37:03]wPrintStart [21:37:03]Write to MH i2c: 01 00 00 7C 00 7C [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: 01 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: 01 07 00 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [21:37:03]RasterBufferAndPrint [21:37:03]line Счет N : (1)294749 [21:37:03]line ИНН: 02508201610067 [21:37:03]line Контрольно-Кассовый Чек [21:37:03]line ПРОДАЖА [21:37:03]line ТРК (МРК, ГНК) : 32 [21:37:03]line Товар: 2710124130 [21:37:03]line Аи-92-К-5 [21:37:03]line 7.380 * 67.80 [21:37:03]line = 500.36 [21:37:03]line НДС 12% НСП 1% [21:37:03]line > о реализуемом товаре [21:37:03]line ОКРУГЛЕНИЕ: -0.36 [21:37:03]line ИТОГО: 500.00 [21:37:03]line Внесено: 500.00 [21:37:03]line СДАЧА: 0.00 [21:37:03]line НСП 1% : 4.43 [21:37:03]line НДС 12% : 53.14 [21:37:03]line Наличными: 500.00 [21:37:03]line Безнал.: 0.00 [21:37:03]line Место: АЗС № 130 "Партнер Нефть" [21:37:03]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:37:03]line СНО: Общий режим [21:37:03]line Чек 209 23.08.2024 21:37 [21:37:03]line Смена: 470 ФФД: 1.0 [21:37:03]line ЗНМ: 0300000071 [21:37:03]line РНМ: 0000000000092561 [21:37:03]line Версия ККМ: 001 [21:37:03]line ФМ: 0000000000871778 [21:37:03]line ФД: 178749 [21:37:03]line ФПД: 128573926183198 [21:37:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213701&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178749&fm=128573926183198&tin=02508201610067®Number=0000000000092561&sum=50000 [21:37:03]written 0, free lines is 4095 [21:37:03]OFD Sender: Processing packet 178749 [packets to send 500, broken 499] [21:37:03]ProducePacketName [21:37:03]name=ofd_packets/00178749 [21:37:03]OFD Sender: To server: pG, [21:37:03]CommunicateWithHost lk.salyk.kg:30040 [21:37:03]ConnectInit lk.salyk.kg [21:37:03]Write to MH i2c: 01 00 00 A7 00 A7 [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: 01 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: 01 07 00 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 D2 0C 8C [21:37:03]RasterBufferAndPrint [21:37:03]line [21:37:03]line [21:37:03]line [21:37:03]line [21:37:03]line [21:37:03]written 0, free lines is 3297 [21:37:03]MH_Cut [21:37:03]Write to MH i2c: D1 01 00 AE 00 01 80 [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: D1 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: D1 01 00 [21:37:03]MH_I2C_Read... [21:37:03]Read from MH i2c: D1 01 00 AE 00 00 7F [21:37:03]Write to MH i2c: 01 00 00 AF 00 AF [21:37:03]Write i2c OK [21:37:03]MH_I2C_Read... [21:37:04]*** Cut start [21:37:04]*** Partial cut [21:37:04]*** CUTSNS_PIN = 1 [21:37:04]*** CUTSNS_PIN = 0 [21:37:04]*** Brake cut motor [21:37:04]Read from MH i2c: 01 [21:37:04]MH_I2C_Read... [21:37:04]*** Stop cut motor [21:37:04]*** Cut end [21:37:04]Read from MH i2c: 01 07 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [21:37:04]process_action close_receipt done [21:37:04]requested_data is exist [21:37:04]produce_requested_data [21:37:04]requested_item fm.sn is exist - process it [21:37:04]wFMCommunicate request_size=4 [21:37:04]MH_SAM_APDU [21:37:04]CAPDU: 80 11 00 00 [21:37:04]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:04]Read from MH i2c: E2 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 17 00 [21:37:04]MH_I2C_Read... [21:37:04]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [21:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:37:04]wFMCommunicate OK [21:37:04]requested_item fd.num is exist - process it [21:37:04]SAM_PROTO_GetFieldsCounters [21:37:04]wFMCommunicate request_size=4 [21:37:04]MH_SAM_APDU [21:37:04]CAPDU: 80 13 00 00 [21:37:04]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [21:37:04]Write i2c OK [21:37:04]MH_I2C_Read... [21:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:05]Read from MH i2c: E2 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: E2 62 00 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3D BA 02 00 0E 04 04 00 D6 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 95 [21:37: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3D BA 02 00 0E 04 04 00 D6 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 [21:37:05]wFMCommunicate OK [21:37:05]SAM_PROTO_GetFieldsCounters done [21:37:05]requested_item shift.num is exist - process it [21:37:05]requested_item shift.opened is exist - process it [21:37:05]req_shift_opened [21:37:05]FM_GetShiftState [21:37:05]SAM_PROTO_GetShiftState [21:37:05]wFMCommunicate request_size=4 [21:37:05]MH_SAM_APDU [21:37:05]CAPDU: 80 13 01 00 [21:37:05]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [21:37:05]Write i2c OK [21:37:05]MH_I2C_Read... [21:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:05]Read from MH i2c: E2 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: E2 0E 00 [21:37:05]MH_I2C_Read... [21:37:05]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 06 [21:37:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:37:05]wFMCommunicate OK [21:37:05]SAM_PROTO_GetShiftState done [21:37:05]FM_GetShiftState done [21:37:05]req_shift_opened done [21:37:05]requested_item shift.open_date is exist - process it [21:37:05]req_shift_open_date [21:37:05]req_shift_open_date done [21:37:05]produce_requested_data done [21:37:05]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178749,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:37:05]process_action_free close_receipt [21:37:05]json_value_free [21:37:05]json_value_free done [21:37:05]process_json_proto returns [21:37:05]Send response to host [21:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178749,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:37:05]free response buf [21:37:05]execute_script done [21:37:05]execute_script returns [21:37:05]free content buf [21:37:05]Sock 11.Close socket [21:37:05]Sock 11.Thread stoped [21:37:08]recv_with_timeout no data received [21:37:08]Connected sock=10 [21:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E0 C2 07 01 AF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 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 D1 00 00 00 F4 03 04 00 FD 00 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3D BA 02 00 35 04 06 00 74 EF F3 32 91 1E 38 1F 93 9C FA 12 8C 64 [21:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 7C FD 47 00 34 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 31 37 37 38 10 04 04 00 3D BA 02 00 F4 03 04 00 AA AC C8 66 B6 04 01 00 00 9C 09 0C 1A 7E B4 75 DE [21:37:09]CommunicateWithHost err = 0 [21:37:09]CheckOFDResponse [21:37:09]1017 (14) - 77093643461234 [21:37:09]1041 (16) - 0000000000871778 [21:37:09]1040 (4) - 178749 [21:37:09]1012 (4) - 23.08.2024 15:37 [21:37:09]1206 (1) - 0 [21:37:09]OFD Sender: Remove packet 178749 [21:37:09]ProducePacketName [21:37:09]name=ofd_packets/00178749 [21:37:09]NVStorageDeleteData [21:37:10]OFD Sender: No OFD packet to send [21:37:11]accept exits with 9 [21:37:11]New connection [21:37:11]New thread 3067276644 created [21:37:11]Thread 3067133284 joined [21:37:11]Waiting for new connection... [21:37:11] Sock 9.Parse request [21:37:11]Sock 9.Check first char [21:37:11]Sock 9.First char is OK [21:37:11]request: POST /json_proto HTTP/1.0 [21:37:11]Method: POST [21:37:11]URL: /json_proto [21:37:11]Method is POST - this is cgi request [21:37:11]url: /json_proto [21:37:11]query_string will be loaded in cgi processing [21:37:11]execute_cgi json_proto POST (null) [21:37:11]execute_cgi path=json_proto method=POST [21:37:11]POST find Content-Length [21:37:11]Host: 172.17.44.131:8080 [21:37:11]Content-Length: 667 [21:37:11]Content-Type: application/json [21:37:11] [21:37:11]POST finish read [21:37:11]Found Content-Length = 667 [21:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 3.640, "sum" : 250.43, "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" ] } } [21:37:11]execute_script... [21:37: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)294750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 3.640, "sum" : 250.43, "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" ] } } [21:37:11]POST & json_proto [21:37:11]process_json_proto [21:37:11]json parsed OK: [21:37:11]protocol is kg_v1.0 [21:37:11]action value=close_receipt [21:37:11]process_action close_receipt [21:37:11]cmd_close_receipt [21:37:11]MH_GetDate [21:37:11]Write to MH i2c: F0 00 00 B3 00 A2 [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: F0 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: F0 09 00 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: F0 09 00 B3 00 00 08 01 C9 66 4F 53 BE 66 A9 [21:37:11]GetLastDocTimeStamp 1724449021 [21:37:11]current date 1724449032 [21:37:11]FM_GetShiftState [21:37:11]SAM_PROTO_GetShiftState [21:37:11]wFMCommunicate request_size=4 [21:37:11]MH_SAM_APDU [21:37:11]CAPDU: 80 13 01 00 [21:37:11]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [21:37:11]Write i2c OK [21:37:11]MH_I2C_Read... [21:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:11]Read from MH i2c: E2 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: E2 0E 00 [21:37:11]MH_I2C_Read... [21:37:11]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 08 [21:37:11]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:37:11]wFMCommunicate OK [21:37:11]SAM_PROTO_GetShiftState done [21:37:11]FM_GetShiftState done [21:37:11]opened in 1724371660 [21:37:11]opened+sec_in_day 1724458060 [21:37:11]quantity*price = 25043 [21:37:11]sum+1 = 25044 [21:37:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.59 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 210 23.08.2024 21:37 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178750 ФПД: 4319799854108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213712&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178750&fm=4319799854108&tin=02508201610067®Number=0000000000092561&sum=25000 [21:37:13]StoreToDocumentArchive [21:37:13]shift 470 fd 178750 [21:37:13]save to /storage/0470/doc_00178750 [21:37:13]save last doc name /storage/0470/doc_00178750 to /storage/kkm_last_doc_name [21:37:13]save OK [21:37:13]Clear old archive folders... [21:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=249 [21:37:13]tlvbuf is 00F4C250 [21:37:13]SAM_PROTO_ClearQueue [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 09 00 00 [21:37:13]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_ClearQueue done [21:37:13]KKMCreateOFDPacket [21:37:13]OFDProtocolAddRootSTLVToBuf [21:37:13]FM_MakeSignedData [21:37:13]FM_MakeSignedData [21:37:13]SAM_PROTO_SignData [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 01 02 [21:37:13]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]wFMCommunicate request_size=255 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 D2 00 00 00 F4 03 04 00 08 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3E BA 02 00 35 04 06 00 03 ED C8 [21:37:13]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 D2 00 00 00 F4 03 04 00 08 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3E BA 02 00 35 04 06 00 03 ED C8 00 00 67 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]wFMCommunicate request_size=8 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 02 02 03 22 C4 1C [21:37:13]Write to MH i2c: E2 0B 00 C4 00 80 0D 02 02 03 00 22 C4 1C 00 00 46 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [21:37:13]RAPDU: 90 00 [21:37:13]wFMCommunicate OK [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 0D 03 02 [21:37:13]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0B 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 0B 00 C5 00 00 27 4C 41 C5 CF CB CA FD 90 00 1B [21:37:13]RAPDU: 27 4C 41 C5 CF CB CA FD 90 00 [21:37:13]wFMCommunicate OK [21:37:13]SAM_PROTO_SignData done [21:37:13]FM_MakeSignedData done [21:37:13]CreateOFDProtocolMessage [21:37:13]wFMCommunicate request_size=4 [21:37:13]MH_SAM_APDU [21:37:13]CAPDU: 80 11 00 00 [21:37:13]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:13]Read from MH i2c: E2 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 17 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 99 [21:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:37:13]wFMCommunicate OK [21:37:13]CreateOFDProtocolMessage done [21:37:13]OFDSenderStorePacket 178750 [21:37:13]StoreOFDPacket docnum=178750 [21:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 0F 37 05 01 23 77 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 D2 00 00 00 F4 03 04 00 08 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3E BA 02 00 35 04 06 00 03 ED C8 22 C4 1C 27 4C 41 C5 CF CB CA FD [21:37:13]CheckFolder [21:37:13]dirname=/storage/ofd_packets [21:37:13]CheckFolder done [21:37:13]ProducePacketName [21:37:13]name=ofd_packets/00178750 [21:37:13]NVStorageSaveData ofd_packets/00178750 [21:37:13]File name is /storage/ofd_packets/00178750 [21:37:13]Write 299 bytes [21:37:13]NVStorageSaveData done [21:37:13]OFDSenderStorePacket done [21:37:13]KKMCreateOFDPacket done [21:37:13]NVStorageSaveData kkm_last_timestamp [21:37:13]File name is /storage/kkm_last_timestamp [21:37:13]Write 4 bytes [21:37:13]NVStorageSaveData done [21:37:13]ExternCall_PrintAddStr [21:37:13]wPrintStart [21:37:13]Write to MH i2c: 01 00 00 C7 00 C7 [21:37:13]Write i2c OK [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 07 00 [21:37:13]MH_I2C_Read... [21:37:13]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [21:37:13]RasterBufferAndPrint [21:37:13]line Счет N : (1)294750 [21:37:13]line ИНН: 02508201610067 [21:37:13]line Контрольно-Кассовый Чек [21:37:13]line ПРОДАЖА [21:37:13]line ТРК (МРК, ГНК) : 61 [21:37:13]line Товар: 2710124130 [21:37:13]line SU-92-К-5 [21:37:13]line 3.640 * 68.80 [21:37:13]line = 250.43 [21:37:13]line НДС 12% НСП 1% [21:37:13]line > о реализуемом товаре [21:37:13]line ОКРУГЛЕНИЕ: -0.43 [21:37:13]line ИТОГО: 250.00 [21:37:13]line Внесено: 250.00 [21:37:13]line СДАЧА: 0.00 [21:37:13]line НСП 1% : 2.22 [21:37:13]line НДС 12% : 26.59 [21:37:13]line Наличными: 250.00 [21:37:13]line Безнал.: 0.00 [21:37:13]line Место: АЗС № 130 "Партнер Нефть" [21:37:13]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:37:13]line СНО: Общий режим [21:37:13]line Чек 210 23.08.2024 21:37 [21:37:13]line Смена: 470 ФФД: 1.0 [21:37:13]line ЗНМ: 0300000071 [21:37:13]line РНМ: 0000000000092561 [21:37:13]line Версия ККМ: 001 [21:37:13]line ФМ: 0000000000871778 [21:37:13]line ФД: 178750 [21:37:13]line ФПД: 4319799854108 [21:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213712&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178750&fm=4319799854108&tin=02508201610067®Number=0000000000092561&sum=25000 [21:37:13]written 0, free lines is 4095 [21:37:14]OFD Sender: Processing packet 178750 [packets to send 500, broken 499] [21:37:14]ProducePacketName [21:37:14]name=ofd_packets/00178750 [21:37:14]OFD Sender: To server: pG, [21:37:14]CommunicateWithHost lk.salyk.kg:30040 [21:37:14]ConnectInit lk.salyk.kg [21:37:14]Write to MH i2c: 01 00 00 F2 00 F2 [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 DE 0C E3 [21:37:14]RasterBufferAndPrint [21:37:14]line [21:37:14]line [21:37:14]line [21:37:14]line [21:37:14]line [21:37:14]written 0, free lines is 3318 [21:37:14]MH_Cut [21:37:14]Write to MH i2c: D1 01 00 F9 00 01 CB [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: D1 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: D1 01 00 [21:37:14]MH_I2C_Read... [21:37:14]Read from MH i2c: D1 01 00 F9 00 00 CA [21:37:14]Write to MH i2c: 01 00 00 FA 00 FA [21:37:14]Write i2c OK [21:37:14]MH_I2C_Read... [21:37:14]Connected sock=11 [21:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 0F 37 05 01 23 77 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 D3 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 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 D2 00 00 00 F4 03 04 00 08 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3E BA 02 00 35 04 06 00 03 ED C8 22 C4 1C 27 4C 41 C5 CF CB CA FD [21:37:15]*** Cut start [21:37:15]*** Partial cut [21:37:15]*** CUTSNS_PIN = 1 [21:37:15]*** CUTSNS_PIN = 0 [21:37:15]*** Brake cut motor [21:37:15]Read from MH i2c: 01 *** Stop cut motor [21:37:15] [21:37:15]*** Cut end [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [21:37:15]process_action close_receipt done [21:37:15]requested_data is exist [21:37:15]produce_requested_data [21:37:15]requested_item fm.sn is exist - process it [21:37:15]wFMCommunicate request_size=4 [21:37:15]MH_SAM_APDU [21:37:15]CAPDU: 80 11 00 00 [21:37:15]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 17 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CE [21:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:37:15]wFMCommunicate OK [21:37:15]requested_item fd.num is exist - process it [21:37:15]SAM_PROTO_GetFieldsCounters [21:37:15]wFMCommunicate request_size=4 [21:37:15]MH_SAM_APDU [21:37:15]CAPDU: 80 13 00 00 [21:37:15]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [21:37:15]Write i2c OK [21:37:15]MH_I2C_Read... [21:37:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:15]Read from MH i2c: E2 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 62 00 [21:37:15]MH_I2C_Read... [21:37:15]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3E BA 02 00 0E 04 04 00 D6 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 E4 [21:37: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3E BA 02 00 0E 04 04 00 D6 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 [21:37:16]wFMCommunicate OK [21:37:16]SAM_PROTO_GetFieldsCounters done [21:37:16]requested_item shift.num is exist - process it [21:37:16]requested_item shift.opened is exist - process it [21:37:16]req_shift_opened [21:37:16]FM_GetShiftState [21:37:16]SAM_PROTO_GetShiftState [21:37:16]wFMCommunicate request_size=4 [21:37:16]MH_SAM_APDU [21:37:16]CAPDU: 80 13 01 00 [21:37:16]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [21:37:16]Write i2c OK [21:37:16]MH_I2C_Read... [21:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:16]Read from MH i2c: E2 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 0E 00 [21:37:16]MH_I2C_Read... [21:37:16]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 51 [21:37:16]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:37:16]wFMCommunicate OK [21:37:16]SAM_PROTO_GetShiftState done [21:37:16]FM_GetShiftState done [21:37:16]req_shift_opened done [21:37:16]requested_item shift.open_date is exist - process it [21:37:16]req_shift_open_date [21:37:16]req_shift_open_date done [21:37:16]produce_requested_data done [21:37:16]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178750,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:37:16]process_action_free close_receipt [21:37:16]json_value_free [21:37:16]json_value_free done [21:37:16]process_json_proto returns [21:37:16]Send response to host [21:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178750,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:37:16]free response buf [21:37:16]execute_script done [21:37:16]execute_script returns [21:37:16]free content buf [21:37:16]Sock 9.Close socket [21:37:16]Sock 9.Thread stoped [21:37:19]recv_with_timeout no data received [21:37:19]CommunicateWithHost answer receiving error [21:37:19]CommunicateWithHost err = -3 [21:37:19]OFD Sender: Server communicate error [21:37:24]OFD Sender: Processing packet 178750 [packets to send 500, broken 499] [21:37:24]ProducePacketName [21:37:24]name=ofd_packets/00178750 [21:37:24]OFD Sender: To server: pG, [21:37:24]CommunicateWithHost lk.salyk.kg:30040 [21:37:24]ConnectInit lk.salyk.kg [21:37:25]accept exits with 7 [21:37:25]New connection [21:37:25]New thread 3067133284 created [21:37:25]Thread 3067276644 joined [21:37:25]Waiting for new connection... [21:37:25] Sock 7.Parse request [21:37:25]Sock 7.Check first char [21:37:25]Sock 7.First char is OK [21:37:25]request: POST /json_proto HTTP/1.0 [21:37:25]Method: POST [21:37:25]URL: /json_proto [21:37:25]Method is POST - this is cgi request [21:37:25]url: /json_proto [21:37:25]query_string will be loaded in cgi processing [21:37:25]execute_cgi json_proto POST (null) [21:37:25]execute_cgi path=json_proto method=POST [21:37:25]POST find Content-Length [21:37:25]Host: 172.17.44.131:8080 [21:37:25]Content-Length: 803 [21:37:25]Content-Type: application/json [21:37:25] [21:37:25]POST finish read [21:37:25]Found Content-Length = 803 [21:37:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:25]execute_script... [21:37:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:25]POST & json_proto [21:37:25]process_json_proto [21:37:25]json parsed OK: [21:37:25]protocol is kg_v1.0 [21:37:25]action value=close_receipt [21:37:25]process_action close_receipt [21:37:25]cmd_close_receipt [21:37:25]MH_GetDate [21:37:25]Write to MH i2c: F0 00 00 FE 00 ED [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: F0 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: F0 09 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: F0 09 00 FE 00 00 16 01 C9 66 4F 53 BE 66 02 [21:37:25]GetLastDocTimeStamp 1724449032 [21:37:25]current date 1724449046 [21:37:25]FM_GetShiftState [21:37:25]SAM_PROTO_GetShiftState [21:37:25]wFMCommunicate request_size=4 [21:37:25]MH_SAM_APDU [21:37:25]CAPDU: 80 13 01 00 [21:37:25]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [21:37:25]Write i2c OK [21:37:25]MH_I2C_Read... [21:37:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:25]Read from MH i2c: E2 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 0E 00 [21:37:25]MH_I2C_Read... [21:37:25]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 53 [21:37:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:37:25]wFMCommunicate OK [21:37:25]SAM_PROTO_GetShiftState done [21:37:25]FM_GetShiftState done [21:37:25]opened in 1724371660 [21:37:25]opened+sec_in_day 1724458060 [21:37:25]quantity*price = 100021 [21:37:25]sum+1 = 100023 [21:37:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 211 23.08.2024 21:37 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178751 ФПД: 279898000708232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213726&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178751&fm=279898000708232&tin=02508201610067®Number=0000000000092561&sum=100022 [21:37:27]StoreToDocumentArchive [21:37:27]shift 470 fd 178751 [21:37:27]save to /storage/0470/doc_00178751 [21:37:27]save last doc name /storage/0470/doc_00178751 to /storage/kkm_last_doc_name [21:37:27]save OK [21:37:27]Clear old archive folders... [21:37:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:37:27]tlvbuf is 00F779C0 [21:37:27]SAM_PROTO_ClearQueue [21:37:27]wFMCommunicate request_size=4 [21:37:27]MH_SAM_APDU [21:37:27]CAPDU: 80 09 00 00 [21:37:27]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:27]Read from MH i2c: E2 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [21:37:27]RAPDU: 90 00 [21:37:27]wFMCommunicate OK [21:37:27]SAM_PROTO_ClearQueue done [21:37:27]KKMCreateOFDPacket [21:37:27]OFDProtocolAddRootSTLVToBuf [21:37:27]FM_MakeSignedData [21:37:27]FM_MakeSignedData [21:37:27]SAM_PROTO_SignData [21:37:27]wFMCommunicate request_size=4 [21:37:27]MH_SAM_APDU [21:37:27]CAPDU: 80 0D 01 02 [21:37:27]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:27]Read from MH i2c: E2 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [21:37:27]RAPDU: 90 00 [21:37:27]wFMCommunicate OK [21:37:27]wFMCommunicate request_size=255 [21:37:27]MH_SAM_APDU [21:37: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 16 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3F BA 02 00 35 04 06 00 FE [21:37:27]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 16 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3F BA 02 00 35 04 06 00 FE 00 00 4C [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:27]Read from MH i2c: E2 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [21:37:27]RAPDU: 90 00 [21:37:27]wFMCommunicate OK [21:37:27]wFMCommunicate request_size=10 [21:37:27]MH_SAM_APDU [21:37:27]CAPDU: 80 0D 02 02 05 90 D4 E7 D2 88 [21:37:27]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 90 D4 E7 D2 88 00 00 39 [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:27]Read from MH i2c: E2 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [21:37:27]RAPDU: 90 00 [21:37:27]wFMCommunicate OK [21:37:27]wFMCommunicate request_size=4 [21:37:27]MH_SAM_APDU [21:37:27]CAPDU: 80 0D 03 02 [21:37:27]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:27]Read from MH i2c: E2 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 0B 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 0B 00 10 01 00 40 AA 76 07 AD 95 E8 AE 90 00 CC [21:37:27]RAPDU: 40 AA 76 07 AD 95 E8 AE 90 00 [21:37:27]wFMCommunicate OK [21:37:27]SAM_PROTO_SignData done [21:37:27]FM_MakeSignedData done [21:37:27]CreateOFDProtocolMessage [21:37:27]wFMCommunicate request_size=4 [21:37:27]MH_SAM_APDU [21:37:27]CAPDU: 80 11 00 00 [21:37:27]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:27]Read from MH i2c: E2 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 17 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E5 [21:37:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:37:27]wFMCommunicate OK [21:37:27]CreateOFDProtocolMessage done [21:37:27]OFDSenderStorePacket 178751 [21:37:27]StoreOFDPacket docnum=178751 [21:37:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 5B 1A 07 01 C7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 16 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3F BA 02 00 35 04 06 00 FE 90 D4 E7 D2 88 40 AA 76 07 AD 95 E8 AE [21:37:27]CheckFolder [21:37:27]dirname=/storage/ofd_packets [21:37:27]CheckFolder done [21:37:27]ProducePacketName [21:37:27]name=ofd_packets/00178751 [21:37:27]NVStorageSaveData ofd_packets/00178751 [21:37:27]File name is /storage/ofd_packets/00178751 [21:37:27]Write 301 bytes [21:37:27]NVStorageSaveData done [21:37:27]OFDSenderStorePacket done [21:37:27]KKMCreateOFDPacket done [21:37:27]NVStorageSaveData kkm_last_timestamp [21:37:27]File name is /storage/kkm_last_timestamp [21:37:27]Write 4 bytes [21:37:27]NVStorageSaveData done [21:37:27]ExternCall_PrintAddStr [21:37:27]wPrintStart [21:37:27]Write to MH i2c: 01 00 00 12 01 13 [21:37:27]Write i2c OK [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: 01 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: 01 07 00 [21:37:27]MH_I2C_Read... [21:37:27]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [21:37:27]RasterBufferAndPrint [21:37:27]line Счет N : (1)294751 [21:37:27]line ИНН: 02508201610067 [21:37:27]line Контрольно-Кассовый Чек [21:37:27]line ПРОДАЖА [21:37:27]line ТРК (МРК, ГНК) : 43 [21:37:27]line Товар: 2710124500 [21:37:27]line Аи-95-К-5 [21:37:27]line 13.480 * 74.20 [21:37:27]line = 1000.22 [21:37:27]line НДС 12% НСП 1% [21:37:27]line > о реализуемом товаре [21:37:27]line ИТОГО: 1000.22 [21:37:27]line НСП 1% : 8.85 [21:37:27]line НДС 12% : 106.22 [21:37:27]line Наличными: 0.00 [21:37:27]line Безнал.: 1000.22 [21:37:27]line Место: АЗС № 130 "Партнер Нефть" [21:37:27]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:37:27]line СНО: Общий режим [21:37:27]line Чек 211 23.08.2024 21:37 [21:37:27]line Смена: 470 ФФД: 1.0 [21:37:27]line ЗНМ: 0300000071 [21:37:27]line РНМ: 0000000000092561 [21:37:27]line Версия ККМ: 001 [21:37:27]line Платежная система: O! деньги [21:37:27]line ФМ: 0000000000871778 [21:37:27]line ФД: 178751 [21:37:27]line ФПД: 279898000708232 [21:37:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T213726&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178751&fm=279898000708232&tin=02508201610067®Number=0000000000092561&sum=100022 [21:37:27]written 0, free lines is 4095 [21:37:28]Write to MH i2c: 01 00 00 3C 01 3D [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: 01 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: 01 07 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 EA 0C 3A [21:37:28]RasterBufferAndPrint [21:37:28]line [21:37:28]line [21:37:28]line [21:37:28]line [21:37:28]line [21:37:28]written 0, free lines is 3333 [21:37:28]MH_Cut [21:37:28]Write to MH i2c: D1 01 00 43 01 01 16 [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: D1 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: D1 01 00 [21:37:28]MH_I2C_Read... [21:37:28]Read from MH i2c: D1 01 00 43 01 00 15 [21:37:28]Write to MH i2c: 01 00 00 44 01 45 [21:37:28]Write i2c OK [21:37:28]MH_I2C_Read... [21:37:29]*** Cut start [21:37:29]*** Partial cut [21:37:29]*** CUTSNS_PIN = 1 [21:37:29]*** CUTSNS_PIN = 0 [21:37:29]*** Brake cut motor [21:37:29]Read from MH i2c: 01 [21:37:29]MH_I2C_Read... [21:37:29]*** Stop cut motor [21:37:29]*** Cut end [21:37:29]Read from MH i2c: 01 07 00 [21:37:29]MH_I2C_Read... [21:37:29]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [21:37:29]process_action close_receipt done [21:37:29]requested_data is exist [21:37:29]produce_requested_data [21:37:29]requested_item fm.sn is exist - process it [21:37:29]wFMCommunicate request_size=4 [21:37:29]MH_SAM_APDU [21:37:29]CAPDU: 80 11 00 00 [21:37:29]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [21:37:29]Write i2c OK [21:37:29]MH_I2C_Read... [21:37:29]Connected sock=10 [21:37:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 0F 37 05 01 23 77 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 Read from MH i2c: 04 E2 4B [21:37:29]00 MH_I2C_Read... [21:37:29]8A Read from MH i2c: 04 E2 0A 17 00 00 32 [21:37:29]37 MH_I2C_Read... [21:37:29]31 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:29]30 Read from MH i2c: 31 E2 32 17 34 00 31 45 33 01 30 00 06 11 04 04 0A 10 00 00 53 30 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 0E 00 00 00 00 00 37 04 30 06 30 00 30 E0 30 1A 30 00 30 00 30 00 30 00 30 13 38 04 37 06 31 00 37 D3 37 61 38 00 90 00 00 00 19 00 [21:37:29]F2 RAPDU: 03 11 01 04 00 10 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 00 30 30 EF 30 03 30 0F 30 00 30 F6 30 03 30 01 30 00 30 01 38 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 37 0A 31 00 37 00 37 00 38 00 90 07 00 04 [21:37:29]06 wFMCommunicate OK [21:37:29]00 requested_item fd.num is exist - process it [21:37:29]A8 SAM_PROTO_GetFieldsCounters [21:37:29]61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 wFMCommunicate request_size=4 [21:37:29]04 MH_SAM_APDU [21:37:29]00 CAPDU: 80 D2 13 00 00 00 00 00 [21:37:29]F4 Write to MH i2c: 03 E2 04 08 00 00 08 46 01 01 C9 80 66 13 0E 00 04 00 04 00 00 00 D6 00 01 00 00 C3 00 [21:37:29]B9 04 01 00 01 0D Write i2c OK [21:37:29]04 10 MH_I2C_Read... [21:37:29]00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3E BA 02 00 35 04 06 00 03 ED C8 22 C4 1C 27 4C 41 C5 CF CB CA FD [21:37:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:37:30]Read from MH i2c: E2 [21:37:30]MH_I2C_Read... [21:37:30]Read from MH i2c: E2 62 00 [21:37:30]MH_I2C_Read... [21:37:30]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3F BA 02 00 0E 04 04 00 D6 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 33 [21:37: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 3F BA 02 00 0E 04 04 00 D6 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:37:30]wFMCommunicate OK [21:37:30]SAM_PROTO_GetFieldsCounters done [21:37:30]requested_item shift.num is exist - process it [21:37:30]requested_item shift.opened is exist - process it [21:37:30]req_shift_opened [21:37:30]FM_GetShiftState [21:37:30]SAM_PROTO_GetShiftState [21:37:30]wFMCommunicate request_size=4 [21:37:30]MH_SAM_APDU [21:37:30]CAPDU: 80 13 01 00 [21:37:30]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [21:37:30]Write i2c OK [21:37:30]MH_I2C_Read... [21:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:30]Read from MH i2c: E2 [21:37:30]MH_I2C_Read... [21:37:30]Read from MH i2c: E2 0E 00 [21:37:30]MH_I2C_Read... [21:37:30]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9C [21:37:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:37:30]wFMCommunicate OK [21:37:30]SAM_PROTO_GetShiftState done [21:37:30]FM_GetShiftState done [21:37:30]req_shift_opened done [21:37:30]requested_item shift.open_date is exist - process it [21:37:30]req_shift_open_date [21:37:30]req_shift_open_date done [21:37:30]produce_requested_data done [21:37:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178751,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:37:30]process_action_free close_receipt [21:37:30]json_value_free [21:37:30]json_value_free done [21:37:30]process_json_proto returns [21:37:30]Send response to host [21:37:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178751,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:37:30]free response buf [21:37:30]execute_script done [21:37:30]execute_script returns [21:37:30]free content buf [21:37:30]Sock 7.Close socket [21:37:30]Sock 7.Thread stoped [21:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F1 E0 47 00 E6 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 31 37 37 38 10 04 04 00 3E BA 02 00 F4 03 04 00 BE AC C8 66 B6 04 01 00 00 1E 4A 51 57 F4 5A 72 0C [21:37:30]CommunicateWithHost err = 0 [21:37:30]CheckOFDResponse [21:37:30]1017 (14) - 77093643461234 [21:37:30]1041 (16) - 0000000000871778 [21:37:30]1040 (4) - 178750 [21:37:30]1012 (4) - 23.08.2024 15:37 [21:37:30]1206 (1) - 0 [21:37:30]OFD Sender: Remove packet 178750 [21:37:30]ProducePacketName [21:37:30]name=ofd_packets/00178750 [21:37:30]NVStorageDeleteData [21:37:30]OFD Sender: Processing packet 178751 [packets to send 500, broken 499] [21:37:30]ProducePacketName [21:37:30]name=ofd_packets/00178751 [21:37:30]OFD Sender: To server: pG, [21:37:30]CommunicateWithHost lk.salyk.kg:30040 [21:37:30]ConnectInit lk.salyk.kg [21:37:33]Connected sock=7 [21:37:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 5B 1A 07 01 C7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 16 01 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 3F BA 02 00 35 04 06 00 FE 90 D4 E7 D2 88 40 AA 76 07 AD 95 E8 AE [21:37:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CD C8 47 00 35 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 31 37 37 38 10 04 04 00 3F BA 02 00 F4 03 04 00 C2 AC C8 66 B6 04 01 00 00 2F C1 D9 51 8F B4 4F F6 [21:37:34]CommunicateWithHost err = 0 [21:37:34]CheckOFDResponse [21:37:34]1017 (14) - 77093643461234 [21:37:34]1041 (16) - 0000000000871778 [21:37:34]1040 (4) - 178751 [21:37:34]1012 (4) - 23.08.2024 15:37 [21:37:34]1206 (1) - 0 [21:37:34]OFD Sender: Remove packet 178751 [21:37:34]ProducePacketName [21:37:34]name=ofd_packets/00178751 [21:37:34]NVStorageDeleteData [21:37:34]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:37:57]recv_with_timeout no data received [21:37:59]OFD Sender: No OFD packet to send [21:38:04]OFD Sender: No OFD packet to send [21:38:09]OFD Sender: No OFD packet to send [21:38:14]OFD Sender: No OFD packet to send [21:38:19]recv_with_timeout no data received [21:38:19]OFD Sender: No OFD packet to send [21:38:24]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:33]recv_with_timeout no data received [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:51]recv_with_timeout no data received [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:03]recv_with_timeout no data received [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:15]recv_with_timeout no data received [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:28]recv_with_timeout no data received [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:47]recv_with_timeout no data received [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:39]recv_with_timeout no data received [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:04]recv_with_timeout no data received [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:07]recv_with_timeout no data received [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:28]recv_with_timeout no data received [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:06]recv_with_timeout no data received [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]recv_with_timeout no data received [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:37]recv_with_timeout no data received [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:55]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:46:58]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:50:02]ConnectInit Can't connect to host [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]accept exits with 11 [21:51:56]New connection [21:51:56]New thread 3067276644 created [21:51:56]Thread 3067133284 joined [21:51:56]Waiting for new connection... [21:51:56] Sock 11.Parse request [21:51:56]Sock 11.Check first char [21:51:56]Sock 11.First char is OK [21:51:56]request: POST /json_proto HTTP/1.0 [21:51:56]Method: POST [21:51:56]URL: /json_proto [21:51:56]Method is POST - this is cgi request [21:51:56]url: /json_proto [21:51:56]query_string will be loaded in cgi processing [21:51:56]execute_cgi json_proto POST (null) [21:51:56]execute_cgi path=json_proto method=POST [21:51:56]POST find Content-Length [21:51:56]Host: 172.17.44.131:8080 [21:51:56]Content-Length: 682 [21:51:56]Content-Type: application/json [21:51:56] [21:51:56]POST finish read [21:51:56]Found Content-Length = 682 [21:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:56]execute_script... [21:51: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)294764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:56]POST & json_proto [21:51:56]process_json_proto [21:51:56]json parsed OK: [21:51:56]protocol is kg_v1.0 [21:51:56]action value=close_receipt [21:51:56]process_action close_receipt [21:51:56]cmd_close_receipt [21:51:56]MH_GetDate [21:51:56]Write to MH i2c: F0 00 00 48 01 38 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: F0 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: F0 09 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: F0 09 00 48 01 00 7D 04 C9 66 4F 53 BE 66 B7 [21:51:56]GetLastDocTimeStamp 1724449046 [21:51:56]current date 1724449917 [21:51:56]FM_GetShiftState [21:51:56]SAM_PROTO_GetShiftState [21:51:56]wFMCommunicate request_size=4 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 13 01 00 [21:51:56]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:56]Read from MH i2c: E2 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 0E 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9E [21:51:56]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:51:56]wFMCommunicate OK [21:51:56]SAM_PROTO_GetShiftState done [21:51:56]FM_GetShiftState done [21:51:56]opened in 1724371660 [21:51:56]opened+sec_in_day 1724458060 [21:51:56]quantity*price = 200043 [21:51:56]sum+1 = 200044 [21:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 212 23.08.2024 21:51 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178752 ФПД: 109841211424003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215157&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178752&fm=109841211424003&tin=02508201610067®Number=0000000000092561&sum=200000 [21:51:57]StoreToDocumentArchive [21:51:57]shift 470 fd 178752 [21:51:57]save to /storage/0470/doc_00178752 [21:51:57]save last doc name /storage/0470/doc_00178752 to /storage/kkm_last_doc_name [21:51:57]save OK [21:51:57]Clear old archive folders... [21:51:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:57]tlvbuf is 00F4D0D0 [21:51:57]SAM_PROTO_ClearQueue [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 09 00 00 [21:51:57]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [21:51:57]RAPDU: 90 00 [21:51:57]wFMCommunicate OK [21:51:57]SAM_PROTO_ClearQueue done [21:51:57]KKMCreateOFDPacket [21:51:57]OFDProtocolAddRootSTLVToBuf [21:51:57]FM_MakeSignedData [21:51:57]FM_MakeSignedData [21:51:57]SAM_PROTO_SignData [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 0D 01 02 [21:51:57]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [21:51:58]RAPDU: 90 00 [21:51:58]wFMCommunicate OK [21:51:58]wFMCommunicate request_size=255 [21:51:58]MH_SAM_APDU [21:51: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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7D 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 40 BA 02 00 35 04 06 00 63 [21:51:58]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7D 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 40 BA 02 00 35 04 06 00 63 00 00 C6 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [21:51:58]RAPDU: 90 00 [21:51:58]wFMCommunicate OK [21:51:58]wFMCommunicate request_size=10 [21:51:58]MH_SAM_APDU [21:51:58]CAPDU: 80 0D 02 02 05 E6 66 63 7D 03 [21:51:58]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 E6 66 63 7D 03 00 00 0D [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [21:51:58]RAPDU: 90 00 [21:51:58]wFMCommunicate OK [21:51:58]wFMCommunicate request_size=4 [21:51:58]MH_SAM_APDU [21:51:58]CAPDU: 80 0D 03 02 [21:51:58]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 0B 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 0B 00 5A 01 00 B4 5D 09 E6 EE 6D 37 10 90 00 79 [21:51:58]RAPDU: B4 5D 09 E6 EE 6D 37 10 90 00 [21:51:58]wFMCommunicate OK [21:51:58]SAM_PROTO_SignData done [21:51:58]FM_MakeSignedData done [21:51:58]CreateOFDProtocolMessage [21:51:58]wFMCommunicate request_size=4 [21:51:58]MH_SAM_APDU [21:51:58]CAPDU: 80 11 00 00 [21:51:58]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:58]Read from MH i2c: E2 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 17 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [21:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:51:58]wFMCommunicate OK [21:51:58]CreateOFDProtocolMessage done [21:51:58]OFDSenderStorePacket 178752 [21:51:58]StoreOFDPacket docnum=178752 [21:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A0 E4 07 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7D 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 40 BA 02 00 35 04 06 00 63 E6 66 63 7D 03 B4 5D 09 E6 EE 6D 37 10 [21:51:58]CheckFolder [21:51:58]dirname=/storage/ofd_packets [21:51:58]CheckFolder done [21:51:58]ProducePacketName [21:51:58]name=ofd_packets/00178752 [21:51:58]NVStorageSaveData ofd_packets/00178752 [21:51:58]File name is /storage/ofd_packets/00178752 [21:51:58]Write 301 bytes [21:51:58]NVStorageSaveData done [21:51:58]OFDSenderStorePacket done [21:51:58]KKMCreateOFDPacket done [21:51:58]NVStorageSaveData kkm_last_timestamp [21:51:58]File name is /storage/kkm_last_timestamp [21:51:58]Write 4 bytes [21:51:58]NVStorageSaveData done [21:51:58]ExternCall_PrintAddStr [21:51:58]wPrintStart [21:51:58]Write to MH i2c: 01 00 00 5C 01 5D [21:51:58]Write i2c OK [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 [21:51:58]MH_I2C_Read... [21:51:58]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [21:51:58]RasterBufferAndPrint [21:51:58]line Счет N : (1)294764 [21:51:58]line ИНН: 02508201610067 [21:51:58]line Контрольно-Кассовый Чек [21:51:58]line ПРОДАЖА [21:51:58]line ТРК (МРК, ГНК) : 33 [21:51:58]line Товар: 2710124500 [21:51:58]line Аи-95-К-5 [21:51:58]line 26.960 * 74.20 [21:51:58]line = 2000.43 [21:51:58]line НДС 12% НСП 1% [21:51:58]line > о реализуемом товаре [21:51:58]line ОКРУГЛЕНИЕ: -0.43 [21:51:58]line ИТОГО: 2000.00 [21:51:58]line Внесено: 2000.00 [21:51:58]line СДАЧА: 0.00 [21:51:58]line НСП 1% : 17.70 [21:51:58]line НДС 12% : 212.43 [21:51:58]line Наличными: 2000.00 [21:51:58]line Безнал.: 0.00 [21:51:58]line Место: АЗС № 130 "Партнер Нефть" [21:51:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:51:58]line СНО: Общий режим [21:51:58]line Чек 212 23.08.2024 21:51 [21:51:58]line Смена: 470 ФФД: 1.0 [21:51:58]line ЗНМ: 0300000071 [21:51:58]line РНМ: 0000000000092561 [21:51:58]line Версия ККМ: 001 [21:51:58]line ФМ: 0000000000871778 [21:51:58]line ФД: 178752 [21:51:58]line ФПД: 109841211424003 [21:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215157&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178752&fm=109841211424003&tin=02508201610067®Number=0000000000092561&sum=200000 [21:51:58]OFD Sender: Processing packet 178752 [packets to send 500, broken 499] [21:51:58]ProducePacketName [21:51:58]name=ofd_packets/00178752 [21:51:58]OFD Sender: To server: pG, [21:51:58]CommunicateWithHost lk.salyk.kg:30040 [21:51:58]ConnectInit lk.salyk.kg [21:51:58]written 0, free lines is 4095 [21:51:59]Write to MH i2c: 01 00 00 87 01 88 [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 07 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 C9 0C 64 [21:51:59]RasterBufferAndPrint [21:51:59]line [21:51:59]line [21:51:59]line [21:51:59]line [21:51:59]line [21:51:59]written 0, free lines is 3280 [21:51:59]MH_Cut [21:51:59]Write to MH i2c: D1 01 00 8E 01 01 61 [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: D1 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: D1 01 00 [21:51:59]MH_I2C_Read... [21:51:59]Read from MH i2c: D1 01 00 8E 01 00 60 [21:51:59]Write to MH i2c: 01 00 00 8F 01 90 [21:51:59]Write i2c OK [21:51:59]MH_I2C_Read... [21:51:59]Connected sock=9 [21:51:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 A0 E4 07 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 7D 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 40 BA 02 00 35 04 06 00 63 E6 66 63 7D 03 B4 5D 09 E6 EE 6D 37 10 [21:51:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 67 91 47 00 FC 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 40 BA 02 00 F4 03 04 00 24 B0 C8 66 B6 04 01 00 00 25 F2 DF B3 5F 0A DC 40 [21:51:59]CommunicateWithHost err = 0 [21:51:59]CheckOFDResponse [21:51:59]1017 (14) - 77093643461234 [21:51:59]1041 (16) - 0000000000871778 [21:51:59]1040 (4) - 178752 [21:51:59]1012 (4) - 23.08.2024 15:52 [21:51:59]1206 (1) - 0 [21:51:59]OFD Sender: Remove packet 178752 [21:51:59]ProducePacketName [21:51:59]name=ofd_packets/00178752 [21:51:59]NVStorageDeleteData [21:51:59]*** Cut start [21:51:59]*** Partial cut [21:51:59]*** CUTSNS_PIN = 1 [21:52:00]*** CUTSNS_PIN = 0 [21:52:00]*** Brake cut motor [21:52:00]OFD Sender: No OFD packet to send [21:52:00]Read from MH i2c: 01 [21:52:00]MH_I2C_Read... [21:52:00]*** Stop cut motor [21:52:00]*** Cut end [21:52:00]Read from MH i2c: 01 07 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [21:52:00]process_action close_receipt done [21:52:00]requested_data is exist [21:52:00]produce_requested_data [21:52:00]requested_item fm.sn is exist - process it [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 11 00 00 [21:52:00]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 17 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [21:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:52:00]wFMCommunicate OK [21:52:00]requested_item fd.num is exist - process it [21:52:00]SAM_PROTO_GetFieldsCounters [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 13 00 00 [21:52:00]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 62 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 40 BA 02 00 0E 04 04 00 D6 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 82 [21:52: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 40 BA 02 00 0E 04 04 00 D6 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 [21:52:00]wFMCommunicate OK [21:52:00]SAM_PROTO_GetFieldsCounters done [21:52:00]requested_item shift.num is exist - process it [21:52:00]requested_item shift.opened is exist - process it [21:52:00]req_shift_opened [21:52:00]FM_GetShiftState [21:52:00]SAM_PROTO_GetShiftState [21:52:00]wFMCommunicate request_size=4 [21:52:00]MH_SAM_APDU [21:52:00]CAPDU: 80 13 01 00 [21:52:00]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [21:52:00]Write i2c OK [21:52:00]MH_I2C_Read... [21:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:00]Read from MH i2c: E2 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 [21:52:00]MH_I2C_Read... [21:52:00]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E7 [21:52:00]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:52:00]wFMCommunicate OK [21:52:00]SAM_PROTO_GetShiftState done [21:52:00]FM_GetShiftState done [21:52:00]req_shift_opened done [21:52:00]requested_item shift.open_date is exist - process it [21:52:00]req_shift_open_date [21:52:00]req_shift_open_date done [21:52:00]produce_requested_data done [21:52:00]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178752,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:52:00]process_action_free close_receipt [21:52:00]json_value_free [21:52:00]json_value_free done [21:52:00]process_json_proto returns [21:52:00]Send response to host [21:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178752,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:52:00]free response buf [21:52:00]execute_script done [21:52:00]execute_script returns [21:52:00]free content buf [21:52:00]Sock 11.Close socket [21:52:00]Sock 11.Thread stoped [21:52:05]OFD Sender: No OFD packet to send [21:52:07]recv_with_timeout no data received [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:21]recv_with_timeout no data received [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:34]recv_with_timeout no data received [21:52:35]OFD Sender: No OFD packet to send [21:52:39]accept exits with 7 [21:52:39]New connection [21:52:39]New thread 3067133284 created [21:52:39]Thread 3067276644 joined [21:52:39]Waiting for new connection... [21:52:39] Sock 7.Parse request [21:52:39]Sock 7.Check first char [21:52:39]Sock 7.First char is OK [21:52:39]request: POST /json_proto HTTP/1.0 [21:52:39]Method: POST [21:52:39]URL: /json_proto [21:52:39]Method is POST - this is cgi request [21:52:39]url: /json_proto [21:52:39]query_string will be loaded in cgi processing [21:52:39]execute_cgi json_proto POST (null) [21:52:39]execute_cgi path=json_proto method=POST [21:52:39]POST find Content-Length [21:52:39]Host: 172.17.44.131:8080 [21:52:39]Content-Length: 672 [21:52:39]Content-Type: application/json [21:52:39] [21:52:39]POST finish read [21:52:39]Found Content-Length = 672 [21:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:39]execute_script... [21:52: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)294766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:39]POST & json_proto [21:52:39]process_json_proto [21:52:39]json parsed OK: [21:52:39]protocol is kg_v1.0 [21:52:39]action value=close_receipt [21:52:39]process_action close_receipt [21:52:39]cmd_close_receipt [21:52:39]MH_GetDate [21:52:39]Write to MH i2c: F0 00 00 93 01 83 [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: F0 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: F0 09 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: F0 09 00 93 01 00 A7 04 C9 66 4F 53 BE 66 2C [21:52:39]GetLastDocTimeStamp 1724449917 [21:52:39]current date 1724449959 [21:52:39]FM_GetShiftState [21:52:39]SAM_PROTO_GetShiftState [21:52:39]wFMCommunicate request_size=4 [21:52:39]MH_SAM_APDU [21:52:39]CAPDU: 80 13 01 00 [21:52:39]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:39]Read from MH i2c: E2 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 0E 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E9 [21:52:39]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:52:39]wFMCommunicate OK [21:52:39]SAM_PROTO_GetShiftState done [21:52:39]FM_GetShiftState done [21:52:39]opened in 1724371660 [21:52:39]opened+sec_in_day 1724458060 [21:52:39]quantity*price = 100035 [21:52:39]sum+1 = 100036 [21:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 213 23.08.2024 21:52 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178753 ФПД: 143642820863899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215239&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178753&fm=143642820863899&tin=02508201610067®Number=0000000000092561&sum=100000 [21:52:40]StoreToDocumentArchive [21:52:40]shift 470 fd 178753 [21:52:40]save to /storage/0470/doc_00178753 [21:52:40]save last doc name /storage/0470/doc_00178753 to /storage/kkm_last_doc_name [21:52:40]save OK [21:52:40]Clear old archive folders... [21:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=249 [21:52:40]tlvbuf is 00F9D920 [21:52:40]SAM_PROTO_ClearQueue [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 09 00 00 [21:52:40]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]SAM_PROTO_ClearQueue done [21:52:40]KKMCreateOFDPacket [21:52:40]OFDProtocolAddRootSTLVToBuf [21:52:40]FM_MakeSignedData [21:52:40]FM_MakeSignedData [21:52:40]SAM_PROTO_SignData [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 01 02 [21:52:40]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]wFMCommunicate request_size=255 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 D5 00 00 00 F4 03 04 00 A7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 41 BA 02 00 35 04 06 00 82 A4 73 [21:52:40]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 D5 00 00 00 F4 03 04 00 A7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 41 BA 02 00 35 04 06 00 82 A4 73 00 00 B6 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]wFMCommunicate request_size=8 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 02 02 03 4F E7 9B [21:52:40]Write to MH i2c: E2 0B 00 A4 01 80 0D 02 02 03 00 4F E7 9B 00 00 F6 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 03 02 [21:52:40]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:41]Read from MH i2c: E2 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 0B 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 0B 00 A5 01 00 6D FC E7 28 19 8E FB AB 90 00 E7 [21:52:41]RAPDU: 6D FC E7 28 19 8E FB AB 90 00 [21:52:41]wFMCommunicate OK [21:52:41]SAM_PROTO_SignData done [21:52:41]FM_MakeSignedData done [21:52:41]CreateOFDProtocolMessage [21:52:41]wFMCommunicate request_size=4 [21:52:41]MH_SAM_APDU [21:52:41]CAPDU: 80 11 00 00 [21:52:41]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:41]Read from MH i2c: E2 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 17 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [21:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:52:41]wFMCommunicate OK [21:52:41]CreateOFDProtocolMessage done [21:52:41]OFDSenderStorePacket 178753 [21:52:41]StoreOFDPacket docnum=178753 [21:52:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 70 C3 05 01 BB EF 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 D5 00 00 00 F4 03 04 00 A7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 41 BA 02 00 35 04 06 00 82 A4 73 4F E7 9B 6D FC E7 28 19 8E FB AB [21:52:41]CheckFolder [21:52:41]dirname=/storage/ofd_packets [21:52:41]CheckFolder done [21:52:41]ProducePacketName [21:52:41]name=ofd_packets/00178753 [21:52:41]NVStorageSaveData ofd_packets/00178753 [21:52:41]File name is /storage/ofd_packets/00178753 [21:52:41]Write 299 bytes [21:52:41]NVStorageSaveData done [21:52:41]OFDSenderStorePacket done [21:52:41]KKMCreateOFDPacket done [21:52:41]NVStorageSaveData kkm_last_timestamp [21:52:41]File name is /storage/kkm_last_timestamp [21:52:41]Write 4 bytes [21:52:41]NVStorageSaveData done [21:52:41]ExternCall_PrintAddStr [21:52:41]wPrintStart [21:52:41]Write to MH i2c: 01 00 00 A7 01 A8 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 07 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [21:52:41]RasterBufferAndPrint [21:52:41]line Счет N : (1)294766 [21:52:41]line ИНН: 02508201610067 [21:52:41]line Контрольно-Кассовый Чек [21:52:41]line ПРОДАЖА [21:52:41]line ТРК (МРК, ГНК) : 51 [21:52:41]line Товар: 2710124130 [21:52:41]line SU-92-К-5 [21:52:41]line 14.540 * 68.80 [21:52:41]line = 1000.35 [21:52:41]line НДС 12% НСП 1% [21:52:41]line > о реализуемом товаре [21:52:41]line ОКРУГЛЕНИЕ: -0.35 [21:52:41]line ИТОГО: 1000.00 [21:52:41]line Внесено: 1000.00 [21:52:41]line СДАЧА: 0.00 [21:52:41]line НСП 1% : 8.85 [21:52:41]line НДС 12% : 106.23 [21:52:41]line Наличными: 1000.00 [21:52:41]line Безнал.: 0.00 [21:52:41]line Место: АЗС № 130 "Партнер Нефть" [21:52:41]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:52:41]line СНО: Общий режим [21:52:41]line Чек 213 23.08.2024 21:52 [21:52:41]line Смена: 470 ФФД: 1.0 [21:52:41]line ЗНМ: 0300000071 [21:52:41]line РНМ: 0000000000092561 [21:52:41]line Версия ККМ: 001 [21:52:41]line ФМ: 0000000000871778 [21:52:41]line ФД: 178753 [21:52:41]line ФПД: 143642820863899 [21:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215239&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178753&fm=143642820863899&tin=02508201610067®Number=0000000000092561&sum=100000 [21:52:41]OFD Sender: Processing packet 178753 [packets to send 500, broken 499] [21:52:41]ProducePacketName [21:52:41]name=ofd_packets/00178753 [21:52:41]OFD Sender: To server: pG, [21:52:41]CommunicateWithHost lk.salyk.kg:30040 [21:52:41]ConnectInit lk.salyk.kg [21:52:41]written 0, free lines is 4095 [21:52:41]Write to MH i2c: 01 00 00 D2 01 D3 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 07 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 CC 0C B2 [21:52:41]RasterBufferAndPrint [21:52:41]line [21:52:41]line [21:52:41]line [21:52:41]line [21:52:41]line [21:52:41]written 0, free lines is 3283 [21:52:41]MH_Cut [21:52:41]Write to MH i2c: D1 01 00 D9 01 01 AC [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: D1 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: D1 01 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: D1 01 00 D9 01 00 AB [21:52:41]Write to MH i2c: 01 00 00 DA 01 DB [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:42]*** Cut start [21:52:42]*** Partial cut [21:52:42]*** CUTSNS_PIN = 1 [21:52:42]*** CUTSNS_PIN = 0 [21:52:42]*** Brake cut motor [21:52:43]Read from MH i2c: 01 [21:52:43]MH_I2C_Read... [21:52:43]*** Stop cut motor [21:52:43]*** Cut end [21:52:43]Read from MH i2c: 01 07 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [21:52:43]process_action close_receipt done [21:52:43]requested_data is exist [21:52:43]produce_requested_data [21:52:43]requested_item fm.sn is exist - process it [21:52:43]wFMCommunicate request_size=4 [21:52:43]MH_SAM_APDU [21:52:43]CAPDU: 80 11 00 00 [21:52:43]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [21:52:43]Write i2c OK [21:52:43]MH_I2C_Read... [21:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:43]Read from MH i2c: E2 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 17 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [21:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:52:43]wFMCommunicate OK [21:52:43]requested_item fd.num is exist - process it [21:52:43]SAM_PROTO_GetFieldsCounters [21:52:43]wFMCommunicate request_size=4 [21:52:43]MH_SAM_APDU [21:52:43]CAPDU: 80 13 00 00 [21:52:43]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [21:52:43]Write i2c OK [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 [21:52:43]MH_I2C_Read... [21:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:43]Read from MH i2c: E2 62 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 41 BA 02 00 0E 04 04 00 D6 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 D1 [21:52: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 41 BA 02 00 0E 04 04 00 D6 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:52:43]wFMCommunicate OK [21:52:43]SAM_PROTO_GetFieldsCounters done [21:52:43]requested_item shift.num is exist - process it [21:52:43]requested_item shift.opened is exist - process it [21:52:43]req_shift_opened [21:52:43]FM_GetShiftState [21:52:43]SAM_PROTO_GetShiftState [21:52:43]wFMCommunicate request_size=4 [21:52:43]MH_SAM_APDU [21:52:43]CAPDU: 80 13 01 00 [21:52:43]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [21:52:43]Write i2c OK [21:52:43]MH_I2C_Read... [21:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:43]Read from MH i2c: E2 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 0E 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 32 [21:52:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:52:43]wFMCommunicate OK [21:52:43]SAM_PROTO_GetShiftState done [21:52:43]FM_GetShiftState done [21:52:43]req_shift_opened done [21:52:43]requested_item shift.open_date is exist - process it [21:52:43]req_shift_open_date [21:52:43]req_shift_open_date done [21:52:43]produce_requested_data done [21:52:43]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178753,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:52:43]process_action_free close_receipt [21:52:43]json_value_free [21:52:43]json_value_free done [21:52:43]process_json_proto returns [21:52:43]Send response to host [21:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178753,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:52:43]free response buf [21:52:43]execute_script done [21:52:43]execute_script returns [21:52:43]free content buf [21:52:43]Sock 7.Close socket [21:52:43]Sock 7.Thread stoped [21:52:47]accept exits with 9 [21:52:47]New connection [21:52:47]New thread 3067276644 created [21:52:47]Thread 3067133284 joined [21:52:47]Waiting for new connection... [21:52:47] Sock 9.Parse request [21:52:47]Sock 9.Check first char [21:52:47]Sock 9.First char is OK [21:52:47]request: POST /json_proto HTTP/1.0 [21:52:47]Method: POST [21:52:47]URL: /json_proto [21:52:47]Method is POST - this is cgi request [21:52:47]url: /json_proto [21:52:47]query_string will be loaded in cgi processing [21:52:47]execute_cgi json_proto POST (null) [21:52:47]execute_cgi path=json_proto method=POST [21:52:47]POST find Content-Length [21:52:47]Host: 172.17.44.131:8080 [21:52:47]Content-Length: 682 [21:52:47]Content-Type: application/json [21:52:47] [21:52:47]POST finish read [21:52:47]Found Content-Length = 682 [21:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294765", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:47]execute_script... [21: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)294765", "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" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:47]POST & json_proto [21:52:47]process_json_proto [21:52:47]json parsed OK: [21:52:47]protocol is kg_v1.0 [21:52:47]action value=close_receipt [21:52:47]process_action close_receipt [21:52:47]cmd_close_receipt [21:52:47]MH_GetDate [21:52:47]Write to MH i2c: F0 00 00 DE 01 CE [21:52:47]Write i2c OK [21:52:47]MH_I2C_Read... [21:52:47]Read from MH i2c: F0 [21:52:47]MH_I2C_Read... [21:52:47]Read from MH i2c: F0 09 00 [21:52:47]MH_I2C_Read... [21:52:47]Read from MH i2c: F0 09 00 DE 01 00 AF 04 C9 66 4F 53 BE 66 7F [21:52:47]GetLastDocTimeStamp 1724449959 [21:52:47]current date 1724449967 [21:52:47]FM_GetShiftState [21:52:47]SAM_PROTO_GetShiftState [21:52:47]wFMCommunicate request_size=4 [21:52:47]MH_SAM_APDU [21:52:47]CAPDU: 80 13 01 00 [21:52:47]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [21:52:47]Write i2c OK [21:52:47]MH_I2C_Read... [21:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:47]Read from MH i2c: E2 [21:52:47]MH_I2C_Read... [21:52:47]Read from MH i2c: E2 0E 00 [21:52:47]MH_I2C_Read... [21:52:47]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 34 [21:52:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:52:47]wFMCommunicate OK [21:52:47]SAM_PROTO_GetShiftState done [21:52:47]FM_GetShiftState done [21:52:47]opened in 1724371660 [21:52:47]opened+sec_in_day 1724458060 [21:52:47]quantity*price = 200043 [21:52:47]sum+1 = 200044 [21:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 214 23.08.2024 21:52 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178754 ФПД: 226297327035402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215247&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178754&fm=226297327035402&tin=02508201610067®Number=0000000000092561&sum=200000 [21:52:48]StoreToDocumentArchive [21:52:48]shift 470 fd 178754 [21:52:48]save to /storage/0470/doc_00178754 [21:52:48]save last doc name /storage/0470/doc_00178754 to /storage/kkm_last_doc_name [21:52:48]save OK [21:52:48]Clear old archive folders... [21:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:52:48]tlvbuf is 00FF5450 [21:52:48]SAM_PROTO_ClearQueue [21:52:48]wFMCommunicate request_size=4 [21:52:48]MH_SAM_APDU [21:52:48]CAPDU: 80 09 00 00 [21:52:48]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [21:52:48]Write i2c OK [21:52:48]MH_I2C_Read... [21:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:48]Read from MH i2c: E2 [21:52:48]MH_I2C_Read... [21:52:48]Read from MH i2c: E2 03 00 [21:52:48]MH_I2C_Read... [21:52:48]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [21:52:48]RAPDU: 90 00 [21:52:48]wFMCommunicate OK [21:52:48]SAM_PROTO_ClearQueue done [21:52:48]KKMCreateOFDPacket [21:52:48]OFDProtocolAddRootSTLVToBuf [21:52:48]FM_MakeSignedData [21:52:48]FM_MakeSignedData [21:52:48]SAM_PROTO_SignData [21:52:48]wFMCommunicate request_size=4 [21:52:48]MH_SAM_APDU [21:52:48]CAPDU: 80 0D 01 02 [21:52:48]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [21:52:48]Write i2c OK [21:52:48]MH_I2C_Read... [21:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:48]Read from MH i2c: E2 [21:52:48]MH_I2C_Read... [21:52:48]Read from MH i2c: E2 03 00 [21:52:48]MH_I2C_Read... [21:52:48]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [21:52:48]RAPDU: 90 00 [21:52:48]wFMCommunicate OK [21:52:48]wFMCommunicate request_size=255 [21:52:48]MH_SAM_APDU [21: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AF 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 42 BA 02 00 35 04 06 00 CD [21:52:48]Write to MH i2c: E2 02 01 EE 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AF 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 42 BA 02 00 35 04 06 00 CD 00 00 FC [21:52:48]Write i2c OK [21:52:48]MH_I2C_Read... [21:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:49]Read from MH i2c: E2 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 03 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [21:52:49]RAPDU: 90 00 [21:52:49]wFMCommunicate OK [21:52:49]wFMCommunicate request_size=10 [21:52:49]MH_SAM_APDU [21:52:49]CAPDU: 80 0D 02 02 05 D0 F3 CA A4 0A [21:52:49]Write to MH i2c: E2 0D 00 EF 01 80 0D 02 02 05 00 D0 F3 CA A4 0A 00 00 AF [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:49]Read from MH i2c: E2 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 03 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [21:52:49]RAPDU: 90 00 [21:52:49]wFMCommunicate OK [21:52:49]wFMCommunicate request_size=4 [21:52:49]MH_SAM_APDU [21:52:49]CAPDU: 80 0D 03 02 [21:52:49]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:49]Read from MH i2c: E2 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 0B 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 0B 00 F0 01 00 8C 40 66 57 F3 01 BC 11 90 00 B7 [21:52:49]RAPDU: 8C 40 66 57 F3 01 BC 11 90 00 [21:52:49]wFMCommunicate OK [21:52:49]SAM_PROTO_SignData done [21:52:49]FM_MakeSignedData done [21:52:49]CreateOFDProtocolMessage [21:52:49]wFMCommunicate request_size=4 [21:52:49]MH_SAM_APDU [21:52:49]CAPDU: 80 11 00 00 [21:52:49]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:49]Read from MH i2c: E2 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 17 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 C5 [21:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:52:49]wFMCommunicate OK [21:52:49]CreateOFDProtocolMessage done [21:52:49]OFDSenderStorePacket 178754 [21:52:49]StoreOFDPacket docnum=178754 [21:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 25 31 07 01 A7 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AF 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 42 BA 02 00 35 04 06 00 CD D0 F3 CA A4 0A 8C 40 66 57 F3 01 BC 11 [21:52:49]CheckFolder [21:52:49]dirname=/storage/ofd_packets [21:52:49]CheckFolder done [21:52:49]ProducePacketName [21:52:49]name=ofd_packets/00178754 [21:52:49]NVStorageSaveData ofd_packets/00178754 [21:52:49]File name is /storage/ofd_packets/00178754 [21:52:49]Write 301 bytes [21:52:49]NVStorageSaveData done [21:52:49]OFDSenderStorePacket done [21:52:49]KKMCreateOFDPacket done [21:52:49]NVStorageSaveData kkm_last_timestamp [21:52:49]File name is /storage/kkm_last_timestamp [21:52:49]Write 4 bytes [21:52:49]NVStorageSaveData done [21:52:49]ExternCall_PrintAddStr [21:52:49]wPrintStart [21:52:49]Write to MH i2c: 01 00 00 F2 01 F3 [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: 01 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: 01 07 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [21:52:49]RasterBufferAndPrint [21:52:49]line Счет N : (1)294765 [21:52:49]line ИНН: 02508201610067 [21:52:49]line Контрольно-Кассовый Чек [21:52:49]line ПРОДАЖА [21:52:49]line ТРК (МРК, ГНК) : 63 [21:52:49]line Товар: 2710124500 [21:52:49]line Аи-95-К-5 [21:52:49]line 26.960 * 74.20 [21:52:49]line = 2000.43 [21:52:49]line НДС 12% НСП 1% [21:52:49]line > о реализуемом товаре [21:52:49]line ОКРУГЛЕНИЕ: -0.43 [21:52:49]line ИТОГО: 2000.00 [21:52:49]line Внесено: 2000.00 [21:52:49]line СДАЧА: 0.00 [21:52:49]line НСП 1% : 17.70 [21:52:49]line НДС 12% : 212.43 [21:52:49]line Наличными: 2000.00 [21:52:49]line Безнал.: 0.00 [21:52:49]line Место: АЗС № 130 "Партнер Нефть" [21:52:49]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:52:49]line СНО: Общий режим [21:52:49]line Чек 214 23.08.2024 21:52 [21:52:49]line Смена: 470 ФФД: 1.0 [21:52:49]line ЗНМ: 0300000071 [21:52:49]line РНМ: 0000000000092561 [21:52:49]line Версия ККМ: 001 [21:52:49]line ФМ: 0000000000871778 [21:52:49]line ФД: 178754 [21:52:49]line ФПД: 226297327035402 [21:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215247&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178754&fm=226297327035402&tin=02508201610067®Number=0000000000092561&sum=200000 [21:52:49]written 0, free lines is 4095 [21:52:49]Write to MH i2c: 01 00 00 1D 02 1F [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: 01 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: 01 07 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 D6 0C 08 [21:52:49]RasterBufferAndPrint [21:52:49]line [21:52:49]line [21:52:49]line [21:52:49]line [21:52:49]line [21:52:49]written 0, free lines is 3301 [21:52:49]MH_Cut [21:52:49]Write to MH i2c: D1 01 00 24 02 01 F8 [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: D1 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: D1 01 00 [21:52:49]MH_I2C_Read... [21:52:49]Read from MH i2c: D1 01 00 24 02 00 F7 [21:52:49]Write to MH i2c: 01 00 00 25 02 27 [21:52:49]Write i2c OK [21:52:49]MH_I2C_Read... [21:52:50]*** Cut start [21:52:50]*** Partial cut [21:52:50]*** CUTSNS_PIN = 1 [21:52:50]*** CUTSNS_PIN = 0 [21:52:50]*** Brake cut motor [21:52:51]Read from MH i2c: 01 [21:52:51]MH_I2C_Read... [21:52:51]*** Stop cut motor [21:52:51]*** Cut end [21:52:51]Read from MH i2c: 01 07 00 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [21:52:51]process_action close_receipt done [21:52:51]requested_data is exist [21:52:51]produce_requested_data [21:52:51]requested_item fm.sn is exist - process it [21:52:51]wFMCommunicate request_size=4 [21:52:51]MH_SAM_APDU [21:52:51]CAPDU: 80 11 00 00 [21:52:51]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [21:52:51]Write i2c OK [21:52:51]MH_I2C_Read... [21:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:51]Read from MH i2c: E2 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 17 00 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 FB [21:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:52:51]wFMCommunicate OK [21:52:51]requested_item fd.num is exist - process it [21:52:51]SAM_PROTO_GetFieldsCounters [21:52:51]wFMCommunicate request_size=4 [21:52:51]MH_SAM_APDU [21:52:51]CAPDU: 80 13 00 00 [21:52:51]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [21:52:51]Write i2c OK [21:52:51]MH_I2C_Read... [21:52:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:51]Read from MH i2c: E2 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 62 00 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 42 BA 02 00 0E 04 04 00 D6 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 [21:52: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 42 BA 02 00 0E 04 04 00 D6 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:52:51]wFMCommunicate OK [21:52:51]SAM_PROTO_GetFieldsCounters done [21:52:51]requested_item shift.num is exist - process it [21:52:51]requested_item shift.opened is exist - process it [21:52:51]req_shift_opened [21:52:51]FM_GetShiftState [21:52:51]SAM_PROTO_GetShiftState [21:52:51]wFMCommunicate request_size=4 [21:52:51]MH_SAM_APDU [21:52:51]CAPDU: 80 13 01 00 [21:52:51]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [21:52:51]Write i2c OK [21:52:51]MH_I2C_Read... [21:52:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:51]Read from MH i2c: E2 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 0E 00 [21:52:51]MH_I2C_Read... [21:52:51]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 7E [21:52:51]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:52:51]wFMCommunicate OK [21:52:51]SAM_PROTO_GetShiftState done [21:52:51]FM_GetShiftState done [21:52:51]req_shift_opened done [21:52:51]requested_item shift.open_date is exist - process it [21:52:51]req_shift_open_date [21:52:51]req_shift_open_date done [21:52:51]produce_requested_data done [21:52:51]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178754,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:52:51]process_action_free close_receipt [21:52:51]json_value_free [21:52:51]json_value_free done [21:52:51]process_json_proto returns [21:52:51]Send response to host [21:52:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178754,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:52:51]free response buf [21:52:51]execute_script done [21:52:51]execute_script returns [21:52:51]free content buf [21:52:51]Sock 9.Close socket [21:52:51]Sock 9.Thread stoped [21:52:53]Connected sock=11 [21:52:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 70 C3 05 01 BB EF 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 D5 00 00 00 F4 03 04 00 A7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 41 BA 02 00 35 04 06 00 82 A4 73 4F E7 9B 6D FC E7 28 19 8E FB AB [21:52:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 0C AA 47 00 14 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 41 BA 02 00 F4 03 04 00 5C B0 C8 66 B6 04 01 00 00 5E EA 00 37 E3 36 E8 49 [21:52:55]CommunicateWithHost err = 0 [21:52:55]CheckOFDResponse [21:52:55]1017 (14) - 77093643461234 [21:52:55]1041 (16) - 0000000000871778 [21:52:55]1040 (4) - 178753 [21:52:55]1012 (4) - 23.08.2024 15:53 [21:52:55]1206 (1) - 0 [21:52:55]OFD Sender: Remove packet 178753 [21:52:55]ProducePacketName [21:52:55]name=ofd_packets/00178753 [21:52:55]NVStorageDeleteData [21:52:56]OFD Sender: Processing packet 178754 [packets to send 500, broken 499] [21:52:56]ProducePacketName [21:52:56]name=ofd_packets/00178754 [21:52:56]OFD Sender: To server: pG, [21:52:56]CommunicateWithHost lk.salyk.kg:30040 [21:52:56]ConnectInit lk.salyk.kg [21:53:00]recv_with_timeout no data received [21:53:01]ConnectInit Can't take IP for lk.salyk.kg [21:53:01]CommunicateWithHost connect error [21:53:01]CommunicateWithHost err = -1 [21:53:01]OFD Sender: Server communicate error [21:53:01]OFD Sender: Processing packet 178754 [packets to send 500, broken 499] [21:53:01]ProducePacketName [21:53:01]name=ofd_packets/00178754 [21:53:01]OFD Sender: To server: pG, [21:53:01]CommunicateWithHost lk.salyk.kg:30040 [21:53:01]ConnectInit lk.salyk.kg [21:53:06]ConnectInit Can't take IP for lk.salyk.kg [21:53:06]CommunicateWithHost connect error [21:53:06]CommunicateWithHost err = -1 [21:53:06]OFD Sender: Server communicate error [21:53:11]OFD Sender: Processing packet 178754 [packets to send 500, broken 499] [21:53:11]ProducePacketName [21:53:11]name=ofd_packets/00178754 [21:53:11]OFD Sender: To server: pG, [21:53:11]CommunicateWithHost lk.salyk.kg:30040 [21:53:11]ConnectInit lk.salyk.kg [21:53:17]recv_with_timeout no data received [21:53:27]Connected sock=9 [21:53:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 25 31 07 01 A7 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 AF 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 42 BA 02 00 35 04 06 00 CD D0 F3 CA A4 0A 8C 40 66 57 F3 01 BC 11 [21:53:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A4 9E 47 00 8A 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 31 37 37 38 10 04 04 00 42 BA 02 00 F4 03 04 00 7F B0 C8 66 B6 04 01 00 00 03 BA EA 36 68 4A 73 2A [21:53:31]CommunicateWithHost err = 0 [21:53:31]CheckOFDResponse [21:53:31]1017 (14) - 77093643461234 [21:53:31]1041 (16) - 0000000000871778 [21:53:31]1040 (4) - 178754 [21:53:31]1012 (4) - 23.08.2024 15:53 [21:53:31]1206 (1) - 0 [21:53:31]OFD Sender: Remove packet 178754 [21:53:31]ProducePacketName [21:53:31]name=ofd_packets/00178754 [21:53:31]NVStorageDeleteData [21:53:31]OFD Sender: No OFD packet to send [21:53:34]recv_with_timeout no data received [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:43]accept exits with 7 [21:53:43]New connection [21:53:43]New thread 3067133284 created [21:53:43]Thread 3067276644 joined [21:53:43]Waiting for new connection... [21:53:43] Sock 7.Parse request [21:53:43]Sock 7.Check first char [21:53:43]Sock 7.First char is OK [21:53:43]request: POST /json_proto HTTP/1.0 [21:53:43]Method: POST [21:53:43]URL: /json_proto [21:53:43]Method is POST - this is cgi request [21:53:43]url: /json_proto [21:53:43]query_string will be loaded in cgi processing [21:53:43]execute_cgi json_proto POST (null) [21:53:43]execute_cgi path=json_proto method=POST [21:53:43]POST find Content-Length [21:53:43]Host: 172.17.44.131:8080 [21:53:43]Content-Length: 677 [21:53:43]Content-Type: application/json [21:53:43] [21:53:43]POST finish read [21:53:43]Found Content-Length = 677 [21:53:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294768", "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" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [21:53:43]execute_script... [21:53: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)294768", "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" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [21:53:43]POST & json_proto [21:53:43]process_json_proto [21:53:43]json parsed OK: [21:53:43]protocol is kg_v1.0 [21:53:43]action value=close_receipt [21:53:43]process_action close_receipt [21:53:43]cmd_close_receipt [21:53:43]MH_GetDate [21:53:43]Write to MH i2c: F0 00 00 29 02 1A [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: F0 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: F0 09 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: F0 09 00 29 02 00 E7 04 C9 66 4F 53 BE 66 03 [21:53:43]GetLastDocTimeStamp 1724449967 [21:53:43]current date 1724450023 [21:53:43]FM_GetShiftState [21:53:43]SAM_PROTO_GetShiftState [21:53:43]wFMCommunicate request_size=4 [21:53:43]MH_SAM_APDU [21:53:43]CAPDU: 80 13 01 00 [21:53:43]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:43]Read from MH i2c: E2 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 0E 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 80 [21:53:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:53:43]wFMCommunicate OK [21:53:43]SAM_PROTO_GetShiftState done [21:53:43]FM_GetShiftState done [21:53:43]opened in 1724371660 [21:53:43]opened+sec_in_day 1724458060 [21:53:43]quantity*price = 60003 [21:53:43]sum+1 = 60004 [21:53:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 215 23.08.2024 21:53 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178755 ФПД: 90921353128433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215343&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178755&fm=90921353128433&tin=02508201610067®Number=0000000000092561&sum=60000 [21:53:44]StoreToDocumentArchive [21:53:44]shift 470 fd 178755 [21:53:44]save to /storage/0470/doc_00178755 [21:53:44]save last doc name /storage/0470/doc_00178755 to /storage/kkm_last_doc_name [21:53:44]save OK [21:53:44]Clear old archive folders... [21:53:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:44]tlvbuf is 00F76750 [21:53:44]SAM_PROTO_ClearQueue [21:53:44]wFMCommunicate request_size=4 [21:53:44]MH_SAM_APDU [21:53:44]CAPDU: 80 09 00 00 [21:53:44]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 03 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [21:53:44]RAPDU: 90 00 [21:53:44]wFMCommunicate OK [21:53:44]SAM_PROTO_ClearQueue done [21:53:44]KKMCreateOFDPacket [21:53:44]OFDProtocolAddRootSTLVToBuf [21:53:44]FM_MakeSignedData [21:53:44]FM_MakeSignedData [21:53:44]SAM_PROTO_SignData [21:53:44]wFMCommunicate request_size=4 [21:53:44]MH_SAM_APDU [21:53:44]CAPDU: 80 0D 01 02 [21:53:44]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 03 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [21:53:44]RAPDU: 90 00 [21:53:44]wFMCommunicate OK [21:53:44]wFMCommunicate request_size=255 [21:53:44]MH_SAM_APDU [21:53: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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 D7 00 00 00 F4 03 04 00 E7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 43 BA 02 00 35 04 06 00 52 [21:53:44]Write to MH i2c: E2 02 01 39 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 D7 00 00 00 F4 03 04 00 E7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 43 BA 02 00 35 04 06 00 52 00 00 16 [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:44]Read from MH i2c: E2 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 03 00 [21:53:44]MH_I2C_Read... [21:53:44]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [21:53:44]RAPDU: 90 00 [21:53:44]wFMCommunicate OK [21:53:44]wFMCommunicate request_size=10 [21:53:44]MH_SAM_APDU [21:53:44]CAPDU: 80 0D 02 02 05 B1 46 F4 A9 F1 [21:53:44]Write to MH i2c: E2 0D 00 3A 02 80 0D 02 02 05 00 B1 46 F4 A9 F1 00 00 45 [21:53:44]Write i2c OK [21:53:44]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [21:53:45]RAPDU: 90 00 [21:53:45]wFMCommunicate OK [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 0D 03 02 [21:53:45]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 0B 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 0B 00 3B 02 00 A5 A9 8D E2 76 3C 70 B9 90 00 51 [21:53:45]RAPDU: A5 A9 8D E2 76 3C 70 B9 90 00 [21:53:45]wFMCommunicate OK [21:53:45]SAM_PROTO_SignData done [21:53:45]FM_MakeSignedData done [21:53:45]CreateOFDProtocolMessage [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 11 00 00 [21:53:45]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:45]Read from MH i2c: E2 17 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 11 [21:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:53:45]wFMCommunicate OK [21:53:45]CreateOFDProtocolMessage done [21:53:45]OFDSenderStorePacket 178755 [21:53:45]StoreOFDPacket docnum=178755 [21:53:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 94 85 07 01 55 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 D7 00 00 00 F4 03 04 00 E7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 43 BA 02 00 35 04 06 00 52 B1 46 F4 A9 F1 A5 A9 8D E2 76 3C 70 B9 [21:53:45]CheckFolder [21:53:45]dirname=/storage/ofd_packets [21:53:45]CheckFolder done [21:53:45]ProducePacketName [21:53:45]name=ofd_packets/00178755 [21:53:45]NVStorageSaveData ofd_packets/00178755 [21:53:45]File name is /storage/ofd_packets/00178755 [21:53:45]Write 301 bytes [21:53:45]NVStorageSaveData done [21:53:45]OFDSenderStorePacket done [21:53:45]KKMCreateOFDPacket done [21:53:45]NVStorageSaveData kkm_last_timestamp [21:53:45]File name is /storage/kkm_last_timestamp [21:53:45]Write 4 bytes [21:53:45]NVStorageSaveData done [21:53:45]ExternCall_PrintAddStr [21:53:45]wPrintStart [21:53:45]Write to MH i2c: 01 00 00 3D 02 3F [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 07 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [21:53:45]RasterBufferAndPrint [21:53:45]line Счет N : (1)294768 [21:53:45]line ИНН: 02508201610067 [21:53:45]line Контрольно-Кассовый Чек [21:53:45]line ПРОДАЖА [21:53:45]line ТРК (МРК, ГНК) : 32 [21:53:45]line Товар: 2710124130 [21:53:45]line Аи-92-К-5 [21:53:45]line 8.850 * 67.80 [21:53:45]line = 600.03 [21:53:45]line НДС 12% НСП 1% [21:53:45]line > о реализуемом товаре [21:53:45]line ОКРУГЛЕНИЕ: -0.03 [21:53:45]line ИТОГО: 600.00 [21:53:45]line Внесено: 600.00 [21:53:45]line СДАЧА: 0.00 [21:53:45]line НСП 1% : 5.31 [21:53:45]line НДС 12% : 63.72 [21:53:45]line Наличными: 600.00 [21:53:45]line Безнал.: 0.00 [21:53:45]line Место: АЗС № 130 "Партнер Нефть" [21:53:45]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:53:45]line СНО: Общий режим [21:53:45]line Чек 215 23.08.2024 21:53 [21:53:45]line Смена: 470 ФФД: 1.0 [21:53:45]line ЗНМ: 0300000071 [21:53:45]line РНМ: 0000000000092561 [21:53:45]line Версия ККМ: 001 [21:53:45]line ФМ: 0000000000871778 [21:53:45]line ФД: 178755 [21:53:45]line ФПД: 90921353128433 [21:53:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215343&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178755&fm=90921353128433&tin=02508201610067®Number=0000000000092561&sum=60000 [21:53:45]written 0, free lines is 4095 [21:53:45]OFD Sender: Processing packet 178755 [packets to send 500, broken 499] [21:53:45]ProducePacketName [21:53:45]name=ofd_packets/00178755 [21:53:45]OFD Sender: To server: pG, [21:53:45]CommunicateWithHost lk.salyk.kg:30040 [21:53:45]ConnectInit lk.salyk.kg [21:53:45]Write to MH i2c: 01 00 00 68 02 6A [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 07 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 DF 0C 5C [21:53:45]RasterBufferAndPrint [21:53:45]line [21:53:45]line [21:53:45]line [21:53:45]line [21:53:45]line [21:53:45]written 0, free lines is 3307 [21:53:45]MH_Cut [21:53:45]Write to MH i2c: D1 01 00 6F 02 01 43 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: D1 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: D1 01 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: D1 01 00 6F 02 00 42 [21:53:45]Write to MH i2c: 01 00 00 70 02 72 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:46]*** Cut start [21:53:46]*** Partial cut [21:53:46]*** CUTSNS_PIN = 1 [21:53:46]*** CUTSNS_PIN = 0 [21:53:46]*** Brake cut motor [21:53:46]Read from MH i2c: 01 [21:53:46]MH_I2C_Read... [21:53:46]*** Stop cut motor [21:53:46]*** Cut end [21:53:46]Read from MH i2c: 01 07 00 [21:53:46]MH_I2C_Read... [21:53:46]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [21:53:46]process_action close_receipt done [21:53:46]requested_data is exist [21:53:46]produce_requested_data [21:53:46]requested_item fm.sn is exist - process it [21:53:46]wFMCommunicate request_size=4 [21:53:46]MH_SAM_APDU [21:53:46]CAPDU: 80 11 00 00 [21:53:46]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [21:53:46]Write i2c OK [21:53:46]MH_I2C_Read... [21:53:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:47]Read from MH i2c: E2 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: E2 17 00 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 46 [21:53:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:53:47]wFMCommunicate OK [21:53:47]requested_item fd.num is exist - process it [21:53:47]SAM_PROTO_GetFieldsCounters [21:53:47]wFMCommunicate request_size=4 [21:53:47]MH_SAM_APDU [21:53:47]CAPDU: 80 13 00 00 [21:53:47]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [21:53:47]Write i2c OK [21:53:47]MH_I2C_Read... [21:53:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:47]Read from MH i2c: E2 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: E2 62 00 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 43 BA 02 00 0E 04 04 00 D6 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 70 [21:53: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 43 BA 02 00 0E 04 04 00 D6 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:53:47]wFMCommunicate OK [21:53:47]SAM_PROTO_GetFieldsCounters done [21:53:47]requested_item shift.num is exist - process it [21:53:47]requested_item shift.opened is exist - process it [21:53:47]req_shift_opened [21:53:47]FM_GetShiftState [21:53:47]SAM_PROTO_GetShiftState [21:53:47]wFMCommunicate request_size=4 [21:53:47]MH_SAM_APDU [21:53:47]CAPDU: 80 13 01 00 [21:53:47]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [21:53:47]Write i2c OK [21:53:47]MH_I2C_Read... [21:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:47]Read from MH i2c: E2 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: E2 0E 00 [21:53:47]MH_I2C_Read... [21:53:47]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 C9 [21:53:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:53:47]wFMCommunicate OK [21:53:47]SAM_PROTO_GetShiftState done [21:53:47]FM_GetShiftState done [21:53:47]req_shift_opened done [21:53:47]requested_item shift.open_date is exist - process it [21:53:47]req_shift_open_date [21:53:47]req_shift_open_date done [21:53:47]produce_requested_data done [21:53:47]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178755,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:53:47]process_action_free close_receipt [21:53:47]json_value_free [21:53:47]json_value_free done [21:53:47]process_json_proto returns [21:53:47]Send response to host [21:53:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178755,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:53:47]free response buf [21:53:47]execute_script done [21:53:47]execute_script returns [21:53:47]free content buf [21:53:47]Sock 7.Close socket [21:53:47]Sock 7.Thread stoped [21:53:50]recv_with_timeout no data received [21:53:59]Connected sock=11 [21:53:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 94 85 07 01 55 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 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 D7 00 00 00 F4 03 04 00 E7 04 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 43 BA 02 00 35 04 06 00 52 B1 46 F4 A9 F1 A5 A9 8D E2 76 3C 70 B9 [21:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 88 1D 47 00 45 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 43 BA 02 00 F4 03 04 00 9E B0 C8 66 B6 04 01 00 00 92 3D 7D E5 D7 CF 55 62 [21:54:02]CommunicateWithHost err = 0 [21:54:02]CheckOFDResponse [21:54:02]1017 (14) - 77093643461234 [21:54:02]1041 (16) - 0000000000871778 [21:54:02]1040 (4) - 178755 [21:54:02]1012 (4) - 23.08.2024 15:54 [21:54:02]1206 (1) - 0 [21:54:02]OFD Sender: Remove packet 178755 [21:54:02]ProducePacketName [21:54:02]name=ofd_packets/00178755 [21:54:02]NVStorageDeleteData [21:54:02]OFD Sender: No OFD packet to send [21:54:06]recv_with_timeout no data received [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]accept exits with 10 [21:54:17]New connection [21:54:17]New thread 3067276644 created [21:54:17]Thread 3067133284 joined [21:54:17]Waiting for new connection... [21:54:17] Sock 10.Parse request [21:54:17]Sock 10.Check first char [21:54:17]Sock 10.First char is OK [21:54:17]request: POST /json_proto HTTP/1.0 [21:54:17]Method: POST [21:54:17]URL: /json_proto [21:54:17]Method is POST - this is cgi request [21:54:17]url: /json_proto [21:54:17]query_string will be loaded in cgi processing [21:54:17]execute_cgi json_proto POST (null) [21:54:17]execute_cgi path=json_proto method=POST [21:54:17]POST find Content-Length [21:54:17]Host: 172.17.44.131:8080 [21:54:17]Content-Length: 674 [21:54:17]Content-Type: application/json [21:54:17] [21:54:17]POST finish read [21:54:17]Found Content-Length = 674 [21:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [21:54:17]execute_script... [21: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)294767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "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" ] } } [21:54:17]POST & json_proto [21:54:17]process_json_proto [21:54:17]json parsed OK: [21:54:17]protocol is kg_v1.0 [21:54:17]action value=close_receipt [21:54:17]process_action close_receipt [21:54:17]cmd_close_receipt [21:54:17]MH_GetDate [21:54:17]Write to MH i2c: F0 00 00 74 02 65 [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: F0 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: F0 09 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: F0 09 00 74 02 00 09 05 C9 66 4F 53 BE 66 71 [21:54:17]GetLastDocTimeStamp 1724450023 [21:54:17]current date 1724450057 [21:54:17]FM_GetShiftState [21:54:17]SAM_PROTO_GetShiftState [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 01 00 [21:54:17]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 CB [21:54:17]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetShiftState done [21:54:17]FM_GetShiftState done [21:54:17]opened in 1724371660 [21:54:17]opened+sec_in_day 1724458060 [21:54:17]quantity*price = 60045 [21:54:17]sum+1 = 60047 [21:54:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 216 23.08.2024 21:54 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178756 ФПД: 258216690540113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215417&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178756&fm=258216690540113&tin=02508201610067®Number=0000000000092561&sum=60000 [21:54:18]StoreToDocumentArchive [21:54:18]shift 470 fd 178756 [21:54:18]save to /storage/0470/doc_00178756 [21:54:18]save last doc name /storage/0470/doc_00178756 to /storage/kkm_last_doc_name [21:54:18]save OK [21:54:18]Clear old archive folders... [21:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:54:18]tlvbuf is 00F89E40 [21:54:18]SAM_PROTO_ClearQueue [21:54:18]wFMCommunicate request_size=4 [21:54:18]MH_SAM_APDU [21:54:18]CAPDU: 80 09 00 00 [21:54:18]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [21:54:18]Write i2c OK [21:54:18]MH_I2C_Read... [21:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:18]Read from MH i2c: E2 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: E2 03 00 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [21:54:18]RAPDU: 90 00 [21:54:18]wFMCommunicate OK [21:54:18]SAM_PROTO_ClearQueue done [21:54:18]KKMCreateOFDPacket [21:54:18]OFDProtocolAddRootSTLVToBuf [21:54:18]FM_MakeSignedData [21:54:18]FM_MakeSignedData [21:54:18]SAM_PROTO_SignData [21:54:18]wFMCommunicate request_size=4 [21:54:18]MH_SAM_APDU [21:54:18]CAPDU: 80 0D 01 02 [21:54:18]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [21:54:18]Write i2c OK [21:54:18]MH_I2C_Read... [21:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:18]Read from MH i2c: E2 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: E2 03 00 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [21:54:18]RAPDU: 90 00 [21:54:18]wFMCommunicate OK [21:54:18]wFMCommunicate request_size=255 [21:54:18]MH_SAM_APDU [21:54:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 D8 00 00 00 F4 03 04 00 09 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 44 BA 02 00 35 04 06 00 EA D8 C2 1D [21:54:18]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 D8 00 00 00 F4 03 04 00 09 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 44 BA 02 00 35 04 06 00 EA D8 C2 1D 00 00 DA [21:54:18]Write i2c OK [21:54:18]MH_I2C_Read... [21:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:19]Read from MH i2c: E2 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 03 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [21:54:19]RAPDU: 90 00 [21:54:19]wFMCommunicate OK [21:54:19]wFMCommunicate request_size=7 [21:54:19]MH_SAM_APDU [21:54:19]CAPDU: 80 0D 02 02 02 5E 51 [21:54:19]Write to MH i2c: E2 0A 00 85 02 80 0D 02 02 02 00 5E 51 00 00 B4 [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:19]Read from MH i2c: E2 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 03 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [21:54:19]RAPDU: 90 00 [21:54:19]wFMCommunicate OK [21:54:19]wFMCommunicate request_size=4 [21:54:19]MH_SAM_APDU [21:54:19]CAPDU: 80 0D 03 02 [21:54:19]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:19]Read from MH i2c: E2 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 0B 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 0B 00 86 02 00 E0 43 1A A3 C7 77 BD 93 90 00 72 [21:54:19]RAPDU: E0 43 1A A3 C7 77 BD 93 90 00 [21:54:19]wFMCommunicate OK [21:54:19]SAM_PROTO_SignData done [21:54:19]FM_MakeSignedData done [21:54:19]CreateOFDProtocolMessage [21:54:19]wFMCommunicate request_size=4 [21:54:19]MH_SAM_APDU [21:54:19]CAPDU: 80 11 00 00 [21:54:19]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:19]Read from MH i2c: E2 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 17 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5C [21:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:54:19]wFMCommunicate OK [21:54:19]CreateOFDProtocolMessage done [21:54:19]OFDSenderStorePacket 178756 [21:54:19]StoreOFDPacket docnum=178756 [21:54:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D1 81 04 01 71 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 D8 00 00 00 F4 03 04 00 09 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 44 BA 02 00 35 04 06 00 EA D8 C2 1D 5E 51 E0 43 1A A3 C7 77 BD 93 [21:54:19]CheckFolder [21:54:19]dirname=/storage/ofd_packets [21:54:19]CheckFolder done [21:54:19]ProducePacketName [21:54:19]name=ofd_packets/00178756 [21:54:19]NVStorageSaveData ofd_packets/00178756 [21:54:19]File name is /storage/ofd_packets/00178756 [21:54:19]Write 298 bytes [21:54:19]NVStorageSaveData done [21:54:19]OFDSenderStorePacket done [21:54:19]KKMCreateOFDPacket done [21:54:19]NVStorageSaveData kkm_last_timestamp [21:54:19]File name is /storage/kkm_last_timestamp [21:54:19]Write 4 bytes [21:54:19]NVStorageSaveData done [21:54:19]ExternCall_PrintAddStr [21:54:19]wPrintStart [21:54:19]Write to MH i2c: 01 00 00 88 02 8A [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: 01 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: 01 07 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [21:54:19]RasterBufferAndPrint [21:54:19]line Счет N : (1)294767 [21:54:19]line ИНН: 02508201610067 [21:54:19]line Контрольно-Кассовый Чек [21:54:19]line ПРОДАЖА [21:54:19]line ТРК (МРК, ГНК) : 21 [21:54:19]line Товар: 2710194800 [21:54:19]line ДТ-К-5 [21:54:19]line 7.880 * 76.20 [21:54:19]line = 600.46 [21:54:19]line НДС 12% НСП 1% [21:54:19]line > о реализуемом товаре [21:54:19]line ОКРУГЛЕНИЕ: -0.46 [21:54:19]line ИТОГО: 600.00 [21:54:19]line Внесено: 600.00 [21:54:19]line СДАЧА: 0.00 [21:54:19]line НСП 1% : 5.31 [21:54:19]line НДС 12% : 63.77 [21:54:19]line Наличными: 600.00 [21:54:19]line Безнал.: 0.00 [21:54:19]line Место: АЗС № 130 "Партнер Нефть" [21:54:19]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:54:19]line СНО: Общий режим [21:54:19]line Чек 216 23.08.2024 21:54 [21:54:19]line Смена: 470 ФФД: 1.0 [21:54:19]line ЗНМ: 0300000071 [21:54:19]line РНМ: 0000000000092561 [21:54:19]line Версия ККМ: 001 [21:54:19]line ФМ: 0000000000871778 [21:54:19]line ФД: 178756 [21:54:19]line ФПД: 258216690540113 [21:54:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215417&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178756&fm=258216690540113&tin=02508201610067®Number=0000000000092561&sum=60000 [21:54:19]OFD Sender: Processing packet 178756 [packets to send 500, broken 499] [21:54:19]ProducePacketName [21:54:19]name=ofd_packets/00178756 [21:54:19]OFD Sender: To server: pG, [21:54:19]CommunicateWithHost lk.salyk.kg:30040 [21:54:19]ConnectInit lk.salyk.kg [21:54:19]written 0, free lines is 4095 [21:54:19]Write to MH i2c: 01 00 00 B3 02 B5 [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: 01 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: 01 07 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 CA 0C 92 [21:54:19]RasterBufferAndPrint [21:54:19]line [21:54:19]line [21:54:19]line [21:54:19]line [21:54:19]line [21:54:19]written 0, free lines is 3289 [21:54:19]MH_Cut [21:54:19]Write to MH i2c: D1 01 00 BA 02 01 8E [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: D1 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: D1 01 00 [21:54:19]MH_I2C_Read... [21:54:19]Read from MH i2c: D1 01 00 BA 02 00 8D [21:54:19]Write to MH i2c: 01 00 00 BB 02 BD [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:20]*** Cut start [21:54:20]*** Partial cut [21:54:20]*** CUTSNS_PIN = 1 [21:54:20]*** CUTSNS_PIN = 0 [21:54:20]*** Brake cut motor [21:54:21]Read from MH i2c: 01 [21:54:21]MH_I2C_Read... [21:54:21]*** Stop cut motor [21:54:21]*** Cut end [21:54:21]Read from MH i2c: 01 07 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [21:54:21]process_action close_receipt done [21:54:21]requested_data is exist [21:54:21]produce_requested_data [21:54:21]requested_item fm.sn is exist - process it [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 11 00 00 [21:54:21]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 17 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 91 [21:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:54:21]wFMCommunicate OK [21:54:21]requested_item fd.num is exist - process it [21:54:21]SAM_PROTO_GetFieldsCounters [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 13 00 00 [21:54:21]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 62 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 44 BA 02 00 0E 04 04 00 D6 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 BF [21:54:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 44 BA 02 00 0E 04 04 00 D6 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:54:21]wFMCommunicate OK [21:54:21]SAM_PROTO_GetFieldsCounters done [21:54:21]requested_item shift.num is exist - process it [21:54:21]requested_item shift.opened is exist - process it [21:54:21]req_shift_opened [21:54:21]FM_GetShiftState [21:54:21]SAM_PROTO_GetShiftState [21:54:21]wFMCommunicate request_size=4 [21:54:21]MH_SAM_APDU [21:54:21]CAPDU: 80 13 01 00 [21:54:21]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:21]Read from MH i2c: E2 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 0E 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 14 [21:54:21]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:54:21]wFMCommunicate OK [21:54:21]SAM_PROTO_GetShiftState done [21:54:21]FM_GetShiftState done [21:54:21]req_shift_opened done [21:54:21]requested_item shift.open_date is exist - process it [21:54:21]req_shift_open_date [21:54:21]req_shift_open_date done [21:54:21]produce_requested_data done [21:54:21]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178756,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:54:21]process_action_free close_receipt [21:54:21]json_value_free [21:54:21]json_value_free done [21:54:21]process_json_proto returns [21:54:21]Send response to host [21:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178756,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:54:21]free response buf [21:54:21]execute_script done [21:54:21]execute_script returns [21:54:21]free content buf [21:54:21]Sock 10.Close socket [21:54:21]Sock 10.Thread stoped [21:54:22]recv_with_timeout no data received [21:54:24]ConnectInit Can't take IP for lk.salyk.kg [21:54:24]CommunicateWithHost connect error [21:54:24]CommunicateWithHost err = -1 [21:54:24]OFD Sender: Server communicate error [21:54:29]OFD Sender: Processing packet 178756 [packets to send 500, broken 499] [21:54:29]ProducePacketName [21:54:29]name=ofd_packets/00178756 [21:54:29]OFD Sender: To server: pG, [21:54:29]CommunicateWithHost lk.salyk.kg:30040 [21:54:29]ConnectInit lk.salyk.kg [21:54:37]recv_with_timeout no data received [21:54:45]Connected sock=10 [21:54:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 D1 81 04 01 71 B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E 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 E9 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 D8 00 00 00 F4 03 04 00 09 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 44 BA 02 00 35 04 06 00 EA D8 C2 1D 5E 51 E0 43 1A A3 C7 77 BD 93 [21:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 20 26 47 00 17 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 44 BA 02 00 F4 03 04 00 CD B0 C8 66 B6 04 01 00 00 66 03 CD 35 68 E6 CC 08 [21:54:48]CommunicateWithHost err = 0 [21:54:48]CheckOFDResponse [21:54:48]1017 (14) - 77093643461234 [21:54:48]1041 (16) - 0000000000871778 [21:54:48]1040 (4) - 178756 [21:54:48]1012 (4) - 23.08.2024 15:54 [21:54:48]1206 (1) - 0 [21:54:48]OFD Sender: Remove packet 178756 [21:54:48]ProducePacketName [21:54:48]name=ofd_packets/00178756 [21:54:48]NVStorageDeleteData [21:54:49]OFD Sender: No OFD packet to send [21:54:52]recv_with_timeout no data received [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:08]recv_with_timeout no data received [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:24]recv_with_timeout no data received [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:54]OFD Sender: No OFD packet to send [21:55:58]recv_with_timeout no data received [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:17]recv_with_timeout no data received [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:38]recv_with_timeout no data received [21:57:39]OFD Sender: No OFD packet to send [21:57:44]accept exits with 9 [21:57:44]New connection [21:57:44]New thread 3067133284 created [21:57:44]Thread 3067276644 joined [21:57:44]Waiting for new connection... [21:57:44] Sock 9.Parse request [21:57:44]Sock 9.Check first char [21:57:44]Sock 9.First char is OK [21:57:44]request: POST /json_proto HTTP/1.0 [21:57:44]Method: POST [21:57:44]URL: /json_proto [21:57:44]Method is POST - this is cgi request [21:57:44]url: /json_proto [21:57:44]query_string will be loaded in cgi processing [21:57:44]execute_cgi json_proto POST (null) [21:57:44]execute_cgi path=json_proto method=POST [21:57:44]POST find Content-Length [21:57:44]Host: 172.17.44.131:8080 [21:57:44]Content-Length: 679 [21:57:44]Content-Type: application/json [21:57:44] [21:57:44]POST finish read [21:57:44]Found Content-Length = 679 [21:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:44]execute_script... [21:57: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)294772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:44]POST & json_proto [21:57:44]process_json_proto [21:57:44]json parsed OK: [21:57:44]protocol is kg_v1.0 [21:57:44]action value=close_receipt [21:57:44]process_action close_receipt [21:57:44]cmd_close_receipt [21:57:44]MH_GetDate [21:57:44]Write to MH i2c: F0 00 00 BF 02 B0 [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: F0 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: F0 09 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: F0 09 00 BF 02 00 D8 05 C9 66 4F 53 BE 66 8B [21:57:44]GetLastDocTimeStamp 1724450057 [21:57:44]current date 1724450264 [21:57:44]FM_GetShiftState [21:57:44]SAM_PROTO_GetShiftState [21:57:44]wFMCommunicate request_size=4 [21:57:44]MH_SAM_APDU [21:57:44]CAPDU: 80 13 01 00 [21:57:44]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [21:57:44]Write i2c OK [21:57:44]MH_I2C_Read... [21:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:44]Read from MH i2c: E2 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 0E 00 [21:57:44]MH_I2C_Read... [21:57:44]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 16 [21:57:44]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:57:44]wFMCommunicate OK [21:57:44]SAM_PROTO_GetShiftState done [21:57:44]FM_GetShiftState done [21:57:44]opened in 1724371660 [21:57:44]opened+sec_in_day 1724458060 [21:57:44]quantity*price = 200025 [21:57:44]sum+1 = 200026 [21:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 217 23.08.2024 21:57 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178757 ФПД: 100662327671288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215744&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178757&fm=100662327671288&tin=02508201610067®Number=0000000000092561&sum=200000 [21:57:45]StoreToDocumentArchive [21:57:45]shift 470 fd 178757 [21:57:45]save to /storage/0470/doc_00178757 [21:57:45]save last doc name /storage/0470/doc_00178757 to /storage/kkm_last_doc_name [21:57:45]save OK [21:57:45]Clear old archive folders... [21:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:57:45]tlvbuf is 00F9A820 [21:57:45]SAM_PROTO_ClearQueue [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 09 00 00 [21:57:45]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [21:57:45]RAPDU: 90 00 [21:57:45]wFMCommunicate OK [21:57:45]SAM_PROTO_ClearQueue done [21:57:45]KKMCreateOFDPacket [21:57:45]OFDProtocolAddRootSTLVToBuf [21:57:45]FM_MakeSignedData [21:57:45]FM_MakeSignedData [21:57:45]SAM_PROTO_SignData [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 0D 01 02 [21:57:45]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [21:57:45]RAPDU: 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=255 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D8 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 45 BA 02 00 35 04 06 00 5B 8D 46 48 [21:57:45]Write to MH i2c: E2 02 01 CF 02 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D8 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 45 BA 02 00 35 04 06 00 5B 8D 46 48 00 00 F8 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [21:57:45]RAPDU: 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=7 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 0D 02 02 02 79 F8 [21:57:45]Write to MH i2c: E2 0A 00 D0 02 80 0D 02 02 02 00 79 F8 00 00 C1 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [21:57:45]RAPDU: 90 00 [21:57:45]wFMCommunicate OK [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 0D 03 02 [21:57:45]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0B 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 0B 00 D1 02 00 36 94 48 A9 05 93 13 D6 90 00 8B [21:57:45]RAPDU: 36 94 48 A9 05 93 13 D6 90 00 [21:57:45]wFMCommunicate OK [21:57:45]SAM_PROTO_SignData done [21:57:45]FM_MakeSignedData done [21:57:45]CreateOFDProtocolMessage [21:57:45]wFMCommunicate request_size=4 [21:57:45]MH_SAM_APDU [21:57:45]CAPDU: 80 11 00 00 [21:57:45]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:45]Read from MH i2c: E2 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 17 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A7 [21:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:57:45]wFMCommunicate OK [21:57:45]CreateOFDProtocolMessage done [21:57:45]OFDSenderStorePacket 178757 [21:57:45]StoreOFDPacket docnum=178757 [21:57:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 86 3E 04 01 AF 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D8 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 45 BA 02 00 35 04 06 00 5B 8D 46 48 79 F8 36 94 48 A9 05 93 13 D6 [21:57:45]CheckFolder [21:57:45]dirname=/storage/ofd_packets [21:57:45]CheckFolder done [21:57:45]ProducePacketName [21:57:45]name=ofd_packets/00178757 [21:57:45]NVStorageSaveData ofd_packets/00178757 [21:57:45]File name is /storage/ofd_packets/00178757 [21:57:45]Write 298 bytes [21:57:45]NVStorageSaveData done [21:57:45]OFDSenderStorePacket done [21:57:45]KKMCreateOFDPacket done [21:57:45]NVStorageSaveData kkm_last_timestamp [21:57:45]File name is /storage/kkm_last_timestamp [21:57:45]Write 4 bytes [21:57:45]NVStorageSaveData done [21:57:45]ExternCall_PrintAddStr [21:57:45]wPrintStart [21:57:45]Write to MH i2c: 01 00 00 D3 02 D5 [21:57:45]Write i2c OK [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 07 00 [21:57:45]MH_I2C_Read... [21:57:45]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [21:57:45]RasterBufferAndPrint [21:57:45]line Счет N : (1)294772 [21:57:45]line ИНН: 02508201610067 [21:57:45]line Контрольно-Кассовый Чек [21:57:45]line ПРОДАЖА [21:57:45]line ТРК (МРК, ГНК) : 34 [21:57:45]line Товар: 2710194800 [21:57:45]line ДТ-К-5 [21:57:45]line 26.250 * 76.20 [21:57:45]line = 2000.25 [21:57:45]line НДС 12% НСП 1% [21:57:45]line > о реализуемом товаре [21:57:45]line ОКРУГЛЕНИЕ: -0.25 [21:57:45]line ИТОГО: 2000.00 [21:57:45]line Внесено: 2000.00 [21:57:45]line СДАЧА: 0.00 [21:57:45]line НСП 1% : 17.70 [21:57:45]line НДС 12% : 212.42 [21:57:45]line Наличными: 2000.00 [21:57:45]line Безнал.: 0.00 [21:57:45]line Место: АЗС № 130 "Партнер Нефть" [21:57:45]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [21:57:45]line СНО: Общий режим [21:57:45]line Чек 217 23.08.2024 21:57 [21:57:45]line Смена: 470 ФФД: 1.0 [21:57:45]line ЗНМ: 0300000071 [21:57:45]line РНМ: 0000000000092561 [21:57:45]line Версия ККМ: 001 [21:57:45]line ФМ: 0000000000871778 [21:57:45]line ФД: 178757 [21:57:45]line ФПД: 100662327671288 [21:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T215744&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178757&fm=100662327671288&tin=02508201610067®Number=0000000000092561&sum=200000 [21:57:46]OFD Sender: Processing packet 178757 [packets to send 500, broken 499] [21:57:46]ProducePacketName [21:57:46]name=ofd_packets/00178757 [21:57:46]OFD Sender: To server: pG, [21:57:46]CommunicateWithHost lk.salyk.kg:30040 [21:57:46]ConnectInit lk.salyk.kg [21:57:46]written 0, free lines is 4095 [21:57:46]Connected sock=7 [21:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 86 3E 04 01 AF 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 D8 05 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 45 BA 02 00 35 04 06 00 5B 8D 46 48 79 F8 36 94 48 A9 05 93 13 D6 [21:57:46]Write to MH i2c: 01 00 00 FE 02 00 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: 01 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: 01 07 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 D3 0C E6 [21:57:46]RasterBufferAndPrint [21:57:46]line [21:57:46]line [21:57:46]line [21:57:46]line [21:57:46]line [21:57:46]written 0, free lines is 3289 [21:57:46]MH_Cut [21:57:46]Write to MH i2c: D1 01 00 05 03 01 DA [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: D1 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: D1 01 00 [21:57:46]MH_I2C_Read... [21:57:46]Read from MH i2c: D1 01 00 05 03 00 D9 [21:57:46]Write to MH i2c: 01 00 00 06 03 09 [21:57:46]Write i2c OK [21:57:46]MH_I2C_Read... [21:57:47]*** Cut start [21:57:47]*** Partial cut [21:57:47]*** CUTSNS_PIN = 1 [21:57:47]*** CUTSNS_PIN = 0 [21:57:47]*** Brake cut motor [21:57:47]Read from MH i2c: 01 [21:57:47]MH_I2C_Read... [21:57:47]*** Stop cut motor [21:57:47]*** Cut end [21:57:47]Read from MH i2c: 01 07 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [21:57:47]process_action close_receipt done [21:57:47]requested_data is exist [21:57:47]produce_requested_data [21:57:47]requested_item fm.sn is exist - process it [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 11 00 00 [21:57:47]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:47]Read from MH i2c: E2 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 17 00 [21:57:47]MH_I2C_Read... [21:57:47]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [21:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [21:57:47]wFMCommunicate OK [21:57:47]requested_item fd.num is exist - process it [21:57:47]SAM_PROTO_GetFieldsCounters [21:57:47]wFMCommunicate request_size=4 [21:57:47]MH_SAM_APDU [21:57:47]CAPDU: 80 13 00 00 [21:57:47]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [21:57:47]Write i2c OK [21:57:47]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 62 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 45 BA 02 00 0E 04 04 00 D6 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 0F [21:57: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 45 BA 02 00 0E 04 04 00 D6 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:57:48]wFMCommunicate OK [21:57:48]SAM_PROTO_GetFieldsCounters done [21:57:48]requested_item shift.num is exist - process it [21:57:48]requested_item shift.opened is exist - process it [21:57:48]req_shift_opened [21:57:48]FM_GetShiftState [21:57:48]SAM_PROTO_GetShiftState [21:57:48]wFMCommunicate request_size=4 [21:57:48]MH_SAM_APDU [21:57:48]CAPDU: 80 13 01 00 [21:57:48]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [21:57:48]Write i2c OK [21:57:48]MH_I2C_Read... [21:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:48]Read from MH i2c: E2 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 0E 00 [21:57:48]MH_I2C_Read... [21:57:48]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 60 [21:57:48]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [21:57:48]wFMCommunicate OK [21:57:48]SAM_PROTO_GetShiftState done [21:57:48]FM_GetShiftState done [21:57:48]req_shift_opened done [21:57:48]requested_item shift.open_date is exist - process it [21:57:48]req_shift_open_date [21:57:48]req_shift_open_date done [21:57:48]produce_requested_data done [21:57:48]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178757,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [21:57:48]process_action_free close_receipt [21:57:48]json_value_free [21:57:48]json_value_free done [21:57:48]process_json_proto returns [21:57:48]Send response to host [21:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178757,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [21:57:48]free response buf [21:57:48]execute_script done [21:57:48]execute_script returns [21:57:48]free content buf [21:57:48]Sock 9.Close socket [21:57:48]Sock 9.Thread stoped [21:57:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F4 58 47 00 77 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 31 37 37 38 10 04 04 00 45 BA 02 00 F4 03 04 00 7F B1 C8 66 B6 04 01 00 00 54 93 53 6B 8B 1C EA 52 [21:57:48]CommunicateWithHost err = 0 [21:57:48]CheckOFDResponse [21:57:48]1017 (14) - 77093643461234 [21:57:48]1041 (16) - 0000000000871778 [21:57:48]1040 (4) - 178757 [21:57:48]1012 (4) - 23.08.2024 15:57 [21:57:48]1206 (1) - 0 [21:57:48]OFD Sender: Remove packet 178757 [21:57:48]ProducePacketName [21:57:48]name=ofd_packets/00178757 [21:57:48]NVStorageDeleteData [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:02]recv_with_timeout no data received [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]recv_with_timeout no data received [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:27]recv_with_timeout no data received [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:06]recv_with_timeout no data received [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:38]recv_with_timeout no data received [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:05]recv_with_timeout no data received [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:20]OFD Sender: No OFD packet to send [22:05:25]OFD Sender: No OFD packet to send [22:05:30]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:27]recv_with_timeout no data received [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 /dev/ttyS4 opened [00:00:10]00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]MH_I2C_Read... [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 701624+1723749199=1724450823 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 07 08 C9 66 4F 53 BE 66 03 [22:07:03]Current date/time: 23.08.2024 22:07 [22:07:03]FM_Init [22:07:03]wFMConnect [22:07:03]MH_SAM_On [22:07:03]Write to MH i2c: E0 00 00 08 00 E7 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_init finished! [22:07:03]*** atr: [22:07:03]*** 0F 3B D5 18 FF 81 91 FE [22:07:03]*** 1F C3 80 73 C8 21 10 0A [22:07:03]*** 00 00 00 00 00 00 00 00 [22:07:03]*** 00 00 00 00 00 00 00 00 [22:07:03]*** 00 00 00 00 00 00 00 00 [22:07:03]*** 00 00 00 00 00 00 00 00 [22:07:03]*** 00 00 00 00 00 00 00 00 [22:07:03]*** 00 00 00 00 00 00 00 00 [22:07:03]Read from MH i2c: E0 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E0 10 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [22:07:03]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [22:07:03]wFMCommunicate request_size=10 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [22:07:03]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [22:07:03]RAPDU: 90 00 [22:07:03]wFMCommunicate OK [22:07:03]wFMCommunicate request_size=4 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 11 00 00 [22:07:03]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 17 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [22:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:07:03]wFMCommunicate OK [22:07:03]Detected FM SN is 0000000000871778 [22:07:03]Stored FM SN is 0000000000871778 [22:07:03]wFMCommunicate request_size=9 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 16 00 00 04 D9 BA 00 00 [22:07:03]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [22:07:03]RAPDU: 90 00 [22:07:03]wFMCommunicate OK [22:07:03]FM PIN OK [22:07:03]wFMCommunicate request_size=8 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 14 04 00 03 02 00 01 [22:07:03]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [22:07:03]RAPDU: 90 00 [22:07:03]wFMCommunicate OK [22:07:03]wFMCommunicate request_size=13 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [22:07:03]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [22:07:03]RAPDU: 90 00 [22:07:03]wFMCommunicate OK [22:07:03]wFMCommunicate request_size=4 [22:07:03]MH_SAM_APDU [22:07:03]CAPDU: 80 11 00 00 [22:07:03]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:03]Read from MH i2c: E2 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 17 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [22:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:07:03]wFMCommunicate OK [22:07:03]DocumentArchiveInit [22:07:03]Start Httpd... [22:07:03]Httpd thread 3067796836 created [22:07:03]Write to MH i2c: 01 00 00 0F 00 0F [22:07:03]Write i2c OK [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: 01 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: 01 07 00 [22:07:03]MH_I2C_Read... [22:07:03]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [22:07:03]MH Int Process started [22:07:03]Allocated Socket 8 [22:07:03]Bind OK [22:07:03]Listen OK [22:07:03]httpd running on port 8080 [22:07:03]Waiting for new connection... [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:10]accept exits with 9 [22:07:10]New connection [22:07:10]New thread 3067510116 created [22:07:10]Waiting for new connection... [22:07:10] Sock 9.Parse request [22:07:10]Sock 9.Check first char [22:07:10]Sock 9.First char is OK [22:07:10]request: POST /json_proto HTTP/1.0 [22:07:10]Method: POST [22:07:10]URL: /json_proto [22:07:10]Method is POST - this is cgi request [22:07:10]url: /json_proto [22:07:10]query_string will be loaded in cgi processing [22:07:10]execute_cgi json_proto POST (null) [22:07:10]execute_cgi path=json_proto method=POST [22:07:10]POST find Content-Length [22:07:10]Host: 172.17.44.131:8080 [22:07:10]Content-Length: 682 [22:07:10]Content-Type: application/json [22:07:10] [22:07:10]POST finish read [22:07:10]Found Content-Length = 682 [22:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294779", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:10]execute_script... [22:07: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)294779", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:10]POST & json_proto [22:07:10]process_json_proto [22:07:10]json parsed OK: [22:07:10]protocol is kg_v1.0 [22:07:10]action value=close_receipt [22:07:10]process_action close_receipt [22:07:10]cmd_close_receipt [22:07:10]MH_GetDate [22:07:10]Write to MH i2c: F0 00 00 10 00 FF [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: F0 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: F0 09 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: F0 09 00 10 00 00 0F 08 C9 66 4F 53 BE 66 14 [22:07:10]GetLastDocTimeStamp 1724450264 [22:07:10]current date 1724450831 [22:07:10]FM_GetShiftState [22:07:10]SAM_PROTO_GetShiftState [22:07:10]wFMCommunicate request_size=4 [22:07:10]MH_SAM_APDU [22:07:10]CAPDU: 80 13 01 00 [22:07:10]Write to MH i2c: E2 08 00 11 00 80 13 01 00 00 00 00 00 8E [22:07:10]Write i2c OK [22:07:10]MH_I2C_Read... [22:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:10]Read from MH i2c: E2 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 0E 00 [22:07:10]MH_I2C_Read... [22:07:10]Read from MH i2c: E2 0E 00 11 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 65 [22:07:10]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:07:10]wFMCommunicate OK [22:07:10]SAM_PROTO_GetShiftState done [22:07:10]FM_GetShiftState done [22:07:10]opened in 1724371660 [22:07:10]opened+sec_in_day 1724458060 [22:07:10]quantity*price = 150032 [22:07:10]sum+1 = 150033 [22:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 218 23.08.2024 22:07 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178758 ФПД: 173698726098606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T220711&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178758&fm=173698726098606&tin=02508201610067®Number=0000000000092561&sum=150000 [22:07:11]StoreToDocumentArchive [22:07:11]shift 470 fd 178758 [22:07:11]save to /storage/0470/doc_00178758 [22:07:11]save last doc name /storage/0470/doc_00178758 to /storage/kkm_last_doc_name [22:07:11]save OK [22:07:11]Clear old archive folders... [22:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:07:11]tlvbuf is 01B2EFC0 [22:07:11]SAM_PROTO_ClearQueue [22:07:11]wFMCommunicate request_size=4 [22:07:11]MH_SAM_APDU [22:07:11]CAPDU: 80 09 00 00 [22:07:11]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:11]Read from MH i2c: E2 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [22:07:11]RAPDU: 90 00 [22:07:11]wFMCommunicate OK [22:07:11]SAM_PROTO_ClearQueue done [22:07:11]KKMCreateOFDPacket [22:07:11]OFDProtocolAddRootSTLVToBuf [22:07:11]FM_MakeSignedData [22:07:11]FM_MakeSignedData [22:07:11]SAM_PROTO_SignData [22:07:11]wFMCommunicate request_size=4 [22:07:11]MH_SAM_APDU [22:07:11]CAPDU: 80 0D 01 02 [22:07:11]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:11]Read from MH i2c: E2 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 [22:07:11]MH_I2C_Read... [22:07:11]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [22:07:11]RAPDU: 90 00 [22:07:11]wFMCommunicate OK [22:07:11]wFMCommunicate request_size=255 [22:07:11]MH_SAM_APDU [22:07: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0F 08 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 46 BA 02 00 35 04 06 00 9D [22:07:11]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0F 08 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 46 BA 02 00 35 04 06 00 9D 00 00 24 [22:07:11]Write i2c OK [22:07:11]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 03 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [22:07:12]RAPDU: 90 00 [22:07:12]wFMCommunicate OK [22:07:12]wFMCommunicate request_size=10 [22:07:12]MH_SAM_APDU [22:07:12]CAPDU: 80 0D 02 02 05 FA 62 DD F6 AE [22:07:12]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 FA 62 DD F6 AE 00 00 82 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 03 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [22:07:12]RAPDU: 90 00 [22:07:12]wFMCommunicate OK [22:07:12]wFMCommunicate request_size=4 [22:07:12]MH_SAM_APDU [22:07:12]CAPDU: 80 0D 03 02 [22:07:12]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 0B 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 0B 00 22 00 00 B5 5A 1A 45 9C DF 2A E5 90 00 96 [22:07:12]RAPDU: B5 5A 1A 45 9C DF 2A E5 90 00 [22:07:12]wFMCommunicate OK [22:07:12]SAM_PROTO_SignData done [22:07:12]FM_MakeSignedData done [22:07:12]CreateOFDProtocolMessage [22:07:12]wFMCommunicate request_size=4 [22:07:12]MH_SAM_APDU [22:07:12]CAPDU: 80 11 00 00 [22:07:12]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:12]Read from MH i2c: E2 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 17 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F6 [22:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:07:12]wFMCommunicate OK [22:07:12]CreateOFDProtocolMessage done [22:07:12]OFDSenderStorePacket 178758 [22:07:12]StoreOFDPacket docnum=178758 [22:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 25 20 07 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0F 08 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 46 BA 02 00 35 04 06 00 9D FA 62 DD F6 AE B5 5A 1A 45 9C DF 2A E5 [22:07:12]CheckFolder [22:07:12]dirname=/storage/ofd_packets [22:07:12]CheckFolder done [22:07:12]ProducePacketName [22:07:12]name=ofd_packets/00178758 [22:07:12]NVStorageSaveData ofd_packets/00178758 [22:07:12]File name is /storage/ofd_packets/00178758 [22:07:12]Write 301 bytes [22:07:12]NVStorageSaveData done [22:07:12]OFDSenderStorePacket done [22:07:12]KKMCreateOFDPacket done [22:07:12]NVStorageSaveData kkm_last_timestamp [22:07:12]File name is /storage/kkm_last_timestamp [22:07:12]Write 4 bytes [22:07:12]NVStorageSaveData done [22:07:12]ExternCall_PrintAddStr [22:07:12]wPrintStart [22:07:12]Write to MH i2c: 01 00 00 24 00 24 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [22:07:12]RasterBufferAndPrint [22:07:12]line Счет N : (1)294779 [22:07:12]line ИНН: 02508201610067 [22:07:12]line Контрольно-Кассовый Чек [22:07:12]line ПРОДАЖА [22:07:12]line ТРК (МРК, ГНК) : 53 [22:07:12]line Товар: 2710124500 [22:07:12]line Аи-95-К-5 [22:07:12]line 20.220 * 74.20 [22:07:12]line = 1500.32 [22:07:12]line НДС 12% НСП 1% [22:07:12]line > о реализуемом товаре [22:07:12]line ОКРУГЛЕНИЕ: -0.32 [22:07:12]line ИТОГО: 1500.00 [22:07:12]line Внесено: 1500.00 [22:07:12]line СДАЧА: 0.00 [22:07:12]line НСП 1% : 13.28 [22:07:12]line НДС 12% : 159.33 [22:07:12]line Наличными: 1500.00 [22:07:12]line Безнал.: 0.00 [22:07:12]line Место: АЗС № 130 "Партнер Нефть" [22:07:12]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [22:07:12]line СНО: Общий режим [22:07:12]line Чек 218 23.08.2024 22:07 [22:07:12]line Смена: 470 ФФД: 1.0 [22:07:12]line ЗНМ: 0300000071 [22:07:12]line РНМ: 0000000000092561 [22:07:12]line Версия ККМ: 001 [22:07:12]line ФМ: 0000000000871778 [22:07:12]line ФД: 178758 [22:07:12]line ФПД: 173698726098606 [22:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T220711&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178758&fm=173698726098606&tin=02508201610067®Number=0000000000092561&sum=150000 [22:07:12]written 0, free lines is 4095 [22:07:12]OFD Sender: Processing packet 178758 [packets to send 500, broken 499] [22:07:12]ProducePacketName [22:07:12]name=ofd_packets/00178758 [22:07:12]OFD Sender: To server: pG, [22:07:12]CommunicateWithHost lk.salyk.kg:30040 [22:07:12]ConnectInit lk.salyk.kg [22:07:12]Write to MH i2c: 01 00 00 4F 00 4F [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: 01 07 00 4F 00 00 00 00 00 00 DB 0C 3D [22:07:12]RasterBufferAndPrint [22:07:12]line [22:07:12]line [22:07:12]line [22:07:12]line [22:07:12]line [22:07:12]written 0, free lines is 3297 [22:07:12]MH_Cut [22:07:12]Write to MH i2c: D1 01 00 56 00 01 28 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: D1 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: D1 01 00 [22:07:12]MH_I2C_Read... [22:07:12]Read from MH i2c: D1 01 00 56 00 00 27 [22:07:12]Write to MH i2c: 01 00 00 57 00 57 [22:07:12]Write i2c OK [22:07:12]MH_I2C_Read... [22:07:12]recv_with_timeout no data received [22:07:13]*** Cut start [22:07:13]*** Partial cut [22:07:13]*** CUTSNS_PIN = 1 [22:07:13]*** CUTSNS_PIN = 0 [22:07:13]*** Brake cut motor [22:07:14]Read from MH i2c: 01 [22:07:14]MH_I2C_Read... [22:07:14]*** Stop cut motor [22:07:14]*** Cut end [22:07:14]Read from MH i2c: 01 07 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: 01 07 00 57 00 00 00 00 00 00 FF 0F 6C [22:07:14]process_action close_receipt done [22:07:14]requested_data is exist [22:07:14]produce_requested_data [22:07:14]requested_item fm.sn is exist - process it [22:07:14]wFMCommunicate request_size=4 [22:07:14]MH_SAM_APDU [22:07:14]CAPDU: 80 11 00 00 [22:07:14]Write to MH i2c: E2 08 00 58 00 80 11 00 00 00 00 00 00 D2 [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:14]Read from MH i2c: E2 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 17 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 17 00 58 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2B [22:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:07:14]wFMCommunicate OK [22:07:14]requested_item fd.num is exist - process it [22:07:14]SAM_PROTO_GetFieldsCounters [22:07:14]wFMCommunicate request_size=4 [22:07:14]MH_SAM_APDU [22:07:14]CAPDU: 80 13 00 00 [22:07:14]Write to MH i2c: E2 08 00 59 00 80 13 00 00 00 00 00 00 D5 [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:14]Read from MH i2c: E2 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 62 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 62 00 59 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 46 BA 02 00 0E 04 04 00 D6 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 61 [22:07: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 46 BA 02 00 0E 04 04 00 D6 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 [22:07:14]wFMCommunicate OK [22:07:14]SAM_PROTO_GetFieldsCounters done [22:07:14]requested_item shift.num is exist - process it [22:07:14]requested_item shift.opened is exist - process it [22:07:14]req_shift_opened [22:07:14]FM_GetShiftState [22:07:14]SAM_PROTO_GetShiftState [22:07:14]wFMCommunicate request_size=4 [22:07:14]MH_SAM_APDU [22:07:14]CAPDU: 80 13 01 00 [22:07:14]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [22:07:14]Write i2c OK [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 [22:07:14]MH_I2C_Read... [22:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:14]Read from MH i2c: E2 0E 00 [22:07:14]MH_I2C_Read... [22:07:14]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AE [22:07:14]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:07:14]wFMCommunicate OK [22:07:14]SAM_PROTO_GetShiftState done [22:07:14]FM_GetShiftState done [22:07:14]req_shift_opened done [22:07:14]requested_item shift.open_date is exist - process it [22:07:14]req_shift_open_date [22:07:14]req_shift_open_date done [22:07:14]produce_requested_data done [22:07:14]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178758,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [22:07:14]process_action_free close_receipt [22:07:14]json_value_free [22:07:14]json_value_free done [22:07:14]process_json_proto returns [22:07:14]Send response to host [22:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178758,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [22:07:14]free response buf [22:07:14]execute_script done [22:07:14]execute_script returns [22:07:14]free content buf [22:07:14]Sock 9.Close socket [22:07:14]Sock 9.Thread stoped [22:07:17]Connected sock=11 [22:07:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 25 20 07 01 79 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 0F 08 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 46 BA 02 00 35 04 06 00 9D FA 62 DD F6 AE B5 5A 1A 45 9C DF 2A E5 [22:07:18]accept exits with 10 [22:07:18]New connection [22:07:18]New thread 3067366756 created [22:07:18]Thread 3067510116 joined [22:07:18]Waiting for new connection... [22:07:18] Sock 10.Parse request [22:07:18]Sock 10.Check first char [22:07:18]Sock 10.First char is OK [22:07:18]request: POST /json_proto HTTP/1.0 [22:07:18]Method: POST [22:07:18]URL: /json_proto [22:07:18]Method is POST - this is cgi request [22:07:18]url: /json_proto [22:07:18]query_string will be loaded in cgi processing [22:07:18]execute_cgi json_proto POST (null) [22:07:18]execute_cgi path=json_proto method=POST [22:07:18]POST find Content-Length [22:07:18]Host: 172.17.44.131:8080 [22:07:18]Content-Length: 215 [22:07:18]Content-Type: application/json [22:07:18] [22:07:18]POST finish read [22:07:18]Found Content-Length = 215 [22:07: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" ] } } [22:07:18]execute_script... [22:07: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" ] } } [22:07:18]POST & json_proto [22:07:18]process_json_proto [22:07:18]json parsed OK: [22:07:18]protocol is kg_v1.0 [22:07:18]action value=get_value [22:07:18]process_action get_value [22:07:18]cmd_get_value [22:07:18]process_action get_value done [22:07:18]requested_data is exist [22:07:18]produce_requested_data [22:07:18]requested_item kkm.sn is exist - process it [22:07:18]requested_item kkm.ver is exist - process it [22:07:18]requested_item fm.sn is exist - process it [22:07:18]wFMCommunicate request_size=4 [22:07:18]MH_SAM_APDU [22:07:18]CAPDU: 80 11 00 00 [22:07:18]Write to MH i2c: E2 08 00 5B 00 80 11 00 00 00 00 00 00 D5 [22:07:18]Write i2c OK [22:07:18]MH_I2C_Read... [22:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:18]Read from MH i2c: E2 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: E2 17 00 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: E2 17 00 5B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2E [22:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:07:18]wFMCommunicate OK [22:07:18]requested_item fd.num is exist - process it [22:07:18]SAM_PROTO_GetFieldsCounters [22:07:18]wFMCommunicate request_size=4 [22:07:18]MH_SAM_APDU [22:07:18]CAPDU: 80 13 00 00 [22:07:18]Write to MH i2c: E2 08 00 5C 00 80 13 00 00 00 00 00 00 D8 [22:07:18]Write i2c OK [22:07:18]MH_I2C_Read... [22:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:18]Read from MH i2c: E2 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: E2 62 00 [22:07:18]MH_I2C_Read... [22:07:18]Read from MH i2c: E2 62 00 5C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 46 BA 02 00 0E 04 04 00 D6 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 64 [22:07: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 46 BA 02 00 0E 04 04 00 D6 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 [22:07:18]wFMCommunicate OK [22:07:18]SAM_PROTO_GetFieldsCounters done [22:07:18]requested_item shift.num is exist - process it [22:07:18]requested_item shift.opened is exist - process it [22:07:18]req_shift_opened [22:07:18]FM_GetShiftState [22:07:18]SAM_PROTO_GetShiftState [22:07:18]wFMCommunicate request_size=4 [22:07:18]MH_SAM_APDU [22:07:18]CAPDU: 80 13 01 00 [22:07:18]Write to MH i2c: E2 08 00 5D 00 80 13 01 00 00 00 00 00 DA [22:07:18]Write i2c OK [22:07:18]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 5D 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 B1 [22:07:18]RAPDU: 09 00 01 CC D2 C7 66 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 {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178758,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [22:07:18]process_action_free get_value [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":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178758,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [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 10.Close socket [22:07:18]Sock 10.Thread stoped [22:07:18]accept exits with 9 [22:07:18]New connection [22:07:18]New thread 3067510116 created [22:07:18]Thread 3067366756 joined [22:07:18]Waiting for new connection... [22:07:18] Sock 9.Parse request [22:07:18]Sock 9.Check first char [22:07:18]Sock 9.First char is OK [22:07:18]request: POST /json_proto HTTP/1.0 [22:07:18]Method: POST [22:07:18]URL: /json_proto [22:07:18]Method is POST - this is cgi request [22:07:18]url: /json_proto [22:07:18]query_string will be loaded in cgi processing [22:07:18]execute_cgi json_proto POST (null) [22:07:18]execute_cgi path=json_proto method=POST [22:07:18]POST find Content-Length [22:07:18]Host: 172.17.44.131:8080 [22:07:18]Content-Length: 331 [22:07:18]Content-Type: application/json [22:07:18] [22:07:18]POST finish read [22:07:18]Found Content-Length = 331 [22:07: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" ] } } [22:07:18]execute_script... [22:07:18]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" ] } } [22:07:18]POST & json_proto [22:07:18]process_json_proto [22:07:18]json parsed OK: [22:07:18]protocol is kg_v1.0 [22:07:18]action value=get_value [22:07:18]process_action get_value [22:07:18]cmd_get_value [22:07:18]process_action get_value done [22:07:18]requested_data is exist [22:07:18]produce_requested_data [22:07:18]requested_item fm.sale.total is exist - process it [22:07:18]SAM_PROTO_GetFMData [22:07:18]wFMCommunicate request_size=4 [22:07:18]MH_SAM_APDU [22:07:18]CAPDU: 80 13 03 00 [22:07:18]Write to MH i2c: E2 08 00 5E 00 80 13 03 00 00 00 00 00 DD [22:07:18]Write i2c OK [22:07:18]MH_I2C_Read... [22:07:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:07:19]Read from MH i2c: E2 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: E2 FD 00 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: E2 FD 00 5E 00 00 C6 04 85 04 C2 04 6E 04 04 00 9A B6 02 00 69 04 A4 00 6F 04 04 00 03 B5 02 00 B1 04 05 00 09 17 8D 2B 05 70 04 05 00 47 77 E6 14 04 72 04 05 00 C2 9F A6 16 01 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 37 45 96 8C 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 16 FE B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 D9 [22:07:19]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 9A B6 02 00 69 04 A4 00 6F 04 04 00 03 B5 02 00 B1 04 05 00 09 17 8D 2B 05 70 04 05 00 47 77 E6 14 04 72 04 05 00 C2 9F A6 16 01 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 37 45 96 8C 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 16 FE B6 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [22:07:19]wFMCommunicate OK [22:07:19]wFMCommunicate request_size=4 [22:07:19]MH_SAM_APDU [22:07:19]CAPDU: 80 17 00 00 [22:07:19]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [22:07:19]Write i2c OK [22:07:19]MH_I2C_Read... [22:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:07:19]Read from MH i2c: E2 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: E2 FD 00 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: E2 FD 00 5F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [22:07:19]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:07:19]wFMCommunicate OK [22:07:19]wFMCommunicate request_size=4 [22:07:19]MH_SAM_APDU [22:07:19]CAPDU: 80 17 00 00 [22:07:19]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [22:07:19]Write i2c OK [22:07:19]MH_I2C_Read... [22:07:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:07:19]Read from MH i2c: E2 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: E2 FD 00 [22:07:19]MH_I2C_Read... [22:07:19]Read from MH i2c: E2 FD 00 60 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [22:07:19]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:07:19]wFMCommunicate OK [22:07:19]wFMCommunicate request_size=4 [22:07:19]MH_SAM_APDU [22:07:19]CAPDU: 80 17 00 00 [22:07:19]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [22:07:19]Write i2c OK [22:07:19]MH_I2C_Read... [22:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 FD 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 FD 00 61 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [22:07:20]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [22:07:20]wFMCommunicate OK [22:07:20]wFMCommunicate request_size=4 [22:07:20]MH_SAM_APDU [22:07:20]CAPDU: 80 17 00 00 [22:07:20]Write to MH i2c: E2 08 00 62 00 80 17 00 00 00 00 00 00 E2 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 E3 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 E3 00 62 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [22:07:20]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [22:07:20]wFMCommunicate OK [22:07:20]SAM_PROTO_GetFMData done [22:07:20]requested_item fm.sale_refund.total is exist - process it [22:07:20]requested_item fm.buy.total is exist - process it [22:07:20]requested_item shift.sale.total is exist - process it [22:07:20]SAM_PROTO_GetShiftData [22:07:20]wFMCommunicate request_size=4 [22:07:20]MH_SAM_APDU [22:07:20]CAPDU: 80 13 02 00 [22:07:20]Write to MH i2c: E2 08 00 63 00 80 13 02 00 00 00 00 00 E1 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:20]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:07:20]Read from MH i2c: E2 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 FD 00 [22:07:20]MH_I2C_Read... [22:07:20]Read from MH i2c: E2 FD 00 63 00 00 BA 04 AA 04 B6 04 6E 04 04 00 DA 00 00 00 69 04 9D 00 6F 04 04 00 D9 00 00 00 B1 04 04 00 78 5A 98 01 70 04 03 00 64 3F FC 72 04 03 00 14 1B 9C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9B 5F 2B 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 41 9D 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 72 [22:07:20]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 DA 00 00 00 69 04 9D 00 6F 04 04 00 D9 00 00 00 B1 04 04 00 78 5A 98 01 70 04 03 00 64 3F FC 72 04 03 00 14 1B 9C 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 9B 5F 2B 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 41 9D 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [22:07:20]wFMCommunicate OK [22:07:20]wFMCommunicate request_size=4 [22:07:20]MH_SAM_APDU [22:07:20]CAPDU: 80 17 00 00 [22:07:20]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [22:07:20]Write i2c OK [22:07:20]MH_I2C_Read... [22:07:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 0E 3D 47 00 4F 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 46 BA 02 00 F4 03 04 00 BD B3 C8 66 B6 04 01 00 00 86 E5 74 36 56 33 36 48 [22:07:21]CommunicateWithHost err = 0 [22:07:21]CheckOFDResponse [22:07:21]1017 (14) - 77093643461234 [22:07:21]1041 (16) - 0000000000871778 [22:07:21]1040 (4) - 178758 [22:07:21]1012 (4) - 23.08.2024 16:07 [22:07:21]1206 (1) - 0 [22:07:21]OFD Sender: Remove packet 178758 [22:07:21]ProducePacketName [22:07:21]name=ofd_packets/00178758 [22:07:21]NVStorageDeleteData [22:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:07:21]Read from MH i2c: E2 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 FD 00 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 FD 00 64 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 06 [22:07:21]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [22:07:21]wFMCommunicate OK [22:07:21]wFMCommunicate request_size=4 [22:07:21]MH_SAM_APDU [22:07:21]CAPDU: 80 17 00 00 [22:07:21]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [22:07:21]Write i2c OK [22:07:21]MH_I2C_Read... [22:07:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:07:21]Read from MH i2c: E2 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 FD 00 [22:07:21]MH_I2C_Read... [22:07:21]Read from MH i2c: E2 FD 00 65 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 11 [22:07:21]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 [22:07:21]wFMCommunicate OK [22:07:21]wFMCommunicate request_size=4 [22:07:21]MH_SAM_APDU [22:07:21]CAPDU: 80 17 00 00 [22:07:21]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [22:07:21]OFD Sender: No OFD packet to send [22:07:21]Write i2c OK [22:07:21]MH_I2C_Read... [22:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:07:22]Read from MH i2c: E2 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 FD 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 FD 00 66 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 03 90 00 5E [22:07:22]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 [22:07:22]wFMCommunicate OK [22:07:22]wFMCommunicate request_size=4 [22:07:22]MH_SAM_APDU [22:07:22]CAPDU: 80 17 00 00 [22:07:22]Write to MH i2c: E2 08 00 67 00 80 17 00 00 00 00 00 00 E7 [22:07:22]Write i2c OK [22:07:22]MH_I2C_Read... [22:07:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [22:07:22]Read from MH i2c: E2 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 D7 00 [22:07:22]MH_I2C_Read... [22:07:22]Read from MH i2c: E2 D7 00 67 00 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 CA [22:07:22]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 [22:07:22]wFMCommunicate OK [22:07:22]SAM_PROTO_GetShiftData done [22:07:22]requested_item shift.sale.total_cash is exist - process it [22:07:22]requested_item shift.sale_refund.total is exist - process it [22:07:22]requested_item shift.sale_refund.total_cash is exist - process it [22:07:22]requested_item shift.buy.total is exist - process it [22:07:22]requested_item shift.buy.total_cash is exist - process it [22:07:22]produce_requested_data done [22:07:22]produce_requested_data return {"fm.sale.total":222055032.41,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":267618.48,"shift.sale.total_cash":165313.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [22:07:22]process_action_free get_value [22:07:22]json_value_free [22:07:22]json_value_free done [22:07:22]process_json_proto returns [22:07:22]Send response to host [22:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222055032.41,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":267618.48,"shift.sale.total_cash":165313.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [22:07:22]free response buf [22:07:22]execute_script done [22:07:22]execute_script returns [22:07:22]free content buf [22:07:22]Sock 9.Close socket [22:07:22]Sock 9.Thread stoped [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:50]recv_with_timeout no data received [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:12]recv_with_timeout no data received [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:30]accept exits with 10 [22:08:30]New connection [22:08:30]New thread 3067366756 created [22:08:30]Thread 3067510116 joined [22:08:30]Waiting for new connection... [22:08:30] Sock 10.Parse request [22:08:30]Sock 10.Check first char [22:08:30]Sock 10.First char is OK [22:08:30]request: POST /json_proto HTTP/1.0 [22:08:30]Method: POST [22:08:30]URL: /json_proto [22:08:30]Method is POST - this is cgi request [22:08:30]url: /json_proto [22:08:30]query_string will be loaded in cgi processing [22:08:30]execute_cgi json_proto POST (null) [22:08:30]execute_cgi path=json_proto method=POST [22:08:30]POST find Content-Length [22:08:30]Host: 172.17.44.131:8080 [22:08:30]Content-Length: 674 [22:08:30]Content-Type: application/json [22:08:30] [22:08:30]POST finish read [22:08:30]Found Content-Length = 674 [22:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.960, "sum" : 530.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:30]execute_script... [22:08:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294785", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.960, "sum" : 530.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 530.00, "total" : 530.00, "payments": [ { "type": 0, "sum" : 530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:30]POST & json_proto [22:08:30]process_json_proto [22:08:30]json parsed OK: [22:08:30]protocol is kg_v1.0 [22:08:30]action value=close_receipt [22:08:30]process_action close_receipt [22:08:30]cmd_close_receipt [22:08:30]MH_GetDate [22:08:30]Write to MH i2c: F0 00 00 68 00 57 [22:08:30]Write i2c OK [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: F0 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: F0 09 00 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: F0 09 00 68 00 00 5F 08 C9 66 4F 53 BE 66 BC [22:08:30]GetLastDocTimeStamp 1724450831 [22:08:30]current date 1724450911 [22:08:30]FM_GetShiftState [22:08:30]SAM_PROTO_GetShiftState [22:08:30]wFMCommunicate request_size=4 [22:08:30]MH_SAM_APDU [22:08:30]CAPDU: 80 13 01 00 [22:08:30]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [22:08:30]Write i2c OK [22:08:30]MH_I2C_Read... [22:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:30]Read from MH i2c: E2 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: E2 0E 00 [22:08:30]MH_I2C_Read... [22:08:30]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 BD [22:08:30]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:08:30]wFMCommunicate OK [22:08:30]SAM_PROTO_GetShiftState done [22:08:30]FM_GetShiftState done [22:08:30]opened in 1724371660 [22:08:30]opened+sec_in_day 1724458060 [22:08:30]quantity*price = 53035 [22:08:30]sum+1 = 53036 [22:08:30]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 220 23.08.2024 22:12 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178760 ФПД: 159106959842744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T221243&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178760&fm=159106959842744&tin=02508201610067®Number=0000000000092561&sum=70037 [22:12:44]StoreToDocumentArchive [22:12:44]shift 470 fd 178760 [22:12:44]save to /storage/0470/doc_00178760 [22:12:44]save last doc name /storage/0470/doc_00178760 to /storage/kkm_last_doc_name [22:12:44]save OK [22:12:44]Clear old archive folders... [22:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:44]tlvbuf is 0031D880 [22:12:44]SAM_PROTO_ClearQueue [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 09 00 00 [22:12:44]Write to MH i2c: E2 08 00 1E 00 80 09 00 00 00 00 00 00 90 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 1E 00 00 90 00 92 [22:12:44]RAPDU: 90 00 [22:12:44]wFMCommunicate OK [22:12:44]SAM_PROTO_ClearQueue done [22:12:44]KKMCreateOFDPacket [22:12:44]OFDProtocolAddRootSTLVToBuf [22:12:44]FM_MakeSignedData [22:12:44]FM_MakeSignedData [22:12:44]SAM_PROTO_SignData [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 0D 01 02 [22:12:44]Write to MH i2c: E2 08 00 1F 00 80 0D 01 02 00 00 00 00 98 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 1F 00 00 90 00 93 [22:12:44]RAPDU: 90 00 [22:12:44]wFMCommunicate OK [22:12:44]wFMCommunicate request_size=255 [22:12:44]MH_SAM_APDU [22:12: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 5B 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 48 BA 02 00 35 04 06 00 90 [22:12:44]Write to MH i2c: E2 02 01 20 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 5B 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 48 BA 02 00 35 04 06 00 90 00 00 26 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 20 00 00 90 00 94 [22:12:44]RAPDU: 90 00 [22:12:44]wFMCommunicate OK [22:12:44]wFMCommunicate request_size=10 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 0D 02 02 05 B4 F9 D2 9D B8 [22:12:44]Write to MH i2c: E2 0D 00 21 00 80 0D 02 02 05 00 B4 F9 D2 9D B8 00 00 79 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 03 00 21 00 00 90 00 95 [22:12:44]RAPDU: 90 00 [22:12:44]wFMCommunicate OK [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 0D 03 02 [22:12:44]Write to MH i2c: E2 08 00 22 00 80 0D 03 02 00 00 00 00 9D [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 0B 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 0B 00 22 00 00 D5 55 96 9A 37 F9 FA E4 90 00 06 [22:12:44]RAPDU: D5 55 96 9A 37 F9 FA E4 90 00 [22:12:44]wFMCommunicate OK [22:12:44]SAM_PROTO_SignData done [22:12:44]FM_MakeSignedData done [22:12:44]CreateOFDProtocolMessage [22:12:44]wFMCommunicate request_size=4 [22:12:44]MH_SAM_APDU [22:12:44]CAPDU: 80 11 00 00 [22:12:44]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:44]Read from MH i2c: E2 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 17 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F6 [22:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:12:44]wFMCommunicate OK [22:12:44]CreateOFDProtocolMessage done [22:12:44]OFDSenderStorePacket 178760 [22:12:44]StoreOFDPacket docnum=178760 [22:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 70 45 07 01 F8 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 5B 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 48 BA 02 00 35 04 06 00 90 B4 F9 D2 9D B8 D5 55 96 9A 37 F9 FA E4 [22:12:44]CheckFolder [22:12:44]dirname=/storage/ofd_packets [22:12:44]CheckFolder done [22:12:44]ProducePacketName [22:12:44]name=ofd_packets/00178760 [22:12:44]NVStorageSaveData ofd_packets/00178760 [22:12:44]File name is /storage/ofd_packets/00178760 [22:12:44]Write 301 bytes [22:12:44]NVStorageSaveData done [22:12:44]OFDSenderStorePacket done [22:12:44]KKMCreateOFDPacket done [22:12:44]NVStorageSaveData kkm_last_timestamp [22:12:44]File name is /storage/kkm_last_timestamp [22:12:44]Write 4 bytes [22:12:44]NVStorageSaveData done [22:12:44]ExternCall_PrintAddStr [22:12:44]wPrintStart [22:12:44]Write to MH i2c: 01 00 00 24 00 24 [22:12:44]Write i2c OK [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: 01 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: 01 07 00 [22:12:44]MH_I2C_Read... [22:12:44]Read from MH i2c: 01 07 00 24 00 00 00 00 00 00 FF 0F 39 [22:12:44]RasterBufferAndPrint [22:12:44]line Счет N : (1)294788 [22:12:44]line ИНН: 02508201610067 [22:12:44]line Контрольно-Кассовый Чек [22:12:44]line ПРОДАЖА [22:12:44]line ТРК (МРК, ГНК) : 42 [22:12:44]line Товар: 2710124130 [22:12:44]line Аи-92-К-5 [22:12:44]line 10.330 * 67.80 [22:12:44]line = 700.37 [22:12:44]line НДС 12% НСП 1% [22:12:44]line > о реализуемом товаре [22:12:44]line ИТОГО: 700.37 [22:12:44]line НСП 1% : 6.20 [22:12:44]line НДС 12% : 74.38 [22:12:44]line Наличными: 0.00 [22:12:44]line Безнал.: 700.37 [22:12:44]line Место: АЗС № 130 "Партнер Нефть" [22:12:44]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [22:12:44]line СНО: Общий режим [22:12:44]line Чек 220 23.08.2024 22:12 [22:12:44]line Смена: 470 ФФД: 1.0 [22:12:44]line ЗНМ: 0300000071 [22:12:44]line РНМ: 0000000000092561 [22:12:44]line Версия ККМ: 001 [22:12:44]line Платежная система: O! деньги [22:12:44]line ФМ: 0000000000871778 [22:12:44]line ФД: 178760 [22:12:44]line ФПД: 159106959842744 [22:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T221243&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178760&fm=159106959842744&tin=02508201610067®Number=0000000000092561&sum=70037 [22:12:44]written 0, free lines is 4095 [22:12:44]OFD Sender: Processing packet 178760 [packets to send 500, broken 499] [22:12:44]ProducePacketName [22:12:44]name=ofd_packets/00178760 [22:12:44]OFD Sender: To server: pG, [22:12:44]CommunicateWithHost lk.salyk.kg:30040 [22:12:44]ConnectInit lk.salyk.kg [22:12:45]Write to MH i2c: 01 00 00 4E 00 4E [22:12:45]Write i2c OK [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: 01 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: 01 07 00 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: 01 07 00 4E 00 00 00 00 00 00 DD 0C 3E [22:12:45]RasterBufferAndPrint [22:12:45]line [22:12:45]line [22:12:45]line [22:12:45]line [22:12:45]line [22:12:45]written 0, free lines is 3299 [22:12:45]MH_Cut [22:12:45]Write to MH i2c: D1 01 00 55 00 01 27 [22:12:45]Write i2c OK [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: D1 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: D1 01 00 [22:12:45]MH_I2C_Read... [22:12:45]Read from MH i2c: D1 01 00 55 00 00 26 [22:12:45]Write to MH i2c: 01 00 00 56 00 56 [22:12:45]Write i2c OK [22:12:45]MH_I2C_Read... [22:12:46]*** Cut start [22:12:46]*** Partial cut [22:12:46]*** CUTSNS_PIN = 1 [22:12:46]*** CUTSNS_PIN = 0 [22:12:46]*** Brake cut motor [22:12:46]Read from MH i2c: 01 [22:12:46]MH_I2C_Read... [22:12:46]*** Stop cut motor [22:12:46]*** Cut end [22:12:46]Read from MH i2c: 01 07 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: 01 07 00 56 00 00 00 00 00 00 FF 0F 6B [22:12:46]process_action close_receipt done [22:12:46]requested_data is exist [22:12:46]produce_requested_data [22:12:46]requested_item fm.sn is exist - process it [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 11 00 00 [22:12:46]Write to MH i2c: E2 08 00 57 00 80 11 00 00 00 00 00 00 D1 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 17 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 17 00 57 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2A [22:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:12:46]wFMCommunicate OK [22:12:46]requested_item fd.num is exist - process it [22:12:46]SAM_PROTO_GetFieldsCounters [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 13 00 00 [22:12:46]Write to MH i2c: E2 08 00 58 00 80 13 00 00 00 00 00 00 D4 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 62 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 62 00 58 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 48 BA 02 00 0E 04 04 00 D6 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 68 [22:12: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 48 BA 02 00 0E 04 04 00 D6 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 [22:12:46]wFMCommunicate OK [22:12:46]SAM_PROTO_GetFieldsCounters done [22:12:46]requested_item shift.num is exist - process it [22:12:46]requested_item shift.opened is exist - process it [22:12:46]req_shift_opened [22:12:46]FM_GetShiftState [22:12:46]SAM_PROTO_GetShiftState [22:12:46]wFMCommunicate request_size=4 [22:12:46]MH_SAM_APDU [22:12:46]CAPDU: 80 13 01 00 [22:12:46]Write to MH i2c: E2 08 00 59 00 80 13 01 00 00 00 00 00 D6 [22:12:46]Write i2c OK [22:12:46]MH_I2C_Read... [22:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:46]Read from MH i2c: E2 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 0E 00 [22:12:46]MH_I2C_Read... [22:12:46]Read from MH i2c: E2 0E 00 59 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AD [22:12:46]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:12:46]wFMCommunicate OK [22:12:46]SAM_PROTO_GetShiftState done [22:12:46]FM_GetShiftState done [22:12:46]req_shift_opened done [22:12:46]requested_item shift.open_date is exist - process it [22:12:46]req_shift_open_date [22:12:46]req_shift_open_date done [22:12:46]produce_requested_data done [22:12:46]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178760,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [22:12:46]process_action_free close_receipt [22:12:46]json_value_free [22:12:46]json_value_free done [22:12:46]process_json_proto returns [22:12:46]Send response to host [22:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178760,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [22:12:46]free response buf [22:12:46]execute_script done [22:12:46]execute_script returns [22:12:46]free content buf [22:12:46]Sock 8.Close socket [22:12:46]Sock 8.Thread stoped [22:12:49]ConnectInit Can't take IP for lk.salyk.kg [22:12:49]CommunicateWithHost connect error [22:12:49]CommunicateWithHost err = -1 [22:12:49]OFD Sender: Server communicate error [22:12:54]OFD Sender: Processing packet 178760 [packets to send 500, broken 499] [22:12:54]ProducePacketName [22:12:54]name=ofd_packets/00178760 [22:12:54]OFD Sender: To server: pG, [22:12:54]CommunicateWithHost lk.salyk.kg:30040 [22:12:54]ConnectInit lk.salyk.kg [22:12:55]Connected sock=8 [22:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 70 45 07 01 F8 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 5B 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 48 BA 02 00 35 04 06 00 90 B4 F9 D2 9D B8 D5 55 96 9A 37 F9 FA E4 [22:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CF 95 47 00 2D 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 31 37 37 38 10 04 04 00 48 BA 02 00 F4 03 04 00 0D B5 C8 66 B6 04 01 00 00 CB 3F 19 78 64 57 48 DB [22:12:56]CommunicateWithHost err = 0 [22:12:56]CheckOFDResponse [22:12:56]1017 (14) - 77093643461234 [22:12:56]1041 (16) - 0000000000871778 [22:12:56]1040 (4) - 178760 [22:12:56]1012 (4) - 23.08.2024 16:13 [22:12:56]1206 (1) - 0 [22:12:56]OFD Sender: Remove packet 178760 [22:12:56]ProducePacketName [22:12:56]name=ofd_packets/00178760 [22:12:56]NVStorageDeleteData [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:05]recv_with_timeout no data received [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]recv_with_timeout no data received [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:40]recv_with_timeout no data received [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:04]accept exits with 9 [22:14:04]New connection [22:14:04]New thread 3067321700 created [22:14:04]Thread 3067465060 joined [22:14:04]Waiting for new connection... [22:14:04] Sock 9.Parse request [22:14:04]Sock 9.Check first char [22:14:04]Sock 9.First char is OK [22:14:04]request: POST /json_proto HTTP/1.0 [22:14:04]Method: POST [22:14:04]URL: /json_proto [22:14:04]Method is POST - this is cgi request [22:14:04]url: /json_proto [22:14:04]query_string will be loaded in cgi processing [22:14:04]execute_cgi json_proto POST (null) [22:14:04]execute_cgi path=json_proto method=POST [22:14:04]POST find Content-Length [22:14:04]Host: 172.17.44.131:8080 [22:14:04]Content-Length: 793 [22:14:04]Content-Type: application/json [22:14:04] [22:14:04]POST finish read [22:14:04]Found Content-Length = 793 [22:14:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 29.070, "sum" : 2000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:04]execute_script... [22:14: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)294791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 29.070, "sum" : 2000.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:04]POST & json_proto [22:14:04]process_json_proto [22:14:04]json parsed OK: [22:14:04]protocol is kg_v1.0 [22:14:04]action value=close_receipt [22:14:04]process_action close_receipt [22:14:04]cmd_close_receipt [22:14:04]MH_GetDate [22:14:04]Write to MH i2c: F0 00 00 5A 00 49 [22:14:04]Write i2c OK [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: F0 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: F0 09 00 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: F0 09 00 5A 00 00 AD 09 C9 66 4F 53 BE 66 FD [22:14:04]GetLastDocTimeStamp 1724451163 [22:14:04]current date 1724451245 [22:14:04]FM_GetShiftState [22:14:04]SAM_PROTO_GetShiftState [22:14:04]wFMCommunicate request_size=4 [22:14:04]MH_SAM_APDU [22:14:04]CAPDU: 80 13 01 00 [22:14:04]Write to MH i2c: E2 08 00 5B 00 80 13 01 00 00 00 00 00 D8 [22:14:04]Write i2c OK [22:14:04]MH_I2C_Read... [22:14:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:04]Read from MH i2c: E2 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: E2 0E 00 [22:14:04]MH_I2C_Read... [22:14:04]Read from MH i2c: E2 0E 00 5B 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 AF [22:14:04]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:14:04]wFMCommunicate OK [22:14:04]SAM_PROTO_GetShiftState done [22:14:04]FM_GetShiftState done [22:14:04]opened in 1724371660 [22:14:04]opened+sec_in_day 1724458060 [22:14:04]quantity*price = 200001 [22:14:04]sum+1 = 200003 [22:14:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 221 23.08.2024 22:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871778 ФД: 178761 ФПД: 227030293945308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T221405&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178761&fm=227030293945308&tin=02508201610067®Number=0000000000092561&sum=200002 [22:14:05]StoreToDocumentArchive [22:14:05]shift 470 fd 178761 [22:14:05]save to /storage/0470/doc_00178761 [22:14:05]save last doc name /storage/0470/doc_00178761 to /storage/kkm_last_doc_name [22:14:05]save OK [22:14:05]Clear old archive folders... [22:14:05]ProcessDocumentItem done err = 0, tmpTLVsize=249 [22:14:05]tlvbuf is 0032DB80 [22:14:05]SAM_PROTO_ClearQueue [22:14:05]wFMCommunicate request_size=4 [22:14:05]MH_SAM_APDU [22:14:05]CAPDU: 80 09 00 00 [22:14:05]Write to MH i2c: E2 08 00 68 00 80 09 00 00 00 00 00 00 DA [22:14:05]Write i2c OK [22:14:05]MH_I2C_Read... [22:14:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:05]Read from MH i2c: E2 [22:14:05]MH_I2C_Read... [22:14:05]Read from MH i2c: E2 03 00 [22:14:05]MH_I2C_Read... [22:14:05]Read from MH i2c: E2 03 00 68 00 00 90 00 DC [22:14:05]RAPDU: 90 00 [22:14:05]wFMCommunicate OK [22:14:05]SAM_PROTO_ClearQueue done [22:14:05]KKMCreateOFDPacket [22:14:05]OFDProtocolAddRootSTLVToBuf [22:14:05]FM_MakeSignedData [22:14:05]FM_MakeSignedData [22:14:05]SAM_PROTO_SignData [22:14:05]wFMCommunicate request_size=4 [22:14:05]MH_SAM_APDU [22:14:05]CAPDU: 80 0D 01 02 [22:14:05]Write to MH i2c: E2 08 00 69 00 80 0D 01 02 00 00 00 00 E2 [22:14:05]Write i2c OK [22:14:05]MH_I2C_Read... [22:14:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:06]Read from MH i2c: E2 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 03 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 03 00 69 00 00 90 00 DD [22:14:06]RAPDU: 90 00 [22:14:06]wFMCommunicate OK [22:14:06]wFMCommunicate request_size=255 [22:14:06]MH_SAM_APDU [22:14:06]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AD 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 49 BA 02 00 35 04 06 00 CE 7B 9C [22:14:06]Write to MH i2c: E2 02 01 6A 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AD 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 49 BA 02 00 35 04 06 00 CE 7B 9C 00 00 55 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:06]Read from MH i2c: E2 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 03 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 03 00 6A 00 00 90 00 DE [22:14:06]RAPDU: 90 00 [22:14:06]wFMCommunicate OK [22:14:06]wFMCommunicate request_size=8 [22:14:06]MH_SAM_APDU [22:14:06]CAPDU: 80 0D 02 02 03 06 1B DC [22:14:06]Write to MH i2c: E2 0B 00 6B 00 80 0D 02 02 03 00 06 1B DC 00 00 E8 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 [22:14:06]MH_I2C_Read... [22:14:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:06]Read from MH i2c: E2 03 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 03 00 6B 00 00 90 00 DF [22:14:06]RAPDU: 90 00 [22:14:06]wFMCommunicate OK [22:14:06]wFMCommunicate request_size=4 [22:14:06]MH_SAM_APDU [22:14:06]CAPDU: 80 0D 03 02 [22:14:06]Write to MH i2c: E2 08 00 6C 00 80 0D 03 02 00 00 00 00 E7 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:06]Read from MH i2c: E2 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 0B 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 0B 00 6C 00 00 8B 5D 65 03 96 05 C7 F3 90 00 8D [22:14:06]RAPDU: 8B 5D 65 03 96 05 C7 F3 90 00 [22:14:06]wFMCommunicate OK [22:14:06]SAM_PROTO_SignData done [22:14:06]FM_MakeSignedData done [22:14:06]CreateOFDProtocolMessage [22:14:06]wFMCommunicate request_size=4 [22:14:06]MH_SAM_APDU [22:14:06]CAPDU: 80 11 00 00 [22:14:06]Write to MH i2c: E2 08 00 6D 00 80 11 00 00 00 00 00 00 E7 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:06]Read from MH i2c: E2 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 17 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: E2 17 00 6D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 40 [22:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:14:06]wFMCommunicate OK [22:14:06]CreateOFDProtocolMessage done [22:14:06]OFDSenderStorePacket 178761 [22:14:06]StoreOFDPacket docnum=178761 [22:14:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 D6 C6 05 01 A9 3C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AD 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 49 BA 02 00 35 04 06 00 CE 7B 9C 06 1B DC 8B 5D 65 03 96 05 C7 F3 [22:14:06]CheckFolder [22:14:06]dirname=/storage/ofd_packets [22:14:06]CheckFolder done [22:14:06]ProducePacketName [22:14:06]name=ofd_packets/00178761 [22:14:06]NVStorageSaveData ofd_packets/00178761 [22:14:06]File name is /storage/ofd_packets/00178761 [22:14:06]Write 299 bytes [22:14:06]NVStorageSaveData done [22:14:06]OFDSenderStorePacket done [22:14:06]KKMCreateOFDPacket done [22:14:06]NVStorageSaveData kkm_last_timestamp [22:14:06]File name is /storage/kkm_last_timestamp [22:14:06]Write 4 bytes [22:14:06]NVStorageSaveData done [22:14:06]ExternCall_PrintAddStr [22:14:06]wPrintStart [22:14:06]Write to MH i2c: 01 00 00 6E 00 6E [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: 01 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: 01 07 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: 01 07 00 6E 00 00 00 00 00 00 FF 0F 83 [22:14:06]RasterBufferAndPrint [22:14:06]line Счет N : (1)294791 [22:14:06]line ИНН: 02508201610067 [22:14:06]line Контрольно-Кассовый Чек [22:14:06]line ПРОДАЖА [22:14:06]line ТРК (МРК, ГНК) : 51 [22:14:06]line Товар: 2710124130 [22:14:06]line SU-92-К-5 [22:14:06]line 29.070 * 68.80 [22:14:06]line = 2000.02 [22:14:06]line НДС 12% НСП 1% [22:14:06]line > о реализуемом товаре [22:14:06]line ИТОГО: 2000.02 [22:14:06]line НСП 1% : 17.70 [22:14:06]line НДС 12% : 212.39 [22:14:06]line Наличными: 0.00 [22:14:06]line Безнал.: 2000.02 [22:14:06]line Место: АЗС № 130 "Партнер Нефть" [22:14:06]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [22:14:06]line СНО: Общий режим [22:14:06]line Чек 221 23.08.2024 22:14 [22:14:06]line Смена: 470 ФФД: 1.0 [22:14:06]line ЗНМ: 0300000071 [22:14:06]line РНМ: 0000000000092561 [22:14:06]line Версия ККМ: 001 [22:14:06]line Платежная система: O! деньги [22:14:06]line ФМ: 0000000000871778 [22:14:06]line ФД: 178761 [22:14:06]line ФПД: 227030293945308 [22:14:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T221405&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178761&fm=227030293945308&tin=02508201610067®Number=0000000000092561&sum=200002 [22:14:06]written 0, free lines is 4095 [22:14:06]OFD Sender: Processing packet 178761 [packets to send 500, broken 499] [22:14:06]ProducePacketName [22:14:06]name=ofd_packets/00178761 [22:14:06]OFD Sender: To server: pG, [22:14:06]CommunicateWithHost lk.salyk.kg:30040 [22:14:06]ConnectInit lk.salyk.kg [22:14:06]Write to MH i2c: 01 00 00 98 00 98 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: 01 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: 01 07 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 E4 0C 8F [22:14:06]RasterBufferAndPrint [22:14:06]line [22:14:06]line [22:14:06]line [22:14:06]line [22:14:06]line [22:14:06]written 0, free lines is 3306 [22:14:06]MH_Cut [22:14:06]Write to MH i2c: D1 01 00 9F 00 01 71 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: D1 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: D1 01 00 [22:14:06]MH_I2C_Read... [22:14:06]Read from MH i2c: D1 01 00 9F 00 00 70 [22:14:06]Write to MH i2c: 01 00 00 A0 00 A0 [22:14:06]Write i2c OK [22:14:06]MH_I2C_Read... [22:14:07]*** Cut start [22:14:07]*** Partial cut [22:14:07]*** CUTSNS_PIN = 1 [22:14:07]*** CUTSNS_PIN = 0 [22:14:07]*** Brake cut motor [22:14:08]Read from MH i2c: 01 [22:14:08]MH_I2C_Read... [22:14:08]*** Stop cut motor [22:14:08]*** Cut end [22:14:08]Read from MH i2c: 01 07 00 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: 01 07 00 A0 00 00 00 00 00 00 FF 0F B5 [22:14:08]process_action close_receipt done [22:14:08]requested_data is exist [22:14:08]produce_requested_data [22:14:08]requested_item fm.sn is exist - process it [22:14:08]wFMCommunicate request_size=4 [22:14:08]MH_SAM_APDU [22:14:08]CAPDU: 80 11 00 00 [22:14:08]Write to MH i2c: E2 08 00 A1 00 80 11 00 00 00 00 00 00 1B [22:14:08]Write i2c OK [22:14:08]MH_I2C_Read... [22:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:08]Read from MH i2c: E2 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 17 00 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 17 00 A1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 74 [22:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:14:08]wFMCommunicate OK [22:14:08]requested_item fd.num is exist - process it [22:14:08]SAM_PROTO_GetFieldsCounters [22:14:08]wFMCommunicate request_size=4 [22:14:08]MH_SAM_APDU [22:14:08]CAPDU: 80 13 00 00 [22:14:08]Write to MH i2c: E2 08 00 A2 00 80 13 00 00 00 00 00 00 1E [22:14:08]Write i2c OK [22:14:08]MH_I2C_Read... [22:14:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:08]Read from MH i2c: E2 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 62 00 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 62 00 A2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 49 BA 02 00 0E 04 04 00 D6 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 B6 [22:14: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 49 BA 02 00 0E 04 04 00 D6 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 [22:14:08]wFMCommunicate OK [22:14:08]SAM_PROTO_GetFieldsCounters done [22:14:08]requested_item shift.num is exist - process it [22:14:08]requested_item shift.opened is exist - process it [22:14:08]req_shift_opened [22:14:08]FM_GetShiftState [22:14:08]SAM_PROTO_GetShiftState [22:14:08]wFMCommunicate request_size=4 [22:14:08]MH_SAM_APDU [22:14:08]CAPDU: 80 13 01 00 [22:14:08]Write to MH i2c: E2 08 00 A3 00 80 13 01 00 00 00 00 00 20 [22:14:08]Write i2c OK [22:14:08]MH_I2C_Read... [22:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:08]Read from MH i2c: E2 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 0E 00 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 0E 00 A3 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F7 [22:14:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:14:08]wFMCommunicate OK [22:14:08]SAM_PROTO_GetShiftState done [22:14:08]FM_GetShiftState done [22:14:08]req_shift_opened done [22:14:08]requested_item shift.open_date is exist - process it [22:14:08]req_shift_open_date [22:14:08]req_shift_open_date done [22:14:08]produce_requested_data done [22:14:08]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178761,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [22:14:08]process_action_free close_receipt [22:14:08]json_value_free [22:14:08]json_value_free done [22:14:08]process_json_proto returns [22:14:08]Send response to host [22:14:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178761,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [22:14:08]free response buf [22:14:08]execute_script done [22:14:08]execute_script returns [22:14:08]free content buf [22:14:08]Sock 9.Close socket [22:14:08]Sock 9.Thread stoped [22:14:08]accept exits with 10 [22:14:08]New connection [22:14:08]New thread 3067465060 created [22:14:08]Thread 3067321700 joined [22:14:08]Waiting for new connection... [22:14:08] Sock 10.Parse request [22:14:08]Sock 10.Check first char [22:14:08]Sock 10.First char is OK [22:14:08]request: POST /json_proto HTTP/1.0 [22:14:08]Method: POST [22:14:08]URL: /json_proto [22:14:08]Method is POST - this is cgi request [22:14:08]url: /json_proto [22:14:08]query_string will be loaded in cgi processing [22:14:08]execute_cgi json_proto POST (null) [22:14:08]execute_cgi path=json_proto method=POST [22:14:08]POST find Content-Length [22:14:08]Host: 172.17.44.131:8080 [22:14:08]Content-Length: 672 [22:14:08]Content-Type: application/json [22:14:08] [22:14:08]POST finish read [22:14:08]Found Content-Length = 672 [22:14:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 20.350, "sum" : 1400.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:08]execute_script... [22:14: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)294790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 20.350, "sum" : 1400.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:14:08]POST & json_proto [22:14:08]process_json_proto [22:14:08]json parsed OK: [22:14:08]protocol is kg_v1.0 [22:14:08]action value=close_receipt [22:14:08]process_action close_receipt [22:14:08]cmd_close_receipt [22:14:08]MH_GetDate [22:14:08]Write to MH i2c: F0 00 00 A4 00 93 [22:14:08]Write i2c OK [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: F0 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: F0 09 00 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: F0 09 00 A4 00 00 B1 09 C9 66 4F 53 BE 66 4B [22:14:08]GetLastDocTimeStamp 1724451245 [22:14:08]current date 1724451249 [22:14:08]FM_GetShiftState [22:14:08]SAM_PROTO_GetShiftState [22:14:08]wFMCommunicate request_size=4 [22:14:08]MH_SAM_APDU [22:14:08]CAPDU: 80 13 01 00 [22:14:08]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [22:14:08]Write i2c OK [22:14:08]MH_I2C_Read... [22:14:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:08]Connected sock=8 [22:14:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 D6 C6 05 01 A9 3C 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 71 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 AD 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 49 BA 02 00 35 04 06 00 CE 7B 9C 06 1B DC 8B 5D 65 03 96 05 C7 F3 [22:14:08]Read from MH i2c: E2 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 0E 00 [22:14:08]MH_I2C_Read... [22:14:08]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F9 [22:14:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:14:08]wFMCommunicate OK [22:14:08]SAM_PROTO_GetShiftState done [22:14:08]FM_GetShiftState done [22:14:08]opened in 1724371660 [22:14:08]opened+sec_in_day 1724458060 [22:14:08]quantity*price = 140008 [22:14:08]sum+1 = 140009 [22:14:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 530.00 Внесено: 530.00 СДАЧА: 0.00 НСП 1% : 4.69 НДС 12% : 56.32 Наличными: 530.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 219 23.08.2024 22:08 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178759 ФПД: 163253733459471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T220831&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178759&fm=163253733459471&tin=02508201610067®Number=0000000000092561&sum=53000 [22:08:31]StoreToDocumentArchive [22:08:31]shift 470 fd 178759 [22:08:31]save to /storage/0470/doc_00178759 [22:08:31]save last doc name /storage/0470/doc_00178759 to /storage/kkm_last_doc_name [22:08:31]save OK [22:08:31]Clear old archive folders... [22:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:08:31]tlvbuf is 01B3ECD0 [22:08:31]SAM_PROTO_ClearQueue [22:08:31]wFMCommunicate request_size=4 [22:08:31]MH_SAM_APDU [22:08:31]CAPDU: 80 09 00 00 [22:08:31]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [22:08:31]Write i2c OK [22:08:31]MH_I2C_Read... [22:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:31]Read from MH i2c: E2 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 [22:08:31]MH_I2C_Read... [22:08:31]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [22:08:31]RAPDU: 90 00 [22:08:31]wFMCommunicate OK [22:08:31]SAM_PROTO_ClearQueue done [22:08:31]KKMCreateOFDPacket [22:08:31]OFDProtocolAddRootSTLVToBuf [22:08:31]FM_MakeSignedData [22:08:31[22:14:09]Read from MH i2c: E2 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [22:14:09]RAPDU: 90 00 [22:14:09]wFMCommunicate OK [22:14:09]wFMCommunicate request_size=11 [22:14:09]MH_SAM_APDU [22:14:09]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [22:14:09]Write to MH i2c: E2 0E 00 AD 00 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 5F [22:14:09]Write i2c OK [22:14:09]MH_I2C_Read... [22:14:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:14:09]Read from MH i2c: E2 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [22:14:09]RAPDU: 90 00 [22:14:09]wFMCommunicate OK [22:14:09]wFMCommunicate request_size=13 [22:14:09]MH_SAM_APDU [22:14:09]CAPDU: 80 15 02 00 08 F4 03 04 00 B1 09 C9 66 [22:14:09]Write to MH i2c: E2 10 00 AE 00 80 15 02 00 08 00 F4 03 04 00 B1 09 C9 66 00 00 22 [22:14:09]Write i2c OK [22:14:09]MH_I2C_Read... [22:14:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:14:09]Read from MH i2c: E2 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 AE 00 00 90 00 22 [22:14:09]RAPDU: 90 00 [22:14:09]wFMCommunicate OK [22:14:09]wFMCommunicate request_size=25 [22:14:09]MH_SAM_APDU [22:14:09]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [22:14:09]Write to MH i2c: E2 1C 00 AF 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 8F [22:14:09]Write i2c OK [22:14:09]MH_I2C_Read... [22:14:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:14:09]Read from MH i2c: E2 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 03 00 AF 00 00 90 00 23 [22:14:09]RAPDU: 90 00 [22:14:09]wFMCommunicate OK [22:14:09]wFMCommunicate request_size=4 [22:14:09]MH_SAM_APDU [22:14:09]CAPDU: 80 15 03 00 [22:14:09]Write to MH i2c: E2 08 00 B0 00 80 15 03 00 00 00 00 00 31 [22:14:09]Write i2c OK [22:14:09]MH_I2C_Read... [22:14:09]OFD Sender: No OFD packet to send [22:14:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [22:14:09]Read from MH i2c: E2 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 40 00 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 40 00 B0 00 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4A BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 DE 00 00 00 35 04 06 00 C9 83 FC 71 C7 28 90 00 90 [22:14:09]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4A BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 DE 00 00 00 35 04 06 00 C9 83 FC 71 C7 28 90 00 [22:14:09]wFMCommunicate OK [22:14:09]SAM_PROTO_ProcessDocument answer len = 59 [22:14:09]SAM_PROTO_ProcessDocument done [22:14:09]SetTLVBufToDocument [22:14:09]Processing tag 1209 (04B9) [22:14:09]Malloc new data [22:14:09]Processing tag 1041 (0411) [22:14:09]Processing tag 1040 (0410) [22:14:09]Malloc new data [22:14:09]Processing tag 1038 (040E) [22:14:09]Malloc new data [22:14:09]Processing tag 1042 (0412) [22:14:09]Malloc new data [22:14:09]Processing tag 1077 (0435) [22:14:09]Malloc new data [22:14:09]SetTLVBufToDocument err=0 [22:14:09]KKMLoadAndSignReceiptData store KKM data [22:14:09]KKMLoadAndSignReceiptData err=0 [22:14:09]wFMCommunicate request_size=4 [22:14:09]MH_SAM_APDU [22:14:09]CAPDU: 80 11 00 00 [22:14:09]Write to MH i2c: E2 08 00 B1 00 80 11 00 00 00 00 00 00 2B [22:14:09]Write i2c OK [22:14:09]MH_I2C_Read... [22:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:09]Read from MH i2c: E2 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 17 00 [22:14:09]MH_I2C_Read... [22:14:09]Read from MH i2c: E2 17 00 B1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 84 [22:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:14:09]wFMCommunicate OK [22:14:09]Счет N : (1)294790 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 31 Товар: 2710124130 SU-92-К-5 20.350 * 68.80 = 1400.08 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.68 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 222 23.08.2024 22:14 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178762 ФПД: 221568713213736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T221409&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178762&fm=221568713213736&tin=02508201610067®Number=0000000000092561&sum=140000 [22:14:09]StoreToDocumentArchive [22:14:09]shift 470 fd 178762 [22:14:09]save to /storage/0470/doc_00178762 [22:14:09]save last doc name /storage/0470/doc_00178762 to /storage/kkm_last_doc_name [22:14:09]save OK [22:14:09]Clear old archive folders... [22:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=249 [22:14:10]tlvbuf is 00341010 [22:14:10]SAM_PROTO_ClearQueue [22:14:10]wFMCommunicate request_size=4 [22:14:10]MH_SAM_APDU [22:14:10]CAPDU: 80 09 00 00 [22:14:10]Write to MH i2c: E2 08 00 B2 00 80 09 00 00 00 00 00 00 24 [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:14:10]Read from MH i2c: E2 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 B2 00 00 90 00 26 [22:14:10]RAPDU: 90 00 [22:14:10]wFMCommunicate OK [22:14:10]SAM_PROTO_ClearQueue done [22:14:10]KKMCreateOFDPacket [22:14:10]OFDProtocolAddRootSTLVToBuf [22:14:10]FM_MakeSignedData [22:14:10]FM_MakeSignedData [22:14:10]SAM_PROTO_SignData [22:14:10]wFMCommunicate request_size=4 [22:14:10]MH_SAM_APDU [22:14:10]CAPDU: 80 0D 01 02 [22:14:10]Write to MH i2c: E2 08 00 B3 00 80 0D 01 02 00 00 00 00 2C [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:14:10]Read from MH i2c: E2 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 B3 00 00 90 00 27 [22:14:10]RAPDU: 90 00 [22:14:10]wFMCommunicate OK [22:14:10]wFMCommunicate request_size=255 [22:14:10]MH_SAM_APDU [22:14:10]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4A BA 02 00 35 04 06 00 C9 83 FC [22:14:10]Write to MH i2c: E2 02 01 B4 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4A BA 02 00 35 04 06 00 C9 83 FC 00 00 E4 [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:10]Read from MH i2c: E2 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 B4 00 00 90 00 28 [22:14:10]RAPDU: 90 00 [22:14:10]wFMCommunicate OK [22:14:10]wFMCommunicate request_size=8 [22:14:10]MH_SAM_APDU [22:14:10]CAPDU: 80 0D 02 02 03 71 C7 28 [22:14:10]Write to MH i2c: E2 0B 00 B5 00 80 0D 02 02 03 00 71 C7 28 00 00 95 [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:14:10]Read from MH i2c: E2 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 03 00 B5 00 00 90 00 29 [22:14:10]RAPDU: 90 00 [22:14:10]wFMCommunicate OK [22:14:10]wFMCommunicate request_size=4 [22:14:10]MH_SAM_APDU [22:14:10]CAPDU: 80 0D 03 02 [22:14:10]Write to MH i2c: E2 08 00 B6 00 80 0D 03 02 00 00 00 00 31 [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:14:10]Read from MH i2c: E2 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 0B 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 0B 00 B6 00 00 2D CE A1 5E AD CE 0C C7 90 00 7A [22:14:10]RAPDU: 2D CE A1 5E AD CE 0C C7 90 00 [22:14:10]wFMCommunicate OK [22:14:10]SAM_PROTO_SignData done [22:14:10]FM_MakeSignedData done [22:14:10]CreateOFDProtocolMessage [22:14:10]wFMCommunicate request_size=4 [22:14:10]MH_SAM_APDU [22:14:10]CAPDU: 80 11 00 00 [22:14:10]Write to MH i2c: E2 08 00 B7 00 80 11 00 00 00 00 00 00 31 [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:10]Read from MH i2c: E2 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 17 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: E2 17 00 B7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 8A [22:14:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:14:10]wFMCommunicate OK [22:14:10]CreateOFDProtocolMessage done [22:14:10]OFDSenderStorePacket 178762 [22:14:10]StoreOFDPacket docnum=178762 [22:14:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 03 40 05 01 93 81 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4A BA 02 00 35 04 06 00 C9 83 FC 71 C7 28 2D CE A1 5E AD CE 0C C7 [22:14:10]CheckFolder [22:14:10]dirname=/storage/ofd_packets [22:14:10]CheckFolder done [22:14:10]ProducePacketName [22:14:10]name=ofd_packets/00178762 [22:14:10]NVStorageSaveData ofd_packets/00178762 [22:14:10]File name is /storage/ofd_packets/00178762 [22:14:10]Write 299 bytes [22:14:10]NVStorageSaveData done [22:14:10]OFDSenderStorePacket done [22:14:10]KKMCreateOFDPacket done [22:14:10]NVStorageSaveData kkm_last_timestamp [22:14:10]File name is /storage/kkm_last_timestamp [22:14:10]Write 4 bytes [22:14:10]NVStorageSaveData done [22:14:10]ExternCall_PrintAddStr [22:14:10]wPrintStart [22:14:10]Write to MH i2c: 01 00 00 B8 00 B8 [22:14:10]OFD Sender: Processing packet 178762 [packets to send 500, broken 499] [22:14:10]ProducePacketName [22:14:10]name=ofd_packets/00178762 [22:14:10]OFD Sender: To server: pG, [22:14:10]CommunicateWithHost lk.salyk.kg:30040 [22:14:10]ConnectInit lk.salyk.kg [22:14:10]Write i2c OK [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: 01 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: 01 07 00 [22:14:10]MH_I2C_Read... [22:14:10]Read from MH i2c: 01 07 00 B8 00 00 00 00 00 00 FF 0F CD [22:14:10]RasterBufferAndPrint [22:14:10]line Счет N : (1)294790 [22:14:10]line ИНН: 02508201610067 [22:14:10]line Контрольно-Кассовый Чек [22:14:10]line ПРОДАЖА [22:14:10]line ТРК (МРК, ГНК) : 31 [22:14:10]line Товар: 2710124130 [22:14:10]line SU-92-К-5 [22:14:10]line 20.350 * 68.80 [22:14:10]line = 1400.08 [22:14:10]line НДС 12% НСП 1% [22:14:10]line > о реализуемом товаре [22:14:10]line ОКРУГЛЕНИЕ: -0.08 [22:14:10]line ИТОГО: 1400.00 [22:14:10]line Внесено: 1400.00 [22:14:10]line СДАЧА: 0.00 [22:14:10]line НСП 1% : 12.39 [22:14:10]line НДС 12% : 148.68 [22:14:10]line Наличными: 1400.00 [22:14:10]line Безнал.: 0.00 [22:14:10]line Место: АЗС № 130 "Партнер Нефть" [22:14:10]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [22:14:10]line СНО: Общий режим [22:14:10]line Чек 222 23.08.2024 22:14 [22:14:10]line Смена: 470 ФФД: 1.0 [22:14:10]line ЗНМ: 0300000071 [22:14:10]line РНМ: 0000000000092561 [22:14:10]line Версия ККМ: 001 [22:14:10]line ФМ: 0000000000871778 [22:14:10]line ФД: 178762 [22:14:10]line ФПД: 221568713213736 [22:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T221409&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178762&fm=221568713213736&tin=02508201610067®Number=0000000000092561&sum=140000 [22:14:11]written 0, free lines is 4095 [22:14:11]Connected sock=11 [22:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 01 00 00 03 40 05 01 93 81 5A 03 01 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 4F 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 E8 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 B1 09 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4A BA 02 00 35 04 06 00 C9 83 FC 71 C7 28 2D CE A1 5E AD CE 0C C7 [22:14:11]Write to MH i2c: 01 00 00 E3 00 E3 [22:14:11]Write i2c OK [22:14:11]MH_I2C_Read... [22:14:11]Read from MH i2c: 01 [22:14:11]MH_I2C_Read... [22:14:11]Read from MH i2c: 01 07 00 [22:14:11]MH_I2C_Read... [22:14:11]Read from MH i2c: 01 07 00 E3 00 00 00 00 00 00 00 0D F7 [22:14:11]RasterBufferAndPrint [22:14:11]line [22:14:11]line [22:14:11]line [22:14:11]line [22:14:11]line [22:14:11]written 0, free lines is 3340 [22:14:11]MH_Cut [22:14:11]Write to MH i2c: D1 01 00 EA 00 01 BC [22:14:11]Write i2c OK [22:14:11]MH_I2C_Read... [22:14:11]Read from MH i2c: D1 [22:14:11]MH_I2C_Read... [22:14:11]Read from MH i2c: D1 01 00 [22:14:11]MH_I2C_Read... [22:14:11]Read from MH i2c: D1 01 00 EA 00 00 BB [22:14:11]Write to MH i2c: 01 00 00 EB 00 EB [22:14:11]Write i2c OK [22:14:11]MH_I2C_Read... [22:14:12]*** Cut start [22:14:12]*** Partial cut [22:14:12]*** CUTSNS_PIN = 1 [22:14:12]*** CUTSNS_PIN = 0 [22:14:12]*** Brake cut motor [22:14:13]Read from MH i2c: 01 *** Stop cut motor [22:14:13] [22:14:13]*** Cut end [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: 01 07 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: 01 07 00 EB 00 00 00 00 00 00 FF 0F 00 [22:14:13]process_action close_receipt done [22:14:13]requested_data is exist [22:14:13]produce_requested_data [22:14:13]requested_item fm.sn is exist - process it [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 11 00 00 [22:14:13]Write to MH i2c: E2 08 00 EC 00 80 11 00 00 00 00 00 00 66 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 17 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 17 00 EC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 BF [22:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:14:13]wFMCommunicate OK [22:14:13]requested_item fd.num is exist - process it [22:14:13]SAM_PROTO_GetFieldsCounters [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 13 00 00 [22:14:13]Write to MH i2c: E2 08 00 ED 00 80 13 00 00 00 00 00 00 69 [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 62 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 62 00 ED 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4A BA 02 00 0E 04 04 00 D6 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 05 [22:14: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4A BA 02 00 0E 04 04 00 D6 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 [22:14:13]wFMCommunicate OK [22:14:13]SAM_PROTO_GetFieldsCounters done [22:14:13]requested_item shift.num is exist - process it [22:14:13]requested_item shift.opened is exist - process it [22:14:13]req_shift_opened [22:14:13]FM_GetShiftState [22:14:13]SAM_PROTO_GetShiftState [22:14:13]wFMCommunicate request_size=4 [22:14:13]MH_SAM_APDU [22:14:13]CAPDU: 80 13 01 00 [22:14:13]Write to MH i2c: E2 08 00 EE 00 80 13 01 00 00 00 00 00 6B [22:14:13]Write i2c OK [22:14:13]MH_I2C_Read... [22:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:14:13]Read from MH i2c: E2 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 0E 00 [22:14:13]MH_I2C_Read... [22:14:13]Read from MH i2c: E2 0E 00 EE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 42 [22:14:13]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:14:13]wFMCommunicate OK [22:14:13]SAM_PROTO_GetShiftState done [22:14:13]FM_GetShiftState done [22:14:13]req_shift_opened done [22:14:13]requested_item shift.open_date is exist - process it [22:14:13]req_shift_open_date [22:14:13]req_shift_open_date done [22:14:13]produce_requested_data done [22:14:13]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178762,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [22:14:13]process_action_free close_receipt [22:14:13]json_value_free [22:14:13]json_value_free done [22:14:13]process_json_proto returns [22:14:13]Send response to host [22:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178762,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [22:14:13]free response buf [22:14:13]execute_script done [22:14:13]execute_script returns [22:14:13]free content buf [22:14:13]Sock 10.Close socket [22:14:13]Sock 10.Thread stoped [22:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 79 D3 47 00 0F 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 31 37 37 38 10 04 04 00 4A BA 02 00 F4 03 04 00 5B B5 C8 66 B6 04 01 00 00 F7 98 DD 60 31 06 2F 2C [22:14:15]CommunicateWithHost err = 0 [22:14:15]CheckOFDResponse [22:14:15]1017 (14) - 77093643461234 [22:14:15]1041 (16) - 0000000000871778 [22:14:15]1040 (4) - 178762 [22:14:15]1012 (4) - 23.08.2024 16:14 [22:14:15]1206 (1) - 0 [22:14:15]OFD Sender: Remove packet 178762 [22:14:15]ProducePacketName [22:14:15]name=ofd_packets/00178762 [22:14:15]NVStorageDeleteData [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:36]recv_with_timeout no data received [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:14:57]recv_with_timeout no data received [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:12]recv_with_timeout no data received [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]recv_with_timeout no data received [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:14]recv_with_timeout no data received [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:18]recv_with_timeout no data received [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:17]recv_with_timeout no data received [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:44]recv_with_timeout no data received [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]recv_with_timeout no data received [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:04]accept exits with 9 [22:22:04]New connection [22:22:04]New thread 3067321700 created [22:22:04]Thread 3067465060 joined [22:22:04]Waiting for new connection... [22:22:04] Sock 9.Parse request [22:22:04]Sock 9.Check first char [22:22:04]Sock 9.First char is OK [22:22:04]request: POST /json_proto HTTP/1.0 [22:22:04]Method: POST [22:22:04]URL: /json_proto [22:22:04]Method is POST - this is cgi request [22:22:04]url: /json_proto [22:22:04]query_string will be loaded in cgi processing [22:22:04]execute_cgi json_proto POST (null) [22:22:04]execute_cgi path=json_proto method=POST [22:22:04]POST find Content-Length [22:22:04]Host: 172.17.44.131:8080 [22:22:04]Content-Length: 677 [22:22:04]Content-Type: application/json [22:22:04] [22:22:04]POST finish read [22:22:04]Found Content-Length = 677 [22:22:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [22:22:04]execute_script... [22:22: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)294798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [22:22:04]POST & json_proto [22:22:04]process_json_proto [22:22:04]json parsed OK: [22:22:04]protocol is kg_v1.0 [22:22:04]action value=close_receipt [22:22:04]process_action close_receipt [22:22:04]cmd_close_receipt [22:22:04]MH_GetDate [22:22:04]Write to MH i2c: F0 00 00 EF 00 DE [22:22:04]Write i2c OK [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: F0 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: F0 09 00 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: F0 09 00 EF 00 00 8D 0B C9 66 4F 53 BE 66 74 [22:22:04]GetLastDocTimeStamp 1724451249 [22:22:04]current date 1724451725 [22:22:04]FM_GetShiftState [22:22:04]SAM_PROTO_GetShiftState [22:22:04]wFMCommunicate request_size=4 [22:22:04]MH_SAM_APDU [22:22:04]CAPDU: 80 13 01 00 [22:22:04]Write to MH i2c: E2 08 00 F0 00 80 13 01 00 00 00 00 00 6D [22:22:04]Write i2c OK [22:22:04]MH_I2C_Read... [22:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:04]Read from MH i2c: E2 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: E2 0E 00 [22:22:04]MH_I2C_Read... [22:22:04]Read from MH i2c: E2 0E 00 F0 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 44 [22:22:04]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:22:04]wFMCommunicate OK [22:22:04]SAM_PROTO_GetShiftState done [22:22:04]FM_GetShiftState done [22:22:04]opened in 1724371660 [22:22:04]opened+sec_in_day 1724458060 [22:22:04]quantity*price = 70044 [22:22:04]sum+1 = 70046 [22:22:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 223 23.08.2024 22:22 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178763 ФПД: 102949062576446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T222205&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178763&fm=102949062576446&tin=02508201610067®Number=0000000000092561&sum=70000 [22:22:05]StoreToDocumentArchive [22:22:05]shift 470 fd 178763 [22:22:05]save to /storage/0470/doc_00178763 [22:22:05]save last doc name /storage/0470/doc_00178763 to /storage/kkm_last_doc_name [22:22:05]save OK [22:22:05]Clear old archive folders... [22:22:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:22:05]tlvbuf is 0031CD20 [22:22:05]SAM_PROTO_ClearQueue [22:22:05]wFMCommunicate request_size=4 [22:22:05]MH_SAM_APDU [22:22:05]CAPDU: 80 09 00 00 [22:22:05]Write to MH i2c: E2 08 00 FD 00 80 09 00 00 00 00 00 00 6F [22:22:05]Write i2c OK [22:22:05]MH_I2C_Read... [22:22:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:05]Read from MH i2c: E2 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 03 00 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 03 00 FD 00 00 90 00 71 [22:22:05]RAPDU: 90 00 [22:22:05]wFMCommunicate OK [22:22:05]SAM_PROTO_ClearQueue done [22:22:05]KKMCreateOFDPacket [22:22:05]OFDProtocolAddRootSTLVToBuf [22:22:05]FM_MakeSignedData [22:22:05]FM_MakeSignedData [22:22:05]SAM_PROTO_SignData [22:22:05]wFMCommunicate request_size=4 [22:22:05]MH_SAM_APDU [22:22:05]CAPDU: 80 0D 01 02 [22:22:05]Write to MH i2c: E2 08 00 FE 00 80 0D 01 02 00 00 00 00 77 [22:22:05]Write i2c OK [22:22:05]MH_I2C_Read... [22:22:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:05]Read from MH i2c: E2 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 03 00 [22:22:05]MH_I2C_Read... [22:22:05]Read from MH i2c: E2 03 00 FE 00 00 90 00 72 [22:22:05]RAPDU: 90 00 [22:22:05]wFMCommunicate OK [22:22:05]wFMCommunicate request_size=255 [22:22:05]MH_SAM_APDU [22:22: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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 DF 00 00 00 F4 03 04 00 8D 0B C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4B BA 02 00 35 04 06 00 5D [22:22:05]Write to MH i2c: E2 02 01 FF 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 DF 00 00 00 F4 03 04 00 8D 0B C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4B BA 02 00 35 04 06 00 5D 00 00 D2 [22:22:05]Write i2c OK [22:22:05]MH_I2C_Read... [22:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:06]Read from MH i2c: E2 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 03 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 03 00 FF 00 00 90 00 73 [22:22:06]RAPDU: 90 00 [22:22:06]wFMCommunicate OK [22:22:06]wFMCommunicate request_size=10 [22:22:06]MH_SAM_APDU [22:22:06]CAPDU: 80 0D 02 02 05 A1 B2 4E 09 3E [22:22:06]Write to MH i2c: E2 0D 00 00 01 80 0D 02 02 05 00 A1 B2 4E 09 3E 00 00 6D [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:06]Read from MH i2c: E2 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 03 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 03 00 00 01 00 90 00 75 [22:22:06]RAPDU: 90 00 [22:22:06]wFMCommunicate OK [22:22:06]wFMCommunicate request_size=4 [22:22:06]MH_SAM_APDU [22:22:06]CAPDU: 80 0D 03 02 [22:22:06]Write to MH i2c: E2 08 00 01 01 80 0D 03 02 00 00 00 00 7D [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:06]Read from MH i2c: E2 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 0B 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 0B 00 01 01 00 12 F4 4E 7D 8A 71 22 5D 90 00 C9 [22:22:06]RAPDU: 12 F4 4E 7D 8A 71 22 5D 90 00 [22:22:06]wFMCommunicate OK [22:22:06]SAM_PROTO_SignData done [22:22:06]FM_MakeSignedData done [22:22:06]CreateOFDProtocolMessage [22:22:06]wFMCommunicate request_size=4 [22:22:06]MH_SAM_APDU [22:22:06]CAPDU: 80 11 00 00 [22:22:06]Write to MH i2c: E2 08 00 02 01 80 11 00 00 00 00 00 00 7D [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:06]Read from MH i2c: E2 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 17 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: E2 17 00 02 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 D6 [22:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:22:06]wFMCommunicate OK [22:22:06]CreateOFDProtocolMessage done [22:22:06]OFDSenderStorePacket 178763 [22:22:06]StoreOFDPacket docnum=178763 [22:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AA D1 07 01 B3 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 DF 00 00 00 F4 03 04 00 8D 0B C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4B BA 02 00 35 04 06 00 5D A1 B2 4E 09 3E 12 F4 4E 7D 8A 71 22 5D [22:22:06]CheckFolder [22:22:06]dirname=/storage/ofd_packets [22:22:06]CheckFolder done [22:22:06]ProducePacketName [22:22:06]name=ofd_packets/00178763 [22:22:06]NVStorageSaveData ofd_packets/00178763 [22:22:06]File name is /storage/ofd_packets/00178763 [22:22:06]Write 301 bytes [22:22:06]NVStorageSaveData done [22:22:06]OFDSenderStorePacket done [22:22:06]KKMCreateOFDPacket done [22:22:06]NVStorageSaveData kkm_last_timestamp [22:22:06]File name is /storage/kkm_last_timestamp [22:22:06]Write 4 bytes [22:22:06]NVStorageSaveData done [22:22:06]ExternCall_PrintAddStr [22:22:06]wPrintStart [22:22:06]Write to MH i2c: 01 00 00 03 01 04 [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: 01 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: 01 07 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [22:22:06]RasterBufferAndPrint [22:22:06]line Счет N : (1)294798 [22:22:06]line ИНН: 02508201610067 [22:22:06]line Контрольно-Кассовый Чек [22:22:06]line ПРОДАЖА [22:22:06]line ТРК (МРК, ГНК) : 43 [22:22:06]line Товар: 2710124500 [22:22:06]line Аи-95-К-5 [22:22:06]line 9.440 * 74.20 [22:22:06]line = 700.45 [22:22:06]line НДС 12% НСП 1% [22:22:06]line > о реализуемом товаре [22:22:06]line ОКРУГЛЕНИЕ: -0.45 [22:22:06]line ИТОГО: 700.00 [22:22:06]line Внесено: 700.00 [22:22:06]line СДАЧА: 0.00 [22:22:06]line НСП 1% : 6.20 [22:22:06]line НДС 12% : 74.38 [22:22:06]line Наличными: 700.00 [22:22:06]line Безнал.: 0.00 [22:22:06]line Место: АЗС № 130 "Партнер Нефть" [22:22:06]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [22:22:06]line СНО: Общий режим [22:22:06]line Чек 223 23.08.2024 22:22 [22:22:06]line Смена: 470 ФФД: 1.0 [22:22:06]line ЗНМ: 0300000071 [22:22:06]line РНМ: 0000000000092561 [22:22:06]line Версия ККМ: 001 [22:22:06]line ФМ: 0000000000871778 [22:22:06]line ФД: 178763 [22:22:06]line ФПД: 102949062576446 [22:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T222205&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178763&fm=102949062576446&tin=02508201610067®Number=0000000000092561&sum=70000 [22:22:06]written 0, free lines is 4095 [22:22:06]OFD Sender: Processing packet 178763 [packets to send 500, broken 499] [22:22:06]ProducePacketName [22:22:06]name=ofd_packets/00178763 [22:22:06]OFD Sender: To server: pG, [22:22:06]CommunicateWithHost lk.salyk.kg:30040 [22:22:06]ConnectInit lk.salyk.kg [22:22:06]Write to MH i2c: 01 00 00 2E 01 2F [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: 01 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: 01 07 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: 01 07 00 2E 01 00 00 00 00 00 C4 0C 06 [22:22:06]RasterBufferAndPrint [22:22:06]line [22:22:06]line [22:22:06]line [22:22:06]line [22:22:06]line [22:22:06]written 0, free lines is 3274 [22:22:06]MH_Cut [22:22:06]Write to MH i2c: D1 01 00 35 01 01 08 [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: D1 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: D1 01 00 [22:22:06]MH_I2C_Read... [22:22:06]Read from MH i2c: D1 01 00 35 01 00 07 [22:22:06]Write to MH i2c: 01 00 00 36 01 37 [22:22:06]Write i2c OK [22:22:06]MH_I2C_Read... [22:22:07]*** Cut start [22:22:07]*** Partial cut [22:22:07]*** CUTSNS_PIN = 1 [22:22:07]*** CUTSNS_PIN = 0 [22:22:07]*** Brake cut motor [22:22:08]Read from MH i2c: 01 [22:22:08]MH_I2C_Read... [22:22:08]*** Stop cut motor [22:22:08]*** Cut end [22:22:08]Read from MH i2c: 01 07 00 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: 01 07 00 36 01 00 00 00 00 00 FF 0F 4C [22:22:08]process_action close_receipt done [22:22:08]requested_data is exist [22:22:08]produce_requested_data [22:22:08]requested_item fm.sn is exist - process it [22:22:08]wFMCommunicate request_size=4 [22:22:08]MH_SAM_APDU [22:22:08]CAPDU: 80 11 00 00 [22:22:08]Write to MH i2c: E2 08 00 37 01 80 11 00 00 00 00 00 00 B2 [22:22:08]Write i2c OK [22:22:08]MH_I2C_Read... [22:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:08]Read from MH i2c: E2 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: E2 17 00 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: E2 17 00 37 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 0B [22:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [22:22:08]wFMCommunicate OK [22:22:08]requested_item fd.num is exist - process it [22:22:08]SAM_PROTO_GetFieldsCounters [22:22:08]wFMCommunicate request_size=4 [22:22:08]MH_SAM_APDU [22:22:08]CAPDU: 80 13 00 00 [22:22:08]Write to MH i2c: E2 08 00 38 01 80 13 00 00 00 00 00 00 B5 [22:22:08]Write i2c OK [22:22:08]MH_I2C_Read... [22:22:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:08]Read from MH i2c: E2 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: E2 62 00 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: E2 62 00 38 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4B BA 02 00 0E 04 04 00 D6 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 55 [22:22: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4B BA 02 00 0E 04 04 00 D6 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 [22:22:08]wFMCommunicate OK [22:22:08]SAM_PROTO_GetFieldsCounters done [22:22:08]requested_item shift.num is exist - process it [22:22:08]requested_item shift.opened is exist - process it [22:22:08]req_shift_opened [22:22:08]FM_GetShiftState [22:22:08]SAM_PROTO_GetShiftState [22:22:08]wFMCommunicate request_size=4 [22:22:08]MH_SAM_APDU [22:22:08]CAPDU: 80 13 01 00 [22:22:08]Write to MH i2c: E2 08 00 39 01 80 13 01 00 00 00 00 00 B7 [22:22:08]Write i2c OK [22:22:08]MH_I2C_Read... [22:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:08]Read from MH i2c: E2 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: E2 0E 00 [22:22:08]MH_I2C_Read... [22:22:08]Read from MH i2c: E2 0E 00 39 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 8E [22:22:08]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [22:22:08]wFMCommunicate OK [22:22:08]SAM_PROTO_GetShiftState done [22:22:08]FM_GetShiftState done [22:22:08]req_shift_opened done [22:22:08]requested_item shift.open_date is exist - process it [22:22:08]req_shift_open_date [22:22:08]req_shift_open_date done [22:22:08]produce_requested_data done [22:22:08]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178763,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [22:22:08]process_action_free close_receipt [22:22:08]json_value_free [22:22:08]json_value_free done [22:22:08]process_json_proto returns [22:22:08]Send response to host [22:22:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178763,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [22:22:08]free response buf [22:22:08]execute_script done [22:22:08]execute_script returns [22:22:08]free content buf [22:22:08]Sock 9.Close socket [22:22:08]Sock 9.Thread stoped [22:22:11]ConnectInit Can't take IP for lk.salyk.kg [22:22:11]CommunicateWithHost connect error [22:22:11]CommunicateWithHost err = -1 [22:22:11]OFD Sender: Server communicate error [22:22:16]OFD Sender: Processing packet 178763 [packets to send 500, broken 499] [22:22:16]ProducePacketName [22:22:16]name=ofd_packets/00178763 [22:22:16]OFD Sender: To server: pG, [22:22:16]CommunicateWithHost lk.salyk.kg:30040 [22:22:16]ConnectInit lk.salyk.kg [22:22:21]ConnectInit Can't take IP for lk.salyk.kg [22:22:21]CommunicateWithHost connect error [22:22:21]CommunicateWithHost err = -1 [22:22:21]OFD Sender: Server communicate error [22:22:26]OFD Sender: Processing packet 178763 [packets to send 500, broken 499] [22:22:26]ProducePacketName [22:22:26]name=ofd_packets/00178763 [22:22:26]OFD Sender: To server: pG, [22:22:26]CommunicateWithHost lk.salyk.kg:30040 [22:22:26]ConnectInit lk.salyk.kg [22:22:28]Connected sock=9 [22:22:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 AA D1 07 01 B3 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 DF 00 00 00 F4 03 04 00 8D 0B C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4B BA 02 00 35 04 06 00 5D A1 B2 4E 09 3E 12 F4 4E 7D 8A 71 22 5D [22:22:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 63 BE 47 00 D4 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 31 37 37 38 10 04 04 00 4B BA 02 00 F4 03 04 00 49 B7 C8 66 B6 04 01 00 00 FD B2 EB CD 89 40 81 73 [22:22:28]CommunicateWithHost err = 0 [22:22:28]CheckOFDResponse [22:22:28]1017 (14) - 77093643461234 [22:22:28]1041 (16) - 0000000000871778 [22:22:28]1040 (4) - 178763 [22:22:28]1012 (4) - 23.08.2024 16:22 [22:22:28]1206 (1) - 0 [22:22:28]OFD Sender: Remove packet 178763 [22:22:28]ProducePacketName [22:22:28]name=ofd_packets/00178763 [22:22:28]NVStorageDeleteData [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:39]OFD Sender: No OFD packet to send [22:23:44]OFD Sender: No OFD packet to send [22:23:49]OFD Sender: No OFD packet to send [22:23:54]OFD Sender: No OFD packet to send [22:23:59]OFD Sender: No OFD packet to send [22:24:04]OFD Sender: No OFD packet to send [22:24:09]OFD Sender: No OFD packet to send [22:24:14]OFD Sender: No OFD packet to send [22:24:19]OFD Sender: No OFD packet to send [22:24:24]OFD Sender: No OFD packet to send [22:24:29]OFD Sender: No OFD packet to send [22:24:34]OFD Sender: No OFD packet to send [22:24:39]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]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:28:57]recv_with_timeout no data received [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:00]OFD Sender: No OFD packet to send [22:33:05]OFD Sender: No OFD packet to send [22:33:10]recv_with_timeout no data received [22:33:10]OFD Sender: No OFD packet to send [22:33:15]OFD Sender: No OFD packet to send [22:33:20]OFD Sender: No OFD packet to send [22:33:25]OFD Sender: No OFD packet to send [22:33:30]OFD Sender: No OFD packet to send [22:33:35]OFD Sender: No OFD packet to send [22:33:40]OFD Sender: No OFD packet to send [22:33:45]OFD Sender: No OFD packet to send [22:33:50]OFD Sender: No OFD packet to send [22:33:55]OFD Sender: No OFD packet to send [22:33:59]recv_with_timeout no data received [22:34:00]OFD Sender: No OFD packet to send [22:34:05]OFD Sender: No OFD packet to send [22:34:10]OFD Sender: No OFD packet to send [22:34:15]OFD Sender: No OFD packet to send [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:29]recv_with_timeout no data received [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:34:59]recv_with_timeout no data received [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]recv_with_timeout no data received [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:21]recv_with_timeout no data received [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:55]recv_with_timeout no data received [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:23]recv_with_timeout no data received [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:14]recv_with_timeout no data received [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:27]recv_with_timeout no data received [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]recv_with_timeout no data received [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]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:26]recv_with_timeout no data received [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:29]recv_with_timeout no data received [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]recv_with_timeout no data received [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:29]recv_with_timeout no data received [22:46:32]OFD Sender: No OFD packet to send [22:47:32]ConnectInit Can't connect to host [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:19]recv_with_timeout no data received [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:57]recv_with_timeout no data received [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:16]recv_with_timeout no data received [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:55:59]recv_with_timeout no data received [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:16]recv_with_timeout no data received [22:56:18]OFD Sender: No OFD packet to send [22:56:23]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:34]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:07]recv_with_timeout no data received [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:46]recv_with_timeout no data received [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:28]recv_with_timeout no data received [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:35]recv_with_timeout no data received [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:58]recv_with_timeout no data received [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:55]recv_with_timeout no data received [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:36]recv_with_timeout no data received [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:33]recv_with_timeout no data received [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:33]recv_with_timeout no data received [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:44]recv_with_timeout no data received [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]recv_with_timeout no data received [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:09]accept exits with 8 [23:07:09]New connection [23:07:09]New thread 3067465060 created [23:07:09]Thread 3067321700 joined [23:07:09]Waiting for new connection... [23:07:09] Sock 8.Parse request [23:07:09]Sock 8.Check first char [23:07:09]Sock 8.First char is OK [23:07:09]request: POST /json_proto HTTP/1.0 [23:07:09]Method: POST [23:07:09]URL: /json_proto [23:07:09]Method is POST - this is cgi request [23:07:09]url: /json_proto [23:07:09]query_string will be loaded in cgi processing [23:07:09]execute_cgi json_proto POST (null) [23:07:09]execute_cgi path=json_proto method=POST [23:07:09]POST find Content-Length [23:07:09]Host: 172.17.44.131:8080 [23:07:09]Content-Length: 819 [23:07:09]Content-Type: application/json [23:07:09] [23:07:09]POST finish read [23:07:09]Found Content-Length = 819 [23:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:09]execute_script... [23:07: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)294825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:07:09]POST & json_proto [23:07:09]process_json_proto [23:07:09]json parsed OK: [23:07:09]protocol is kg_v1.0 [23:07:09]action value=close_receipt [23:07:09]process_action close_receipt [23:07:09]cmd_close_receipt [23:07:09]MH_GetDate [23:07:09]Write to MH i2c: F0 00 00 3A 01 2A [23:07:09]Write i2c OK [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: F0 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: F0 09 00 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: F0 09 00 3A 01 00 1E 16 C9 66 4F 53 BE 66 5C [23:07:09]GetLastDocTimeStamp 1724451725 [23:07:09]current date 1724454430 [23:07:09]FM_GetShiftState [23:07:09]SAM_PROTO_GetShiftState [23:07:09]wFMCommunicate request_size=4 [23:07:09]MH_SAM_APDU [23:07:09]CAPDU: 80 13 01 00 [23:07:09]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [23:07:09]Write i2c OK [23:07:09]MH_I2C_Read... [23:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:09]Read from MH i2c: E2 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: E2 0E 00 [23:07:09]MH_I2C_Read... [23:07:09]Read from MH i2c: E2 0E 00 3B 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 90 [23:07:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:07:09]wFMCommunicate OK [23:07:09]SAM_PROTO_GetShiftState done [23:07:09]FM_GetShiftState done [23:07:09]opened in 1724371660 [23:07:09]opened+sec_in_day 1724458060 [23:07:09]quantity*price = 100021 [23:07:09]sum+1 = 100023 [23:07:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 224 23.08.2024 23:07 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178764 ФПД: 111207113150308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T230710&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178764&fm=111207113150308&tin=02508201610067®Number=0000000000092561&sum=100022 [23:07:10]StoreToDocumentArchive [23:07:10]shift 470 fd 178764 [23:07:10]save to /storage/0470/doc_00178764 [23:07:10]save last doc name /storage/0470/doc_00178764 to /storage/kkm_last_doc_name [23:07:10]save OK [23:07:10]Clear old archive folders... [23:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:07:10]tlvbuf is 00324EB0 [23:07:10]SAM_PROTO_ClearQueue [23:07:10]wFMCommunicate request_size=4 [23:07:10]MH_SAM_APDU [23:07:10]CAPDU: 80 09 00 00 [23:07:10]Write to MH i2c: E2 08 00 48 01 80 09 00 00 00 00 00 00 BB [23:07:10]Write i2c OK [23:07:10]MH_I2C_Read... [23:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:10]Read from MH i2c: E2 [23:07:10]MH_I2C_Read... [23:07:10]OFD Sender: No OFD packet to send [23:07:10]Read from MH i2c: E2 03 00 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 48 01 00 90 00 BD [23:07:10]RAPDU: 90 00 [23:07:10]wFMCommunicate OK [23:07:10]SAM_PROTO_ClearQueue done [23:07:10]KKMCreateOFDPacket [23:07:10]OFDProtocolAddRootSTLVToBuf [23:07:10]FM_MakeSignedData [23:07:10]FM_MakeSignedData [23:07:10]SAM_PROTO_SignData [23:07:10]wFMCommunicate request_size=4 [23:07:10]MH_SAM_APDU [23:07:10]CAPDU: 80 0D 01 02 [23:07:10]Write to MH i2c: E2 08 00 49 01 80 0D 01 02 00 00 00 00 C3 [23:07:10]Write i2c OK [23:07:10]MH_I2C_Read... [23:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:10]Read from MH i2c: E2 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [23:07:10]RAPDU: 90 00 [23:07:10]wFMCommunicate OK [23:07:10]wFMCommunicate request_size=255 [23:07:10]MH_SAM_APDU [23:07: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1E 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4C BA 02 00 35 04 06 00 65 [23:07:10]Write to MH i2c: E2 02 01 4A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1E 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4C BA 02 00 35 04 06 00 65 00 00 26 [23:07:10]Write i2c OK [23:07:10]MH_I2C_Read... [23:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:10]Read from MH i2c: E2 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [23:07:10]RAPDU: 90 00 [23:07:10]wFMCommunicate OK [23:07:10]wFMCommunicate request_size=10 [23:07:10]MH_SAM_APDU [23:07:10]CAPDU: 80 0D 02 02 05 24 6C 79 CF 64 [23:07:10]Write to MH i2c: E2 0D 00 4B 01 80 0D 02 02 05 00 24 6C 79 CF 64 00 00 0C [23:07:10]Write i2c OK [23:07:10]MH_I2C_Read... [23:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:10]Read from MH i2c: E2 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 [23:07:10]MH_I2C_Read... [23:07:10]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [23:07:10]RAPDU: 90 00 [23:07:10]wFMCommunicate OK [23:07:10]wFMCommunicate request_size=4 [23:07:10]MH_SAM_APDU [23:07:10]CAPDU: 80 0D 03 02 [23:07:10]Write to MH i2c: E2 08 00 4C 01 80 0D 03 02 00 00 00 00 C8 [23:07:10]Write i2c OK [23:07:10]MH_I2C_Read... [23:07:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:11]Read from MH i2c: E2 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 0B 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 0B 00 4C 01 00 AB 02 C3 AB F3 01 49 BA 90 00 DB [23:07:11]RAPDU: AB 02 C3 AB F3 01 49 BA 90 00 [23:07:11]wFMCommunicate OK [23:07:11]SAM_PROTO_SignData done [23:07:11]FM_MakeSignedData done [23:07:11]CreateOFDProtocolMessage [23:07:11]wFMCommunicate request_size=4 [23:07:11]MH_SAM_APDU [23:07:11]CAPDU: 80 11 00 00 [23:07:11]Write to MH i2c: E2 08 00 4D 01 80 11 00 00 00 00 00 00 C8 [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:11]Read from MH i2c: E2 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 17 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: E2 17 00 4D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 21 [23:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:07:11]wFMCommunicate OK [23:07:11]CreateOFDProtocolMessage done [23:07:11]OFDSenderStorePacket 178764 [23:07:11]StoreOFDPacket docnum=178764 [23:07:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E1 B1 07 01 9D 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1E 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4C BA 02 00 35 04 06 00 65 24 6C 79 CF 64 AB 02 C3 AB F3 01 49 BA [23:07:11]CheckFolder [23:07:11]dirname=/storage/ofd_packets [23:07:11]CheckFolder done [23:07:11]ProducePacketName [23:07:11]name=ofd_packets/00178764 [23:07:11]NVStorageSaveData ofd_packets/00178764 [23:07:11]File name is /storage/ofd_packets/00178764 [23:07:11]Write 301 bytes [23:07:11]NVStorageSaveData done [23:07:11]OFDSenderStorePacket done [23:07:11]KKMCreateOFDPacket done [23:07:11]NVStorageSaveData kkm_last_timestamp [23:07:11]File name is /storage/kkm_last_timestamp [23:07:11]Write 4 bytes [23:07:11]NVStorageSaveData done [23:07:11]ExternCall_PrintAddStr [23:07:11]wPrintStart [23:07:11]Write to MH i2c: 01 00 00 4E 01 4F [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 07 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [23:07:11]RasterBufferAndPrint [23:07:11]line Счет N : (1)294825 [23:07:11]line ИНН: 02508201610067 [23:07:11]line Контрольно-Кассовый Чек [23:07:11]line ПРОДАЖА [23:07:11]line ТРК (МРК, ГНК) : 33 [23:07:11]line Товар: 2710124500 [23:07:11]line Аи-95-К-5 [23:07:11]line 13.480 * 74.20 [23:07:11]line = 1000.22 [23:07:11]line НДС 12% НСП 1% [23:07:11]line > о реализуемом товаре [23:07:11]line ИТОГО: 1000.22 [23:07:11]line НСП 1% : 8.85 [23:07:11]line НДС 12% : 106.22 [23:07:11]line Наличными: 0.00 [23:07:11]line Безнал.: 1000.22 [23:07:11]line Место: АЗС № 130 "Партнер Нефть" [23:07:11]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [23:07:11]line СНО: Общий режим [23:07:11]line Чек 224 23.08.2024 23:07 [23:07:11]line Смена: 470 ФФД: 1.0 [23:07:11]line ЗНМ: 0300000071 [23:07:11]line РНМ: 0000000000092561 [23:07:11]line Версия ККМ: 001 [23:07:11]line Платежная система: Бакай Банк [23:07:11]line ФМ: 0000000000871778 [23:07:11]line ФД: 178764 [23:07:11]line ФПД: 111207113150308 [23:07:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T230710&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178764&fm=111207113150308&tin=02508201610067®Number=0000000000092561&sum=100022 [23:07:11]written 0, free lines is 4095 [23:07:11]OFD Sender: Processing packet 178764 [packets to send 500, broken 499] [23:07:11]ProducePacketName [23:07:11]name=ofd_packets/00178764 [23:07:11]OFD Sender: To server: pG, [23:07:11]CommunicateWithHost lk.salyk.kg:30040 [23:07:11]ConnectInit lk.salyk.kg [23:07:11]Write to MH i2c: 01 00 00 78 01 79 [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 07 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: 01 07 00 78 01 00 00 00 00 00 D5 0C 61 [23:07:11]RasterBufferAndPrint [23:07:11]line [23:07:11]line [23:07:11]line [23:07:11]line [23:07:11]line [23:07:11]written 0, free lines is 3292 [23:07:11]MH_Cut [23:07:11]Write to MH i2c: D1 01 00 7F 01 01 52 [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: D1 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: D1 01 00 [23:07:11]MH_I2C_Read... [23:07:11]Read from MH i2c: D1 01 00 7F 01 00 51 [23:07:11]Write to MH i2c: 01 00 00 80 01 81 [23:07:11]Write i2c OK [23:07:11]MH_I2C_Read... [23:07:12]*** Cut start [23:07:12]*** Partial cut [23:07:12]*** CUTSNS_PIN = 1 [23:07:12]*** CUTSNS_PIN = 0 [23:07:12]*** Brake cut motor [23:07:12]Connected sock=11 [23:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 E1 B1 07 01 9D 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 1E 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4C BA 02 00 35 04 06 00 65 24 6C 79 CF 64 AB 02 C3 AB F3 01 49 BA [23:07:12]Read from MH i2c: 01 [23:07:12]MH_I2C_Read... [23:07:12]*** Stop cut motor [23:07:12]*** Cut end [23:07:12]Read from MH i2c: 01 07 00 [23:07:12]MH_I2C_Read... [23:07:12]Read from MH i2c: 01 07 00 80 01 00 00 00 00 00 FF 0F 96 [23:07:12]process_action close_receipt done [23:07:12]requested_data is exist [23:07:12]produce_requested_data [23:07:12]requested_item fm.sn is exist - process it [23:07:12]wFMCommunicate request_size=4 [23:07:12]MH_SAM_APDU [23:07:12]CAPDU: 80 11 00 00 [23:07:12]Write to MH i2c: E2 08 00 81 01 80 11 00 00 00 00 00 00 FC [23:07:12]Write i2c OK [23:07:12]MH_I2C_Read... [23:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:12]Read from MH i2c: E2 [23:07:12]MH_I2C_Read... [23:07:12]Read from MH i2c: E2 17 00 [23:07:12]MH_I2C_Read... [23:07:12]Read from MH i2c: E2 17 00 81 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 55 [23:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:07:12]wFMCommunicate OK [23:07:12]requested_item fd.num is exist - process it [23:07:12]SAM_PROTO_GetFieldsCounters [23:07:12]wFMCommunicate request_size=4 [23:07:12]MH_SAM_APDU [23:07:12]CAPDU: 80 13 00 00 [23:07:12]Write to MH i2c: E2 08 00 82 01 80 13 00 00 00 00 00 00 FF [23:07:12]Write i2c OK [23:07:12]MH_I2C_Read... [23:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B1 F9 47 00 D1 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4C BA 02 00 F4 03 04 00 C6 C1 C8 66 B6 04 01 00 00 29 F2 7F 04 D3 31 F3 FE [23:07:13]CommunicateWithHost err = 0 [23:07:13]CheckOFDResponse [23:07:13]1017 (14) - 77093643461234 [23:07:13]1041 (16) - 0000000000871778 [23:07:13]1040 (4) - 178764 [23:07:13]1012 (4) - 23.08.2024 17:07 [23:07:13]1206 (1) - 0 [23:07:13]OFD Sender: Remove packet 178764 [23:07:13]ProducePacketName [23:07:13]name=ofd_packets/00178764 [23:07:13]NVStorageDeleteData [23:07:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 62 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 62 00 82 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4C BA 02 00 0E 04 04 00 D6 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 A3 [23: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4C BA 02 00 0E 04 04 00 D6 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 [23:07:13]wFMCommunicate OK [23:07:13]SAM_PROTO_GetFieldsCounters done [23:07:13]requested_item shift.num is exist - process it [23:07:13]requested_item shift.opened is exist - process it [23:07:13]req_shift_opened [23:07:13]FM_GetShiftState [23:07:13]SAM_PROTO_GetShiftState [23:07:13]wFMCommunicate request_size=4 [23:07:13]MH_SAM_APDU [23:07:13]CAPDU: 80 13 01 00 [23:07:13]Write to MH i2c: E2 08 00 83 01 80 13 01 00 00 00 00 00 01 [23:07:13]Write i2c OK [23:07:13]MH_I2C_Read... [23:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:13]Read from MH i2c: E2 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 0E 00 [23:07:13]MH_I2C_Read... [23:07:13]Read from MH i2c: E2 0E 00 83 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 D8 [23:07:13]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:07:13]wFMCommunicate OK [23:07:13]SAM_PROTO_GetShiftState done [23:07:13]FM_GetShiftState done [23:07:13]req_shift_opened done [23:07:13]requested_item shift.open_date is exist - process it [23:07:13]req_shift_open_date [23:07:13]req_shift_open_date done [23:07:13]produce_requested_data done [23:07:13]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178764,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:07:13]process_action_free close_receipt [23:07:13]json_value_free [23:07:13]json_value_free done [23:07:13]process_json_proto returns [23:07:13]Send response to host [23:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178764,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:07:13]free response buf [23:07:13]execute_script done [23:07:13]execute_script returns [23:07:13]free content buf [23:07:13]Sock 8.Close socket [23:07:13]Sock 8.Thread stoped [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]recv_with_timeout no data received [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]recv_with_timeout no data received [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:49]recv_with_timeout no data received [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]accept exits with 10 [23:08:43]New connection [23:08:43]New thread 3067321700 created [23:08:43]Thread 3067465060 joined [23:08:43]Waiting for new connection... [23:08:43] Sock 10.Parse request [23:08:43]Sock 10.Check first char [23:08:43]Sock 10.First char is OK [23:08:43]request: POST /json_proto HTTP/1.0 [23:08:43]Method: POST [23:08:43]URL: /json_proto [23:08:43]Method is POST - this is cgi request [23:08:43]url: /json_proto [23:08:43]query_string will be loaded in cgi processing [23:08:43]execute_cgi json_proto POST (null) [23:08:43]execute_cgi path=json_proto method=POST [23:08:43]POST find Content-Length [23:08:43]Host: 172.17.44.131:8080 [23:08:43]Content-Length: 685 [23:08:43]Content-Type: application/json [23:08:43] [23:08:43]POST finish read [23:08:43]Found Content-Length = 685 [23:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 58.700, "sum" : 2195.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2195.00, "payments": [ { "type": 0, "sum" : 2195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:43]execute_script... [23:08:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 58.700, "sum" : 2195.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2195.00, "payments": [ { "type": 0, "sum" : 2195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:43]POST & json_proto [23:08:43]process_json_proto [23:08:43]json parsed OK: [23:08:43]protocol is kg_v1.0 [23:08:43]action value=close_receipt [23:08:43]process_action close_receipt [23:08:43]cmd_close_receipt [23:08:43]MH_GetDate [23:08:43]Write to MH i2c: F0 00 00 84 01 74 [23:08:43]Write i2c OK [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: F0 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: F0 09 00 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: F0 09 00 84 01 00 7C 16 C9 66 4F 53 BE 66 04 [23:08:43]GetLastDocTimeStamp 1724454430 [23:08:43]current date 1724454524 [23:08:43]FM_GetShiftState [23:08:43]SAM_PROTO_GetShiftState [23:08:43]wFMCommunicate request_size=4 [23:08:43]MH_SAM_APDU [23:08:43]CAPDU: 80 13 01 00 [23:08:43]Write to MH i2c: E2 08 00 85 01 80 13 01 00 00 00 00 00 03 [23:08:43]Write i2c OK [23:08:43]MH_I2C_Read... [23:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:43]Read from MH i2c: E2 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 0E 00 [23:08:43]MH_I2C_Read... [23:08:43]Read from MH i2c: E2 0E 00 85 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 DA [23:08:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:08:43]wFMCommunicate OK [23:08:43]SAM_PROTO_GetShiftState done [23:08:43]FM_GetShiftState done [23:08:43]opened in 1724371660 [23:08:43]opened+sec_in_day 1724458060 [23:08:43]quantity*price = 219538 [23:08:43]sum+1 = 219539 [23:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 2195.00 Внесено: 3000.00 СДАЧА: 805.00 НСП 1% : 19.43 НДС 12% : 233.14 Наличными: 2195.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 225 23.08.2024 23:08 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178765 ФПД: 169550997436871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T230844&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178765&fm=169550997436871&tin=02508201610067®Number=0000000000092561&sum=219500 [23:08:44]StoreToDocumentArchive [23:08:44]shift 470 fd 178765 [23:08:44]save to /storage/0470/doc_00178765 [23:08:44]save last doc name /storage/0470/doc_00178765 to /storage/kkm_last_doc_name [23:08:44]save OK [23:08:44]Clear old archive folders... [23:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:08:44]tlvbuf is 00322C30 [23:08:44]SAM_PROTO_ClearQueue [23:08:44]wFMCommunicate request_size=4 [23:08:44]MH_SAM_APDU [23:08:44]CAPDU: 80 09 00 00 [23:08:44]Write to MH i2c: E2 08 00 92 01 80 09 00 00 00 00 00 00 05 [23:08:44]Write i2c OK [23:08:44]MH_I2C_Read... [23:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:44]Read from MH i2c: E2 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 92 01 00 90 00 07 [23:08:44]RAPDU: 90 00 [23:08:44]wFMCommunicate OK [23:08:44]SAM_PROTO_ClearQueue done [23:08:44]KKMCreateOFDPacket [23:08:44]OFDProtocolAddRootSTLVToBuf [23:08:44]FM_MakeSignedData [23:08:44]FM_MakeSignedData [23:08:44]SAM_PROTO_SignData [23:08:44]wFMCommunicate request_size=4 [23:08:44]MH_SAM_APDU [23:08:44]CAPDU: 80 0D 01 02 [23:08:44]Write to MH i2c: E2 08 00 93 01 80 0D 01 02 00 00 00 00 0D [23:08:44]Write i2c OK [23:08:44]MH_I2C_Read... [23:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:44]Read from MH i2c: E2 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 93 01 00 90 00 08 [23:08:44]RAPDU: 90 00 [23:08:44]wFMCommunicate OK [23:08:44]wFMCommunicate request_size=255 [23:08:44]MH_SAM_APDU [23:08:44]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C E5 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 92 59 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 59 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 5B 00 00 00 00 07 04 06 00 6C 59 03 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 7C 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4D BA 02 00 35 04 06 00 9A 34 [23:08:44]Write to MH i2c: E2 02 01 94 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C E5 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 92 59 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 59 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 5B 00 00 00 00 07 04 06 00 6C 59 03 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 7C 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4D BA 02 00 35 04 06 00 9A 34 00 00 7F [23:08:44]Write i2c OK [23:08:44]MH_I2C_Read... [23:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:44]Read from MH i2c: E2 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 94 01 00 90 00 09 [23:08:44]RAPDU: 90 00 [23:08:44]wFMCommunicate OK [23:08:44]wFMCommunicate request_size=9 [23:08:44]MH_SAM_APDU [23:08:44]CAPDU: 80 0D 02 02 04 AA F9 39 C7 [23:08:44]Write to MH i2c: E2 0C 00 95 01 80 0D 02 02 04 00 AA F9 39 C7 00 00 BB [23:08:44]Write i2c OK [23:08:44]MH_I2C_Read... [23:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:44]Read from MH i2c: E2 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 03 00 95 01 00 90 00 0A [23:08:44]RAPDU: 90 00 [23:08:44]wFMCommunicate OK [23:08:44]wFMCommunicate request_size=4 [23:08:44]MH_SAM_APDU [23:08:44]CAPDU: 80 0D 03 02 [23:08:44]Write to MH i2c: E2 08 00 96 01 80 0D 03 02 00 00 00 00 12 [23:08:44]Write i2c OK [23:08:44]MH_I2C_Read... [23:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:44]Read from MH i2c: E2 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 0B 00 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 0B 00 96 01 00 8E 41 47 E1 5F AA 58 AB 90 00 16 [23:08:44]RAPDU: 8E 41 47 E1 5F AA 58 AB 90 00 [23:08:44]wFMCommunicate OK [23:08:44]SAM_PROTO_SignData done [23:08:44]FM_MakeSignedData done [23:08:44]CreateOFDProtocolMessage [23:08:44]wFMCommunicate request_size=4 [23:08:44]MH_SAM_APDU [23:08:44]CAPDU: 80 11 00 00 [23:08:44]Write to MH i2c: E2 08 00 97 01 80 11 00 00 00 00 00 00 12 [23:08:44]Write i2c OK [23:08:44]MH_I2C_Read... [23:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:44]Read from MH i2c: E2 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 17 00 [23:08:44]MH_I2C_Read... [23:08:44]Read from MH i2c: E2 17 00 97 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6B [23:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:08:44]wFMCommunicate OK [23:08:44]CreateOFDProtocolMessage done [23:08:44]OFDSenderStorePacket 178765 [23:08:44]StoreOFDPacket docnum=178765 [23:10:19]OFD Sender: Processing packet 178765 [packets to send 500, broken 499] [23:10:19]ProducePacketName [23:10:19]name=ofd_packets/00178765 [23:10:19]OFD Sender: To server: pG, [23:10:19]CommunicateWithHost lk.salyk.kg:30040 [23:10:19]ConnectInit lk.salyk.kg [23:10:24]ConnectInit Can't take IP for lk.salyk.kg [23:10:24]CommunicateWithHost connect error [23:10:24]CommunicateWithHost err = -1 [23:10:24]OFD Sender: Server communicate error [23:10:24]recv_with_timeout no data received [23:10:29]OFD Sender: Processing packet 178765 [packets to send 500, broken 499] [23:10:29]ProducePacketName [23:10:29]name=ofd_packets/00178765 [23:10:29]OFD Sender: To server: pG, [23:10:29]CommunicateWithHost lk.salyk.kg:30040 [23:10:29]ConnectInit lk.salyk.kg [23:12:51]OFD Sender: Processing packet 178765 [packets to send 500, broken 499] [23:12:51]ProducePacketName [23:12:51]name=ofd_packets/00178765 [23:12:51]OFD Sender: To server: pG, [23:12:51]CommunicateWithHost lk.salyk.kg:30040 [23:12:51]ConnectInit lk.salyk.kg [23:12:56]ConnectInit Can't take IP for lk.salyk.kg [23:12:56]CommunicateWithHost connect error [23:12:56]CommunicateWithHost err = -1 [23:12:56]OFD Sender: Server communicate error [23:13:01]OFD Sender: Processing packet 178765 [packets to send 500, broken 499] [23:13:01]ProducePacketName [23:13:01]name=ofd_packets/00178765 [23:13:01]OFD Sender: To server: pG, [23:13:01]CommunicateWithHost lk.salyk.kg:30040 [23:13:01]ConnectInit lk.salyk.kg [23:13:06]ConnectInit Can't take IP for lk.salyk.kg [23:13:06]CommunicateWithHost connect error [23:13:06]CommunicateWithHost err = -1 [23:13:06]OFD Sender: Server communicate error [23:13:10]recv_with_timeout no data received [23:13:11]OFD Sender: Processing packet 178765 [packets to send 500, broken 499] [23:13:11]ProducePacketName [23:13:11]name=ofd_packets/00178765 [23:13:11]OFD Sender: To server: pG, [23:13:11]CommunicateWithHost lk.salyk.kg:30040 [23:13:11]ConnectInit lk.salyk.kg [23:13:16]ConnectInit Can't take IP for lk.salyk.kg [23:13:16]CommunicateWithHost connect error [23:13:16]CommunicateWithHost err = -1 [23:13:16]OFD Sender: Server communicate error [23:13:21]OFD Sender: Processing packet 178765 [packets to send 500, broken 499] [23:13:21]ProducePacketName [23:13:21]name=ofd_packets/00178765 [23:13:21]OFD Sender: To server: pG, [23:13:21]CommunicateWithHost lk.salyk.kg:30040 [23:13:21]ConnectInit lk.salyk.kg [23:13:22]Connected sock=8 [23:13:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 13 59 06 01 47 00 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C E5 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 92 59 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 59 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 5B 00 00 00 00 07 04 06 00 6C 59 03 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 7C 16 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4D BA 02 00 35 04 06 00 9A 34 AA F9 39 C7 8E 41 47 E1 5F AA 58 AB [23:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 08 DA 47 00 44 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 31 37 37 38 10 04 04 00 4D BA 02 00 F4 03 04 00 37 C3 C8 66 B6 04 01 00 00 4E 32 AC D9 E3 F8 C9 59 [23:13:24]CommunicateWithHost err = 0 [23:13:24]CheckOFDResponse [23:13:24]1017 (14) - 77093643461234 [23:13:24]1041 (16) - 0000000000871778 [23:13:24]1040 (4) - 178765 [23:13:24]1012 (4) - 23.08.2024 17:13 [23:13:24]1206 (1) - 0 [23:13:24]OFD Sender: Remove packet 178765 [23:13:24]ProducePacketName [23:13:24]name=ofd_packets/00178765 [23:13:24]NVStorageDeleteData [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:52]recv_with_timeout no data received [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:10]recv_with_timeout no data received [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:04]recv_with_timeout no data received [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:26]recv_with_timeout no data received [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:07]accept exits with 9 [23:17:07]New connection [23:17:07]New thread 3067465060 created [23:17:07]Thread 3067321700 joined [23:17:07]Waiting for new connection... [23:17:07] Sock 9.Parse request [23:17:07]Sock 9.Check first char [23:17:07]Sock 9.First char is OK [23:17:07]request: POST /json_proto HTTP/1.0 [23:17:07]Method: POST [23:17:07]URL: /json_proto [23:17:07]Method is POST - this is cgi request [23:17:07]url: /json_proto [23:17:07]query_string will be loaded in cgi processing [23:17:07]execute_cgi json_proto POST (null) [23:17:07]execute_cgi path=json_proto method=POST [23:17:07]POST find Content-Length [23:17:07]Host: 172.17.44.131:8080 [23:17:07]Content-Length: 682 [23:17:07]Content-Type: application/json [23:17:07] [23:17:07]POST finish read [23:17:07]Found Content-Length = 682 [23:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:07]execute_script... [23: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)294830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:07]POST & json_proto [23:17:07]process_json_proto [23:17:07]json parsed OK: [23:17:07]protocol is kg_v1.0 [23:17:07]action value=close_receipt [23:17:07]process_action close_receipt [23:17:07]cmd_close_receipt [23:17:07]MH_GetDate [23:17:07]Write to MH i2c: F0 00 00 CF 01 BF [23:17:07]Write i2c OK [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: F0 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: F0 09 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: F0 09 00 CF 01 00 74 18 C9 66 4F 53 BE 66 49 [23:17:07]GetLastDocTimeStamp 1724454524 [23:17:07]current date 1724455028 [23:17:07]FM_GetShiftState [23:17:07]SAM_PROTO_GetShiftState [23:17:07]wFMCommunicate request_size=4 [23:17:07]MH_SAM_APDU [23:17:07]CAPDU: 80 13 01 00 [23:17:07]Write to MH i2c: E2 08 00 D0 01 80 13 01 00 00 00 00 00 4E [23:17:07]Write i2c OK [23:17:07]MH_I2C_Read... [23:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:07]Read from MH i2c: E2 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 0E 00 [23:17:07]MH_I2C_Read... [23:17:07]Read from MH i2c: E2 0E 00 D0 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 25 [23:17:07]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:17:07]wFMCommunicate OK [23:17:07]SAM_PROTO_GetShiftState done [23:17:07]FM_GetShiftState done [23:17:07]opened in 1724371660 [23:17:07]opened+sec_in_day 1724458060 [23:17:07]quantity*price = 200043 [23:17:07]sum+1 = 200044 [23:17:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 226 23.08.2024 23:17 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178766 ФПД: 180793505031844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T231708&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178766&fm=180793505031844&tin=02508201610067®Number=0000000000092561&sum=200000 [23:17:08]StoreToDocumentArchive [23:17:08]shift 470 fd 178766 [23:17:08]save to /storage/0470/doc_00178766 [23:17:08]save last doc name /storage/0470/doc_00178766 to /storage/kkm_last_doc_name [23:17:08]save OK [23:17:08]Clear old archive folders... [23:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:17:08]tlvbuf is 00324690 [23:17:08]SAM_PROTO_ClearQueue [23:17:08]wFMCommunicate request_size=4 [23:17:08]MH_SAM_APDU [23:17:08]CAPDU: 80 09 00 00 [23:17:08]Write to MH i2c: E2 08 00 DD 01 80 09 00 00 00 00 00 00 50 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:08]Read from MH i2c: E2 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 DD 01 00 90 00 52 [23:17:08]RAPDU: 90 00 [23:17:08]wFMCommunicate OK [23:17:08]SAM_PROTO_ClearQueue done [23:17:08]KKMCreateOFDPacket [23:17:08]OFDProtocolAddRootSTLVToBuf [23:17:08]FM_MakeSignedData [23:17:08]FM_MakeSignedData [23:17:08]SAM_PROTO_SignData [23:17:08]wFMCommunicate request_size=4 [23:17:08]MH_SAM_APDU [23:17:08]CAPDU: 80 0D 01 02 [23:17:08]Write to MH i2c: E2 08 00 DE 01 80 0D 01 02 00 00 00 00 58 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:08]Read from MH i2c: E2 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 DE 01 00 90 00 53 [23:17:08]RAPDU: 90 00 [23:17:08]wFMCommunicate OK [23:17:08]wFMCommunicate request_size=255 [23:17:08]MH_SAM_APDU [23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 74 18 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4E BA 02 00 35 04 06 00 A4 [23:17:08]Write to MH i2c: E2 02 01 DF 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 74 18 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4E BA 02 00 35 04 06 00 A4 00 00 B5 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:08]Read from MH i2c: E2 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 DF 01 00 90 00 54 [23:17:08]RAPDU: 90 00 [23:17:08]wFMCommunicate OK [23:17:08]wFMCommunicate request_size=10 [23:17:08]MH_SAM_APDU [23:17:08]CAPDU: 80 0D 02 02 05 6E 44 A5 26 A4 [23:17:08]Write to MH i2c: E2 0D 00 E0 01 80 0D 02 02 05 00 6E 44 A5 26 A4 00 00 86 [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:08]Read from MH i2c: E2 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 03 00 E0 01 00 90 00 55 [23:17:08]RAPDU: 90 00 [23:17:08]wFMCommunicate OK [23:17:08]wFMCommunicate request_size=4 [23:17:08]MH_SAM_APDU [23:17:08]CAPDU: 80 0D 03 02 [23:17:08]Write to MH i2c: E2 08 00 E1 01 80 0D 03 02 00 00 00 00 5D [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:08]Read from MH i2c: E2 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 0B 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 0B 00 E1 01 00 37 47 16 5C CD 44 D6 FF 90 00 34 [23:17:08]RAPDU: 37 47 16 5C CD 44 D6 FF 90 00 [23:17:08]wFMCommunicate OK [23:17:08]SAM_PROTO_SignData done [23:17:08]FM_MakeSignedData done [23:17:08]CreateOFDProtocolMessage [23:17:08]wFMCommunicate request_size=4 [23:17:08]MH_SAM_APDU [23:17:08]CAPDU: 80 11 00 00 [23:17:08]Write to MH i2c: E2 08 00 E2 01 80 11 00 00 00 00 00 00 5D [23:17:08]Write i2c OK [23:17:08]MH_I2C_Read... [23:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:08]Read from MH i2c: E2 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 17 00 [23:17:08]MH_I2C_Read... [23:17:08]Read from MH i2c: E2 17 00 E2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 B6 [23:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:17:08]wFMCommunicate OK [23:17:08]CreateOFDProtocolMessage done [23:17:08]OFDSenderStorePacket 178766 [23:17:08]StoreOFDPacket docnum=178766 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 707265+1723749199=1724456464 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 11 1E C9 66 4F 53 BE 66 23 [23:41:05]Current date/time: 23.08.2024 23:41 [23:41:05]FM_Init [23:41:05]wFMConnect [23:41:05]MH_SAM_On [23:41:05]Write to MH i2c: E0 00 00 08 00 E7 [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_init finished! [23:41:05]*** atr: [23:41:05]*** 0F 3B D5 18 FF 81 91 FE [23:41:05]*** 1F C3 80 73 C8 21 10 0A [23:41:05]*** 00 00 00 00 00 00 00 00 [23:41:05]*** 00 00 00 00 00 00 00 00 [23:41:05]*** 00 00 00 00 00 00 00 00 [23:41:05]*** 00 00 00 00 00 00 00 00 [23:41:05]*** 00 00 00 00 00 00 00 00 [23:41:05]*** 00 00 00 00 00 00 00 00 [23:41:05]Read from MH i2c: E0 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E0 10 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:41:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:41:05]wFMCommunicate request_size=10 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:41:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:41:05]RAPDU: 90 00 [23:41:05]wFMCommunicate OK [23:41:05]wFMCommunicate request_size=4 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 11 00 00 [23:41:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 17 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [23:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:41:05]wFMCommunicate OK [23:41:05]Detected FM SN is 0000000000871778 [23:41:05]Stored FM SN is 0000000000871778 [23:41:05]wFMCommunicate request_size=9 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 16 00 00 04 D9 BA 00 00 [23:41:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:41:05]RAPDU: 90 00 [23:41:05]wFMCommunicate OK [23:41:05]FM PIN OK [23:41:05]wFMCommunicate request_size=8 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 14 04 00 03 02 00 01 [23:41:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:41:05]RAPDU: 90 00 [23:41:05]wFMCommunicate OK [23:41:05]wFMCommunicate request_size=13 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:41:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:41:05]RAPDU: 90 00 [23:41:05]wFMCommunicate OK [23:41:05]wFMCommunicate request_size=4 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 11 00 00 [23:41:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 17 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [23:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:41:05]wFMCommunicate OK [23:41:05]DocumentArchiveInit [23:41:05]Start Httpd... [23:41:05]Httpd thread 3067514212 created [23:41:05]Write to MH i2c: 01 00 00 0F 00 0F [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: 01 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: 01 07 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:41:05]MH Int Process started [23:41:05]Allocated Socket 8 [23:41:05]Bind OK [23:41:05]Listen OK [23:41:05]httpd running on port 8080 [23:41:05]Waiting for new connection... [23:41:05]accept exits with 9 [23:41:05]New connection [23:41:05]New thread 3067227492 created [23:41:05]Waiting for new connection... [23:41:05] Sock 9.Parse request [23:41:05]Sock 9.Check first char [23:41:05]Sock 9.First char is OK [23:41:05]request: POST /json_proto HTTP/1.0 [23:41:05]Method: POST [23:41:05]URL: /json_proto [23:41:05]Method is POST - this is cgi request [23:41:05]url: /json_proto [23:41:05]query_string will be loaded in cgi processing [23:41:05]execute_cgi json_proto POST (null) [23:41:05]execute_cgi path=json_proto method=POST [23:41:05]POST find Content-Length [23:41:05]Host: 172.17.44.131:8080 [23:41:05]Content-Length: 215 [23:41:05]Content-Type: application/json [23:41:05] [23:41:05]POST finish read [23:41:05]Found Content-Length = 215 [23:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:05]execute_script... [23:41:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:05]POST & json_proto [23:41:05]process_json_proto [23:41:05]json parsed OK: [23:41:05]protocol is kg_v1.0 [23:41:05]action value=get_value [23:41:05]process_action get_value [23:41:05]cmd_get_value [23:41:05]process_action get_value done [23:41:05]requested_data is exist [23:41:05]produce_requested_data [23:41:05]requested_item kkm.sn is exist - process it [23:41:05]requested_item kkm.ver is exist - process it [23:41:05]requested_item fm.sn is exist - process it [23:41:05]wFMCommunicate request_size=4 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 11 00 00 [23:41:05]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 17 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [23:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:41:05]wFMCommunicate OK [23:41:05]requested_item fd.num is exist - process it [23:41:05]SAM_PROTO_GetFieldsCounters [23:41:05]wFMCommunicate request_size=4 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 13 00 00 [23:41:05]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 62 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4E BA 02 00 0E 04 04 00 D6 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 39 [23:41:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 4E BA 02 00 0E 04 04 00 D6 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 [23:41:05]wFMCommunicate OK [23:41:05]SAM_PROTO_GetFieldsCounters done [23:41:05]requested_item shift.num is exist - process it [23:41:05]requested_item shift.opened is exist - process it [23:41:05]req_shift_opened [23:41:05]FM_GetShiftState [23:41:05]SAM_PROTO_GetShiftState [23:41:05]wFMCommunicate request_size=4 [23:41:05]MH_SAM_APDU [23:41:05]CAPDU: 80 13 01 00 [23:41:05]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:41:05]Write i2c OK [23:41:05]MH_I2C_Read... [23:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:05]Read from MH i2c: E2 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 0E 00 [23:41:05]MH_I2C_Read... [23:41:05]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [23:41:05]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:41:05]wFMCommunicate OK [23:41:05]SAM_PROTO_GetShiftState done [23:41:05]FM_GetShiftState done [23:41:05]req_shift_opened done [23:41:05]requested_item shift.open_date is exist - process it [23:41:05]req_shift_open_date [23:41:05]req_shift_open_date done [23:41:05]produce_requested_data done [23:41:05]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178766,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:41:05]process_action_free get_value [23:41:05]json_value_free [23:41:05]json_value_free done [23:41:05]process_json_proto returns [23:41:05]Send response to host [23:41:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178766,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:41:05]free response buf [23:41:05]execute_script done [23:41:05]execute_script returns [23:41:05]free content buf [23:41:05]Sock 9.Close socket [23:41:05]accept exits with 10 [23:41:05]New connection [23:41:05]New thread 3067084132 created [23:41:05]Waiting for new connection... [23:41:05]Sock 9.Thread stoped [23:41:06] Sock 10.Parse request [23:41:06]Sock 10.Check first char [23:41:06]Sock 10.First char is OK [23:41:06]request: POST /json_proto HTTP/1.0 [23:41:06]Method: POST [23:41:06]URL: /json_proto [23:41:06]Method is POST - this is cgi request [23:41:06]url: /json_proto [23:41:06]query_string will be loaded in cgi processing [23:41:06]execute_cgi json_proto POST (null) [23:41:06]execute_cgi path=json_proto method=POST [23:41:06]POST find Content-Length [23:41:06]Host: 172.17.44.131:8080 [23:41:06]Content-Length: 331 [23:41:06]Content-Type: application/json [23:41:06] [23:41:06]POST finish read [23:41:06]Found Content-Length = 331 [23:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:41:06]execute_script... [23:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:41:06]POST & json_proto [23:41:06]process_json_proto [23:41:06]json parsed OK: [23:41:06]protocol is kg_v1.0 [23:41:06]action value=get_value [23:41:06]process_action get_value [23:41:06]cmd_get_value [23:41:06]process_action get_value done [23:41:06]requested_data is exist [23:41:06]produce_requested_data [23:41:06]requested_item fm.sale.total is exist - process it [23:41:06]SAM_PROTO_GetFMData [23:41:06]wFMCommunicate request_size=4 [23:41:06]MH_SAM_APDU [23:41:06]CAPDU: 80 13 03 00 [23:41:06]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:41:06]Write i2c OK [23:41:06]MH_I2C_Read... [23:41:06]OFD Sender: Processing packet 178766 [packets to send 500, broken 499] [23:41:06]ProducePacketName [23:41:06]name=ofd_packets/00178766 [23:41:06]OFD Sender: To server: pG, [23:41:06]CommunicateWithHost lk.salyk.kg:30040 [23:41:06]ConnectInit lk.salyk.kg [23:41:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:41:06]Read from MH i2c: E2 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 FD 00 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 A2 B6 02 00 69 04 A4 00 6F 04 04 00 0B B5 02 00 B1 04 05 00 9A 26 9D 2B 05 70 04 05 00 4B E1 F0 14 04 72 04 05 00 4F 45 AC 16 01 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 E9 F9 97 8C 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 7A 22 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 EF [23:41:06]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A2 B6 02 00 69 04 A4 00 6F 04 04 00 0B B5 02 00 B1 04 05 00 9A 26 9D 2B 05 70 04 05 00 4B E1 F0 14 04 72 04 05 00 4F 45 AC 16 01 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 E9 F9 97 8C 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 7A 22 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [23:41:06]wFMCommunicate OK [23:41:06]wFMCommunicate request_size=4 [23:41:06]MH_SAM_APDU [23:41:06]CAPDU: 80 17 00 00 [23:41:06]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:41:06]Write i2c OK [23:41:06]MH_I2C_Read... [23:41:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:06]Read from MH i2c: E2 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 FD 00 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [23:41:06]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:41:06]wFMCommunicate OK [23:41:06]wFMCommunicate request_size=4 [23:41:06]MH_SAM_APDU [23:41:06]CAPDU: 80 17 00 00 [23:41:06]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:41:06]Write i2c OK [23:41:06]MH_I2C_Read... [23:41:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:06]Read from MH i2c: E2 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 FD 00 [23:41:06]MH_I2C_Read... [23:41:06]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [23:41:06]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:41:07]wFMCommunicate OK [23:41:07]wFMCommunicate request_size=4 [23:41:07]MH_SAM_APDU [23:41:07]CAPDU: 80 17 00 00 [23:41:07]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:07]Read from MH i2c: E2 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 FD 00 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [23:41:07]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:41:07]wFMCommunicate OK [23:41:07]wFMCommunicate request_size=4 [23:41:07]MH_SAM_APDU [23:41:07]CAPDU: 80 17 00 00 [23:41:07]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:41:07]Read from MH i2c: E2 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 E3 00 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 E3 00 17 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 76 [23:41:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:41:07]wFMCommunicate OK [23:41:07]SAM_PROTO_GetFMData done [23:41:07]requested_item fm.sale_refund.total is exist - process it [23:41:07]requested_item fm.buy.total is exist - process it [23:41:07]requested_item shift.sale.total is exist - process it [23:41:07]SAM_PROTO_GetShiftData [23:41:07]wFMCommunicate request_size=4 [23:41:07]MH_SAM_APDU [23:41:07]CAPDU: 80 13 02 00 [23:41:07]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:41:07]Write i2c OK [23:41:07]MH_I2C_Read... [23:41:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:41:07]Read from MH i2c: E2 [23:41:07]MH_I2C_Read... [23:41:07]Read from MH i2c: E2 FD 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 E2 00 00 00 69 04 9E 00 6F 04 04 00 E1 00 00 00 B1 04 04 00 09 6A A8 01 70 04 04 00 68 A9 06 01 72 04 03 00 A1 C0 A1 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 4D 14 2D 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 A5 C1 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 8D [23:41:08]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E2 00 00 00 69 04 9E 00 6F 04 04 00 E1 00 00 00 B1 04 04 00 09 6A A8 01 70 04 04 00 68 A9 06 01 72 04 03 00 A1 C0 A1 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 4D 14 2D 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 A5 C1 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:41:08]wFMCommunicate OK [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 17 00 00 [23:41:08]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 BB [23:41:08]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [23:41:08]wFMCommunicate OK [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 17 00 00 [23:41:08]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [23:41:08]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 [23:41:08]wFMCommunicate OK [23:41:08]wFMCommunicate request_size=4 [23:41:08]MH_SAM_APDU [23:41:08]CAPDU: 80 17 00 00 [23:41:08]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:41:08]Write i2c OK [23:41:08]MH_I2C_Read... [23:41:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:41:08]Read from MH i2c: E2 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 [23:41:08]MH_I2C_Read... [23:41:08]Read from MH i2c: E2 FD 00 1B 00 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 10 [23:41:09]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 [23:41:09]wFMCommunicate OK [23:41:09]wFMCommunicate request_size=4 [23:41:09]MH_SAM_APDU [23:41:09]CAPDU: 80 17 00 00 [23:41:09]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 [23:41:09]MH_I2C_Read... [23:41:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [23:41:09]Read from MH i2c: E2 D8 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 D8 00 1C 00 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 83 [23:41:09]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 [23:41:09]wFMCommunicate OK [23:41:09]SAM_PROTO_GetShiftData done [23:41:09]requested_item shift.sale.total_cash is exist - process it [23:41:09]requested_item shift.sale_refund.total is exist - process it [23:41:09]requested_item shift.sale_refund.total_cash is exist - process it [23:41:09]requested_item shift.buy.total is exist - process it [23:41:09]requested_item shift.buy.total_cash is exist - process it [23:41:09]produce_requested_data done [23:41:09]produce_requested_data return {"fm.sale.total":222065558.02,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":278144.09,"shift.sale.total_cash":172138.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:41:09]process_action_free get_value [23:41:09]json_value_free [23:41:09]json_value_free done [23:41:09]process_json_proto returns [23:41:09]Send response to host [23:41:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222065558.02,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":278144.09,"shift.sale.total_cash":172138.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:41:09]free response buf [23:41:09]execute_script done [23:41:09]execute_script returns [23:41:09]free content buf [23:41:09]Sock 10.Close socket [23:41:09]Sock 10.Thread stoped [23:41:09]accept exits with 9 [23:41:09]New connection [23:41:09]New thread 3066940772 created [23:41:09]Thread 3067227492 joined [23:41:09]Thread 3067084132 joined [23:41:09]Waiting for new connection... [23:41:09] Sock 9.Parse request [23:41:09]Sock 9.Check first char [23:41:09]Sock 9.First char is OK [23:41:09]request: POST /json_proto HTTP/1.0 [23:41:09]Method: POST [23:41:09]URL: /json_proto [23:41:09]Method is POST - this is cgi request [23:41:09]url: /json_proto [23:41:09]query_string will be loaded in cgi processing [23:41:09]execute_cgi json_proto POST (null) [23:41:09]execute_cgi path=json_proto method=POST [23:41:09]POST find Content-Length [23:41:09]Host: 172.17.44.131:8080 [23:41:09]Content-Length: 685 [23:41:09]Content-Type: application/json [23:41:09] [23:41:09]POST finish read [23:41:09]Found Content-Length = 685 [23:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:09]execute_script... [23:41: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)294833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 26.740, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:41:09]POST & json_proto [23:41:09]process_json_proto [23:41:09]json parsed OK: [23:41:09]protocol is kg_v1.0 [23:41:09]action value=close_receipt [23:41:09]process_action close_receipt [23:41:09]cmd_close_receipt [23:41:09]MH_GetDate [23:41:09]Write to MH i2c: F0 00 00 1D 00 0C [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: F0 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: F0 09 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: F0 09 00 1D 00 00 16 1E C9 66 4F 53 BE 66 3E [23:41:09]GetLastDocTimeStamp 1724455028 [23:41:09]current date 1724456470 [23:41:09]FM_GetShiftState [23:41:09]SAM_PROTO_GetShiftState [23:41:09]wFMCommunicate request_size=4 [23:41:09]MH_SAM_APDU [23:41:09]CAPDU: 80 13 01 00 [23:41:09]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [23:41:09]Write i2c OK [23:41:09]MH_I2C_Read... [23:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:41:09]Read from MH i2c: E2 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 0E 00 [23:41:09]MH_I2C_Read... [23:41:09]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 72 [23:41:09]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:41:09]wFMCommunicate OK [23:41:09]SAM_PROTO_GetShiftState done [23:41:09]FM_GetShiftState done [23:41:09]opened in 1724371660 [23:41:09]opened+sec_in_day 1724458060 [23:41:09]quantity*price = 100007 [23:41:09]sum+1 = 100009 [23:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 227 23.08.2024 23:41 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178767 ФПД: 178711233836340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234110&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178767&fm=178711233836340&tin=02508201610067®Number=0000000000092561&sum=100000 [23:41:11]StoreToDocumentArchive [23:41:11]shift 470 fd 178767 [23:41:11]save to /storage/0470/doc_00178767 [23:41:11]save last doc name /storage/0470/doc_00178767 to /storage/kkm_last_doc_name [23:41:11]save OK [23:41:11]Clear old archive folders... [23:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:41:11]tlvbuf is 00D988B0 [23:41:11]SAM_PROTO_ClearQueue [23:41:11]wFMCommunicate request_size=4 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 09 00 00 [23:41:11]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 03 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [23:41:11]RAPDU: 90 00 [23:41:11]wFMCommunicate OK [23:41:11]SAM_PROTO_ClearQueue done [23:41:11]KKMCreateOFDPacket [23:41:11]OFDProtocolAddRootSTLVToBuf [23:41:11]FM_MakeSignedData [23:41:11]FM_MakeSignedData [23:41:11]SAM_PROTO_SignData [23:41:11]wFMCommunicate request_size=4 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 0D 01 02 [23:41:11]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [23:41:11]Write i2c OK [23:41:11]MH_I2C_Read... [23:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:41:11]Read from MH i2c: E2 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 03 00 [23:41:11]MH_I2C_Read... [23:41:11]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [23:41:11]RAPDU: 90 00 [23:41:11]wFMCommunicate OK [23:41:11]wFMCommunicate request_size=255 [23:41:11]MH_SAM_APDU [23:41:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 74 68 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 16 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 4F BA 02 00 35 04 06 00 A2 89 [23:41:11]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 [23:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D5 4F 07 01 6F 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 79 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 50 BA 02 00 35 04 06 00 E7 95 6A F4 2F D4 DA B2 1D 53 7C B1 D2 75 [23:42:51]CheckFolder [23:42:51]dirname=/storage/ofd_packets [23:42:51]CheckFolder done [23:42:51]ProducePacketName [23:42:51]name=ofd_packets/00178768 [23:42:51]NVStorageSaveData ofd_packets/00178768 [23:42:51]File name is /storage/ofd_packets/00178768 [23:42:51]Write 301 bytes [23:42:51]NVStorageSaveData done [23:42:51]OFDSenderStorePacket done [23:42:51]KKMCreateOFDPacket done [23:42:51]NVStorageSaveData kkm_last_timestamp [23:42:51]File name is /storage/kkm_last_timestamp [23:42:51]Write 4 bytes [23:42:51]NVStorageSaveData done [23:42:51]ExternCall_PrintAddStr [23:42:51]wPrintStart [23:42:51]Write to MH i2c: 01 00 00 7C 00 7C [23:42:51]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:42:51]ProducePacketName [23:42:51]name=ofd_packets/00178768 [23:42:51]OFD Sender: To server: pG, [23:42:51]CommunicateWithHost lk.salyk.kg:30040 [23:42:51]ConnectInit lk.salyk.kg [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 07 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [23:42:51]RasterBufferAndPrint [23:42:51]line Счет N : (1)294851 [23:42:51]line ИНН: 02508201610067 [23:42:51]line Контрольно-Кассовый Чек [23:42:51]line ПРОДАЖА [23:42:51]line ТРК (МРК, ГНК) : 33 [23:42:51]line Товар: 2710124500 [23:42:51]line Аи-95-К-5 [23:42:51]line 8.090 * 74.20 [23:42:51]line = 600.28 [23:42:51]line НДС 12% НСП 1% [23:42:51]line > о реализуемом товаре [23:42:51]line ОКРУГЛЕНИЕ: -0.28 [23:42:51]line ИТОГО: 600.00 [23:42:51]line Внесено: 600.00 [23:42:51]line СДАЧА: 0.00 [23:42:51]line НСП 1% : 5.31 [23:42:51]line НДС 12% : 63.75 [23:42:51]line Наличными: 600.00 [23:42:51]line Безнал.: 0.00 [23:42:51]line Место: АЗС № 130 "Партнер Нефть" [23:42:51]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [23:42:51]line СНО: Общий режим [23:42:51]line Чек 228 23.08.2024 23:42 [23:42:51]line Смена: 470 ФФД: 1.0 [23:42:51]line ЗНМ: 0300000071 [23:42:51]line РНМ: 0000000000092561 [23:42:51]line Версия ККМ: 001 [23:42:51]line ФМ: 0000000000871778 [23:42:51]line ФД: 178768 [23:42:51]line ФПД: 254628930531284 [23:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234249&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178768&fm=254628930531284&tin=02508201610067®Number=0000000000092561&sum=60000 [23:42:51]written 0, free lines is 4095 [23:42:51]Write to MH i2c: 01 00 00 A7 00 A7 [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 07 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 CC 0C 86 [23:42:51]RasterBufferAndPrint [23:42:51]line [23:42:51]line [23:42:51]line [23:42:51]line [23:42:51]line [23:42:51]written 0, free lines is 3283 [23:42:51]MH_Cut [23:42:51]Write to MH i2c: D1 01 00 AE 00 01 80 [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: D1 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: D1 01 00 [23:42:51]MH_I2C_Read... [23:42:51]Read from MH i2c: D1 01 00 AE 00 00 7F [23:42:51]Write to MH i2c: 01 00 00 AF 00 AF [23:42:51]Write i2c OK [23:42:51]MH_I2C_Read... [23:42:52]*** Cut start [23:42:52]*** Partial cut [23:42:52]*** CUTSNS_PIN = 1 [23:42:52]*** CUTSNS_PIN = 0 [23:42:52]*** Brake cut motor [23:42:52]Read from MH i2c: 01 [23:42:52]MH_I2C_Read... [23:42:52]*** Stop cut motor [23:42:52]*** Cut end [23:42:52]Read from MH i2c: 01 07 00 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [23:42:52]process_action close_receipt done [23:42:52]requested_data is exist [23:42:52]produce_requested_data [23:42:52]requested_item fm.sn is exist - process it [23:42:52]wFMCommunicate request_size=4 [23:42:52]MH_SAM_APDU [23:42:52]CAPDU: 80 11 00 00 [23:42:52]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:52]Read from MH i2c: E2 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: E2 17 00 [23:42:52]MH_I2C_Read... [23:42:52]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [23:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:42:52]wFMCommunicate OK [23:42:52]requested_item fd.num is exist - process it [23:42:52]SAM_PROTO_GetFieldsCounters [23:42:52]wFMCommunicate request_size=4 [23:42:52]MH_SAM_APDU [23:42:52]CAPDU: 80 13 00 00 [23:42:52]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [23:42:52]Write i2c OK [23:42:52]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 62 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 50 BA 02 00 0E 04 04 00 D6 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 E1 [23:42: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 50 BA 02 00 0E 04 04 00 D6 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 [23:42:53]wFMCommunicate OK [23:42:53]SAM_PROTO_GetFieldsCounters done [23:42:53]requested_item shift.num is exist - process it [23:42:53]requested_item shift.opened is exist - process it [23:42:53]req_shift_opened [23:42:53]FM_GetShiftState [23:42:53]SAM_PROTO_GetShiftState [23:42:53]wFMCommunicate request_size=4 [23:42:53]MH_SAM_APDU [23:42:53]CAPDU: 80 13 01 00 [23:42:53]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [23:42:53]Write i2c OK [23:42:53]MH_I2C_Read... [23:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:53]Read from MH i2c: E2 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 0E 00 [23:42:53]MH_I2C_Read... [23:42:53]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 06 [23:42:53]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:42:53]wFMCommunicate OK [23:42:53]SAM_PROTO_GetShiftState done [23:42:53]FM_GetShiftState done [23:42:53]req_shift_opened done [23:42:53]requested_item shift.open_date is exist - process it [23:42:53]req_shift_open_date [23:42:53]req_shift_open_date done [23:42:53]produce_requested_data done [23:42:53]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178768,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:42:53]process_action_free close_receipt [23:42:53]json_value_free [23:42:53]json_value_free done [23:42:53]process_json_proto returns [23:42:53]Send response to host [23:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178768,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:42:53]free response buf [23:42:53]execute_script done [23:42:53]execute_script returns [23:42:53]free content buf [23:42:53]Sock 10.Close socket [23:42:53]Sock 10.Thread stoped [23:42:56]ConnectInit Can't take IP for lk.salyk.kg [23:42:56]CommunicateWithHost connect error [23:42:56]CommunicateWithHost err = -1 [23:42:56]OFD Sender: Server communicate error [23:43:01]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:43:01]ProducePacketName [23:43:01]name=ofd_packets/00178768 [23:43:01]OFD Sender: To server: pG, [23:43:01]CommunicateWithHost lk.salyk.kg:30040 [23:43:01]ConnectInit lk.salyk.kg [23:43:06]ConnectInit Can't take IP for lk.salyk.kg [23:43:06]CommunicateWithHost connect error [23:43:06]CommunicateWithHost err = -1 [23:43:06]OFD Sender: Server communicate error [23:43:11]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:43:11]ProducePacketName [23:43:11]name=ofd_packets/00178768 [23:43:11]OFD Sender: To server: pG, [23:43:11]CommunicateWithHost lk.salyk.kg:30040 [23:43:11]ConnectInit lk.salyk.kg [23:43:16]ConnectInit Can't take IP for lk.salyk.kg [23:43:16]CommunicateWithHost connect error [23:43:16]CommunicateWithHost err = -1 [23:43:16]OFD Sender: Server communicate error [23:43:21]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:43:21]ProducePacketName [23:43:21]name=ofd_packets/00178768 [23:43:21]OFD Sender: To server: pG, [23:43:21]CommunicateWithHost lk.salyk.kg:30040 [23:43:21]ConnectInit lk.salyk.kg [23:43:26]ConnectInit Can't take IP for lk.salyk.kg [23:43:26]CommunicateWithHost connect error [23:43:26]CommunicateWithHost err = -1 [23:43:26]OFD Sender: Server communicate error [23:43:31]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:43:31]ProducePacketName [23:43:31]name=ofd_packets/00178768 [23:43:31]OFD Sender: To server: pG, [23:43:31]CommunicateWithHost lk.salyk.kg:30040 [23:43:31]ConnectInit lk.salyk.kg [23:43:36]ConnectInit Can't take IP for lk.salyk.kg [23:43:36]CommunicateWithHost connect error [23:43:36]CommunicateWithHost err = -1 [23:43:36]OFD Sender: Server communicate error [23:43:41]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:43:41]ProducePacketName [23:43:41]name=ofd_packets/00178768 [23:43:41]OFD Sender: To server: pG, [23:43:41]CommunicateWithHost lk.salyk.kg:30040 [23:43:41]ConnectInit lk.salyk.kg [23:43:46]ConnectInit Can't take IP for lk.salyk.kg [23:43:46]CommunicateWithHost connect error [23:43:46]CommunicateWithHost err = -1 [23:43:46]OFD Sender: Server communicate error [23:43:47]ConnectInit Can't connect to host [23:43:51]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:43:51]ProducePacketName [23:43:51]name=ofd_packets/00178768 [23:43:51]OFD Sender: To server: pG, [23:43:51]CommunicateWithHost lk.salyk.kg:30040 [23:43:51]ConnectInit lk.salyk.kg [23:43:52]ConnectInit Can't connect to host [23:43:56]ConnectInit Can't take IP for lk.salyk.kg [23:43:56]CommunicateWithHost connect error [23:43:56]CommunicateWithHost err = -1 [23:43:56]OFD Sender: Server communicate error [23:43:57]ConnectInit Can't connect to host [23:44:01]OFD Sender: Processing packet 178768 [packets to send 500, broken 499] [23:44:01]ProducePacketName [23:44:01]name=ofd_packets/00178768 [23:44:01]OFD Sender: To server: pG, [23:44:01]CommunicateWithHost lk.salyk.kg:30040 [23:44:01]ConnectInit lk.salyk.kg [23:44:02]Connected sock=7 [23:44:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D5 4F 07 01 6F 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9A 1F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 79 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 50 BA 02 00 35 04 06 00 E7 95 6A F4 2F D4 DA B2 1D 53 7C B1 D2 75 [23:44:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 00 84 47 00 71 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 50 BA 02 00 F4 03 04 00 67 CA C8 66 B6 04 01 00 00 DF 17 C9 54 0E 6D A9 05 [23:44:03]CommunicateWithHost err = 0 [23:44:03]CheckOFDResponse [23:44:03]1017 (14) - 77093643461234 [23:44:03]1041 (16) - 0000000000871778 [23:44:03]1040 (4) - 178768 [23:44:03]1012 (4) - 23.08.2024 17:44 [23:44:03]1206 (1) - 0 [23:44:03]OFD Sender: Remove packet 178768 [23:44:03]ProducePacketName [23:44:03]name=ofd_packets/00178768 [23:44:03]NVStorageDeleteData [23:44:04]OFD Sender: No OFD packet to send [23:44:08]recv_with_timeout no data received [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:43]accept exits with 9 [23:44:43]New connection [23:44:43]New thread 3067084132 created [23:44:43]Thread 3067227492 joined [23:44:43]Waiting for new connection... [23:44:43] Sock 9.Parse request [23:44:43]Sock 9.Check first char [23:44:43]Sock 9.First char is OK [23:44:43]request: POST /json_proto HTTP/1.0 [23:44:43]Method: POST [23:44:43]URL: /json_proto [23:44:43]Method is POST - this is cgi request [23:44:43]url: /json_proto [23:44:43]query_string will be loaded in cgi processing [23:44:43]execute_cgi json_proto POST (null) [23:44:43]execute_cgi path=json_proto method=POST [23:44:43]POST find Content-Length [23:44:43]Host: 172.17.44.131:8080 [23:44:43]Content-Length: 816 [23:44:43]Content-Type: application/json [23:44:43] [23:44:43]POST finish read [23:44:43]Found Content-Length = 816 [23:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:43]execute_script... [23:44: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)294854", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:44:43]POST & json_proto [23:44:43]process_json_proto [23:44:43]json parsed OK: [23:44:43]protocol is kg_v1.0 [23:44:43]action value=close_receipt [23:44:43]process_action close_receipt [23:44:43]cmd_close_receipt [23:44:43]MH_GetDate [23:44:43]Write to MH i2c: F0 00 00 B3 00 A2 [23:44:43]Write i2c OK [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: F0 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: F0 09 00 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: F0 09 00 B3 00 00 EB 1E C9 66 4F 53 BE 66 A9 [23:44:43]GetLastDocTimeStamp 1724456569 [23:44:43]current date 1724456683 [23:44:43]FM_GetShiftState [23:44:43]SAM_PROTO_GetShiftState [23:44:43]wFMCommunicate request_size=4 [23:44:43]MH_SAM_APDU [23:44:43]CAPDU: 80 13 01 00 [23:44:43]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [23:44:43]Write i2c OK [23:44:43]MH_I2C_Read... [23:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:43]Read from MH i2c: E2 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: E2 0E 00 [23:44:43]MH_I2C_Read... [23:44:43]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 08 [23:44:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:44:43]wFMCommunicate OK [23:44:43]SAM_PROTO_GetShiftState done [23:44:43]FM_GetShiftState done [23:44:43]opened in 1724371660 [23:44:43]opened+sec_in_day 1724458060 [23:44:43]quantity*price = 300075 [23:44:43]sum+1 = 300077 [23:44:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 229 23.08.2024 23:44 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871778 ФД: 178769 ФПД: 98263355284127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234444&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178769&fm=98263355284127&tin=02508201610067®Number=0000000000092561&sum=300076 [23:44:44]StoreToDocumentArchive [23:44:44]shift 470 fd 178769 [23:44:44]save to /storage/0470/doc_00178769 [23:44:44]save last doc name /storage/0470/doc_00178769 to /storage/kkm_last_doc_name [23:44:44]save OK [23:44:44]Clear old archive folders... [23:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:44:44]tlvbuf is 00DA7590 [23:44:44]SAM_PROTO_ClearQueue [23:44:44]wFMCommunicate request_size=4 [23:44:44]MH_SAM_APDU [23:44:44]CAPDU: 80 09 00 00 [23:44:44]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [23:44:44]Write i2c OK [23:44:44]MH_I2C_Read... [23:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:44:44]Read from MH i2c: E2 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [23:44:44]RAPDU: 90 00 [23:44:44]wFMCommunicate OK [23:44:44]SAM_PROTO_ClearQueue done [23:44:44]KKMCreateOFDPacket [23:44:44]OFDProtocolAddRootSTLVToBuf [23:44:44]FM_MakeSignedData [23:44:44]FM_MakeSignedData [23:44:44]SAM_PROTO_SignData [23:44:44]wFMCommunicate request_size=4 [23:44:44]MH_SAM_APDU [23:44:44]CAPDU: 80 0D 01 02 [23:44:44]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [23:44:44]Write i2c OK [23:44:44]MH_I2C_Read... [23:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:44:44]Read from MH i2c: E2 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [23:44:44]RAPDU: 90 00 [23:44:44]wFMCommunicate OK [23:44:44]wFMCommunicate request_size=255 [23:44:44]MH_SAM_APDU [23:44:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 EC 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 51 BA 02 00 35 04 06 00 59 5E B8 62 [23:44:44]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 EC 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 51 BA 02 00 35 04 06 00 59 5E B8 62 00 00 6D [23:44:44]Write i2c OK [23:44:44]MH_I2C_Read... [23:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:44]Read from MH i2c: E2 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [23:44:44]RAPDU: 90 00 [23:44:44]wFMCommunicate OK [23:44:44]wFMCommunicate request_size=7 [23:44:44]MH_SAM_APDU [23:44:44]CAPDU: 80 0D 02 02 02 DA 9F [23:44:44]Write to MH i2c: E2 0A 00 C4 00 80 0D 02 02 02 00 DA 9F 00 00 BB [23:44:44]Write i2c OK [23:44:44]MH_I2C_Read... [23:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:44:44]Read from MH i2c: E2 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 [23:44:44]MH_I2C_Read... [23:44:44]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [23:44:44]RAPDU: 90 00 [23:44:44]wFMCommunicate OK [23:44:44]wFMCommunicate request_size=4 [23:44:44]MH_SAM_APDU [23:44:44]CAPDU: 80 0D 03 02 [23:44:44]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [23:44:44]Write i2c OK [23:44:44]MH_I2C_Read... [23:44:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:44:45]Read from MH i2c: E2 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: E2 0B 00 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: E2 0B 00 C5 00 00 4B AA 08 18 17 E5 B3 63 90 00 68 [23:44:45]RAPDU: 4B AA 08 18 17 E5 B3 63 90 00 [23:44:45]wFMCommunicate OK [23:44:45]SAM_PROTO_SignData done [23:44:45]FM_MakeSignedData done [23:44:45]CreateOFDProtocolMessage [23:44:45]wFMCommunicate request_size=4 [23:44:45]MH_SAM_APDU [23:44:45]CAPDU: 80 11 00 00 [23:44:45]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [23:44:45]Write i2c OK [23:44:45]MH_I2C_Read... [23:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:45]Read from MH i2c: E2 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: E2 17 00 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 99 [23:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:44:45]wFMCommunicate OK [23:44:45]CreateOFDProtocolMessage done [23:44:45]OFDSenderStorePacket 178769 [23:44:45]StoreOFDPacket docnum=178769 [23:44:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 2E 42 04 01 2A 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 EC 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 51 BA 02 00 35 04 06 00 59 5E B8 62 DA 9F 4B AA 08 18 17 E5 B3 63 [23:44:45]CheckFolder [23:44:45]dirname=/storage/ofd_packets [23:44:45]CheckFolder done [23:44:45]ProducePacketName [23:44:45]name=ofd_packets/00178769 [23:44:45]NVStorageSaveData ofd_packets/00178769 [23:44:45]File name is /storage/ofd_packets/00178769 [23:44:45]Write 298 bytes [23:44:45]NVStorageSaveData done [23:44:45]OFDSenderStorePacket done [23:44:45]KKMCreateOFDPacket done [23:44:45]NVStorageSaveData kkm_last_timestamp [23:44:45]File name is /storage/kkm_last_timestamp [23:44:45]Write 4 bytes [23:44:45]NVStorageSaveData done [23:44:45]ExternCall_PrintAddStr [23:44:45]wPrintStart [23:44:45]Write to MH i2c: 01 00 00 C7 00 C7 [23:44:45]Write i2c OK [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: 01 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: 01 07 00 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [23:44:45]RasterBufferAndPrint [23:44:45]line Счет N : (1)294854 [23:44:45]line ИНН: 02508201610067 [23:44:45]line Контрольно-Кассовый Чек [23:44:45]line ПРОДАЖА [23:44:45]line ТРК (МРК, ГНК) : 64 [23:44:45]line Товар: 2710194800 [23:44:45]line ДТ-К-5 [23:44:45]line 39.380 * 76.20 [23:44:45]line = 3000.76 [23:44:45]line НДС 12% НСП 1% [23:44:45]line > о реализуемом товаре [23:44:45]line ИТОГО: 3000.76 [23:44:45]line НСП 1% : 26.55 [23:44:45]line НДС 12% : 318.66 [23:44:45]line Наличными: 0.00 [23:44:45]line Безнал.: 3000.76 [23:44:45]line Место: АЗС № 130 "Партнер Нефть" [23:44:45]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [23:44:45]line СНО: Общий режим [23:44:45]line Чек 229 23.08.2024 23:44 [23:44:45]line Смена: 470 ФФД: 1.0 [23:44:45]line ЗНМ: 0300000071 [23:44:45]line РНМ: 0000000000092561 [23:44:45]line Версия ККМ: 001 [23:44:45]line Платежная система: Бакай Банк [23:44:45]line ФМ: 0000000000871778 [23:44:45]line ФД: 178769 [23:44:45]line ФПД: 98263355284127 [23:44:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234444&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178769&fm=98263355284127&tin=02508201610067®Number=0000000000092561&sum=300076 [23:44:45]written 0, free lines is 4095 [23:44:45]OFD Sender: Processing packet 178769 [packets to send 500, broken 499] [23:44:45]ProducePacketName [23:44:45]name=ofd_packets/00178769 [23:44:45]OFD Sender: To server: pG, [23:44:45]CommunicateWithHost lk.salyk.kg:30040 [23:44:45]ConnectInit lk.salyk.kg [23:44:45]Write to MH i2c: 01 00 00 F1 00 F1 [23:44:45]Write i2c OK [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: 01 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: 01 07 00 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 FA 0C FE [23:44:45]RasterBufferAndPrint [23:44:45]line [23:44:45]line [23:44:45]line [23:44:45]line [23:44:45]line [23:44:45]written 0, free lines is 3327 [23:44:45]MH_Cut [23:44:45]Write to MH i2c: D1 01 00 F8 00 01 CA [23:44:45]Write i2c OK [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: D1 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: D1 01 00 [23:44:45]MH_I2C_Read... [23:44:45]Read from MH i2c: D1 01 00 F8 00 00 C9 [23:44:45]Write to MH i2c: 01 00 00 F9 00 F9 [23:44:45]Write i2c OK [23:44:45]MH_I2C_Read... [23:44:46]*** Cut start [23:44:46]*** Partial cut [23:44:46]*** CUTSNS_PIN = 1 [23:44:46]*** CUTSNS_PIN = 0 [23:44:46]*** Brake cut motor [23:44:46]Read from MH i2c: 01 [23:44:46]MH_I2C_Read... [23:44:46]*** Stop cut motor [23:44:46]*** Cut end [23:44:46]Read from MH i2c: 01 07 00 [23:44:46]MH_I2C_Read... [23:44:46]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [23:44:46]process_action close_receipt done [23:44:46]requested_data is exist [23:44:46]produce_requested_data [23:44:46]requested_item fm.sn is exist - process it [23:44:46]wFMCommunicate request_size=4 [23:44:46]MH_SAM_APDU [23:44:46]CAPDU: 80 11 00 00 [23:44:46]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [23:44:46]Write i2c OK [23:44:46]MH_I2C_Read... [23:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:44:46]Read from MH i2c: E2 [23:44:46]MH_I2C_Read... [23:44:46]Read from MH i2c: E2 17 00 [23:44:46]MH_I2C_Read... [23:44:46]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [23:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:44:46]wFMCommunicate OK [23:44:46]requested_item fd.num is exist - process it [23:44:46]SAM_PROTO_GetFieldsCounters [23:44:46]wFMCommunicate request_size=4 [23:44:46]MH_SAM_APDU [23:44:46]CAPDU: 80 13 00 00 [23:44:46]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [23:44:46]Write i2c OK [23:44:46]MH_I2C_Read... [23:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:44:47]Read from MH i2c: E2 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 62 00 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 51 BA 02 00 0E 04 04 00 D6 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 2F [23:44: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 51 BA 02 00 0E 04 04 00 D6 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 [23:44:47]wFMCommunicate OK [23:44:47]SAM_PROTO_GetFieldsCounters done [23:44:47]requested_item shift.num is exist - process it [23:44:47]requested_item shift.opened is exist - process it [23:44:47]req_shift_opened [23:44:47]FM_GetShiftState [23:44:47]SAM_PROTO_GetShiftState [23:44:47]wFMCommunicate request_size=4 [23:44:47]MH_SAM_APDU [23:44:47]CAPDU: 80 13 01 00 [23:44:47]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [23:44:47]Write i2c OK [23:44:47]MH_I2C_Read... [23:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:44:47]Read from MH i2c: E2 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 0E 00 [23:44:47]MH_I2C_Read... [23:44:47]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 50 [23:44:47]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:44:47]wFMCommunicate OK [23:44:47]SAM_PROTO_GetShiftState done [23:44:47]FM_GetShiftState done [23:44:47]req_shift_opened done [23:44:47]requested_item shift.open_date is exist - process it [23:44:47]req_shift_open_date [23:44:47]req_shift_open_date done [23:44:47]produce_requested_data done [23:44:47]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178769,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:44:47]process_action_free close_receipt [23:44:47]json_value_free [23:44:47]json_value_free done [23:44:47]process_json_proto returns [23:44:47]Send response to host [23:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178769,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:44:47]free response buf [23:44:47]execute_script done [23:44:47]execute_script returns [23:44:47]free content buf [23:44:47]Sock 9.Close socket [23:44:47]Sock 9.Thread stoped [23:44:49]Connected sock=11 [23:44:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 2E 42 04 01 2A 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 EC 1E C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 51 BA 02 00 35 04 06 00 59 5E B8 62 DA 9F 4B AA 08 18 17 E5 B3 63 [23:44:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 83 13 47 00 05 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 31 37 37 38 10 04 04 00 51 BA 02 00 F4 03 04 00 96 CA C8 66 B6 04 01 00 00 42 BD D9 F0 0B 8B 16 B2 [23:44:49]CommunicateWithHost err = 0 [23:44:49]CheckOFDResponse [23:44:49]1017 (14) - 77093643461234 [23:44:49]1041 (16) - 0000000000871778 [23:44:49]1040 (4) - 178769 [23:44:49]1012 (4) - 23.08.2024 17:44 [23:44:49]1206 (1) - 0 [23:44:49]OFD Sender: Remove packet 178769 [23:44:49]ProducePacketName [23:44:49]name=ofd_packets/00178769 [23:44:49]NVStorageDeleteData [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:10]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:31]accept exits with 7 [23:47:31]New connection [23:47:31]New thread 3067227492 created [23:47:31]Thread 3067084132 joined [23:47:31]Waiting for new connection... [23:47:31] Sock 7.Parse request [23:47:31]Sock 7.Check first char [23:47:31]Sock 7.First char is OK [23:47:31]request: POST /json_proto HTTP/1.0 [23:47:31]Method: POST [23:47:31]URL: /json_proto [23:47:31]Method is POST - this is cgi request [23:47:31]url: /json_proto [23:47:31]query_string will be loaded in cgi processing [23:47:31]execute_cgi json_proto POST (null) [23:47:31]execute_cgi path=json_proto method=POST [23:47:31]POST find Content-Length [23:47:31]Host: 172.17.44.131:8080 [23:47:31]Content-Length: 685 [23:47:31]Content-Type: application/json [23:47:31] [23:47:31]POST finish read [23:47:31]Found Content-Length = 685 [23:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 45.380, "sum" : 1697.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1697.00, "payments": [ { "type": 0, "sum" : 1697.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:31]execute_script... [23:47: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)294850", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 45.380, "sum" : 1697.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1697.00, "payments": [ { "type": 0, "sum" : 1697.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:47:31]POST & json_proto [23:47:31]process_json_proto [23:47:31]json parsed OK: [23:47:31]protocol is kg_v1.0 [23:47:31]action value=close_receipt [23:47:31]process_action close_receipt [23:47:31]cmd_close_receipt [23:47:31]MH_GetDate [23:47:31]Write to MH i2c: F0 00 00 FD 00 EC [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: F0 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: F0 09 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: F0 09 00 FD 00 00 94 1F C9 66 4F 53 BE 66 9D [23:47:31]GetLastDocTimeStamp 1724456684 [23:47:31]current date 1724456852 [23:47:31]FM_GetShiftState [23:47:31]SAM_PROTO_GetShiftState [23:47:31]wFMCommunicate request_size=4 [23:47:31]MH_SAM_APDU [23:47:31]CAPDU: 80 13 01 00 [23:47:31]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [23:47:31]Write i2c OK [23:47:31]MH_I2C_Read... [23:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:31]Read from MH i2c: E2 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 0E 00 [23:47:31]MH_I2C_Read... [23:47:31]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 52 [23:47:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:47:31]wFMCommunicate OK [23:47:31]SAM_PROTO_GetShiftState done [23:47:31]FM_GetShiftState done [23:47:31]opened in 1724371660 [23:47:31]opened+sec_in_day 1724458060 [23:47:31]quantity*price = 169721 [23:47:31]sum+1 = 169722 [23:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1697.00 Внесено: 3000.00 СДАЧА: 1303.00 НСП 1% : 15.02 НДС 12% : 180.23 Наличными: 1697.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 230 23.08.2024 23:47 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178770 ФПД: 135569246499181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234732&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178770&fm=135569246499181&tin=02508201610067®Number=0000000000092561&sum=169700 [23:47:32]StoreToDocumentArchive [23:47:32]shift 470 fd 178770 [23:47:32]save to /storage/0470/doc_00178770 [23:47:32]save last doc name /storage/0470/doc_00178770 to /storage/kkm_last_doc_name [23:47:32]save OK [23:47:32]Clear old archive folders... [23:47:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:47:32]tlvbuf is 00DA7160 [23:47:32]SAM_PROTO_ClearQueue [23:47:32]wFMCommunicate request_size=4 [23:47:32]MH_SAM_APDU [23:47:32]CAPDU: 80 09 00 00 [23:47:32]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [23:47:32]Write i2c OK [23:47:32]MH_I2C_Read... [23:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:33]Read from MH i2c: E2 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [23:47:33]RAPDU: 90 00 [23:47:33]wFMCommunicate OK [23:47:33]SAM_PROTO_ClearQueue done [23:47:33]KKMCreateOFDPacket [23:47:33]OFDProtocolAddRootSTLVToBuf [23:47:33]FM_MakeSignedData [23:47:33]FM_MakeSignedData [23:47:33]SAM_PROTO_SignData [23:47:33]wFMCommunicate request_size=4 [23:47:33]MH_SAM_APDU [23:47:33]CAPDU: 80 0D 01 02 [23:47:33]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:33]Read from MH i2c: E2 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [23:47:33]RAPDU: 90 00 [23:47:33]wFMCommunicate OK [23:47:33]wFMCommunicate request_size=255 [23:47:33]MH_SAM_APDU [23:47:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 44 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 F9 96 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 96 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 46 00 00 00 00 07 04 06 00 E4 96 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 94 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 52 BA 02 00 35 04 06 00 7B 4C [23:47:33]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 44 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 F9 96 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 96 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 46 00 00 00 00 07 04 06 00 E4 96 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 94 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 52 BA 02 00 35 04 06 00 7B 4C 00 00 70 [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:33]Read from MH i2c: E2 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [23:47:33]RAPDU: 90 00 [23:47:33]wFMCommunicate OK [23:47:33]wFMCommunicate request_size=9 [23:47:33]MH_SAM_APDU [23:47:33]CAPDU: 80 0D 02 02 04 AC C7 B1 6D [23:47:33]Write to MH i2c: E2 0C 00 0E 01 80 0D 02 02 04 00 AC C7 B1 6D 00 00 22 [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:33]Read from MH i2c: E2 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [23:47:33]RAPDU: 90 00 [23:47:33]wFMCommunicate OK [23:47:33]wFMCommunicate request_size=4 [23:47:33]MH_SAM_APDU [23:47:33]CAPDU: 80 0D 03 02 [23:47:33]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:33]Read from MH i2c: E2 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 0B 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 0B 00 0F 01 00 19 EA 8E 1F C3 68 8C 93 90 00 86 [23:47:33]RAPDU: 19 EA 8E 1F C3 68 8C 93 90 00 [23:47:33]wFMCommunicate OK [23:47:33]SAM_PROTO_SignData done [23:47:33]FM_MakeSignedData done [23:47:33]CreateOFDProtocolMessage [23:47:33]wFMCommunicate request_size=4 [23:47:33]MH_SAM_APDU [23:47:33]CAPDU: 80 11 00 00 [23:47:33]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:33]Read from MH i2c: E2 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 17 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [23:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:47:33]wFMCommunicate OK [23:47:33]CreateOFDProtocolMessage done [23:47:33]OFDSenderStorePacket 178770 [23:47:33]StoreOFDPacket docnum=178770 [23:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 2C 59 06 01 91 E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 44 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 F9 96 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 96 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 46 00 00 00 00 07 04 06 00 E4 96 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 94 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 52 BA 02 00 35 04 06 00 7B 4C AC C7 B1 6D 19 EA 8E 1F C3 68 8C 93 [23:47:33]CheckFolder [23:47:33]dirname=/storage/ofd_packets [23:47:33]CheckFolder done [23:47:33]ProducePacketName [23:47:33]name=ofd_packets/00178770 [23:47:33]NVStorageSaveData ofd_packets/00178770 [23:47:33]File name is /storage/ofd_packets/00178770 [23:47:33]Write 300 bytes [23:47:33]NVStorageSaveData done [23:47:33]OFDSenderStorePacket done [23:47:33]KKMCreateOFDPacket done [23:47:33]NVStorageSaveData kkm_last_timestamp [23:47:33]File name is /storage/kkm_last_timestamp [23:47:33]Write 4 bytes [23:47:33]NVStorageSaveData done [23:47:33]ExternCall_PrintAddStr [23:47:33]wPrintStart [23:47:33]Write to MH i2c: 01 00 00 11 01 12 [23:47:33]Write i2c OK [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: 01 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: 01 07 00 [23:47:33]MH_I2C_Read... [23:47:33]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [23:47:33]RasterBufferAndPrint [23:47:33]line Счет N : (1)294850 [23:47:33]line ИНН: 02508201610067 [23:47:33]line Контрольно-Кассовый Чек [23:47:33]line ПРОДАЖА [23:47:33]line ТРК (МРК, ГНК) : 71 [23:47:33]line Товар: 2711129700 [23:47:33]line ГАЗ-К-5 [23:47:33]line 45.380 * 37.40 [23:47:33]line = 1697.21 [23:47:33]line НДС 12% НСП 1% [23:47:33]line > о реализуемом товаре [23:47:33]line ОКРУГЛЕНИЕ: -0.21 [23:47:33]line ИТОГО: 1697.00 [23:47:33]line Внесено: 3000.00 [23:47:33]line СДАЧА: 1303.00 [23:47:33]line НСП 1% : 15.02 [23:47:33]line НДС 12% : 180.23 [23:47:33]line Наличными: 1697.00 [23:47:33]line Безнал.: 0.00 [23:47:33]line Место: АЗС № 130 "Партнер Нефть" [23:47:33]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [23:47:33]line СНО: Общий режим [23:47:33]line Чек 230 23.08.2024 23:47 [23:47:33]line Смена: 470 ФФД: 1.0 [23:47:33]line ЗНМ: 0300000071 [23:47:33]line РНМ: 0000000000092561 [23:47:33]line Версия ККМ: 001 [23:47:33]line ФМ: 0000000000871778 [23:47:33]line ФД: 178770 [23:47:33]line ФПД: 135569246499181 [23:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234732&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178770&fm=135569246499181&tin=02508201610067®Number=0000000000092561&sum=169700 [23:47:33]written 0, free lines is 4095 [23:47:33]OFD Sender: Processing packet 178770 [packets to send 500, broken 499] [23:47:33]ProducePacketName [23:47:33]name=ofd_packets/00178770 [23:47:33]OFD Sender: To server: pG, [23:47:33]CommunicateWithHost lk.salyk.kg:30040 [23:47:33]ConnectInit lk.salyk.kg [23:47:34]Write to MH i2c: 01 00 00 3C 01 3D [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: 01 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: 01 07 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 CD 0C 1D [23:47:34]RasterBufferAndPrint [23:47:34]line [23:47:34]line [23:47:34]line [23:47:34]line [23:47:34]line [23:47:34]written 0, free lines is 3284 [23:47:34]MH_Cut [23:47:34]Write to MH i2c: D1 01 00 43 01 01 16 [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: D1 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: D1 01 00 [23:47:34]MH_I2C_Read... [23:47:34]Read from MH i2c: D1 01 00 43 01 00 15 [23:47:34]Write to MH i2c: 01 00 00 44 01 45 [23:47:34]Write i2c OK [23:47:34]MH_I2C_Read... [23:47:34]*** Cut start [23:47:34]*** Partial cut [23:47:34]*** CUTSNS_PIN = 1 [23:47:34]*** CUTSNS_PIN = 0 [23:47:35]*** Brake cut motor [23:47:35]Read from MH i2c: 01 [23:47:35]MH_I2C_Read... [23:47:35]*** Stop cut motor [23:47:35]*** Cut end [23:47:35]Read from MH i2c: 01 07 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [23:47:35]process_action close_receipt done [23:47:35]requested_data is exist [23:47:35]produce_requested_data [23:47:35]requested_item fm.sn is exist - process it [23:47:35]wFMCommunicate request_size=4 [23:47:35]MH_SAM_APDU [23:47:35]CAPDU: 80 11 00 00 [23:47:35]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [23:47:35]Write i2c OK [23:47:35]MH_I2C_Read... [23:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:35]Read from MH i2c: E2 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 17 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [23:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:47:35]wFMCommunicate OK [23:47:35]requested_item fd.num is exist - process it [23:47:35]SAM_PROTO_GetFieldsCounters [23:47:35]wFMCommunicate request_size=4 [23:47:35]MH_SAM_APDU [23:47:35]CAPDU: 80 13 00 00 [23:47:35]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [23:47:35]Write i2c OK [23:47:35]MH_I2C_Read... [23:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:35]Read from MH i2c: E2 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 62 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 52 BA 02 00 0E 04 04 00 D6 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 7F [23:47: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 52 BA 02 00 0E 04 04 00 D6 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 [23:47:35]wFMCommunicate OK [23:47:35]SAM_PROTO_GetFieldsCounters done [23:47:35]requested_item shift.num is exist - process it [23:47:35]requested_item shift.opened is exist - process it [23:47:35]req_shift_opened [23:47:35]FM_GetShiftState [23:47:35]SAM_PROTO_GetShiftState [23:47:35]wFMCommunicate request_size=4 [23:47:35]MH_SAM_APDU [23:47:35]CAPDU: 80 13 01 00 [23:47:35]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [23:47:35]Write i2c OK [23:47:35]MH_I2C_Read... [23:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:35]Read from MH i2c: E2 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 0E 00 [23:47:35]MH_I2C_Read... [23:47:35]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9C [23:47:35]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:47:35]wFMCommunicate OK [23:47:35]SAM_PROTO_GetShiftState done [23:47:35]FM_GetShiftState done [23:47:35]req_shift_opened done [23:47:35]requested_item shift.open_date is exist - process it [23:47:35]req_shift_open_date [23:47:35]req_shift_open_date done [23:47:35]produce_requested_data done [23:47:35]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178770,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:47:35]process_action_free close_receipt [23:47:35]json_value_free [23:47:35]json_value_free done [23:47:35]process_json_proto returns [23:47:35]Send response to host [23:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178770,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:47:35]free response buf [23:47:35]execute_script done [23:47:35]execute_script returns [23:47:35]free content buf [23:47:35]Sock 7.Close socket [23:47:35]Sock 7.Thread stoped [23:47:45]accept exits with 10 [23:47:45]New connection [23:47:45]New thread 3067084132 created [23:47:45]Thread 3067227492 joined [23:47:45]Waiting for new connection... [23:47:45] Sock 10.Parse request [23:47:45]Sock 10.Check first char [23:47:45]Sock 10.First char is OK [23:47:45]request: POST /json_proto HTTP/1.0 [23:47:45]Method: POST [23:47:45]URL: /json_proto [23:47:45]Method is POST - this is cgi request [23:47:45]url: /json_proto [23:47:45]query_string will be loaded in cgi processing [23:47:45]execute_cgi json_proto POST (null) [23:47:45]execute_cgi path=json_proto method=POST [23:47:45]POST find Content-Length [23:47:45]Host: 172.17.44.131:8080 [23:47:45]Content-Length: 677 [23:47:45]Content-Type: application/json [23:47:45] [23:47:45]POST finish read [23:47:45]Found Content-Length = 677 [23:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294857", "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" : 67.80, "quantity" : 8.260, "sum" : 560.03, "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" ] } } [23:47:45]execute_script... [23:47: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)294857", "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" : 67.80, "quantity" : 8.260, "sum" : 560.03, "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" ] } } [23:47:45]POST & json_proto [23:47:45]process_json_proto [23:47:45]json parsed OK: [23:47:45]protocol is kg_v1.0 [23:47:45]action value=close_receipt [23:47:45]process_action close_receipt [23:47:45]cmd_close_receipt [23:47:45]MH_GetDate [23:47:45]Write to MH i2c: F0 00 00 48 01 38 [23:47:45]Write i2c OK [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: F0 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: F0 09 00 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: F0 09 00 48 01 00 A1 1F C9 66 4F 53 BE 66 F6 [23:47:45]GetLastDocTimeStamp 1724456852 [23:47:45]current date 1724456865 [23:47:45]FM_GetShiftState [23:47:45]SAM_PROTO_GetShiftState [23:47:45]wFMCommunicate request_size=4 [23:47:45]MH_SAM_APDU [23:47:45]CAPDU: 80 13 01 00 [23:47:45]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [23:47:45]Write i2c OK [23:47:45]MH_I2C_Read... [23:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:45]Read from MH i2c: E2 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: E2 0E 00 [23:47:45]MH_I2C_Read... [23:47:45]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 9E [23:47:45]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:47:45]wFMCommunicate OK [23:47:45]SAM_PROTO_GetShiftState done [23:47:45]FM_GetShiftState done [23:47:45]opened in 1724371660 [23:47:45]opened+sec_in_day 1724458060 [23:47:45]quantity*price = 56002 [23:47:45]sum+1 = 56004 [23:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.47 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 231 23.08.2024 23:47 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178771 ФПД: 946262920255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234745&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178771&fm=946262920255&tin=02508201610067®Number=0000000000092561&sum=56000 [23:47:46]StoreToDocumentArchive [23:47:46]shift 470 fd 178771 [23:47:46]save to /storage/0470/doc_00178771 [23:47:46]save last doc name /storage/0470/doc_00178771 to /storage/kkm_last_doc_name [23:47:46]save OK [23:47:46]Clear old archive folders... [23:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:47:46]tlvbuf is 00D34900 [23:47:46]SAM_PROTO_ClearQueue [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 09 00 00 [23:47:46]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [23:47:46]RAPDU: 90 00 [23:47:46]wFMCommunicate OK [23:47:46]SAM_PROTO_ClearQueue done [23:47:46]KKMCreateOFDPacket [23:47:46]OFDProtocolAddRootSTLVToBuf [23:47:46]FM_MakeSignedData [23:47:46]FM_MakeSignedData [23:47:46]SAM_PROTO_SignData [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 0D 01 02 [23:47:46]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [23:47:46]RAPDU: 90 00 [23:47:46]wFMCommunicate OK [23:47:46]wFMCommunicate request_size=255 [23:47:46]MH_SAM_APDU [23:47: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 44 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 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 3B 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 E7 00 00 00 F4 03 04 00 A1 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 53 BA 02 00 35 04 06 00 00 [23:47:46]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 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 3B 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 E7 00 00 00 F4 03 04 00 A1 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 53 BA 02 00 35 04 06 00 00 00 00 A9 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [23:47:46]RAPDU: 90 00 [23:47:46]wFMCommunicate OK [23:47:46]wFMCommunicate request_size=10 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 0D 02 02 05 DC 51 AA 4C 3F [23:47:46]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 DC 51 AA 4C 3F 00 00 40 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [23:47:46]RAPDU: 90 00 [23:47:46]wFMCommunicate OK [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 0D 03 02 [23:47:46]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 0B 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 0B 00 5A 01 00 BB EE 6C C8 BA 5C 43 EA 90 00 F7 [23:47:46]RAPDU: BB EE 6C C8 BA 5C 43 EA 90 00 [23:47:46]wFMCommunicate OK [23:47:46]SAM_PROTO_SignData done [23:47:46]FM_MakeSignedData done [23:47:46]CreateOFDProtocolMessage [23:47:46]wFMCommunicate request_size=4 [23:47:46]MH_SAM_APDU [23:47:46]CAPDU: 80 11 00 00 [23:47:46]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 [23:47:46]MH_I2C_Read... [23:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:46]Read from MH i2c: E2 17 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [23:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:47:46]wFMCommunicate OK [23:47:46]CreateOFDProtocolMessage done [23:47:46]OFDSenderStorePacket 178771 [23:47:46]StoreOFDPacket docnum=178771 [23:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D4 FF 07 01 F1 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 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 3B 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 E7 00 00 00 F4 03 04 00 A1 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 53 BA 02 00 35 04 06 00 00 DC 51 AA 4C 3F BB EE 6C C8 BA 5C 43 EA [23:47:46]CheckFolder [23:47:46]dirname=/storage/ofd_packets [23:47:46]CheckFolder done [23:47:46]ProducePacketName [23:47:46]name=ofd_packets/00178771 [23:47:46]NVStorageSaveData ofd_packets/00178771 [23:47:46]File name is /storage/ofd_packets/00178771 [23:47:46]Write 301 bytes [23:47:46]NVStorageSaveData done [23:47:46]OFDSenderStorePacket done [23:47:46]KKMCreateOFDPacket done [23:47:46]NVStorageSaveData kkm_last_timestamp [23:47:46]File name is /storage/kkm_last_timestamp [23:47:46]Write 4 bytes [23:47:46]NVStorageSaveData done [23:47:46]ExternCall_PrintAddStr [23:47:46]wPrintStart [23:47:46]Write to MH i2c: 01 00 00 5C 01 5D [23:47:46]Write i2c OK [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: 01 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: 01 07 00 [23:47:46]MH_I2C_Read... [23:47:46]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [23:47:46]RasterBufferAndPrint [23:47:46]line Счет N : (1)294857 [23:47:46]line ИНН: 02508201610067 [23:47:46]line Контрольно-Кассовый Чек [23:47:46]line ПРОДАЖА [23:47:46]line ТРК (МРК, ГНК) : 32 [23:47:46]line Товар: 2710124130 [23:47:46]line Аи-92-К-5 [23:47:46]line 8.260 * 67.80 [23:47:46]line = 560.03 [23:47:46]line НДС 12% НСП 1% [23:47:46]line > о реализуемом товаре [23:47:46]line ОКРУГЛЕНИЕ: -0.03 [23:47:46]line ИТОГО: 560.00 [23:47:46]line Внесено: 560.00 [23:47:46]line СДАЧА: 0.00 [23:47:46]line НСП 1% : 4.96 [23:47:46]line НДС 12% : 59.47 [23:47:46]line Наличными: 560.00 [23:47:46]line Безнал.: 0.00 [23:47:46]line Место: АЗС № 130 "Партнер Нефть" [23:47:46]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [23:47:46]line СНО: Общий режим [23:47:46]line Чек 231 23.08.2024 23:47 [23:47:46]line Смена: 470 ФФД: 1.0 [23:47:46]line ЗНМ: 0300000071 [23:47:46]line РНМ: 0000000000092561 [23:47:46]line Версия ККМ: 001 [23:47:46]line ФМ: 0000000000871778 [23:47:46]line ФД: 178771 [23:47:46]line ФПД: 946262920255 [23:47:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T234745&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178771&fm=946262920255&tin=02508201610067®Number=0000000000092561&sum=56000 [23:47:46]written 0, free lines is 4095 [23:47:47]Connected sock=11 [23:47:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 2C 59 06 01 91 E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 44 B1 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 F9 96 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 96 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 46 00 00 00 00 07 04 06 00 E4 96 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 94 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 52 BA 02 00 35 04 06 00 7B 4C AC C7 B1 6D 19 EA 8E 1F C3 68 8C 93 [23:47:47]Write to MH i2c: 01 00 00 87 01 88 [23:47:47]Write i2c OK [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: 01 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: 01 07 00 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 D4 0C 6F [23:47:47]RasterBufferAndPrint [23:47:47]line [23:47:47]line [23:47:47]line [23:47:47]line [23:47:47]line [23:47:47]written 0, free lines is 3300 [23:47:47]MH_Cut [23:47:47]Write to MH i2c: D1 01 00 8E 01 01 61 [23:47:47]Write i2c OK [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: D1 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: D1 01 00 [23:47:47]MH_I2C_Read... [23:47:47]Read from MH i2c: D1 01 00 8E 01 00 60 [23:47:47]Write to MH i2c: 01 00 00 8F 01 90 [23:47:47]Write i2c OK [23:47:47]MH_I2C_Read... [23:47:48]*** Cut start [23:47:48]*** Partial cut [23:47:48]*** CUTSNS_PIN = 1 [23:47:48]*** CUTSNS_PIN = 0 [23:47:48]*** Brake cut motor [23:47:48]Read from MH i2c: 01 [23:47:48]MH_I2C_Read... [23:47:48]*** Stop cut motor [23:47:48]*** Cut end [23:47:48]Read from MH i2c: 01 07 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [23:47:48]process_action close_receipt done [23:47:48]requested_data is exist [23:47:48]produce_requested_data [23:47:48]requested_item fm.sn is exist - process it [23:47:48]wFMCommunicate request_size=4 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 11 00 00 [23:47:48]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 17 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [23:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:47:48]wFMCommunicate OK [23:47:48]requested_item fd.num is exist - process it [23:47:48]SAM_PROTO_GetFieldsCounters [23:47:48]wFMCommunicate request_size=4 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 13 00 00 [23:47:48]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 62 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 53 BA 02 00 0E 04 04 00 D6 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 CE [23:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 53 BA 02 00 0E 04 04 00 D6 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 [23:47:48]wFMCommunicate OK [23:47:48]SAM_PROTO_GetFieldsCounters done [23:47:48]requested_item shift.num is exist - process it [23:47:48]requested_item shift.opened is exist - process it [23:47:48]req_shift_opened [23:47:48]FM_GetShiftState [23:47:48]SAM_PROTO_GetShiftState [23:47:48]wFMCommunicate request_size=4 [23:47:48]MH_SAM_APDU [23:47:48]CAPDU: 80 13 01 00 [23:47:48]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [23:47:48]Write i2c OK [23:47:48]MH_I2C_Read... [23:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:47:48]Read from MH i2c: E2 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 0E 00 [23:47:48]MH_I2C_Read... [23:47:48]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E7 [23:47:48]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:47:48]wFMCommunicate OK [23:47:48]SAM_PROTO_GetShiftState done [23:47:48]FM_GetShiftState done [23:47:48]req_shift_opened done [23:47:48]requested_item shift.open_date is exist - process it [23:47:48]req_shift_open_date [23:47:48]req_shift_open_date done [23:47:48]produce_requested_data done [23:47:48]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178771,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:47:48]process_action_free close_receipt [23:47:48]json_value_free [23:47:48]json_value_free done [23:47:48]process_json_proto returns [23:47:48]Send response to host [23:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178771,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:47:48]free response buf [23:47:48]execute_script done [23:47:48]execute_script returns [23:47:48]free content buf [23:47:48]Sock 10.Close socket [23:47:48]Sock 10.Thread stoped [23:47:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 F5 1E 47 00 2A 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 31 37 37 38 10 04 04 00 52 BA 02 00 F4 03 04 00 48 CB C8 66 B6 04 01 00 00 19 05 8A 2D 05 D3 4F 9A [23:47:51]CommunicateWithHost err = 0 [23:47:51]CheckOFDResponse [23:47:51]1017 (14) - 77093643461234 [23:47:51]1041 (16) - 0000000000871778 [23:47:51]1040 (4) - 178770 [23:47:51]1012 (4) - 23.08.2024 17:47 [23:47:51]1206 (1) - 0 [23:47:51]OFD Sender: Remove packet 178770 [23:47:51]ProducePacketName [23:47:51]name=ofd_packets/00178770 [23:47:51]NVStorageDeleteData [23:47:52]OFD Sender: Processing packet 178771 [packets to send 500, broken 499] [23:47:52]ProducePacketName [23:47:52]name=ofd_packets/00178771 [23:47:52]OFD Sender: To server: pG, [23:47:52]CommunicateWithHost lk.salyk.kg:30040 [23:47:52]ConnectInit lk.salyk.kg [23:47:56]recv_with_timeout no data received [23:47:57]ConnectInit Can't take IP for lk.salyk.kg [23:47:57]CommunicateWithHost connect error [23:47:57]CommunicateWithHost err = -1 [23:47:57]OFD Sender: Server communicate error [23:47:57]OFD Sender: Processing packet 178771 [packets to send 500, broken 499] [23:47:57]ProducePacketName [23:47:57]name=ofd_packets/00178771 [23:47:57]OFD Sender: To server: pG, [23:47:57]CommunicateWithHost lk.salyk.kg:30040 [23:47:57]ConnectInit lk.salyk.kg [23:48:02]ConnectInit Can't take IP for lk.salyk.kg [23:48:02]CommunicateWithHost connect error [23:48:02]CommunicateWithHost err = -1 [23:48:02]OFD Sender: Server communicate error [23:48:07]OFD Sender: Processing packet 178771 [packets to send 500, broken 499] [23:48:07]ProducePacketName [23:48:07]name=ofd_packets/00178771 [23:48:07]OFD Sender: To server: pG, [23:48:07]CommunicateWithHost lk.salyk.kg:30040 [23:48:07]ConnectInit lk.salyk.kg [23:48:17]recv_with_timeout no data received [23:48:21]Connected sock=7 [23:48:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D4 FF 07 01 F1 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 20 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C3 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 3B 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 E7 00 00 00 F4 03 04 00 A1 1F C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 53 BA 02 00 35 04 06 00 00 DC 51 AA 4C 3F BB EE 6C C8 BA 5C 43 EA [23:48:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 74 21 47 00 C0 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 53 BA 02 00 F4 03 04 00 6B CB C8 66 B6 04 01 00 00 D4 A1 C4 23 B9 D8 7F C5 [23:48:23]CommunicateWithHost err = 0 [23:48:23]CheckOFDResponse [23:48:23]1017 (14) - 77093643461234 [23:48:23]1041 (16) - 0000000000871778 [23:48:23]1040 (4) - 178771 [23:48:23]1012 (4) - 23.08.2024 17:48 [23:48:23]1206 (1) - 0 [23:48:23]OFD Sender: Remove packet 178771 [23:48:23]ProducePacketName [23:48:23]name=ofd_packets/00178771 [23:48:23]NVStorageDeleteData [23:48:23]OFD Sender: No OFD packet to send [23:48:28]recv_with_timeout no data received [23:48:28]OFD Sender: No OFD packet to send [23:48:33]OFD Sender: No OFD packet to send [23:48:38]recv_with_timeout no data received [23:48:38]OFD Sender: No OFD packet to send [23:48:43]OFD Sender: No OFD packet to send [23:48:48]OFD Sender: No OFD packet to send [23:48:53]recv_with_timeout no data received [23:48:53]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:53:14]ConnectInit Can't connect to host [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:45]recv_with_timeout no data received [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:06]recv_with_timeout no data received [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:18]recv_with_timeout no data received [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:37]recv_with_timeout no data received [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:54]accept exits with 9 [23:54:54]New connection [23:54:54]New thread 3067227492 created [23:54:54]Thread 3067084132 joined [23:54:54]Waiting for new connection... [23:54:54] Sock 9.Parse request [23:54:54]Sock 9.Check first char [23:54:54]Sock 9.First char is OK [23:54:54]request: POST /json_proto HTTP/1.0 [23:54:54]Method: POST [23:54:54]URL: /json_proto [23:54:54]Method is POST - this is cgi request [23:54:54]url: /json_proto [23:54:54]query_string will be loaded in cgi processing [23:54:54]execute_cgi json_proto POST (null) [23:54:54]execute_cgi path=json_proto method=POST [23:54:54]POST find Content-Length [23:54:54]Host: 172.17.44.131:8080 [23:54:54]Content-Length: 685 [23:54:54]Content-Type: application/json [23:54:54] [23:54:54]POST finish read [23:54:54]Found Content-Length = 685 [23:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 47.010, "sum" : 1758.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1758.00, "payments": [ { "type": 0, "sum" : 1758.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:54]execute_script... [23:54: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)294852", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 47.010, "sum" : 1758.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1758.00, "payments": [ { "type": 0, "sum" : 1758.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:54]POST & json_proto [23:54:54]process_json_proto [23:54:54]json parsed OK: [23:54:54]protocol is kg_v1.0 [23:54:54]action value=close_receipt [23:54:54]process_action close_receipt [23:54:54]cmd_close_receipt [23:54:54]MH_GetDate [23:54:54]Write to MH i2c: F0 00 00 93 01 83 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 09 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: F0 09 00 93 01 00 4F 21 C9 66 4F 53 BE 66 F1 [23:54:54]GetLastDocTimeStamp 1724456865 [23:54:54]current date 1724457295 [23:54:54]FM_GetShiftState [23:54:54]SAM_PROTO_GetShiftState [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 13 01 00 [23:54:54]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 E9 [23:54:54]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetShiftState done [23:54:54]FM_GetShiftState done [23:54:54]opened in 1724371660 [23:54:54]opened+sec_in_day 1724458060 [23:54:54]quantity*price = 175817 [23:54:54]sum+1 = 175818 [23:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1758.00 Внесено: 3000.00 СДАЧА: 1242.00 НСП 1% : 15.56 НДС 12% : 186.71 Наличными: 1758.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 232 23.08.2024 23:54 Смена: 470 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178772 ФПД: 231152117693130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T235455&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178772&fm=231152117693130&tin=02508201610067®Number=0000000000092561&sum=175800 [23:54:55]StoreToDocumentArchive [23:54:55]shift 470 fd 178772 [23:54:55]save to /storage/0470/doc_00178772 [23:54:55]save last doc name /storage/0470/doc_00178772 to /storage/kkm_last_doc_name [23:54:55]save OK [23:54:55]Clear old archive folders... [23:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:54:55]tlvbuf is 00DB5620 [23:54:55]SAM_PROTO_ClearQueue [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 09 00 00 [23:54:55]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 03 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [23:54:55]RAPDU: 90 00 [23:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_ClearQueue done [23:54:55]KKMCreateOFDPacket [23:54:55]OFDProtocolAddRootSTLVToBuf [23:54:55]FM_MakeSignedData [23:54:55]FM_MakeSignedData [23:54:55]SAM_PROTO_SignData [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 0D 01 02 [23:54:55]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 03 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [23:54:55]RAPDU: 90 00 [23:54:55]wFMCommunicate OK [23:54:55]wFMCommunicate request_size=255 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 B7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 AE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 AE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 48 00 00 00 00 07 04 06 00 B8 AE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4F 21 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 54 BA 02 00 35 04 06 00 D2 3B [23:54:55]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 B7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 AE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 AE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 48 00 00 00 00 07 04 06 00 B8 AE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4F 21 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 54 BA 02 00 35 04 06 00 D2 3B 00 00 F2 [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 03 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [23:54:56]RAPDU: 90 00 [23:54:56]wFMCommunicate OK [23:54:56]wFMCommunicate request_size=9 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 0D 02 02 04 4B DD 3A CA [23:54:56]Write to MH i2c: E2 0C 00 A4 01 80 0D 02 02 04 00 4B DD 3A CA 00 00 53 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 03 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [23:54:56]RAPDU: 90 00 [23:54:56]wFMCommunicate OK [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 0D 03 02 [23:54:56]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 0B 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 0B 00 A5 01 00 7F 37 F6 B4 84 AD FF 20 90 00 D2 [23:54:56]RAPDU: 7F 37 F6 B4 84 AD FF 20 90 00 [23:54:56]wFMCommunicate OK [23:54:56]SAM_PROTO_SignData done [23:54:56]FM_MakeSignedData done [23:54:56]CreateOFDProtocolMessage [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 11 00 00 [23:54:56]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 17 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [23:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:54:56]wFMCommunicate OK [23:54:56]CreateOFDProtocolMessage done [23:54:56]OFDSenderStorePacket 178772 [23:54:56]StoreOFDPacket docnum=178772 [23:54:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 05 13 06 01 34 56 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 B7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 AE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 AE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 48 00 00 00 00 07 04 06 00 B8 AE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4F 21 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 54 BA 02 00 35 04 06 00 D2 3B 4B DD 3A CA 7F 37 F6 B4 84 AD FF 20 [23:54:56]CheckFolder [23:54:56]dirname=/storage/ofd_packets [23:54:56]CheckFolder done [23:54:56]ProducePacketName [23:54:56]name=ofd_packets/00178772 [23:54:56]NVStorageSaveData ofd_packets/00178772 [23:54:56]File name is /storage/ofd_packets/00178772 [23:54:56]Write 300 bytes [23:54:56]NVStorageSaveData done [23:54:56]OFDSenderStorePacket done [23:54:56]KKMCreateOFDPacket done [23:54:56]NVStorageSaveData kkm_last_timestamp [23:54:56]File name is /storage/kkm_last_timestamp [23:54:56]Write 4 bytes [23:54:56]NVStorageSaveData done [23:54:56]ExternCall_PrintAddStr [23:54:56]wPrintStart [23:54:56]Write to MH i2c: 01 00 00 A7 01 A8 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: 01 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: 01 07 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [23:54:56]RasterBufferAndPrint [23:54:56]line Счет N : (1)294852 [23:54:56]line ИНН: 02508201610067 [23:54:56]line Контрольно-Кассовый Чек [23:54:56]line ПРОДАЖА [23:54:56]line ТРК (МРК, ГНК) : 81 [23:54:56]line Товар: 2711129700 [23:54:56]line ГАЗ-К-5 [23:54:56]line 47.010 * 37.40 [23:54:56]line = 1758.17 [23:54:56]line НДС 12% НСП 1% [23:54:56]line > о реализуемом товаре [23:54:56]line ОКРУГЛЕНИЕ: -0.17 [23:54:56]line ИТОГО: 1758.00 [23:54:56]line Внесено: 3000.00 [23:54:56]line СДАЧА: 1242.00 [23:54:56]line НСП 1% : 15.56 [23:54:56]line НДС 12% : 186.71 [23:54:56]line Наличными: 1758.00 [23:54:56]line Безнал.: 0.00 [23:54:56]line Место: АЗС № 130 "Партнер Нефть" [23:54:56]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [23:54:56]line СНО: Общий режим [23:54:56]line Чек 232 23.08.2024 23:54 [23:54:56]line Смена: 470 ФФД: 1.0 [23:54:56]line ЗНМ: 0300000071 [23:54:56]line РНМ: 0000000000092561 [23:54:56]line Версия ККМ: 001 [23:54:56]line ФМ: 0000000000871778 [23:54:56]line ФД: 178772 [23:54:56]line ФПД: 231152117693130 [23:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240823T235455&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178772&fm=231152117693130&tin=02508201610067®Number=0000000000092561&sum=175800 [23:54:56]written 0, free lines is 4095 [23:54:56]OFD Sender: Processing packet 178772 [packets to send 500, broken 499] [23:54:56]ProducePacketName [23:54:56]name=ofd_packets/00178772 [23:54:56]OFD Sender: To server: pG, [23:54:56]CommunicateWithHost lk.salyk.kg:30040 [23:54:56]ConnectInit lk.salyk.kg [23:54:56]Write to MH i2c: 01 00 00 D2 01 D3 [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: 01 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: 01 07 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 C6 0C AC [23:54:56]RasterBufferAndPrint [23:54:56]line [23:54:56]line [23:54:56]line [23:54:56]line [23:54:56]line [23:54:56]written 0, free lines is 3276 [23:54:56]MH_Cut [23:54:56]Write to MH i2c: D1 01 00 D9 01 01 AC [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: D1 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: D1 01 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: D1 01 00 D9 01 00 AB [23:54:56]Write to MH i2c: 01 00 00 DA 01 DB [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:57]Connected sock=7 [23:54:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 05 13 06 01 34 56 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 B7 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 C9 AE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 AE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 48 00 00 00 00 07 04 06 00 B8 AE 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 4F 21 C9 66 0E 04 04 00 D6 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 54 BA 02 00 35 04 06 00 D2 3B 4B DD 3A CA 7F 37 F6 B4 84 AD FF 20 [23:54:57]*** Cut start [23:54:57]*** Partial cut [23:54:57]*** CUTSNS_PIN = 1 [23:54:57]*** CUTSNS_PIN = 0 [23:54:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 97 29 47 00 C1 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 31 37 37 38 10 04 04 00 54 BA 02 00 F4 03 04 00 F6 CC C8 66 B6 04 01 00 00 1B 83 93 76 1F 4C 1E 57 [23:54:57]CommunicateWithHost err = 0 [23:54:57]CheckOFDResponse [23:54:57]1017 (14) - 77093643461234 [23:54:57]1041 (16) - 0000000000871778 [23:54:57]1040 (4) - 178772 [23:54:57]1012 (4) - 23.08.2024 17:55 [23:54:57]1206 (1) - 0 [23:54:57]OFD Sender: Remove packet 178772 [23:54:57]ProducePacketName [23:54:57]name=ofd_packets/00178772 [23:54:57]NVStorageDeleteData [23:54:57]*** Brake cut motor [23:54:58]Read from MH i2c: 01 [23:54:58]MH_I2C_Read... [23:54:58]*** Stop cut motor [23:54:58]*** Cut end [23:54:58]Read from MH i2c: 01 07 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [23:54:58]process_action close_receipt done [23:54:58]requested_data is exist [23:54:58]produce_requested_data [23:54:58]requested_item fm.sn is exist - process it [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 11 00 00 [23:54:58]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 17 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [23:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:54:58]wFMCommunicate OK [23:54:58]requested_item fd.num is exist - process it [23:54:58]SAM_PROTO_GetFieldsCounters [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 13 00 00 [23:54:58]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]OFD Sender: No OFD packet to send [23:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 62 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 1D [23:54: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 [23:54:58]wFMCommunicate OK [23:54:58]SAM_PROTO_GetFieldsCounters done [23:54:58]requested_item shift.num is exist - process it [23:54:58]requested_item shift.opened is exist - process it [23:54:58]req_shift_opened [23:54:58]FM_GetShiftState [23:54:58]SAM_PROTO_GetShiftState [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 13 01 00 [23:54:58]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 0E 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 32 [23:54:58]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:54:58]wFMCommunicate OK [23:54:58]SAM_PROTO_GetShiftState done [23:54:58]FM_GetShiftState done [23:54:58]req_shift_opened done [23:54:58]requested_item shift.open_date is exist - process it [23:54:58]req_shift_open_date [23:54:58]req_shift_open_date done [23:54:58]produce_requested_data done [23:54:58]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:54:58]process_action_free close_receipt [23:54:58]json_value_free [23:54:58]json_value_free done [23:54:58]process_json_proto returns [23:54:58]Send response to host [23:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:54:58]free response buf [23:54:58]execute_script done [23:54:58]execute_script returns [23:54:58]free content buf [23:54:58]Sock 9.Close socket [23:54:58]Sock 9.Thread stoped [23:55:03]OFD Sender: No OFD packet to send [23:55:06]recv_with_timeout no data received [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:20]recv_with_timeout no data received [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:35]recv_with_timeout no data received [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:54]recv_with_timeout no data received [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:05]recv_with_timeout no data received [23:56:08]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 708184+1723749199=1724457383 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 A8 21 C9 66 4F 53 BE 66 BD [23:56:24]Current date/time: 23.08.2024 23:56 [23:56:24]FM_Init [23:56:24]wFMConnect [23:56:24]MH_SAM_On [23:56:24]Write to MH i2c: E0 00 00 08 00 E7 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_init finished! [23:56:24]*** atr: [23:56:24]*** 0F 3B D5 18 FF 81 91 FE [23:56:24]*** 1F C3 80 73 C8 21 10 0A [23:56:24]*** 00 00 00 00 00 00 00 00 [23:56:24]*** 00 00 00 00 00 00 00 00 [23:56:24]*** 00 00 00 00 00 00 00 00 [23:56:24]*** 00 00 00 00 00 00 00 00 [23:56:24]*** 00 00 00 00 00 00 00 00 [23:56:24]*** 00 00 00 00 00 00 00 00 [23:56:24]Read from MH i2c: E0 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E0 10 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:56:24]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:56:24]wFMCommunicate request_size=10 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:56:24]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:56:24]RAPDU: 90 00 [23:56:24]wFMCommunicate OK [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 11 00 00 [23:56:24]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 17 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [23:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:56:24]wFMCommunicate OK [23:56:24]Detected FM SN is 0000000000871778 [23:56:24]Stored FM SN is 0000000000871778 [23:56:24]wFMCommunicate request_size=9 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 16 00 00 04 D9 BA 00 00 [23:56:24]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:56:24]RAPDU: 90 00 [23:56:24]wFMCommunicate OK [23:56:24]FM PIN OK [23:56:24]wFMCommunicate request_size=8 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 14 04 00 03 02 00 01 [23:56:24]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:56:24]RAPDU: 90 00 [23:56:24]wFMCommunicate OK [23:56:24]wFMCommunicate request_size=13 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:56:24]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:56:24]RAPDU: 90 00 [23:56:24]wFMCommunicate OK [23:56:24]wFMCommunicate request_size=4 [23:56:24]MH_SAM_APDU [23:56:24]CAPDU: 80 11 00 00 [23:56:24]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:24]Read from MH i2c: E2 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 17 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [23:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:56:24]wFMCommunicate OK [23:56:24]DocumentArchiveInit [23:56:24]Start Httpd... [23:56:24]Httpd thread 3067845988 created [23:56:24]Write to MH i2c: 01 00 00 0F 00 0F [23:56:24]Write i2c OK [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 07 00 [23:56:24]MH_I2C_Read... [23:56:24]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:56:24]MH Int Process started [23:56:24]Allocated Socket 8 [23:56:24]Bind OK [23:56:24]Listen OK [23:56:24]httpd running on port 8080 [23:56:24]Waiting for new connection... [23:56:25]OFD Sender: No OFD packet to send [23:56:25]accept exits with 9 [23:56:25]New connection [23:56:25]New thread 3067559268 created [23:56:25]Waiting for new connection... [23:56:25] Sock 9.Parse request [23:56:25]Sock 9.Check first char [23:56:25]Sock 9.First char is OK [23:56:25]request: POST /json_proto HTTP/1.0 [23:56:25]Method: POST [23:56:25]URL: /json_proto [23:56:25]Method is POST - this is cgi request [23:56:25]url: /json_proto [23:56:25]query_string will be loaded in cgi processing [23:56:25]execute_cgi json_proto POST (null) [23:56:25]execute_cgi path=json_proto method=POST [23:56:25]POST find Content-Length [23:56:25]Host: 172.17.44.131:8080 [23:56:25]Content-Length: 215 [23:56:25]Content-Type: application/json [23:56:25] [23:56:25]POST finish read [23:56:25]Found Content-Length = 215 [23:56: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" ] } } [23:56:25]execute_script... [23:56: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" ] } } [23:56:25]POST & json_proto [23:56:25]process_json_proto [23:56:25]json parsed OK: [23:56:25]protocol is kg_v1.0 [23:56:25]action value=get_value [23:56:25]process_action get_value [23:56:25]cmd_get_value [23:56:25]process_action get_value done [23:56:25]requested_data is exist [23:56:25]produce_requested_data [23:56:25]requested_item kkm.sn is exist - process it [23:56:25]requested_item kkm.ver is exist - process it [23:56:25]requested_item fm.sn is exist - process it [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 11 00 00 [23:56:25]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [23:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:56:25]wFMCommunicate OK [23:56:25]requested_item fd.num is exist - process it [23:56:25]SAM_PROTO_GetFieldsCounters [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 00 00 [23:56:25]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 51 [23:56: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 [23:56:25]wFMCommunicate OK [23:56:25]SAM_PROTO_GetFieldsCounters done [23:56:25]requested_item shift.num is exist - process it [23:56:25]requested_item shift.opened is exist - process it [23:56:25]req_shift_opened [23:56:25]FM_GetShiftState [23:56:25]SAM_PROTO_GetShiftState [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 01 00 [23:56:25]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:25]Read from MH i2c: E2 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 0E 00 [23:56:25]MH_I2C_Read... [23:56:25]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 66 [23:56:25]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:56:25]wFMCommunicate OK [23:56:25]SAM_PROTO_GetShiftState done [23:56:25]FM_GetShiftState done [23:56:25]req_shift_opened done [23:56:25]requested_item shift.open_date is exist - process it [23:56:25]req_shift_open_date [23:56:25]req_shift_open_date done [23:56:25]produce_requested_data done [23:56:25]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:56:25]process_action_free get_value [23:56:25]json_value_free [23:56:25]json_value_free done [23:56:25]process_json_proto returns [23:56:25]Send response to host [23:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:56:25]free response buf [23:56:25]execute_script done [23:56:25]execute_script returns [23:56:25]free content buf [23:56:25]Sock 9.Close socket [23:56:25]Sock 9.Thread stoped [23:56:25]accept exits with 7 [23:56:25]New connection [23:56:25]New thread 3067415908 created [23:56:25]Thread 3067559268 joined [23:56:25]Waiting for new connection... [23:56:25] Sock 7.Parse request [23:56:25]Sock 7.Check first char [23:56:25]Sock 7.First char is OK [23:56:25]request: POST /json_proto HTTP/1.0 [23:56:25]Method: POST [23:56:25]URL: /json_proto [23:56:25]Method is POST - this is cgi request [23:56:25]url: /json_proto [23:56:25]query_string will be loaded in cgi processing [23:56:25]execute_cgi json_proto POST (null) [23:56:25]execute_cgi path=json_proto method=POST [23:56:25]POST find Content-Length [23:56:25]Host: 172.17.44.131:8080 [23:56:25]Content-Length: 331 [23:56:25]Content-Type: application/json [23:56:25] [23:56:25]POST finish read [23:56:25]Found Content-Length = 331 [23:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:25]execute_script... [23:56:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:25]POST & json_proto [23:56:25]process_json_proto [23:56:25]json parsed OK: [23:56:25]protocol is kg_v1.0 [23:56:25]action value=get_value [23:56:25]process_action get_value [23:56:25]cmd_get_value [23:56:25]process_action get_value done [23:56:25]requested_data is exist [23:56:25]produce_requested_data [23:56:25]requested_item fm.sale.total is exist - process it [23:56:25]SAM_PROTO_GetFMData [23:56:25]wFMCommunicate request_size=4 [23:56:25]MH_SAM_APDU [23:56:25]CAPDU: 80 13 03 00 [23:56:25]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:56:25]Write i2c OK [23:56:25]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 2D [23:56:26]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [23:56:26]wFMCommunicate OK [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 17 00 00 [23:56:26]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [23:56:26]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:26]wFMCommunicate OK [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 17 00 00 [23:56:26]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:26]Read from MH i2c: E2 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 [23:56:26]MH_I2C_Read... [23:56:26]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [23:56:26]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:26]wFMCommunicate OK [23:56:26]wFMCommunicate request_size=4 [23:56:26]MH_SAM_APDU [23:56:26]CAPDU: 80 17 00 00 [23:56:26]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:56:26]Write i2c OK [23:56:26]MH_I2C_Read... [23:56:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:27]Read from MH i2c: E2 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [23:56:27]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:27]wFMCommunicate OK [23:56:27]wFMCommunicate request_size=4 [23:56:27]MH_SAM_APDU [23:56:27]CAPDU: 80 17 00 00 [23:56:27]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:56:27]Write i2c OK [23:56:27]MH_I2C_Read... [23:56:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:56:27]Read from MH i2c: E2 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 E3 00 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 E3 00 17 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 76 [23:56:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:56:27]wFMCommunicate OK [23:56:27]SAM_PROTO_GetFMData done [23:56:27]requested_item fm.sale_refund.total is exist - process it [23:56:27]requested_item fm.buy.total is exist - process it [23:56:27]requested_item shift.sale.total is exist - process it [23:56:27]SAM_PROTO_GetShiftData [23:56:27]wFMCommunicate request_size=4 [23:56:27]MH_SAM_APDU [23:56:27]CAPDU: 80 13 02 00 [23:56:27]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:56:27]Write i2c OK [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 *** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:27] [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 [23:56:27]MH_I2C_Read... [23:56:27]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 C9 [23:56:27]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:56:27]wFMCommunicate OK [23:56:27]wFMCommunicate request_size=4 [23:56:27]MH_SAM_APDU [23:56:27]CAPDU: 80 17 00 00 [23:56:27]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:56:27]Write i2c OK [23:56:27]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 BB [23:56:28]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [23:56:28]wFMCommunicate OK [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 17 00 00 [23:56:28]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [23:56:28]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 [23:56:28]wFMCommunicate OK [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 17 00 00 [23:56:28]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:28]Read from MH i2c: E2 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 [23:56:28]MH_I2C_Read... [23:56:28]Read from MH i2c: E2 FD 00 1B 00 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 10 [23:56:28]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 [23:56:28]wFMCommunicate OK [23:56:28]wFMCommunicate request_size=4 [23:56:28]MH_SAM_APDU [23:56:28]CAPDU: 80 17 00 00 [23:56:28]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:56:28]Write i2c OK [23:56:28]MH_I2C_Read... [23:56:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [23:56:29]Read from MH i2c: E2 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 D8 00 [23:56:29]MH_I2C_Read... [23:56:29]Read from MH i2c: E2 D8 00 1C 00 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 83 [23:56:29]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 [23:56:29]wFMCommunicate OK [23:56:29]SAM_PROTO_GetShiftData done [23:56:29]requested_item shift.sale.total_cash is exist - process it [23:56:29]requested_item shift.sale_refund.total is exist - process it [23:56:29]requested_item shift.sale_refund.total_cash is exist - process it [23:56:29]requested_item shift.buy.total is exist - process it [23:56:29]requested_item shift.buy.total_cash is exist - process it [23:56:29]produce_requested_data done [23:56:29]produce_requested_data return {"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:56:29]process_action_free get_value [23:56:29]json_value_free [23:56:29]json_value_free done [23:56:29]process_json_proto returns [23:56:29]Send response to host [23:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:56:29]free response buf [23:56:29]execute_script done [23:56:29]execute_script returns [23:56:29]free content buf [23:56:29]Sock 7.Close socket [23:56:29]Sock 7.Thread stoped [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]recv_with_timeout no data received [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]recv_with_timeout no data received [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:23]accept exits with 9 [23:59:23]New connection [23:59:23]New thread 3067559268 created [23:59:23]Thread 3067415908 joined [23:59:23]Waiting for new connection... [23:59:23] Sock 9.Parse request [23:59:23]Sock 9.Check first char [23:59:23]Sock 9.First char is OK [23:59:23]request: POST /json_proto HTTP/1.0 [23:59:23]Method: POST [23:59:23]URL: /json_proto [23:59:23]Method is POST - this is cgi request [23:59:23]url: /json_proto [23:59:23]query_string will be loaded in cgi processing [23:59:23]execute_cgi json_proto POST (null) [23:59:23]execute_cgi path=json_proto method=POST [23:59:23]POST find Content-Length [23:59:23]Host: 172.17.44.131:8080 [23:59:23]Content-Length: 215 [23:59:23]Content-Type: application/json [23:59:23] [23:59:23]POST finish read [23:59:23]Found Content-Length = 215 [23:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:23]execute_script... [23:59:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:23]POST & json_proto [23:59:23]process_json_proto [23:59:23]json parsed OK: [23:59:23]protocol is kg_v1.0 [23:59:23]action value=get_value [23:59:23]process_action get_value [23:59:23]cmd_get_value [23:59:23]process_action get_value done [23:59:23]requested_data is exist [23:59:23]produce_requested_data [23:59:23]requested_item kkm.sn is exist - process it [23:59:23]requested_item kkm.ver is exist - process it [23:59:23]requested_item fm.sn is exist - process it [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 11 00 00 [23:59:23]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 17 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 F0 [23:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:59:23]wFMCommunicate OK [23:59:23]requested_item fd.num is exist - process it [23:59:23]SAM_PROTO_GetFieldsCounters [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 13 00 00 [23:59:23]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 62 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 5E [23:59: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_GetFieldsCounters done [23:59:23]requested_item shift.num is exist - process it [23:59:23]requested_item shift.opened is exist - process it [23:59:23]req_shift_opened [23:59:23]FM_GetShiftState [23:59:23]SAM_PROTO_GetShiftState [23:59:23]wFMCommunicate request_size=4 [23:59:23]MH_SAM_APDU [23:59:23]CAPDU: 80 13 01 00 [23:59:23]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [23:59:23]Write i2c OK [23:59:23]MH_I2C_Read... [23:59:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:23]Read from MH i2c: E2 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 0E 00 [23:59:23]MH_I2C_Read... [23:59:23]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 73 [23:59:23]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:59:23]wFMCommunicate OK [23:59:23]SAM_PROTO_GetShiftState done [23:59:23]FM_GetShiftState done [23:59:23]req_shift_opened done [23:59:23]requested_item shift.open_date is exist - process it [23:59:23]req_shift_open_date [23:59:23]req_shift_open_date done [23:59:23]produce_requested_data done [23:59:23]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:59:23]process_action_free get_value [23:59:23]json_value_free [23:59:23]json_value_free done [23:59:23]process_json_proto returns [23:59:23]Send response to host [23:59:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:59:23]free response buf [23:59:23]execute_script done [23:59:23]execute_script returns [23:59:23]free content buf [23:59:23]Sock 9.Close socket [23:59:23]Sock 9.Thread stoped [23:59:23]accept exits with 7 [23:59:23]New connection [23:59:23]New thread 3067415908 created [23:59:23]Thread 3067559268 joined [23:59:23]Waiting for new connection... [23:59:23] Sock 7.Parse request [23:59:23]Sock 7.Check first char [23:59:23]Sock 7.First char is OK [23:59:23]request: POST /json_proto HTTP/1.0 [23:59:23]Method: POST [23:59:23]URL: /json_proto [23:59:23]Method is POST - this is cgi request [23:59:23]url: /json_proto [23:59:23]query_string will be loaded in cgi processing [23:59:23]execute_cgi json_proto POST (null) [23:59:23]execute_cgi path=json_proto method=POST [23:59:23]POST find Content-Length [23:59:23]Host: 172.17.44.131:8080 [23:59:23]Content-Length: 331 [23:59:23]Content-Type: application/json [23:59:23] [23:59:23]POST finish read [23:59:23]Found Content-Length = 331 [23:59:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:23]execute_script... [23:59: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" ] } } [23:59:24]POST & json_proto [23:59:24]process_json_proto [23:59:24]json parsed OK: [23:59:24]protocol is kg_v1.0 [23:59:24]action value=get_value [23:59:24]process_action get_value [23:59:24]cmd_get_value [23:59:24]process_action get_value done [23:59:24]requested_data is exist [23:59:24]produce_requested_data [23:59:24]requested_item fm.sale.total is exist - process it [23:59:24]SAM_PROTO_GetFMData [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 13 03 00 [23:59:24]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 20 00 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 3A [23:59:24]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 17 00 00 [23:59:24]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:24]Read from MH i2c: E2 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 [23:59:24]MH_I2C_Read... [23:59:24]Read from MH i2c: E2 FD 00 21 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [23:59:24]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:24]wFMCommunicate OK [23:59:24]wFMCommunicate request_size=4 [23:59:24]MH_SAM_APDU [23:59:24]CAPDU: 80 17 00 00 [23:59:24]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [23:59:24]Write i2c OK [23:59:24]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 22 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [23:59:25]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 FD 00 23 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1E [23:59:25]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:25]wFMCommunicate OK [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 17 00 00 [23:59:25]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:59:25]Read from MH i2c: E2 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 E3 00 [23:59:25]MH_I2C_Read... [23:59:25]Read from MH i2c: E2 E3 00 24 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 83 [23:59:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:25]wFMCommunicate OK [23:59:25]SAM_PROTO_GetFMData done [23:59:25]requested_item fm.sale_refund.total is exist - process it [23:59:25]requested_item fm.buy.total is exist - process it [23:59:25]requested_item shift.sale.total is exist - process it [23:59:25]SAM_PROTO_GetShiftData [23:59:25]wFMCommunicate request_size=4 [23:59:25]MH_SAM_APDU [23:59:25]CAPDU: 80 13 02 00 [23:59:25]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [23:59:25]Write i2c OK [23:59:25]MH_I2C_Read... [23:59:25]OFD Sender: No OFD packet to send [23:59:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 25 00 00 BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 D6 [23:59:26]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 26 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 C8 [23:59:26]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 27 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 [23:59:26]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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:26]Read from MH i2c: E2 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 [23:59:26]MH_I2C_Read... [23:59:26]Read from MH i2c: E2 FD 00 28 00 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 1D [23:59:26]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 [23:59:26]wFMCommunicate OK [23:59:26]wFMCommunicate request_size=4 [23:59:26]MH_SAM_APDU [23:59:26]CAPDU: 80 17 00 00 [23:59:26]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [23:59:26]Write i2c OK [23:59:26]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 D8 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 D8 00 29 00 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 90 [23:59:27]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 [23:59:27]wFMCommunicate OK [23:59:27]SAM_PROTO_GetShiftData done [23:59:27]requested_item shift.sale.total_cash is exist - process it [23:59:27]requested_item shift.sale_refund.total is exist - process it [23:59:27]requested_item shift.sale_refund.total_cash is exist - process it [23:59:27]requested_item shift.buy.total is exist - process it [23:59:27]requested_item shift.buy.total_cash is exist - process it [23:59:27]produce_requested_data done [23:59:27]produce_requested_data return {"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:59:27]process_action_free get_value [23:59:27]json_value_free [23:59:27]json_value_free done [23:59:27]process_json_proto returns [23:59:27]Send response to host [23:59:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:59:27]free response buf [23:59:27]execute_script done [23:59:27]execute_script returns [23:59:27]free content buf [23:59:27]Sock 7.Close socket [23:59:27]Sock 7.Thread stoped [23:59:27]accept exits with 9 [23:59:27]New connection [23:59:27]New thread 3067559268 created [23:59:27]Thread 3067415908 joined [23:59:27]Waiting for new connection... [23:59:27] Sock 9.Parse request [23:59:27]Sock 9.Check first char [23:59:27]Sock 9.First char is OK [23:59:27]request: POST /json_proto HTTP/1.0 [23:59:27]Method: POST [23:59:27]URL: /json_proto [23:59:27]Method is POST - this is cgi request [23:59:27]url: /json_proto [23:59:27]query_string will be loaded in cgi processing [23:59:27]execute_cgi json_proto POST (null) [23:59:27]execute_cgi path=json_proto method=POST [23:59:27]POST find Content-Length [23:59:27]Host: 172.17.44.131:8080 [23:59:27]Content-Length: 331 [23:59:27]Content-Type: application/json [23:59:27] [23:59:27]POST finish read [23:59:27]Found Content-Length = 331 [23:59:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:27]execute_script... [23:59:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:27]POST & json_proto [23:59:27]process_json_proto [23:59:27]json parsed OK: [23:59:27]protocol is kg_v1.0 [23:59:27]action value=get_value [23:59:27]process_action get_value [23:59:27]cmd_get_value [23:59:27]process_action get_value done [23:59:27]requested_data is exist [23:59:27]produce_requested_data [23:59:27]requested_item fm.sale.total is exist - process it [23:59:27]SAM_PROTO_GetFMData [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 13 03 00 [23:59:27]Write to MH i2c: E2 08 00 2A 00 80 13 03 00 00 00 00 00 A9 [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:27]Read from MH i2c: E2 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 [23:59:27]MH_I2C_Read... [23:59:27]Read from MH i2c: E2 FD 00 2A 00 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 44 [23:59:27]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [23:59:27]wFMCommunicate OK [23:59:27]wFMCommunicate request_size=4 [23:59:27]MH_SAM_APDU [23:59:27]CAPDU: 80 17 00 00 [23:59:27]Write to MH i2c: E2 08 00 2B 00 80 17 00 00 00 00 00 00 AB [23:59:27]Write i2c OK [23:59:27]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 2B 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [23:59:28]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 2C 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [23:59:28]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:28]Read from MH i2c: E2 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 [23:59:28]MH_I2C_Read... [23:59:28]Read from MH i2c: E2 FD 00 2D 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 28 [23:59:28]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:28]wFMCommunicate OK [23:59:28]wFMCommunicate request_size=4 [23:59:28]MH_SAM_APDU [23:59:28]CAPDU: 80 17 00 00 [23:59:28]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [23:59:28]Write i2c OK [23:59:28]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 E3 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 E3 00 2E 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 8D [23:59:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:29]wFMCommunicate OK [23:59:29]SAM_PROTO_GetFMData done [23:59:29]requested_item fm.sale_refund.total is exist - process it [23:59:29]requested_item fm.buy.total is exist - process it [23:59:29]requested_item shift.sale.total is exist - process it [23:59:29]SAM_PROTO_GetShiftData [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 13 02 00 [23:59:29]Write to MH i2c: E2 08 00 2F 00 80 13 02 00 00 00 00 00 AD [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:29]Read from MH i2c: E2 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 [23:59:29]MH_I2C_Read... [23:59:29]Read from MH i2c: E2 FD 00 2F 00 00 BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 E0 [23:59:29]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:29]wFMCommunicate OK [23:59:29]wFMCommunicate request_size=4 [23:59:29]MH_SAM_APDU [23:59:29]CAPDU: 80 17 00 00 [23:59:29]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [23:59:29]Write i2c OK [23:59:29]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 30 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 D2 [23:59:30]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [23:59:30]wFMCommunicate OK [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 31 00 80 17 00 00 00 00 00 00 B1 [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:30]Read from MH i2c: E2 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 [23:59:30]MH_I2C_Read... [23:59:30]Read from MH i2c: E2 FD 00 31 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 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 DD [23:59:30]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 [23:59:30]wFMCommunicate OK [23:59:30]wFMCommunicate request_size=4 [23:59:30]MH_SAM_APDU [23:59:30]CAPDU: 80 17 00 00 [23:59:30]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [23:59:30]OFD Sender: No OFD packet to send [23:59:30]Write i2c OK [23:59:30]MH_I2C_Read... [23:59:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 FD 00 32 00 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 27 [23:59:31]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 [23:59:31]wFMCommunicate OK [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 17 00 00 [23:59:31]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 D8 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 D8 00 33 00 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 9A [23:59:31]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 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetShiftData done [23:59:31]requested_item shift.sale.total_cash is exist - process it [23:59:31]requested_item shift.sale_refund.total is exist - process it [23:59:31]requested_item shift.sale_refund.total_cash is exist - process it [23:59:31]requested_item shift.buy.total is exist - process it [23:59:31]requested_item shift.buy.total_cash is exist - process it [23:59:31]produce_requested_data done [23:59:31]produce_requested_data return {"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:59:31]process_action_free get_value [23:59:31]json_value_free [23:59:31]json_value_free done [23:59:31]process_json_proto returns [23:59:31]Send response to host [23:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:59:31]free response buf [23:59:31]execute_script done [23:59:31]execute_script returns [23:59:31]free content buf [23:59:31]Sock 9.Close socket [23:59:31]Sock 9.Thread stoped [23:59:31]accept exits with 7 [23:59:31]New connection [23:59:31]New thread 3067415908 created [23:59:31]Thread 3067559268 joined [23:59:31]Waiting for new connection... [23:59:31] Sock 7.Parse request [23:59:31]Sock 7.Check first char [23:59:31]Sock 7.First char is OK [23:59:31]request: POST /json_proto HTTP/1.0 [23:59:31]Method: POST [23:59:31]URL: /json_proto [23:59:31]Method is POST - this is cgi request [23:59:31]url: /json_proto [23:59:31]query_string will be loaded in cgi processing [23:59:31]execute_cgi json_proto POST (null) [23:59:31]execute_cgi path=json_proto method=POST [23:59:31]POST find Content-Length [23:59:31]Host: 172.17.44.131:8080 [23:59:31]Content-Length: 269 [23:59:31]Content-Type: application/json [23:59:31] [23:59:31]POST finish read [23:59:31]Found Content-Length = 269 [23:59:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0443\u0440\u0430\u0442\u043E\u0432 \u0428. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:31]execute_script... [23:59:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041A\u0430\u043B\u043C\u0443\u0440\u0430\u0442\u043E\u0432 \u0428. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:31]POST & json_proto [23:59:31]process_json_proto [23:59:31]json parsed OK: [23:59:31]protocol is kg_v1.0 [23:59:31]action value=x_report [23:59:31]process_action x_report [23:59:31]cmd_x_report [23:59:31]MH_GetDate [23:59:31]Write to MH i2c: F0 00 00 34 00 23 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 34 00 00 63 22 C9 66 4F 53 BE 66 A6 [23:59:31]GetLastDocTimeStamp 1724457295 [23:59:31]current date 1724457571 [23:59:31]FM_GetShiftState [23:59:31]SAM_PROTO_GetShiftState [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 01 00 [23:59:31]Write to MH i2c: E2 08 00 35 00 80 13 01 00 00 00 00 00 B2 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 0E 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 0E 00 35 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 89 [23:59:31]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetShiftState done [23:59:31]FM_GetShiftState done [23:59:31]KKMCreateXReportDocument [23:59:31]Load OK [23:59:31]Malloc new data [23:59:31]MH_GetDate [23:59:31]Write to MH i2c: F0 00 00 36 00 25 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: F0 09 00 36 00 00 63 22 C9 66 4F 53 BE 66 A8 [23:59:31]Malloc new data [23:59:31]Malloc new data [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 11 00 00 [23:59:31]Write to MH i2c: E2 08 00 37 00 80 11 00 00 00 00 00 00 B1 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 17 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 17 00 37 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 0A [23:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetFieldsCounters [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 00 00 [23:59:31]Write to MH i2c: E2 08 00 38 00 80 13 00 00 00 00 00 00 B4 [23:59:31]Write i2c OK [23:59:31]MH_I2C_Read... [23:59:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:31]Read from MH i2c: E2 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 62 00 [23:59:31]MH_I2C_Read... [23:59:31]Read from MH i2c: E2 62 00 38 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 78 [23:59: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 [23:59:31]wFMCommunicate OK [23:59:31]SAM_PROTO_GetFieldsCounters done [23:59:31]Malloc new data [23:59:31]Malloc new data [23:59:31]Malloc new data [23:59:31]KKMCreateXReportDocument OK [23:59:31]KKMSetXReportData OK [23:59:31]KKMPrepareXReportFMData [23:59:31]SAM_PROTO_GetShiftData [23:59:31]wFMCommunicate request_size=4 [23:59:31]MH_SAM_APDU [23:59:31]CAPDU: 80 13 02 00 [23:59:31]Write to MH i2c: E2 08 00 39 00 80 13 02 00 00 00 00 00 B7 [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 39 00 00 BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 EA [23:59:32]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [23:59:32]wFMCommunicate OK [23:59:32]wFMCommunicate request_size=4 [23:59:32]MH_SAM_APDU [23:59:32]CAPDU: 80 17 00 00 [23:59:32]Write to MH i2c: E2 08 00 3A 00 80 17 00 00 00 00 00 00 BA [23:59:32]Write i2c OK [23:59:32]MH_I2C_Read... [23:59:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:32]Read from MH i2c: E2 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 [23:59:32]MH_I2C_Read... [23:59:32]Read from MH i2c: E2 FD 00 3A 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 DC [23:59:33]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 3B 00 80 17 00 00 00 00 00 00 BB [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 3B 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E7 [23:59:33]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 [23:59:33]wFMCommunicate OK [23:59:33]wFMCommunicate request_size=4 [23:59:33]MH_SAM_APDU [23:59:33]CAPDU: 80 17 00 00 [23:59:33]Write to MH i2c: E2 08 00 3C 00 80 17 00 00 00 00 00 00 BC [23:59:33]Write i2c OK [23:59:33]MH_I2C_Read... [23:59:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:33]Read from MH i2c: E2 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 [23:59:33]MH_I2C_Read... [23:59:33]Read from MH i2c: E2 FD 00 3C 00 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 31 [23:59:33]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 [23:59:34]wFMCommunicate OK [23:59:34]wFMCommunicate request_size=4 [23:59:34]MH_SAM_APDU [23:59:34]CAPDU: 80 17 00 00 [23:59:34]Write to MH i2c: E2 08 00 3D 00 80 17 00 00 00 00 00 00 BD [23:59:34]Write i2c OK [23:59:34]MH_I2C_Read... [23:59:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [23:59:34]Read from MH i2c: E2 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 D8 00 [23:59:34]MH_I2C_Read... [23:59:34]Read from MH i2c: E2 D8 00 3D 00 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 A4 [23:59:34]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 [23:59:34]wFMCommunicate OK [23:59:34]SAM_PROTO_GetShiftData done [23:59:34]1194 (1207) - счетчики итогов смены [23:59:34] 1134 (4) - 232 - количество чеков со всеми признаками расчетов [23:59:34] 1129 (158) - счетчики операций «приход» [23:59:34] 1135 (4) - 231 - количество чеков по признаку расчетов [23:59:34] 1201 (4) - 286759.85 - общая итоговая сумма в чеках [23:59:34] 1136 (4) - 177753.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (3) - 109006.85 - итоговая сумма в чеках безналичными [23:59:34] 1024 (123) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (12) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (3) - 30458.19 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (12) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (3) - 2538.06 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1130 (151) - счетчики операций «возврат прихода» [23:59:34] 1135 (4) - 1 - количество чеков по признаку расчетов [23:59:34] 1201 (3) - 1000.00 - общая итоговая сумма в чеках [23:59:34] 1136 (3) - 1000.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:34] 1024 (121) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (11) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (2) - 106.25 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (11) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (2) - 8.85 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1131 (141) - счетчики операций «расход» [23:59:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:34] 1024 (117) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1132 (141) - счетчики операций «возврат расхода» [23:59:34] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:34] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:34] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:34] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:34] 1024 (117) - суммы налогов [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 0% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1006 (9) - суммы НДС [23:59:34] 1010 (1) - 12% - код ставки НДС [23:59:34] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 2% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 3% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 5% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 0,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1007 (9) - суммы НСП [23:59:34] 1014 (1) - 1,50% - код ставки НСП [23:59:34] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:34] 1133 (588) - - счетчики коррекции - не используются [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1194 (04AA) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1134 (046E) [23:59:34]Malloc new data [23:59:34]Processing tag 1129 (0469) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1135 (046F) [23:59:34]Malloc new data [23:59:34]Processing tag 1201 (04B1) [23:59:34]Malloc new data [23:59:34]Processing tag 1136 (0470) [23:59:34]Malloc new data [23:59:34]Processing tag 1138 (0472) [23:59:34]Malloc new data [23:59:34]Processing tag 1024 (0400) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1006 (03EE) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1010 (03F2) [23:59:34]Malloc new data [23:59:34]Processing tag 1011 (03F3) [23:59:34]Malloc new data [23:59:34]SetTLVBufToDocument err=0 [23:59:34]Processing tag 1006 (03EE) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1010 (03F2) [23:59:34]Malloc new data [23:59:34]Processing tag 1011 (03F3) [23:59:34]Malloc new data [23:59:34]SetTLVBufToDocument err=0 [23:59:34]Processing tag 1007 (03EF) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1014 (03F6) [23:59:34]Malloc new data [23:59:34]Processing tag 1015 (03F7) [23:59:34]Malloc new data [23:59:34]SetTLVBufToDocument err=0 [23:59:34]Processing tag 1007 (03EF) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1014 (03F6) [23:59:34]Malloc new data [23:59:34]Processing tag 1015 (03F7) [23:59:34]Malloc new data [23:59:34]SetTLVBufToDocument err=0 [23:59:34]Processing tag 1007 (03EF) [23:59:34]Load OK [23:59:34]SetTLVBufToDocument [23:59:34]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1130 (046A) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:35]Processing tag 1201 (04B1) [23:59:35]Malloc new data [23:59:35]Processing tag 1136 (0470) [23:59:35]Malloc new data [23:59:35]Processing tag 1138 (0472) [23:59:35]Malloc new data [23:59:35]Processing tag 1024 (0400) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1131 (046B) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:35]Processing tag 1201 (04B1) [23:59:35]Malloc new data [23:59:35]Processing tag 1136 (0470) [23:59:35]Malloc new data [23:59:35]Processing tag 1138 (0472) [23:59:35]Malloc new data [23:59:35]Processing tag 1024 (0400) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1132 (046C) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1135 (046F) [23:59:35]Malloc new data [23:59:35]Processing tag 1201 (04B1) [23:59:35]Malloc new data [23:59:35]Processing tag 1136 (0470) [23:59:35]Malloc new data [23:59:35]Processing tag 1138 (0472) [23:59:35]Malloc new data [23:59:35]Processing tag 1024 (0400) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1006 (03EE) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1010 (03F2) [23:59:35]Malloc new data [23:59:35]Processing tag 1011 (03F3) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1007 (03EF) [23:59:35]Load OK [23:59:35]SetTLVBufToDocument [23:59:35]Processing tag 1014 (03F6) [23:59:35]Malloc new data [23:59:35]Processing tag 1015 (03F7) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Processing tag 1133 (046D) [23:59:35]Malloc new data [23:59:35]SetTLVBufToDocument err=0 [23:59:35]SetTLVBufToDocument err=0 [23:59:35]Malloc new data [23:59:35]SAM_PROTO_GetFMData [23:59:35]wFMCommunicate request_size=4 [23:59:35]MH_SAM_APDU [23:59:35]CAPDU: 80 13 03 00 [23:59:35]Write to MH i2c: E2 08 00 3E 00 80 13 03 00 00 00 00 00 BD [23:59:35]Write i2c OK [23:59:35]MH_I2C_Read... [23:59:35]OFD Sender: No OFD packet to send [23:59:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 3E 00 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 58 [23:59:36]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [23:59:36]wFMCommunicate OK [23:59:36]wFMCommunicate request_size=4 [23:59:36]MH_SAM_APDU [23:59:36]CAPDU: 80 17 00 00 [23:59:36]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [23:59:36]Write i2c OK [23:59:36]MH_I2C_Read... [23:59:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:36]Read from MH i2c: E2 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 [23:59:36]MH_I2C_Read... [23:59:36]Read from MH i2c: E2 FD 00 3F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [23:59:36]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:37]wFMCommunicate OK [23:59:37]wFMCommunicate request_size=4 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 17 00 00 [23:59:37]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 40 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [23:59:37]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:37]wFMCommunicate OK [23:59:37]wFMCommunicate request_size=4 [23:59:37]MH_SAM_APDU [23:59:37]CAPDU: 80 17 00 00 [23:59:37]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [23:59:37]Write i2c OK [23:59:37]MH_I2C_Read... [23:59:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:37]Read from MH i2c: E2 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 [23:59:37]MH_I2C_Read... [23:59:37]Read from MH i2c: E2 FD 00 41 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [23:59:38]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:59:38]wFMCommunicate OK [23:59:38]wFMCommunicate request_size=4 [23:59:38]MH_SAM_APDU [23:59:38]CAPDU: 80 17 00 00 [23:59:38]Write to MH i2c: E2 08 00 42 00 80 17 00 00 00 00 00 00 C2 [23:59:38]Write i2c OK [23:59:38]MH_I2C_Read... [23:59:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [23:59:38]Read from MH i2c: E2 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 E3 00 [23:59:38]MH_I2C_Read... [23:59:38]Read from MH i2c: E2 E3 00 42 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 A1 [23:59:38]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:40]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:59:40]line Чеков: 1 [23:59:40]line Общий итог: 1000.00 [23:59:40]line Итого наличными: 1000.00 [23:59:40]line Итого безнал.: 0.00 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 106.25 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 8.85 [23:59:40]line ИТОГИ РАСХОД [23:59:40]line Чеков: 0 [23:59:40]line Общий итог: 0.00 [23:59:40]line Итого наличными: 0.00 [23:59:40]line Итого безнал.: 0.00 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 0.00 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 0.00 [23:59:40]line ИТОГИ ВОЗВРАТ РАСХОДА [23:59:40]line Чеков: 0 [23:59:40]line Общий итог: 0.00 [23:59:40]line Итого наличными: 0.00 [23:59:40]line Итого безнал.: 0.00 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 0.00 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 0.00 [23:59:40]line Сумма внесений: 0.00 [23:59:40]line Сумма выплат: 0.00 [23:59:40]line Нал. в кассе: 176753.00 [23:59:40]line НС Приход: 222074173.78 [23:59:40]line НС Возвр.Прихода: 18117550.00 [23:59:40]line НС Расход: 0.00 [23:59:40]line НС Возвр.Расхода: 0.00 [23:59:40]line ФМ: 0000000000871778 [23:59:40]written 0, free lines is 4095 [23:59:40]OFD Sender: No OFD packet to send [23:59:41]Write to MH i2c: 01 00 00 90 00 90 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 07 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 9B 0A 3C [23:59:41]RasterBufferAndPrint [23:59:41]line [23:59:41]line [23:59:41]line [23:59:41]line [23:59:41]line [23:59:41]written 0, free lines is 2758 [23:59:41]MH_Cut [23:59:41]Write to MH i2c: D1 01 00 97 00 01 69 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: D1 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: D1 01 00 [23:59:41]MH_I2C_Read... [23:59:41]Read from MH i2c: D1 01 00 97 00 00 68 [23:59:41]Write to MH i2c: 01 00 00 98 00 98 [23:59:41]Write i2c OK [23:59:41]MH_I2C_Read... [23:59:42]*** Cut start [23:59:42]*** Partial cut [23:59:42]*** CUTSNS_PIN = 1 [23:59:42]*** CUTSNS_PIN = 0 [23:59:42]*** Brake cut motor [23:59:42]Read from MH i2c: 01 [23:59:42]MH_I2C_Read... [23:59:42]*** Stop cut motor [23:59:42]*** Cut end [23:59:42]Read from MH i2c: 01 07 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [23:59:42]process_action x_report done [23:59:42]requested_data is exist [23:59:42]produce_requested_data [23:59:42]requested_item fd.num is exist - process it [23:59:42]SAM_PROTO_GetFieldsCounters [23:59:42]wFMCommunicate request_size=4 [23:59:42]MH_SAM_APDU [23:59:42]CAPDU: 80 13 00 00 [23:59:42]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [23:59:42]Write i2c OK [23:59:42]MH_I2C_Read... [23:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:42]Read from MH i2c: E2 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 62 00 [23:59:42]MH_I2C_Read... [23:59:42]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 D9 [23:59: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 [23:59:43]wFMCommunicate OK [23:59:43]SAM_PROTO_GetFieldsCounters done [23:59:43]requested_item shift.num is exist - process it [23:59:43]requested_item shift.opened is exist - process it [23:59:43]req_shift_opened [23:59:43]FM_GetShiftState [23:59:43]SAM_PROTO_GetShiftState [23:59:43]wFMCommunicate request_size=4 [23:59:43]MH_SAM_APDU [23:59:43]CAPDU: 80 13 01 00 [23:59:43]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [23:59:43]Write i2c OK [23:59:43]MH_I2C_Read... [23:59:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:43]Read from MH i2c: E2 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 0E 00 [23:59:43]MH_I2C_Read... [23:59:43]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 EE [23:59:43]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [23:59:43]wFMCommunicate OK [23:59:43]SAM_PROTO_GetShiftState done [23:59:43]FM_GetShiftState done [23:59:43]req_shift_opened done [23:59:43]requested_item shift.open_date is exist - process it [23:59:43]req_shift_open_date [23:59:43]req_shift_open_date done [23:59:43]produce_requested_data done [23:59:43]produce_requested_data return {"fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [23:59:43]process_action_free x_report [23:59:43]json_value_free [23:59:43]json_value_free done [23:59:43]process_json_proto returns [23:59:43]Send response to host [23:59:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [23:59:43]free response buf [23:59:43]execute_script done [23:59:43]execute_script returns [23:59:43]free content buf [23:59:43]Sock 7.Close socket [23:59:43]Sock 7.Thread stoped [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:51]recv_with_timeout no data received [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:02]recv_with_timeout no data received [00:00:06]OFD Sender: No OFD packet to send [00:00:07]accept exits with 9 [00:00:07]New connection [00:00:07]New thread 3067559268 created [00:00:07]Thread 3067415908 joined [00:00:07]Waiting for new connection... [00:00:07] Sock 9.Parse request [00:00:07]Sock 9.Check first char [00:00:07]Sock 9.First char is OK [00:00:07]request: POST /json_proto HTTP/1.0 [00:00:07]Method: POST [00:00:07]URL: /json_proto [00:00:07]Method is POST - this is cgi request [00:00:07]url: /json_proto [00:00:07]query_string will be loaded in cgi processing [00:00:07]execute_cgi json_proto POST (null) [00:00:07]execute_cgi path=json_proto method=POST [00:00:07]POST find Content-Length [00:00:07]Host: 172.17.44.131:8080 [00:00:07]Content-Length: 215 [00:00:07]Content-Type: application/json [00:00:07] [00:00:07]POST finish read [00:00:07]Found Content-Length = 215 [00:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]execute_script... [00:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:07]POST & json_proto [00:00:07]process_json_proto [00:00:07]json parsed OK: [00:00:07]protocol is kg_v1.0 [00:00:07]action value=get_value [00:00:07]process_action get_value [00:00:07]cmd_get_value [00:00:07]process_action get_value done [00:00:07]requested_data is exist [00:00:07]produce_requested_data [00:00:07]requested_item kkm.sn is exist - process it [00:00:07]requested_item kkm.ver is exist - process it [00:00:07]requested_item fm.sn is exist - process it [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 11 00 00 [00:00:07]Write to MH i2c: E2 08 00 9B 00 80 11 00 00 00 00 00 00 15 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 17 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 17 00 9B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6E [00:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:00:07]wFMCommunicate OK [00:00:07]requested_item fd.num is exist - process it [00:00:07]SAM_PROTO_GetFieldsCounters [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 00 00 [00:00:07]Write to MH i2c: E2 08 00 9C 00 80 13 00 00 00 00 00 00 18 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 62 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 62 00 9C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 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 DC [00:00:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 54 BA 02 00 0E 04 04 00 D6 01 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:38]wFMCommunicate OK [23:59:38]SAM_PROTO_GetFMData done [23:59:38]FM_GetFMData:85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 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 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 recv_with_timeout no data received [23:59:39]F7 03 00 00 [23:59:39]oper:6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:39]total:22 4C AA 2B 05 [23:59:39]Malloc new data [23:59:39]oper:6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 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 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:39]total:F8 2F FD 6B [23:59:39]Malloc new data [23:59:39]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:40]total: [23:59:40]Malloc new data [23:59:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:40]total: [23:59:40]Malloc new data [23:59:40]KKMPrepareXReportFMData err=0 [23:59:40]Х отчет ИНН: 02508201610067 Кассир: Калмуратов Ш. 23.08.2024 23:59 Смена: 266 РНМ: 0000000000092561 ЗНМ: 0300000071 СНО: Общий режим Всего чеков: 232 ИТОГИ ПРИХОД Чеков: 231 Общий итог: 286759.85 Итого наличными: 177753.00 Итого безнал.: 109006.85 НДС 0% : 0.00 НДС 12% : 30458.19 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2538.06 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 1 Общий итог: 1000.00 Итого наличными: 1000.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 106.25 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 8.85 ИТОГИ РАСХОД Чеков: 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 Нал. в кассе: 176753.00 НС Приход: 222074173.78 НС Возвр.Прихода: 18117550.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871778 [23:59:40]StoreToDocumentArchive [23:59:40]MH_GetDate [23:59:40]Write to MH i2c: F0 00 00 43 00 32 [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: F0 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: F0 09 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: F0 09 00 43 00 00 6C 22 C9 66 4F 53 BE 66 BE [23:59:40]shift 266 fd 1724457580 [23:59:40]Create dir for shift 0266 [23:59:40]save to /storage/0266/doc_1724457580 [23:59:40]save last doc name /storage/0266/doc_1724457580 to /storage/kkm_last_doc_name [23:59:40]save OK [23:59:40]Clear old archive folders... [23:59:40]NVStorageSaveData kkm_last_timestamp [23:59:40]File name is /storage/kkm_last_timestamp [23:59:40]Write 4 bytes [23:59:40]NVStorageSaveData done [23:59:40]ExternCall_PrintAddStr [23:59:40]wPrintStart [23:59:40]Write to MH i2c: 01 00 00 44 00 44 [23:59:40]Write i2c OK [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 07 00 [23:59:40]MH_I2C_Read... [23:59:40]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [23:59:40]RasterBufferAndPrint [23:59:40]line Х отчет [23:59:40]line ИНН: 02508201610067 [23:59:40]line Кассир: Калмуратов Ш. [23:59:40]line 23.08.2024 23:59 [23:59:40]line Смена: 266 [23:59:40]line РНМ: 0000000000092561 [23:59:40]line ЗНМ: 0300000071 [23:59:40]line СНО: Общий режим [23:59:40]line Всего чеков: 232 [23:59:40]line ИТОГИ ПРИХОД [23:59:40]line Чеков: 231 [23:59:40]line Общий итог: 286759.85 [23:59:40]line Итого наличными: 177753.00 [23:59:40]line Итого безнал.: 109006.85 [23:59:40]line НДС 0% : 0.00 [23:59:40]line НДС 12% : 30458.19 [23:59:40]line НСП 0% : 0.00 [23:59:40]line НСП 1,50% : 0.00 [23:59:40]line НСП 0,50% : 0.00 [23:59:40]line НСП 5% : 0.00 [23:59:40]line НСП 3% : 0.00 [23:59:40]line НСП 2% : 0.00 [23:59:40]line НСП 1% : 2538.06 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 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetFieldsCounters done [00:00:07]requested_item shift.num is exist - process it [00:00:07]requested_item shift.opened is exist - process it [00:00:07]req_shift_opened [00:00:07]FM_GetShiftState [00:00:07]SAM_PROTO_GetShiftState [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 01 00 [00:00:07]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 CC D2 C7 66 00 00 00 00 90 00 F1 [00:00:07]RAPDU: 09 00 01 CC D2 C7 66 00 00 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]SAM_PROTO_GetShiftState done [00:00:07]FM_GetShiftState done [00:00:07]req_shift_opened done [00:00:07]requested_item shift.open_date is exist - process it [00:00:07]req_shift_open_date [00:00:07]req_shift_open_date done [00:00:07]produce_requested_data done [00:00:07]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660} [00:00:07]process_action_free get_value [00:00:07]json_value_free [00:00:07]json_value_free done [00:00:07]process_json_proto returns [00:00:07]Send response to host [00:00:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178772,"shift.num":470,"shift.opened":1,"shift.open_date":1724371660}}} [00:00:07]free response buf [00:00:07]execute_script done [00:00:07]execute_script returns [00:00:07]free content buf [00:00:07]Sock 9.Close socket [00:00:07]Sock 9.Thread stoped [00:00:07]accept exits with 7 [00:00:07]New connection [00:00:07]New thread 3067415908 created [00:00:07]Thread 3067559268 joined [00:00:07]Waiting for new connection... [00:00:07] Sock 7.Parse request [00:00:07]Sock 7.Check first char [00:00:07]Sock 7.First char is OK [00:00:07]request: POST /json_proto HTTP/1.0 [00:00:07]Method: POST [00:00:07]URL: /json_proto [00:00:07]Method is POST - this is cgi request [00:00:07]url: /json_proto [00:00:07]query_string will be loaded in cgi processing [00:00:07]execute_cgi json_proto POST (null) [00:00:07]execute_cgi path=json_proto method=POST [00:00:07]POST find Content-Length [00:00:07]Host: 172.17.44.131:8080 [00:00:07]Content-Length: 331 [00:00:07]Content-Type: application/json [00:00:07] [00:00:07]POST finish read [00:00:07]Found Content-Length = 331 [00:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:07]execute_script... [00:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:00:07]POST & json_proto [00:00:07]process_json_proto [00:00:07]json parsed OK: [00:00:07]protocol is kg_v1.0 [00:00:07]action value=get_value [00:00:07]process_action get_value [00:00:07]cmd_get_value [00:00:07]process_action get_value done [00:00:07]requested_data is exist [00:00:07]produce_requested_data [00:00:07]requested_item fm.sale.total is exist - process it [00:00:07]SAM_PROTO_GetFMData [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 03 00 [00:00:07]Write to MH i2c: E2 08 00 9E 00 80 13 03 00 00 00 00 00 1D [00:00:07]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 9E 00 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 B8 [00:00:08]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 17 00 00 [00:00:08]Write to MH i2c: E2 08 00 9F 00 80 17 00 00 00 00 00 00 1F [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 9F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AC [00:00:09]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 17 00 00 [00:00:09]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 A0 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 47 [00:00:09]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1006 (03EE) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1010 (03F2) [00:00:28]Malloc new data [00:00:28]Processing tag 1011 (03F3) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1131 (046B) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1135 (046F) [00:00:28]Malloc new data [00:00:28]Processing tag 1201 (04B1) [00:00:28]Malloc new data [00:00:28]Processing tag 1136 (0470) [00:00:28]Malloc new data [00:00:28]Processing tag 1138 (0472) [00:00:28]Malloc new data [00:00:28]Processing tag 1024 (0400) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1006 (03EE) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1010 (03F2) [00:00:28]Malloc new data [00:00:28]Processing tag 1011 (03F3) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1006 (03EE) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1010 (03F2) [00:00:28]Malloc new data [00:00:28]Processing tag 1011 (03F3) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1132 (046C) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1135 (046F) [00:00:28]Malloc new data [00:00:28]Processing tag 1201 (04B1) [00:00:28]Malloc new data [00:00:28]Processing tag 1136 (0470) [00:00:28]Malloc new data [00:00:28]Processing tag 1138 (0472) [00:00:28]Malloc new data [00:00:28]Processing tag 1024 (0400) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1006 (03EE) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1010 (03F2) [00:00:28]Malloc new data [00:00:28]Processing tag 1011 (03F3) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1006 (03EE) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1010 (03F2) [00:00:28]Malloc new data [00:00:28]Processing tag 1011 (03F3) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1007 (03EF) [00:00:28]Load OK [00:00:28]SetTLVBufToDocument [00:00:28]Processing tag 1014 (03F6) [00:00:28]Malloc new data [00:00:28]Processing tag 1015 (03F7) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1133 (046D) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Processing tag 1077 (0435) [00:00:28]Malloc new data [00:00:28]SetTLVBufToDocument err=0 [00:00:28]Malloc new data [00:00:28]SAM_PROTO_GetFMData [00:00:28]wFMCommunicate request_size=4 [00:00:28]MH_SAM_APDU [00:00:28]CAPDU: 80 13 03 00 [00:00:28]Write to MH i2c: E2 08 00 C0 00 80 13 03 00 00 00 00 00 3F [00:00:28]Write i2c OK [00:00:28]MH_I2C_Read... [00:00:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:28]Read from MH i2c: E2 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 FD 00 [00:00:28]MH_I2C_Read... [00:00:28]Read from MH i2c: E2 FD 00 C0 00 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 DA [00:00:29]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [00:00:29]wFMCommunicate OK [00:00:29]wFMCommunicate request_size=4 [00:00:29]MH_SAM_APDU [00:00:29]CAPDU: 80 17 00 00 [00:00:29]Write to MH i2c: E2 08 00 C1 00 80 17 00 00 00 00 00 00 41 [00:00:29]Write i2c OK [00:00:29]MH_I2C_Read... [00:05:00]ConnectInit Can't connect to host [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:17]recv_with_timeout no data received [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]recv_with_timeout no data received [00:05:35]OFD Sender: No OFD packet to send [00:06:26]ConnectInit Can't connect to host [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:06]recv_with_timeout no data received [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:07:55]accept exits with 9 [00:07:55]New connection [00:07:55]New thread 3067559268 created [00:07:55]Thread 3067415908 joined [00:07:55]Waiting for new connection... [00:07:55] Sock 9.Parse request [00:07:55]Sock 9.Check first char [00:07:55]Sock 9.First char is OK [00:07:55]request: POST /json_proto HTTP/1.0 [00:07:55]Method: POST [00:07:55]URL: /json_proto [00:07:55]Method is POST - this is cgi request [00:07:55]url: /json_proto [00:07:55]query_string will be loaded in cgi processing [00:07:55]execute_cgi json_proto POST (null) [00:07:55]execute_cgi path=json_proto method=POST [00:07:55]POST find Content-Length [00:07:55]Host: 172.17.44.131:8080 [00:07:55]Content-Length: 215 [00:07:55]Content-Type: application/json [00:07:55] [00:07:55]POST finish read [00:07:55]Found Content-Length = 215 [00:07:55]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:07:55]execute_script... [00:07:55]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:07:55]POST & json_proto [00:07:55]process_json_proto [00:07:55]json parsed OK: [00:07:55]protocol is kg_v1.0 [00:07:55]action value=get_value [00:07:55]process_action get_value [00:07:55]cmd_get_value [00:07:55]process_action get_value done [00:07:55]requested_data is exist [00:07:55]produce_requested_data [00:07:55]requested_item kkm.sn is exist - process it [00:07:55]requested_item kkm.ver is exist - process it [00:07:55]requested_item fm.sn is exist - process it [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 11 00 00 [00:07:55]Write to MH i2c: E2 08 00 30 01 80 11 00 00 00 00 00 00 AB [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 17 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 17 00 30 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 04 [00:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:07:55]wFMCommunicate OK [00:07:55]requested_item fd.num is exist - process it [00:07:55]SAM_PROTO_GetFieldsCounters [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 13 00 00 [00:07:55]Write to MH i2c: E2 08 00 31 01 80 13 00 00 00 00 00 00 AE [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 62 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 62 00 31 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 55 BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [00:07: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 55 BA 02 00 0E 04 04 00 D6 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_GetFieldsCounters done [00:07:56]requested_item shift.num is exist - process it [00:07:56]requested_item shift.opened is exist - process it [00:07:56]req_shift_opened [00:07:56]FM_GetShiftState [00:07:56]SAM_PROTO_GetShiftState [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 13 01 00 [00:07:56]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 0E 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 0E 00 32 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BB [00:07:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_GetShiftState done [00:07:56]FM_GetShiftState done [00:07:56]req_shift_opened done [00:07:56]requested_item shift.open_date is exist - process it [00:07:56]req_shift_open_date [00:07:56]FM_GetShiftState [00:07:56]SAM_PROTO_GetShiftState [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 13 01 00 [00:07:56]Write to MH i2c: E2 08 00 33 01 80 13 01 00 00 00 00 00 B1 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 0E 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 0E 00 33 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BC [00:07:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:56]wFMCommunicate OK [00:07:56]SAM_PROTO_GetShiftState done [00:07:56]FM_GetShiftState done [00:07:56]req_shift_open_date done [00:07:56]produce_requested_data done [00:07:56]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178773,"shift.num":470,"shift.opened":0,"shift.open_date":0} [00:07:56]process_action_free get_value [00:07:56]json_value_free [00:07:56]json_value_free done [00:07:56]process_json_proto returns [00:07:56]Send response to host [00:07:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178773,"shift.num":470,"shift.opened":0,"shift.open_date":0}}} [00:07:56]free response buf [00:07:56]execute_script done [00:07:56]execute_script returns [00:07:56]free content buf [00:07:56]Sock 9.Close socket [00:07:56]Sock 9.Thread stoped [00:07:56]accept exits with 10 [00:07:56]New connection [00:07:56]New thread 3067415908 created [00:07:56]Thread 3067559268 joined [00:07:56]Waiting for new connection... [00:07:56] Sock 10.Parse request [00:07:56]Sock 10.Check first char [00:07:56]Sock 10.First char is OK [00:07:56]request: POST /json_proto HTTP/1.0 [00:07:56]Method: POST [00:07:56]URL: /json_proto [00:07:56]Method is POST - this is cgi request [00:07:56]url: /json_proto [00:07:56]query_string will be loaded in cgi processing [00:07:56]execute_cgi json_proto POST (null) [00:07:56]execute_cgi path=json_proto method=POST [00:07:56]POST find Content-Length [00:07:56]Host: 172.17.44.131:8080 [00:07:56]Content-Length: 331 [00:07:56]Content-Type: application/json [00:07:56] [00:07:56]POST finish read [00:07:56]Found Content-Length = 331 [00:07:56]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:07:56]execute_script... [00:07:56]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:07:56]POST & json_proto [00:07:56]process_json_proto [00:07:56]json parsed OK: [00:07:56]protocol is kg_v1.0 [00:07:56]action value=get_value [00:07:56]process_action get_value [00:07:56]cmd_get_value [00:07:56]process_action get_value done [00:07:56]requested_data is exist [00:07:56]produce_requested_data [00:07:56]requested_item fm.sale.total is exist - process it [00:07:56]SAM_PROTO_GetFMData [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 13 03 00 [00:07:56]Write to MH i2c: E2 08 00 34 01 80 13 03 00 00 00 00 00 B4 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 34 01 00 C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 4F [00:07:56]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 A8 B6 02 00 69 04 A4 00 6F 04 04 00 11 B5 02 00 B1 04 05 00 22 4C AA 2B 05 70 04 05 00 A7 72 F9 14 04 72 04 05 00 7B D9 B0 16 01 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 57 5F 99 8C 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 43 40 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 35 01 80 17 00 00 00 00 00 00 B6 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 35 01 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [00:07:57]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:57]wFMCommunicate OK [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 36 01 80 17 00 00 00 00 00 00 B7 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 36 01 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [00:07:57]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:57]wFMCommunicate OK [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 37 01 80 17 00 00 00 00 00 00 B8 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 37 01 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [00:07:57]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:57]wFMCommunicate OK [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 38 01 80 17 00 00 00 00 00 00 B9 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 E3 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 E3 00 38 01 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 98 [00:07:57]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_GetFMData done [00:07:57]requested_item fm.sale_refund.total is exist - process it [00:07:57]requested_item fm.buy.total is exist - process it [00:07:57]requested_item shift.sale.total is exist - process it [00:07:57]SAM_PROTO_GetShiftData [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 13 02 00 [00:07:57]Write to MH i2c: E2 08 00 39 01 80 13 02 00 00 00 00 00 B8 [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 39 01 00 BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 EB [00:07:58]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 E8 00 00 00 69 04 9E 00 6F 04 04 00 E7 00 00 00 B1 04 04 00 91 8F B5 01 70 04 04 00 C4 3A 0F 01 72 04 03 00 CD 54 A6 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 BB 79 2E 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 6E DF 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 97 00 6F 04 04 00 01 00 00 00 B1 04 03 00 A0 86 01 70 04 03 00 A0 86 01 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 81 29 EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 3A 01 80 17 00 00 00 00 00 00 BB [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 3A 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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 DD [00:07:58]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 75 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 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:07:58]wFMCommunicate OK [00:07:58]wFMCommunicate request_size=4 [00:07:58]MH_SAM_APDU [00:07:58]CAPDU: 80 17 00 00 [00:07:58]Write to MH i2c: E2 08 00 3B 01 80 17 00 00 00 00 00 00 BC [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:58]Read from MH i2c: E2 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: E2 FD 00 3B 01 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [00:07:59]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:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 3C 01 80 17 00 00 00 00 00 00 BD [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 FD 00 3C 01 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 32 [00:07:59]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:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 17 00 00 [00:07:59]Write to MH i2c: E2 08 00 3D 01 80 17 00 00 00 00 00 00 BE [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 D8 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 D8 00 3D 01 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 A5 [00:07:59]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:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetShiftData done [00:07:59]requested_item shift.sale.total_cash is exist - process it [00:07:59]requested_item shift.sale_refund.total is exist - process it [00:07:59]requested_item shift.sale_refund.total_cash is exist - process it [00:07:59]requested_item shift.buy.total is exist - process it [00:07:59]requested_item shift.buy.total_cash is exist - process it [00:07:59]produce_requested_data done [00:07:59]produce_requested_data return {"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:59]process_action_free get_value [00:07:59]json_value_free [00:07:59]json_value_free done [00:07:59]process_json_proto returns [00:07:59]Send response to host [00:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":286759.85,"shift.sale.total_cash":177753.00,"shift.sale_refund.total":1000.00,"shift.sale_refund.total_cash":1000.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:59]free response buf [00:07:59]execute_script done [00:07:59]execute_script returns [00:07:59]free content buf [00:07:59]Sock 10.Close socket [00:07:59]Sock 10.Thread stoped [00:07:59]accept exits with 9 [00:07:59]New connection [00:07:59]New thread 3067559268 created [00:07:59]Thread 3067415908 joined [00:07:59]Waiting for new connection... [00:07:59] Sock 9.Parse request [00:07:59]Sock 9.Check first char [00:07:59]Sock 9.First char is OK [00:07:59]request: POST /json_proto HTTP/1.0 [00:07:59]Method: POST [00:07:59]URL: /json_proto [00:07:59]Method is POST - this is cgi request [00:07:59]url: /json_proto [00:07:59]query_string will be loaded in cgi processing [00:07:59]execute_cgi json_proto POST (null) [00:07:59]execute_cgi path=json_proto method=POST [00:07:59]POST find Content-Length [00:07:59]Host: 172.17.44.131:8080 [00:07:59]Content-Length: 277 [00:07:59]Content-Type: application/json [00:07:59] [00:07:59]POST finish read [00:07:59]Found Content-Length = 277 [00:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:59]execute_script... [00:07:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:59]POST & json_proto [00:07:59]process_json_proto [00:07:59]json parsed OK: [00:07:59]protocol is kg_v1.0 [00:07:59]action value=open_shift [00:07:59]process_action open_shift [00:07:59]cmd_open_shift [00:07:59]MH_GetDate [00:07:59]Write to MH i2c: F0 00 00 3E 01 2E [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: F0 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: F0 09 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: F0 09 00 3E 01 00 5F 24 C9 66 4F 53 BE 66 AF [00:07:59]GetLastDocTimeStamp 1724457622 [00:07:59]current date 1724458079 [00:07:59]FM_GetShiftState [00:07:59]SAM_PROTO_GetShiftState [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 01 00 [00:07:59]Write to MH i2c: E2 08 00 3F 01 80 13 01 00 00 00 00 00 BD [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 3F 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C8 [00:07:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetShiftState done [00:07:59]FM_GetShiftState done [00:07:59]KKMCreateOpenShiftDocument [00:07:59]Load OK [00:07:59]Malloc new data [00:07:59]MH_GetDate [00:07:59]Write to MH i2c: F0 00 00 40 01 30 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: F0 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: F0 09 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: F0 09 00 40 01 00 5F 24 C9 66 4F 53 BE 66 B1 [00:07:59]Malloc new data [00:07:59]KKMCreateOpenShiftDocument OK [00:07:59]KKMSetOpenShiftData OK [00:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=199 [00:07:59]tlvbuf is 015A2670 [00:07:59]KKMLoadAndSignOpenShiftData [00:07:59]SAM_PROTO_ProcessDocument [00:07:59]wFMCommunicate request_size=9 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 15 01 00 04 02 00 C7 00 [00:07:59]Write to MH i2c: E2 0C 00 41 01 80 15 01 00 04 00 02 00 C7 00 00 00 92 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 03 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [00:07:59]RAPDU: 90 00 [00:07:59]wFMCommunicate OK [00:07:59]wFMCommunicate request_size=23 [00:08:00]MH_SAM_APDU [00:08:00]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:08:00]Write to MH i2c: E2 1A 00 42 01 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 B8 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [00:08:00]RAPDU: 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=36 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 [00:08:00]Write to MH i2c: E2 27 00 43 01 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 00 00 91 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 43 01 00 90 00 B8 [00:08:00]RAPDU: 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=81 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 15 02 00 4C F1 03 48 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9F D1 80 D0 BE D0 B3 D1 80 D0 B5 D1 81 D1 81 2C 20 D0 96 D1 8B D0 BB D0 B0 D0 BB D0 B4 D1 8B 20 D0 B0 2F D0 B0 2C 20 34 30 2E 37 39 31 33 35 34 2C 20 37 33 2E 33 32 33 30 31 35 [00:08:00]Write to MH i2c: E2 54 00 44 01 80 15 02 00 4C 00 F1 03 48 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9F D1 80 D0 BE D0 B3 D1 80 D0 B5 D1 81 D1 81 2C 20 D0 96 D1 8B D0 BB D0 B0 D0 BB D0 B4 D1 8B 20 D0 B0 2F D0 B0 2C 20 34 30 2E 37 39 31 33 35 34 2C 20 37 33 2E 33 32 33 30 31 35 00 00 FA [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:00]Read from MH i2c: E2 03 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 44 01 00 90 00 B9 [00:08:00]RAPDU: 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=51 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 30 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:08:00]Write to MH i2c: E2 36 00 45 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 30 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 6C [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 45 01 00 90 00 BA [00:08:00]RAPDU: 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=13 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 15 02 00 08 F4 03 04 00 5F 24 C9 66 [00:08:00]Write to MH i2c: E2 10 00 46 01 80 15 02 00 08 00 F4 03 04 00 5F 24 C9 66 00 00 84 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 46 01 00 90 00 BB [00:08:00]RAPDU: 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=25 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 [00:08:00]Write to MH i2c: E2 1C 00 47 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 00 00 28 [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 03 00 47 01 00 90 00 BC [00:08:00]RAPDU: 90 00 [00:08:00]wFMCommunicate OK [00:08:00]wFMCommunicate request_size=4 [00:08:00]MH_SAM_APDU [00:08:00]CAPDU: 80 15 03 00 [00:08:00]Write to MH i2c: E2 08 00 48 01 80 15 03 00 00 00 00 00 CA [00:08:00]Write i2c OK [00:08:00]MH_I2C_Read... [00:08:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:08:00]Read from MH i2c: E2 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 38 00 [00:08:00]MH_I2C_Read... [00:08:00]Read from MH i2c: E2 38 00 48 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 56 BA 02 00 0E 04 04 00 D7 01 00 00 35 04 06 00 E0 BA 1C 54 40 8F 90 00 5F [00:08:00]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 56 BA 02 00 0E 04 04 00 D7 01 00 00 35 04 06 00 E0 BA 1C 54 40 8F 90 00 [00:08:00]wFMCommunicate OK [00:08:00]SAM_PROTO_ProcessDocument answer len = 51 [00:08:00]SAM_PROTO_ProcessDocument done [00:08:00]SetTLVBufToDocument [00:08:00]Processing tag 1209 (04B9) [00:08:00]Malloc new data [00:08:00]Processing tag 1041 (0411) [00:08:00]Processing tag 1040 (0410) [00:08:00]Malloc new data [00:08:00]Processing tag 1038 (040E) [00:08:00]Malloc new data [00:08:00]Processing tag 1077 (0435) [00:08:00]Malloc new data [00:08:00]SetTLVBufToDocument err=0 [00:08:00]KKMLoadAndSignOpenShiftData store KKM data [00:08:00]KKMLoadAndSignOpenShiftData err=0 [00:08:00]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таалайбеков А. Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 Место: АЗС № 130 "Партнер Нефть" 24.08.2024 00:07 Смена: 471 РНМ: 0000000000092561 ЗНМ: 0300000071 ФД: 178774 ФМ: 0000000000871778 ФПД: 247089943822479 [00:08:00]StoreToDocumentArchive [00:08:00]shift 471 fd 178774 [00:08:00]Create dir for shift 0471 [00:08:00]save to /storage/0471/doc_00178774 [00:08:00]save last doc name /storage/0471/doc_00178774 to /storage/kkm_last_doc_name [00:08:00]save OK [00:08:00]Clear old archive folders... [00:08:00]Remove dir /storage/0470 [00:08:00]opendir ok [00:08:00]file . [00:08:00]file .. [00:08:00]file doc_00178540 [00:08:00]remove file /storage/0470/doc_00178540 [00:08:00]file doc_00178541 [00:08:00]remove file /storage/0470/doc_00178541 [00:08:00]file doc_00178542 [00:08:00]remove file /storage/0470/doc_00178542 [00:08:00]file doc_00178543 [00:08:00]remove file /storage/0470/doc_00178543 [00:08:00]file doc_00178544 [00:08:00]remove file /storage/0470/doc_00178544 [00:08:00]file doc_00178545 [00:08:00]remove file /storage/0470/doc_00178545 [00:08:00]file doc_00178546 [00:08:00]remove file /storage/0470/doc_00178546 [00:08:00]file doc_00178547 [00:08:00]remove file /storage/0470/doc_00178547 [00:08:00]file doc_00178548 [00:08:00]remove file /storage/0470/doc_00178548 [00:08:00]file doc_00178549 [00:08:00]remove file /storage/0470/doc_00178549 [00:08:00]file doc_00178550 [00:08:00]remove file /storage/0470/doc_00178550 [00:08:00]file doc_00178551 [00:08:00]remove file /storage/0470/doc_00178551 [00:08:00]file doc_00178552 [00:08:00]remove file /storage/0470/doc_00178552 [00:08:00]file doc_00178553 [00:08:00]remove file /storage/0470/doc_00178553 [00:08:00]file doc_00178554 [00:08:00]remove file /storage/0470/doc_00178554 [00:08:00]file doc_00178555 [00:08:00]remove file /storage/0470/doc_00178555 [00:08:00]file doc_00178556 [00:08:00]remove file /storage/0470/doc_00178556 [00:08:00]file doc_00178557 [00:08:00]remove file /storage/0470/doc_00178557 [00:08:00]file doc_00178558 [00:08:00]remove file /storage/0470/doc_00178558 [00:08:00]file doc_00178559 [00:08:00]remove file /storage/0470/doc_00178559 [00:08:00]file doc_00178560 [00:08:00]remove file /storage/0470/doc_00178560 [00:08:00]file doc_00178561 [00:08:00]remove file /storage/0470/doc_00178561 [00:08:00]file doc_00178562 [00:08:00]remove file /storage/0470/doc_00178562 [00:08:00]file doc_00178563 [00:08:00]remove file /storage/0470/doc_00178563 [00:08:00]file doc_00178564 [00:08:00]remove file /storage/0470/doc_00178564 [00:08:00]file doc_00178565 [00:08:00]remove file /storage/0470/doc_00178565 [00:08:00]file doc_00178566 [00:08:00]remove file /storage/0470/doc_00178566 [00:08:00]file doc_00178567 [00:08:00]remove file /storage/0470/doc_00178567 [00:08:00]file doc_00178568 [00:08:00]remove file /storage/0470/doc_00178568 [00:08:00]file doc_00178569 [00:08:00]remove file /storage/0470/doc_00178569 [00:08:00]file doc_00178570 [00:08:00]remove file /storage/0470/doc_00178570 [00:08:00]file doc_00178571 [00:08:00]remove file /storage/0470/doc_00178571 [00:08:00]file doc_00178572 [00:08:00]remove file /storage/0470/doc_00178572 [00:08:00]file doc_00178573 [00:08:00]remove file /storage/0470/doc_00178573 [00:08:00]file doc_00178574 [00:08:00]remove file /storage/0470/doc_00178574 [00:08:00]file doc_00178575 [00:08:00]remove file /storage/0470/doc_00178575 [00:08:00]file doc_00178576 [00:08:00]remove file /storage/0470/doc_00178576 [00:08:00]file doc_00178577 [00:08:00]remove file /storage/0470/doc_00178577 [00:08:00]file doc_00178578 [00:08:00]remove file /storage/0470/doc_00178578 [00:08:00]file doc_00178579 [00:08:00]remove file /storage/0470/doc_00178579 [00:08:00]file doc_00178580 [00:08:00]remove file /storage/0470/doc_00178580 [00:08:00]file doc_00178581 [00:08:00]remove file /storage/0470/doc_00178581 [00:08:00]file doc_00178582 [00:08:00]remove file /storage/0470/doc_00178582 [00:08:00]file doc_00178583 [00:08:00]remove file /storage/0470/doc_00178583 [00:08:00]OFD Sender: No OFD packet to send [00:08:00]file doc_00178584 [00:08:00]remove file /storage/0470/doc_00178584 [00:08:00]file doc_00178585 [00:08:00]remove file /storage/0470/doc_00178585 [00:08:00]file doc_00178586 [00:08:00]remove file /storage/0470/doc_00178586 [00:08:00]file doc_00178587 [00:08:00]remove file /storage/0470/doc_00178587 [00:08:00]file doc_00178588 [00:08:00]remove file /storage/0470/doc_00178588 [00:08:00]file doc_00178589 [00:08:00]remove file /storage/0470/doc_00178589 [00:08:00]file doc_00178590 [00:08:00]remove file /storage/0470/doc_00178590 [00:08:00]file doc_00178591 [00:08:00]remove file /storage/0470/doc_00178591 [00:08:00]file doc_00178592 [00:08:00]remove file /storage/0470/doc_00178592 [00:08:00]file doc_00178593 [00:08:00]remove file /storage/0470/doc_00178593 [00:08:00]file doc_00178594 [00:08:00]remove file /storage/0470/doc_00178594 [00:08:00]file doc_00178595 [00:08:00]remove file /storage/0470/doc_00178595 [00:08:00]file doc_00178596 [00:08:00]remove file /storage/0470/doc_00178596 [00:08:00]file doc_00178597 [00:08:00]remove file /storage/0470/doc_00178597 [00:08:00]file doc_00178598 [00:08:00]remove file /storage/0470/doc_00178598 [00:08:00]file doc_00178599 [00:08:00]remove file /storage/0470/doc_00178599 [00:08:00]file doc_00178600 [00:08:00]remove file /storage/0470/doc_00178600 [00:08:00]file doc_00178601 [00:08:00]remove file /storage/0470/doc_00178601 [00:08:01]file doc_00178602 [00:08:01]remove file /storage/0470/doc_00178602 [00:08:01]file doc_00178603 [00:08:01]remove file /storage/0470/doc_00178603 [00:08:01]file doc_00178604 [00:08:01]remove file /storage/0470/doc_00178604 [00:08:01]file doc_00178605 [00:08:01]remove file /storage/0470/doc_00178605 [00:08:01]file doc_00178606 [00:08:01]remove file /storage/0470/doc_00178606 [00:08:01]file doc_00178607 [00:08:01]remove file /storage/0470/doc_00178607 [00:08:01]file doc_00178608 [00:08:01]remove file /storage/0470/doc_00178608 [00:08:01]file doc_00178609 [00:08:01]remove file /storage/0470/doc_00178609 [00:08:01]file doc_00178610 [00:08:01]remove file /storage/0470/doc_00178610 [00:08:01]file doc_00178611 [00:08:01]remove file /storage/0470/doc_00178611 [00:08:01]file doc_00178612 [00:08:01]remove file /storage/0470/doc_00178612 [00:08:01]file doc_00178613 [00:08:01]remove file /storage/0470/doc_00178613 [00:08:01]file doc_00178614 [00:08:01]remove file /storage/0470/doc_00178614 [00:08:01]file doc_00178615 [00:08:01]remove file /storage/0470/doc_00178615 [00:08:01]file doc_00178616 [00:08:01]remove file /storage/0470/doc_00178616 [00:08:01]file doc_00178617 [00:08:01]remove file /storage/0470/doc_00178617 [00:08:01]file doc_00178618 [00:08:01]remove file /storage/0470/doc_00178618 [00:08:01]file doc_00178619 [00:08:01]remove file /storage/0470/doc_00178619 [00:08:01]file doc_00178620 [00:08:01]remove file /storage/0470/doc_00178620 [00:08:01]file doc_00178621 [00:08:01]remove file /storage/0470/doc_00178621 [00:08:01]file doc_00178622 [00:08:01]remove file /storage/0470/doc_00178622 [00:08:01]file doc_00178623 [00:08:01]remove file /storage/0470/doc_00178623 [00:08:01]file doc_00178624 [00:08:01]remove file /storage/0470/doc_00178624 [00:08:01]file doc_00178625 [00:08:01]remove file /storage/0470/doc_00178625 [00:08:01]file doc_00178626 [00:08:01]remove file /storage/0470/doc_00178626 [00:08:01]file doc_00178627 [00:08:01]remove file /storage/0470/doc_00178627 [00:08:01]file doc_00178628 [00:08:01]remove file /storage/0470/doc_00178628 [00:08:01]file doc_00178629 [00:08:01]remove file /storage/0470/doc_00178629 [00:08:01]file doc_00178630 [00:08:01]remove file /storage/0470/doc_00178630 [00:08:01]file doc_00178631 [00:08:01]remove file /storage/0470/doc_00178631 [00:08:01]file doc_00178632 [00:08:01]remove file /storage/0470/doc_00178632 [00:08:01]file doc_00178633 [00:08:01]remove file /storage/0470/doc_00178633 [00:08:01]file doc_00178634 [00:08:01]remove file /storage/0470/doc_00178634 [00:08:01]file doc_00178635 [00:08:01]remove file /storage/0470/doc_00178635 [00:08:01]file doc_00178636 [00:08:01]remove file /storage/0470/doc_00178636 [00:08:01]file doc_00178637 [00:08:01]remove file /storage/0470/doc_00178637 [00:08:01]file doc_00178638 [00:08:01]remove file /storage/0470/doc_00178638 [00:08:01]file doc_00178639 [00:08:01]remove file /storage/0470/doc_00178639 [00:08:01]file doc_00178640 [00:08:01]remove file /storage/0470/doc_00178640 [00:08:01]file doc_00178641 [00:08:01]remove file /storage/0470/doc_00178641 [00:08:01]file doc_00178642 [00:08:01]remove file /storage/0470/doc_00178642 [00:08:01]file doc_00178643 [00:08:01]remove file /storage/0470/doc_00178643 [00:08:01]file doc_00178644 [00:08:01]remove file /storage/0470/doc_00178644 [00:08:01]file doc_00178645 [00:08:01]remove file /storage/0470/doc_00178645 [00:08:01]file doc_00178646 [00:08:01]remove file /storage/0470/doc_00178646 [00:08:01]file doc_00178647 [00:08:01]remove file /storage/0470/doc_00178647 [00:08:01]file doc_00178648 [00:08:01]remove file /storage/0470/doc_00178648 [00:08:01]file doc_00178649 [00:08:01]remove file /storage/0470/doc_00178649 [00:08:01]file doc_00178650 [00:08:01]remove file /storage/0470/doc_00178650 [00:08:01]file doc_00178651 [00:08:01]remove file /storage/0470/doc_00178651 [00:08:01]file doc_00178652 [00:08:01]remove file /storage/0470/doc_00178652 [00:08:01]file doc_00178653 [00:08:01]remove file /storage/0470/doc_00178653 [00:08:01]file doc_00178654 [00:08:01]remove file /storage/0470/doc_00178654 [00:08:01]file doc_00178655 [00:08:01]remove file /storage/0470/doc_00178655 [00:08:01]file doc_00178656 [00:08:01]remove file /storage/0470/doc_00178656 [00:08:01]file doc_00178657 [00:08:01]remove file /storage/0470/doc_00178657 [00:08:01]file doc_00178658 [00:08:01]remove file /storage/0470/doc_00178658 [00:08:01]file doc_00178659 [00:08:01]remove file /storage/0470/doc_00178659 [00:08:01]file doc_00178660 [00:08:01]remove file /storage/0470/doc_00178660 [00:08:01]file doc_00178661 [00:08:01]remove file /storage/0470/doc_00178661 [00:08:01]file doc_00178662 [00:08:01]remove file /storage/0470/doc_00178662 [00:08:01]file doc_00178663 [00:08:01]remove file /storage/0470/doc_00178663 [00:08:01]file doc_00178664 [00:08:01]remove file /storage/0470/doc_00178664 [00:08:01]file doc_00178665 [00:08:01]remove file /storage/0470/doc_00178665 [00:08:01]file doc_00178666 [00:08:01]remove file /storage/0470/doc_00178666 [00:08:01]file doc_00178667 [00:08:01]remove file /storage/0470/doc_00178667 [00:08:01]file doc_00178668 [00:08:01]remove file /storage/0470/doc_00178668 [00:08:01]file doc_00178669 [00:08:01]remove file /storage/0470/doc_00178669 [00:08:01]file doc_00178670 [00:08:01]remove file /storage/0470/doc_00178670 [00:08:01]file doc_00178671 [00:08:01]remove file /storage/0470/doc_00178671 [00:08:01]file doc_00178672 [00:08:01]remove file /storage/0470/doc_00178672 [00:08:01]file doc_00178673 [00:08:01]remove file /storage/0470/doc_00178673 [00:08:01]file doc_00178674 [00:08:01]remove file /storage/0470/doc_00178674 [00:08:01]file doc_00178675 [00:08:01]remove file /storage/0470/doc_00178675 [00:08:01]file doc_00178676 [00:08:01]remove file /storage/0470/doc_00178676 [00:08:01]file doc_00178677 [00:08:01]remove file /storage/0470/doc_00178677 [00:08:01]file doc_00178678 [00:08:01]remove file /storage/0470/doc_00178678 [00:08:01]file doc_00178679 [00:08:01]remove file /storage/0470/doc_00178679 [00:08:01]file doc_00178680 [00:08:01]remove file /storage/0470/doc_00178680 [00:08:01]file doc_00178681 [00:08:01]remove file /storage/0470/doc_00178681 [00:08:01]file doc_00178682 [00:08:01]remove file /storage/0470/doc_00178682 [00:08:01]file doc_00178683 [00:08:01]remove file /storage/0470/doc_00178683 [00:08:01]file doc_00178684 [00:08:01]remove file /storage/0470/doc_00178684 [00:08:01]file doc_00178685 [00:08:01]remove file /storage/0470/doc_00178685 [00:08:01]file doc_00178686 [00:08:01]remove file /storage/0470/doc_00178686 [00:08:01]file doc_00178687 [00:08:01]remove file /storage/0470/doc_00178687 [00:08:01]file doc_00178688 [00:08:01]remove file /storage/0470/doc_00178688 [00:08:01]file doc_00178689 [00:08:01]remove file /storage/0470/doc_00178689 [00:08:01]file doc_00178690 [00:08:01]remove file /storage/0470/doc_00178690 [00:08:01]file doc_00178691 [00:08:01]remove file /storage/0470/doc_00178691 [00:08:01]file doc_00178692 [00:08:01]remove file /storage/0470/doc_00178692 [00:08:01]file doc_00178693 [00:08:01]remove file /storage/0470/doc_00178693 [00:08:01]file doc_00178694 [00:08:01]remove file /storage/0470/doc_00178694 [00:08:01]file doc_00178695 [00:08:01]remove file /storage/0470/doc_00178695 [00:08:01]file doc_00178696 [00:08:01]remove file /storage/0470/doc_00178696 [00:08:01]file doc_00178697 [00:08:01]remove file /storage/0470/doc_00178697 [00:08:01]file doc_00178698 [00:08:01]remove file /storage/0470/doc_00178698 [00:08:01]file doc_00178699 [00:08:01]remove file /storage/0470/doc_00178699 [00:08:01]file doc_00178700 [00:08:01]remove file /storage/0470/doc_00178700 [00:08:01]file doc_00178701 [00:08:01]remove file /storage/0470/doc_00178701 [00:08:01]file doc_00178702 [00:08:01]remove file /storage/0470/doc_00178702 [00:08:01]file doc_00178703 [00:08:01]remove file /storage/0470/doc_00178703 [00:08:01]file doc_00178704 [00:08:01]remove file /storage/0470/doc_00178704 [00:08:01]file doc_00178705 [00:08:01]remove file /storage/0470/doc_00178705 [00:08:01]file doc_00178706 [00:08:01]remove file /storage/0470/doc_00178706 [00:08:01]file doc_00178707 [00:08:01]remove file /storage/0470/doc_00178707 [00:08:01]file doc_00178708 [00:08:01]remove file /storage/0470/doc_00178708 [00:08:01]file doc_00178709 [00:08:01]remove file /storage/0470/doc_00178709 [00:08:01]file doc_00178710 [00:08:01]remove file /storage/0470/doc_00178710 [00:08:01]file doc_00178711 [00:08:01]remove file /storage/0470/doc_00178711 [00:08:01]file doc_00178712 [00:08:01]remove file /storage/0470/doc_00178712 [00:08:01]file doc_00178713 [00:08:01]remove file /storage/0470/doc_00178713 [00:08:01]file doc_00178714 [00:08:01]remove file /storage/0470/doc_00178714 [00:08:01]file doc_00178715 [00:08:01]remove file /storage/0470/doc_00178715 [00:08:01]file doc_00178716 [00:08:01]remove file /storage/0470/doc_00178716 [00:08:01]file doc_00178717 [00:08:01]remove file /storage/0470/doc_00178717 [00:08:01]file doc_00178718 [00:08:01]remove file /storage/0470/doc_00178718 [00:08:01]file doc_00178719 [00:08:01]remove file /storage/0470/doc_00178719 [00:08:01]file doc_00178720 [00:08:01]remove file /storage/0470/doc_00178720 [00:08:01]file doc_00178721 [00:08:01]remove file /storage/0470/doc_00178721 [00:08:01]file doc_00178722 [00:08:01]remove file /storage/0470/doc_00178722 [00:08:01]file doc_00178723 [00:08:01]remove file /storage/0470/doc_00178723 [00:08:01]file doc_00178724 [00:08:01]remove file /storage/0470/doc_00178724 [00:08:01]file doc_00178725 [00:08:01]remove file /storage/0470/doc_00178725 [00:08:01]file doc_00178726 [00:08:01]remove file /storage/0470/doc_00178726 [00:08:01]file doc_00178727 [00:08:01]remove file /storage/0470/doc_00178727 [00:08:01]file doc_00178728 [00:08:01]remove file /storage/0470/doc_00178728 [00:08:01]file doc_00178729 [00:08:01]remove file /storage/0470/doc_00178729 [00:08:01]file doc_00178730 [00:08:01]remove file /storage/0470/doc_00178730 [00:08:01]file doc_00178731 [00:08:01]remove file /storage/0470/doc_00178731 [00:08:01]file doc_00178732 [00:08:01]remove file /storage/0470/doc_00178732 [00:08:01]file doc_00178733 [00:08:01]remove file /storage/0470/doc_00178733 [00:08:01]file doc_00178734 [00:08:01]remove file /storage/0470/doc_00178734 [00:08:01]file doc_00178735 [00:08:01]remove file /storage/0470/doc_00178735 [00:08:01]file doc_00178736 [00:08:01]remove file /storage/0470/doc_00178736 [00:08:01]file doc_00178737 [00:08:01]remove file /storage/0470/doc_00178737 [00:08:01]file doc_00178738 [00:08:01]remove file /storage/0470/doc_00178738 [00:08:01]file doc_00178739 [00:08:01]remove file /storage/0470/doc_00178739 [00:08:01]file doc_00178740 [00:08:01]remove file /storage/0470/doc_00178740 [00:08:01]file doc_00178741 [00:08:01]remove file /storage/0470/doc_00178741 [00:08:01]file doc_00178742 [00:08:01]remove file /storage/0470/doc_00178742 [00:08:01]file doc_00178743 [00:08:01]remove file /storage/0470/doc_00178743 [00:08:02]file doc_00178744 [00:08:02]remove file /storage/0470/doc_00178744 [00:08:02]file doc_00178745 [00:08:02]remove file /storage/0470/doc_00178745 [00:08:02]file doc_00178746 [00:08:02]remove file /storage/0470/doc_00178746 [00:08:02]file doc_00178747 [00:08:02]remove file /storage/0470/doc_00178747 [00:08:02]file doc_00178748 [00:08:02]remove file /storage/0470/doc_00178748 [00:08:02]file doc_00178749 [00:08:02]remove file /storage/0470/doc_00178749 [00:08:02]file doc_00178750 [00:08:02]remove file /storage/0470/doc_00178750 [00:08:02]file doc_00178751 [00:08:02]remove file /storage/0470/doc_00178751 [00:08:02]file doc_00178752 [00:08:02]remove file /storage/0470/doc_00178752 [00:08:02]file doc_00178753 [00:08:02]remove file /storage/0470/doc_00178753 [00:08:02]file doc_00178754 [00:08:02]remove file /storage/0470/doc_00178754 [00:08:02]file doc_00178755 [00:08:02]remove file /storage/0470/doc_00178755 [00:08:02]file doc_00178756 [00:08:02]remove file /storage/0470/doc_00178756 [00:08:02]file doc_00178757 [00:08:02]remove file /storage/0470/doc_00178757 [00:08:02]file doc_00178758 [00:08:02]remove file /storage/0470/doc_00178758 [00:08:02]file doc_00178759 [00:08:02]remove file /storage/0470/doc_00178759 [00:08:02]file doc_00178760 [00:08:02]remove file /storage/0470/doc_00178760 [00:08:02]file doc_00178761 [00:08:02]remove file /storage/0470/doc_00178761 [00:08:02]file doc_00178762 [00:08:02]remove file /storage/0470/doc_00178762 [00:08:02]file doc_00178763 [00:08:02]remove file /storage/0470/doc_00178763 [00:08:02]file doc_00178764 [00:08:02]remove file /storage/0470/doc_00178764 [00:08:02]file doc_00178765 [00:08:02]remove file /storage/0470/doc_00178765 [00:08:02]file doc_00178766 [00:08:02]remove file /storage/0470/doc_00178766 [00:08:02]file doc_00178767 [00:08:02]remove file /storage/0470/doc_00178767 [00:08:02]file doc_00178768 [00:08:02]remove file /storage/0470/doc_00178768 [00:08:02]file doc_00178769 [00:08:02]remove file /storage/0470/doc_00178769 [00:08:02]file doc_00178770 [00:08:02]remove file /storage/0470/doc_00178770 [00:08:02]file doc_00178771 [00:08:02]remove file /storage/0470/doc_00178771 [00:08:02]file doc_00178772 [00:08:02]remove file /storage/0470/doc_00178772 [00:08:02]file doc_00178773 [00:08:02]remove file /storage/0470/doc_00178773 [00:08:02]remove dir /storage/0470 [00:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:08:02]tlvbuf is B6F3CCC0 [00:08:02]SAM_PROTO_ClearQueue [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 09 00 00 [00:08:02]Write to MH i2c: E2 08 00 49 01 80 09 00 00 00 00 00 00 BC [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [00:08:02]RAPDU: 90 00 [00:08:02]wFMCommunicate OK [00:08:02]SAM_PROTO_ClearQueue done [00:08:02]KKMCreateOFDPacket [00:08:02]OFDProtocolAddRootSTLVToBuf [00:08:02]FM_MakeSignedData [00:08:02]FM_MakeSignedData [00:08:02]SAM_PROTO_SignData [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 0D 01 02 [00:08:02]Write to MH i2c: E2 08 00 4A 01 80 0D 01 02 00 00 00 00 C4 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [00:08:02]RAPDU: 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=255 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 0D 02 02 FA 02 00 FA 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 48 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9F D1 80 D0 BE D0 B3 D1 80 D0 B5 D1 81 D1 81 2C 20 D0 96 D1 8B D0 BB D0 B0 D0 BB D0 B4 D1 8B 20 D0 B0 2F D0 B0 2C 20 34 30 2E 37 39 31 33 35 34 2C 20 37 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 17 00 00 [00:00:09]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 FD 00 A1 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9C [00:00:10]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 17 00 00 [00:00:10]Write to MH i2c: E2 08 00 A2 00 80 17 00 00 00 00 00 00 22 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 E3 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 E3 00 A2 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 01 [00:00:10]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetFMD33 2E 33 32 33 30 31 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 30 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 5F 24 C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 56 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 E0 BA [00:08:02]Write to MH i2c: E2 02 01 4B 01 80 0D 02 02 FA 00 02 00 FA 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 48 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9F D1 80 D0 BE D0 B3 D1 80 D0 B5 D1 81 D1 81 2C 20 D0 96 D1 8B D0 BB D0 B0 D0 BB D0 B4 D1 8B 20 D0 B0 2F D0 B0 2C 20 34 30 2E 37 39 31 33 35 34 2C 20 37 33 2E 33 32 33 30 31 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 30 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 5F 24 C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 56 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 E0 BA 00 00 DE [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [00:08:02]RAPDU: 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=9 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 0D 02 02 04 1C 54 40 8F [00:08:02]Write to MH i2c: E2 0C 00 4C 01 80 0D 02 02 04 00 1C 54 40 8F 00 00 0E [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [00:08:02]RAPDU: 90 00 [00:08:02]wFMCommunicate OK [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 0D 03 02 [00:08:02]Write to MH i2c: E2 08 00 4D 01 80 0D 03 02 00 00 00 00 C9 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 0B 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 0B 00 4D 01 00 4B 86 8A 7E AE 58 27 9E 90 00 6E [00:08:02]RAPDU: 4B 86 8A 7E AE 58 27 9E 90 00 [00:08:02]wFMCommunicate OK [00:08:02]SAM_PROTO_SignData done [00:08:02]FM_MakeSignedData done [00:08:02]CreateOFDProtocolMessage [00:08:02]wFMCommunicate request_size=4 [00:08:02]MH_SAM_APDU [00:08:02]CAPDU: 80 11 00 00 [00:08:02]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:02]Read from MH i2c: E2 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 17 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 22 [00:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:08:02]wFMCommunicate OK [00:08:02]CreateOFDProtocolMessage done [00:08:02]OFDSenderStorePacket 178774 [00:08:02]StoreOFDPacket docnum=178774 [00:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 AE A3 06 01 C8 A4 5A 02 01 00 02 00 FA 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 48 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9F D1 80 D0 BE D0 B3 D1 80 D0 B5 D1 81 D1 81 2C 20 D0 96 D1 8B D0 BB D0 B0 D0 BB D0 B4 D1 8B 20 D0 B0 2F D0 B0 2C 20 34 30 2E 37 39 31 33 35 34 2C 20 37 33 2E 33 32 33 30 31 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 30 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 5F 24 C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 56 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 E0 BA 1C 54 40 8F 4B 86 8A 7E AE 58 27 9E [00:08:02]CheckFolder [00:08:02]dirname=/storage/ofd_packets [00:08:02]CheckFolder done [00:08:02]ProducePacketName [00:08:02]name=ofd_packets/00178774 [00:08:02]NVStorageSaveData ofd_packets/00178774 [00:08:02]File name is /storage/ofd_packets/00178774 [00:08:02]Write 300 bytes [00:08:02]NVStorageSaveData done [00:08:02]OFDSenderStorePacket done [00:08:02]KKMCreateOFDPacket done [00:08:02]NVStorageSaveData kkm_last_timestamp [00:08:02]File name is /storage/kkm_last_timestamp [00:08:02]Write 4 bytes [00:08:02]NVStorageSaveData done [00:08:02]ExternCall_PrintAddStr [00:08:02]wPrintStart [00:08:02]Write to MH i2c: 01 00 00 4F 01 50 [00:08:02]Write i2c OK [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: 01 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: 01 07 00 [00:08:02]MH_I2C_Read... [00:08:02]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 FF 0F 65 [00:08:02]RasterBufferAndPrint [00:08:02]line Отчет об открытии смены [00:08:02]line ФФД: 1.0 [00:08:02]line ИНН: 02508201610067 [00:08:02]line Кассир: Таалайбеков А. [00:08:02]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:08:02]line Место: АЗС № 130 "Партнер Нефть" [00:08:02]line 24.08.2024 00:07 [00:08:02]line Смена: 471 [00:08:02]line РНМ: 0000000000092561 [00:08:02]line ЗНМ: 0300000071 [00:08:02]line ФД: 178774 [00:08:02]line ФМ: 0000000000871778 [00:08:02]line ФПД: 247089943822479 [00:08:02]written 0, free lines is 4095 [00:08:02]OFD Sender: Processing packet 178774 [packets to send 500, broken 499] [00:08:02]ProducePacketName [00:08:02]name=ofd_packets/00178774 [00:08:02]OFD Sender: To server: pG, [00:08:02]CommunicateWithHost lk.salyk.kg:30040 [00:08:02]ConnectInit lk.salyk.kg [00:08:03]Write to MH i2c: 01 00 00 61 01 62 [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: 01 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: 01 07 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: 01 07 00 61 01 00 00 00 00 00 54 0E CB [00:08:03]RasterBufferAndPrint [00:08:03]line [00:08:03]line [00:08:03]line [00:08:03]line [00:08:03]line [00:08:03]written 0, free lines is 3680 [00:08:03]MH_Cut [00:08:03]Write to MH i2c: D1 01 00 68 01 01 3B [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: D1 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: D1 01 00 [00:08:03]MH_I2C_Read... [00:08:03]Read from MH i2c: D1 01 00 68 01 00 3A [00:08:03]Write to MH i2c: 01 00 00 69 01 6A [00:08:03]Write i2c OK [00:08:03]MH_I2C_Read... [00:08:03]*** Cut start [00:08:03]*** Partial cut [00:08:03]*** CUTSNS_PIN = 1 [00:08:03]*** CUTSNS_PIN = 0 [00:08:03]*** Brake cut motor [00:08:04]Read from MH i2c: 01 [00:08:04]MH_I2C_Read... [00:08:04]*** Stop cut motor [00:08:04]*** Cut end [00:08:04]Read from MH i2c: 01 07 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 FF 0F 7F [00:08:04]process_action open_shift done [00:08:04]requested_data is exist [00:08:04]produce_requested_data [00:08:04]requested_item fd.num is exist - process it [00:08:04]SAM_PROTO_GetFieldsCounters [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 13 00 00 [00:08:04]Write to MH i2c: E2 08 00 6A 01 80 13 00 00 00 00 00 00 E7 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 62 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 62 00 6A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 56 BA 02 00 0E 04 04 00 D7 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 F6 [00:08: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 56 BA 02 00 0E 04 04 00 D7 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:04]wFMCommunicate OK [00:08:04]SAM_PROTO_GetFieldsCounters done [00:08:04]requested_item shift.num is exist - process it [00:08:04]requested_item shift.opened is exist - process it [00:08:04]req_shift_opened [00:08:04]FM_GetShiftState [00:08:04]SAM_PROTO_GetShiftState [00:08:04]wFMCommunicate request_size=4 [00:08:04]MH_SAM_APDU [00:08:04]CAPDU: 80 13 01 00 [00:08:04]Write to MH i2c: E2 08 00 6B 01 80 13 01 00 00 00 00 00 E9 [00:08:04]Write i2c OK [00:08:04]MH_I2C_Read... [00:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:04]Read from MH i2c: E2 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 0E 00 [00:08:04]MH_I2C_Read... [00:08:04]Read from MH i2c: E2 0E 00 6B 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A7 [00:08:04]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:08:04]wFMCommunicate OK [00:08:04]SAM_PROTO_GetShiftState done [00:08:04]FM_GetShiftState done [00:08:04]req_shift_opened done [00:08:04]requested_item shift.open_date is exist - process it [00:08:04]req_shift_open_date [00:08:04]req_shift_open_date done [00:08:04]produce_requested_data done [00:08:04]produce_requested_data return {"fd.num":178774,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:08:04]process_action_free open_shift [00:08:04]json_value_free [00:08:04]json_value_free done 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 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 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 17 00 00 [00:08:06]Write to MH i2c: E2 08 00 70 01 80 17 00 00 00 00 00 00 F1 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 E3 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 E3 00 70 01 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D0 [00:08:06]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_GetFMData done [00:08:06]requested_item fm.sale_refund.total is exist - process it [00:08:06]requested_item fm.buy.total is exist - process it [00:08:06]requested_item shift.sale.total is exist - process it [00:08:06]SAM_PROTO_GetShiftData [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 13 02 00 [00:08:06]Write to MH i2c: E2 08 00 71 01 80 13 02 00 00 00 00 00 F0 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 71 01 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 63 [00:08:07]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 72 01 80 17 00 00 00 00 00 00 F3 [00:08:07]Connected sock=10 [00:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 AE A3 06 01 C8 A4 5A 02 01 00 02 00 FA 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 90 2E 20 F1 03 48 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9F D1 80 D0 BE D0 B3 D1 80 D0 B5 D1 81 D1 81 2C 20 D0 96 D1 8B D0 BB D0 B0 D0 BB D0 B4 D1 8B 20 D0 Write i2c OK [00:08:07]B0 MH_I2C_Read... [00:08:07]2F D0 B0 2C 20 34 30 2E 37 39 31 33 35 34 2C 20 37 33 2E 33 32 33 30 31 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 30 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 5F 24 C9 66 0E 04 04 00 D7 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 56 BA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 35 04 06 00 E0 BA 1C 54 40 8F 4B 86 8A 7E AE 58 27 9E [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 72 01 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 FB [00:08:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 73 01 80 17 00 00 00 00 00 00 F4 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 FE 9D 47 00 02 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 31 37 37 38 10 04 04 00 56 BA 02 00 F4 03 04 00 0C D0 C8 66 B6 04 01 00 00 4B 3C 03 1C 5A C8 DF F9 [00:08:08]CommunicateWithHost err = 0 [00:08:08]CheckOFDResponse [00:08:08]1017 (14) - 77093643461234 [00:08:08]1041 (16) - 0000000000871778 [00:08:08]1040 (4) - 178774 [00:08:08]1012 (4) - 23.08.2024 18:08 [00:08:08]1206 (1) - 0 [00:08:08]OFD Sender: Remove packet 178774 [00:08:08]ProducePacketName [00:08:08]name=ofd_packets/00178774 [00:08:08]NVStorageDeleteData [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 73 01 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 C6 [00:08:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 74 01 80 17 00 00 00 00 00 00 F5 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]OFD Sender: No OFD packet to send [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 74 01 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 67 [00:08:08]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 75 01 80 17 00 00 00 00 00 00 F6 [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 BD 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 BD 00 75 01 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 DC [00:08:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:09]wFMCommunicate OK [00:08:09]SAM_PROTO_GetShiftData done [00:08:09]requested_item shift.sale.total_cash is exist - process it [00:08:09]requested_item shift.sale_refund.total is exist - process it [00:08:09]requested_item shift.sale_refund.total_cash is exist - process it [00:08:09]requested_item shift.buy.total is exist - process it [00:08:09]requested_item shift.buy.total_cash is exist - process it [00:08:09]produce_requested_data done [00:08:09]produce_requested_data return {"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:09]process_action_free get_value [00:08:09]json_value_free [00:08:09]json_value_free done [00:08:09]process_json_proto returns [00:08:09]Send response to host [00:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222074173.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:09]free response buf [00:08:09]execute_script done [00:08:09]execute_script returns [00:08:09]free content buf [00:08:09]Sock 7.Close socket [00:08:09]Sock 7.Thread stoped [00:08:13]OFD Sender: No OFD packet to send [00:08:17]recv_with_timeout no data received [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:02]recv_with_timeout no data received [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]recv_with_timeout no data received [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:07]recv_with_timeout no data received [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:41]recv_with_timeout no data received [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:29]recv_with_timeout no data received [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:11]recv_with_timeout no data received [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:39]recv_with_timeout no data received [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [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:17:59]recv_with_timeout no data received [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]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [00:18:30]recv_with_timeout no data received [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:45]recv_with_timeout no data received [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:02]recv_with_timeout no data received [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:03]recv_with_timeout no data received [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:22:17]ConnectInit Can't connect to host [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:26]OFD Sender: No OFD packet to send [00:23:31]OFD Sender: No OFD packet to send [00:23:32]recv_with_timeout no data received [00:23:36]OFD Sender: No OFD packet to send [00:23:41]OFD Sender: No OFD packet to send [00:23:46]OFD Sender: No OFD packet to send [00:23:51]OFD Sender: No OFD packet to send [00:23:56]OFD Sender: No OFD packet to send [00:24:01]OFD Sender: No OFD packet to send [00:24:06]OFD Sender: No OFD packet to send [00:24:09]recv_with_timeout no data received [00:24:11]OFD Sender: No OFD packet to send [00:24:16]OFD Sender: No OFD packet to send [00:24:21]OFD Sender: No OFD packet to send [00:24:22]accept exits with 9 [00:24:22]New connection [00:24:22]New thread 3067559268 created [00:24:22]Thread 3067415908 joined [00:24:22]Waiting for new connection... [00:24:22] Sock 9.Parse request [00:24:22]Sock 9.Check first char [00:24:22]Sock 9.First char is OK [00:24:22]request: POST /json_proto HTTP/1.0 [00:24:22]Method: POST [00:24:22]URL: /json_proto [00:24:22]Method is POST - this is cgi request [00:24:22]url: /json_proto [00:24:22]query_string will be loaded in cgi processing [00:24:22]execute_cgi json_proto POST (null) [00:24:22]execute_cgi path=json_proto method=POST [00:24:22]POST find Content-Length [00:24:22]Host: 172.17.44.131:8080 [00:24:22]Content-Length: 679 [00:24:22]Content-Type: application/json [00:24:22] [00:24:22]POST finish read [00:24:22]Found Content-Length = 679 [00:24:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:22]execute_script... [00:24: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)294878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:22]POST & json_proto [00:24:22]process_json_proto [00:24:22]json parsed OK: [00:24:22]protocol is kg_v1.0 [00:24:22]action value=close_receipt [00:24:22]process_action close_receipt [00:24:22]cmd_close_receipt [00:24:22]MH_GetDate [00:24:22]Write to MH i2c: F0 00 00 76 01 66 [00:24:22]Write i2c OK [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: F0 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: F0 09 00 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: F0 09 00 76 01 00 36 28 C9 66 4F 53 BE 66 C2 [00:24:22]GetLastDocTimeStamp 1724458079 [00:24:22]current date 1724459062 [00:24:22]FM_GetShiftState [00:24:22]SAM_PROTO_GetShiftState [00:24:22]wFMCommunicate request_size=4 [00:24:22]MH_SAM_APDU [00:24:22]CAPDU: 80 13 01 00 [00:24:22]Write to MH i2c: E2 08 00 77 01 80 13 01 00 00 00 00 00 F5 [00:24:22]Write i2c OK [00:24:22]MH_I2C_Read... [00:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:22]Read from MH i2c: E2 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: E2 0E 00 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: E2 0E 00 77 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 B3 [00:24:22]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:24:22]wFMCommunicate OK [00:24:22]SAM_PROTO_GetShiftState done [00:24:22]FM_GetShiftState done [00:24:22]opened in 1724458079 [00:24:22]opened+sec_in_day 1724544479 [00:24:22]quantity*price = 200025 [00:24:22]sum+1 = 200026 [00:24:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 1 24.08.2024 00:24 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178775 ФПД: 207446833851001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T002422&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178775&fm=207446833851001&tin=02508201610067®Number=0000000000092561&sum=200000 [00:24:23]StoreToDocumentArchive [00:24:23]shift 471 fd 178775 [00:24:23]save to /storage/0471/doc_00178775 [00:24:23]save last doc name /storage/0471/doc_00178775 to /storage/kkm_last_doc_name [00:24:23]save OK [00:24:23]Clear old archive folders... [00:24:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:24:23]tlvbuf is 01409D80 [00:24:23]SAM_PROTO_ClearQueue [00:24:23]wFMCommunicate request_size=4 [00:24:23]MH_SAM_APDU [00:24:23]CAPDU: 80 09 00 00 [00:24:23]Write to MH i2c: E2 08 00 84 01 80 09 00 00 00 00 00 00 F7 [00:24:23]Write i2c OK [00:24:23]MH_I2C_Read... [00:24:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:23]Read from MH i2c: E2 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [00:24:23]RAPDU: 90 00 [00:24:23]wFMCommunicate OK [00:24:23]SAM_PROTO_ClearQueue done [00:24:23]KKMCreateOFDPacket [00:24:23]OFDProtocolAddRootSTLVToBuf [00:24:23]FM_MakeSignedData [00:24:23]FM_MakeSignedData [00:24:23]SAM_PROTO_SignData [00:24:23]wFMCommunicate request_size=4 [00:24:23]MH_SAM_APDU [00:24:23]CAPDU: 80 0D 01 02 [00:24:23]Write to MH i2c: E2 08 00 85 01 80 0D 01 02 00 00 00 00 FF [00:24:23]Write i2c OK [00:24:23]MH_I2C_Read... [00:24:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:23]Read from MH i2c: E2 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [00:24:23]RAPDU: 90 00 [00:24:23]wFMCommunicate OK [00:24:23]wFMCommunicate request_size=255 [00:24:23]MH_SAM_APDU [00:24:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 28 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 57 BA 02 00 35 04 06 00 BC AB FA D7 [00:24:23]Write to MH i2c: E2 02 01 86 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 28 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 57 BA 02 00 35 04 06 00 BC AB FA D7 00 00 2C [00:24:23]Write i2c OK [00:24:23]MH_I2C_Read... [00:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:23]Read from MH i2c: E2 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [00:24:23]RAPDU: 90 00 [00:24:23]wFMCommunicate OK [00:24:23]wFMCommunicate request_size=7 [00:24:23]MH_SAM_APDU [00:24:23]CAPDU: 80 0D 02 02 02 6A 79 [00:24:23]Write to MH i2c: E2 0A 00 87 01 80 0D 02 02 02 00 6A 79 00 00 E9 [00:24:23]Write i2c OK [00:24:23]MH_I2C_Read... [00:24:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:23]Read from MH i2c: E2 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 [00:24:23]MH_I2C_Read... [00:24:23]Read from MH i2c: E2 03 00 87 01 00 90 00 FC [00:24:23]RAPDU: 90 00 [00:24:23]wFMCommunicate OK [00:24:23]wFMCommunicate request_size=4 [00:24:23]MH_SAM_APDU [00:24:23]CAPDU: 80 0D 03 02 [00:24:23]Write to MH i2c: E2 08 00 88 01 80 0D 03 02 00 00 00 00 04 [00:24:23]Write i2c OK [00:24:23]MH_I2C_Read... [00:24:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:24]Read from MH i2c: E2 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 0B 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 0B 00 88 01 00 DC E6 01 7A 66 4C 76 0D 90 00 77 [00:24:24]RAPDU: DC E6 01 7A 66 4C 76 0D 90 00 [00:24:24]wFMCommunicate OK [00:24:24]SAM_PROTO_SignData done [00:24:24]FM_MakeSignedData done [00:24:24]CreateOFDProtocolMessage [00:24:24]wFMCommunicate request_size=4 [00:24:24]MH_SAM_APDU [00:24:24]CAPDU: 80 11 00 00 [00:24:24]Write to MH i2c: E2 08 00 89 01 80 11 00 00 00 00 00 00 04 [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:24]Read from MH i2c: E2 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 17 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 17 00 89 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 5D [00:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:24:24]wFMCommunicate OK [00:24:24]CreateOFDProtocolMessage done [00:24:24]OFDSenderStorePacket 178775 [00:24:24]StoreOFDPacket docnum=178775 [00:24:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 8C 38 04 01 11 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 28 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 57 BA 02 00 35 04 06 00 BC AB FA D7 6A 79 DC E6 01 7A 66 4C 76 0D [00:24:24]CheckFolder [00:24:24]dirname=/storage/ofd_packets [00:24:24]CheckFolder done [00:24:24]ProducePacketName [00:24:24]name=ofd_packets/00178775 [00:24:24]NVStorageSaveData ofd_packets/00178775 [00:24:24]File name is /storage/ofd_packets/00178775 [00:24:24]Write 298 bytes [00:24:24]NVStorageSaveData done [00:24:24]OFDSenderStorePacket done [00:24:24]KKMCreateOFDPacket done [00:24:24]NVStorageSaveData kkm_last_timestamp [00:24:24]File name is /storage/kkm_last_timestamp [00:24:24]Write 4 bytes [00:24:24]NVStorageSaveData done [00:24:24]ExternCall_PrintAddStr [00:24:24]wPrintStart [00:24:24]Write to MH i2c: 01 00 00 8A 01 8B [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 07 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [00:24:24]RasterBufferAndPrint [00:24:24]line Счет N : (1)294878 [00:24:24]line ИНН: 02508201610067 [00:24:24]line Контрольно-Кассовый Чек [00:24:24]line ПРОДАЖА [00:24:24]line ТРК (МРК, ГНК) : 44 [00:24:24]line Товар: 2710194800 [00:24:24]line ДТ-К-5 [00:24:24]line 26.250 * 76.20 [00:24:24]line = 2000.25 [00:24:24]line НДС 12% НСП 1% [00:24:24]line > о реализуемом товаре [00:24:24]line ОКРУГЛЕНИЕ: -0.25 [00:24:24]line ИТОГО: 2000.00 [00:24:24]line Внесено: 2000.00 [00:24:24]line СДАЧА: 0.00 [00:24:24]line НСП 1% : 17.70 [00:24:24]line НДС 12% : 212.42 [00:24:24]line Наличными: 2000.00 [00:24:24]line Безнал.: 0.00 [00:24:24]line Место: АЗС № 130 "Партнер Нефть" [00:24:24]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:24:24]line СНО: Общий режим [00:24:24]line Чек 1 24.08.2024 00:24 [00:24:24]line Смена: 471 ФФД: 1.0 [00:24:24]line ЗНМ: 0300000071 [00:24:24]line РНМ: 0000000000092561 [00:24:24]line Версия ККМ: 001 [00:24:24]line ФМ: 0000000000871778 [00:24:24]line ФД: 178775 [00:24:24]line ФПД: 207446833851001 [00:24:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T002422&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178775&fm=207446833851001&tin=02508201610067®Number=0000000000092561&sum=200000 [00:24:24]OFD Sender: Processing packet 178775 [packets to send 500, broken 499] [00:24:24]ProducePacketName [00:24:24]name=ofd_packets/00178775 [00:24:24]OFD Sender: To server: pG, [00:24:24]CommunicateWithHost lk.salyk.kg:30040 [00:24:24]ConnectInit lk.salyk.kg [00:24:24]written 0, free lines is 4095 [00:24:24]Connected sock=7 [00:24:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 8C 38 04 01 11 67 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 28 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 57 BA 02 00 35 04 06 00 BC AB FA D7 6A 79 DC E6 01 7A 66 4C 76 0D [00:24:24]Write to MH i2c: 01 00 00 B5 01 B6 [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 07 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 07 00 B5 01 00 00 00 00 00 D5 0C 9E [00:24:24]RasterBufferAndPrint [00:24:24]line [00:24:24]line [00:24:24]line [00:24:24]line [00:24:24]line [00:24:24]written 0, free lines is 3291 [00:24:24]MH_Cut [00:24:24]Write to MH i2c: D1 01 00 BC 01 01 8F [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: D1 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: D1 01 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: D1 01 00 BC 01 00 8E [00:24:24]Write to MH i2c: 01 00 00 BD 01 BE [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 92 BA 47 00 B8 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 31 37 37 38 10 04 04 00 57 BA 02 00 F4 03 04 00 DD D3 C8 66 B6 04 01 00 00 F3 20 32 60 2B 36 14 BB [00:24:25]CommunicateWithHost err = 0 [00:24:25]CheckOFDResponse [00:24:25]1017 (14) - 77093643461234 [00:24:25]1041 (16) - 0000000000871778 [00:24:25]1040 (4) - 178775 [00:24:25]1012 (4) - 23.08.2024 18:24 [00:24:25]1206 (1) - 0 [00:24:25]OFD Sender: Remove packet 178775 [00:24:25]ProducePacketName [00:24:25]name=ofd_packets/00178775 [00:24:25]NVStorageDeleteData [00:24:25]*** Cut start [00:24:25]*** Partial cut [00:24:25]*** CUTSNS_PIN = 1 [00:24:25]*** CUTSNS_PIN = 0 [00:24:25]*** Brake cut motor [00:24:25]OFD Sender: No OFD packet to send [00:24:26]Read from MH i2c: 01 [00:24:26]MH_I2C_Read... [00:24:26]*** Stop cut motor [00:24:26]*** Cut end [00:24:26]Read from MH i2c: 01 07 00 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: 01 07 00 BD 01 00 00 00 00 00 FF 0F D3 [00:24:26]process_action close_receipt done [00:24:26]requested_data is exist [00:24:26]produce_requested_data [00:24:26]requested_item fm.sn is exist - process it [00:24:26]wFMCommunicate request_size=4 [00:24:26]MH_SAM_APDU [00:24:26]CAPDU: 80 11 00 00 [00:24:26]Write to MH i2c: E2 08 00 BE 01 80 11 00 00 00 00 00 00 39 [00:24:26]Write i2c OK [00:24:26]MH_I2C_Read... [00:24:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:26]Read from MH i2c: E2 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: E2 17 00 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: E2 17 00 BE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 92 [00:24:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:24:26]wFMCommunicate OK [00:24:26]requested_item fd.num is exist - process it [00:24:26]SAM_PROTO_GetFieldsCounters [00:24:26]wFMCommunicate request_size=4 [00:24:26]MH_SAM_APDU [00:24:26]CAPDU: 80 13 00 00 [00:24:26]Write to MH i2c: E2 08 00 BF 01 80 13 00 00 00 00 00 00 3C [00:24:26]Write i2c OK [00:24:26]MH_I2C_Read... [00:24:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:26]Read from MH i2c: E2 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: E2 62 00 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: E2 62 00 BF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 57 BA 02 00 0E 04 04 00 D7 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 4F [00:24: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 57 BA 02 00 0E 04 04 00 D7 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:24:26]wFMCommunicate OK [00:24:26]SAM_PROTO_GetFieldsCounters done [00:24:26]requested_item shift.num is exist - process it [00:24:26]requested_item shift.opened is exist - process it [00:24:26]req_shift_opened [00:24:26]FM_GetShiftState [00:24:26]SAM_PROTO_GetShiftState [00:24:26]wFMCommunicate request_size=4 [00:24:26]MH_SAM_APDU [00:24:26]CAPDU: 80 13 01 00 [00:24:26]Write to MH i2c: E2 08 00 C0 01 80 13 01 00 00 00 00 00 3E [00:24:26]Write i2c OK [00:24:26]MH_I2C_Read... [00:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:26]Read from MH i2c: E2 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: E2 0E 00 [00:24:26]MH_I2C_Read... [00:24:26]Read from MH i2c: E2 0E 00 C0 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FC [00:24:26]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:24:26]wFMCommunicate OK [00:24:26]SAM_PROTO_GetShiftState done [00:24:26]FM_GetShiftState done [00:24:26]req_shift_opened done [00:24:26]requested_item shift.open_date is exist - process it [00:24:26]req_shift_open_date [00:24:26]req_shift_open_date done [00:24:26]produce_requested_data done [00:24:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178775,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:24:26]process_action_free close_receipt [00:24:26]json_value_free [00:24:26]json_value_free done [00:24:26]process_json_proto returns [00:24:26]Send response to host [00:24:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178775,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:24:26]free response buf [00:24:26]execute_script done [00:24:26]execute_script returns [00:24:26]free content buf [00:24:26]Sock 9.Close socket [00:24:26]Sock 9.Thread stoped [00:24:30]OFD Sender: No OFD packet to send [00:24:34]recv_with_timeout no data received [00:24:36]OFD Sender: No OFD packet to send [00:24:41]OFD Sender: No OFD packet to send [00:24:46]OFD Sender: No OFD packet to send [00:24:50]recv_with_timeout no data received [00:24:51]OFD Sender: No OFD packet to send [00:24:56]OFD Sender: No OFD packet to send [00:25:01]OFD Sender: No OFD packet to send [00:25:03]recv_with_timeout no data received [00:25:06]OFD Sender: No OFD packet to send [00:25:11]OFD Sender: No OFD packet to send [00:25:16]OFD Sender: No OFD packet to send [00:25:21]OFD Sender: No OFD packet to send [00:25:26]OFD Sender: No OFD packet to send [00:25:31]OFD Sender: No OFD packet to send [00:25:36]OFD Sender: No OFD packet to send [00:25:41]OFD Sender: No OFD packet to send [00:25:46]OFD Sender: No OFD packet to send [00:25:51]OFD Sender: No OFD packet to send [00:25:56]OFD Sender: No OFD packet to send [00:26:01]OFD Sender: No OFD packet to send [00:26:06]OFD Sender: No OFD packet to send [00:26:11]OFD Sender: No OFD packet to send [00:26:16]OFD Sender: No OFD packet to send [00:26:21]OFD Sender: No OFD packet to send [00:26:26]OFD Sender: No OFD packet to send [00:26:31]OFD Sender: No OFD packet to send [00:26:36]OFD Sender: No OFD packet to send [00:26:41]OFD Sender: No OFD packet to send [00:26:46]OFD Sender: No OFD packet to send [00:26:51]OFD Sender: No OFD packet to send [00:26:56]OFD Sender: No OFD packet to send [00:27:01]OFD Sender: No OFD packet to send [00:27:06]OFD Sender: No OFD packet to send [00:27:11]OFD Sender: No OFD packet to send [00:27:16]OFD Sender: No OFD packet to send [00:27:21]OFD Sender: No OFD packet to send [00:27:26]OFD Sender: No OFD packet to send [00:27:31]OFD Sender: No OFD packet to send [00:27:36]OFD Sender: No OFD packet to send [00:27:41]OFD Sender: No OFD packet to send [00:27:46]OFD Sender: No OFD packet to send [00:27:47]accept exits with 10 [00:27:47]New connection [00:27:47]New thread 3067415908 created [00:27:47]Thread 3067559268 joined [00:27:47]Waiting for new connection... [00:27:47] Sock 10.Parse request [00:27:47]Sock 10.Check first char [00:27:47]Sock 10.First char is OK [00:27:47]request: POST /json_proto HTTP/1.0 [00:27:47]Method: POST [00:27:47]URL: /json_proto [00:27:47]Method is POST - this is cgi request [00:27:47]url: /json_proto [00:27:47]query_string will be loaded in cgi processing [00:27:47]execute_cgi json_proto POST (null) [00:27:47]execute_cgi path=json_proto method=POST [00:27:47]POST find Content-Length [00:27:47]Host: 172.17.44.131:8080 [00:27:47]Content-Length: 678 [00:27:47]Content-Type: application/json [00:27:47] [00:27:47]POST finish read [00:27:47]Found Content-Length = 678 [00:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294883", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [00:27:47]execute_script... [00:27:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294883", "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" : 67.80, "quantity" : 10.330, "sum" : 700.37, "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" ] } } [00:27:47]POST & json_proto [00:27:47]process_json_proto [00:27:47]json parsed OK: [00:27:47]protocol is kg_v1.0 [00:27:47]action value=close_receipt [00:27:47]process_action close_receipt [00:27:47]cmd_close_receipt [00:27:47]MH_GetDate [00:27:47]Write to MH i2c: F0 00 00 C1 01 B1 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: F0 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: F0 09 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: F0 09 00 C1 01 00 03 29 C9 66 4F 53 BE 66 DB [00:27:47]GetLastDocTimeStamp 1724459062 [00:27:47]current date 1724459267 [00:27:47]FM_GetShiftState [00:27:47]SAM_PROTO_GetShiftState [00:27:47]wFMCommunicate request_size=4 [00:27:47]MH_SAM_APDU [00:27:47]CAPDU: 80 13 01 00 [00:27:47]Write to MH i2c: E2 08 00 C2 01 80 13 01 00 00 00 00 00 40 [00:27:47]Write i2c OK [00:27:47]MH_I2C_Read... [00:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:47]Read from MH i2c: E2 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 0E 00 [00:27:47]MH_I2C_Read... [00:27:47]Read from MH i2c: E2 0E 00 C2 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 FE [00:27:47]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:27:47]wFMCommunicate OK [00:27:47]SAM_PROTO_GetShiftState done [00:27:47]FM_GetShiftState done [00:27:47]opened in 1724458079 [00:27:47]opened+sec_in_day 1724544479 [00:27:47]quantity*price = 70037 [00:27:47]sum+1 = 70038 [00:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 2 24.08.2024 00:27 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178776 ФПД: 49629173829015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T002747&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178776&fm=49629173829015&tin=02508201610067®Number=0000000000092561&sum=70000 [00:27:48]StoreToDocumentArchive [00:27:48]shift 471 fd 178776 [00:27:48]save to /storage/0471/doc_00178776 [00:27:48]save last doc name /storage/0471/doc_00178776 to /storage/kkm_last_doc_name [00:27:48]save OK [00:27:48]Clear old archive folders... [00:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:48]tlvbuf is 01404C40 [00:27:48]SAM_PROTO_ClearQueue [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 09 00 00 [00:27:48]Write to MH i2c: E2 08 00 CF 01 80 09 00 00 00 00 00 00 42 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [00:27:48]RAPDU: 90 00 [00:27:48]wFMCommunicate OK [00:27:48]SAM_PROTO_ClearQueue done [00:27:48]KKMCreateOFDPacket [00:27:48]OFDProtocolAddRootSTLVToBuf [00:27:48]FM_MakeSignedData [00:27:48]FM_MakeSignedData [00:27:48]SAM_PROTO_SignData [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 0D 01 02 [00:27:48]Write to MH i2c: E2 08 00 D0 01 80 0D 01 02 00 00 00 00 4A [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [00:27:48]RAPDU: 90 00 [00:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=255 [00:27:48]MH_SAM_APDU [00:27: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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 02 00 00 00 F4 03 04 00 03 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 58 BA 02 00 35 04 06 00 2D [00:27:48]Write to MH i2c: E2 02 01 D1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 02 00 00 00 F4 03 04 00 03 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 58 BA 02 00 35 04 06 00 2D 00 00 2A [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [00:27:48]RAPDU: 90 00 [00:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=10 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 0D 02 02 05 23 31 46 CD 97 [00:27:48]Write to MH i2c: E2 0D 00 D2 01 80 0D 02 02 05 00 23 31 46 CD 97 00 00 55 [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:48]Read from MH i2c: E2 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 [00:27:48]MH_I2C_Read... [00:27:48]Read from MH i2c: E2 03 00 D2 01 00 90 00 47 [00:27:48]RAPDU: 90 00 [00:27:48]wFMCommunicate OK [00:27:48]wFMCommunicate request_size=4 [00:27:48]MH_SAM_APDU [00:27:48]CAPDU: 80 0D 03 02 [00:27:48]Write to MH i2c: E2 08 00 D3 01 80 0D 03 02 00 00 00 00 4F [00:27:48]Write i2c OK [00:27:48]MH_I2C_Read... [00:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 0B 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 0B 00 D3 01 00 BB 29 7A F0 08 8F C1 CD 90 00 C3 [00:27:49]RAPDU: BB 29 7A F0 08 8F C1 CD 90 00 [00:27:49]wFMCommunicate OK [00:27:49]SAM_PROTO_SignData done [00:27:49]FM_MakeSignedData done [00:27:49]CreateOFDProtocolMessage [00:27:49]wFMCommunicate request_size=4 [00:27:49]MH_SAM_APDU [00:27:49]CAPDU: 80 11 00 00 [00:27:49]Write to MH i2c: E2 08 00 D4 01 80 11 00 00 00 00 00 00 4F [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:49]Read from MH i2c: E2 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 17 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: E2 17 00 D4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 A8 [00:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:27:49]wFMCommunicate OK [00:27:49]CreateOFDProtocolMessage done [00:27:49]OFDSenderStorePacket 178776 [00:27:49]StoreOFDPacket docnum=178776 [00:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 7A 1C 07 01 32 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 02 00 00 00 F4 03 04 00 03 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 58 BA 02 00 35 04 06 00 2D 23 31 46 CD 97 BB 29 7A F0 08 8F C1 CD [00:27:49]CheckFolder [00:27:49]dirname=/storage/ofd_packets [00:27:49]CheckFolder done [00:27:49]ProducePacketName [00:27:49]name=ofd_packets/00178776 [00:27:49]NVStorageSaveData ofd_packets/00178776 [00:27:49]File name is /storage/ofd_packets/00178776 [00:27:49]Write 301 bytes [00:27:49]NVStorageSaveData done [00:27:49]OFDSenderStorePacket done [00:27:49]KKMCreateOFDPacket done [00:27:49]NVStorageSaveData kkm_last_timestamp [00:27:49]File name is /storage/kkm_last_timestamp [00:27:49]Write 4 bytes [00:27:49]NVStorageSaveData done [00:27:49]ExternCall_PrintAddStr [00:27:49]wPrintStart [00:27:49]Write to MH i2c: 01 00 00 D5 01 D6 [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: 01 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: 01 07 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [00:27:49]RasterBufferAndPrint [00:27:49]line Счет N : (1)294883 [00:27:49]line ИНН: 02508201610067 [00:27:49]line Контрольно-Кассовый Чек [00:27:49]line ПРОДАЖА [00:27:49]line ТРК (МРК, ГНК) : 52 [00:27:49]line Товар: 2710124130 [00:27:49]line Аи-92-К-5 [00:27:49]line 10.330 * 67.80 [00:27:49]line = 700.37 [00:27:49]line НДС 12% НСП 1% [00:27:49]line > о реализуемом товаре [00:27:49]line ОКРУГЛЕНИЕ: -0.37 [00:27:49]line ИТОГО: 700.00 [00:27:49]line Внесено: 700.00 [00:27:49]line СДАЧА: 0.00 [00:27:49]line НСП 1% : 6.20 [00:27:49]line НДС 12% : 74.38 [00:27:49]line Наличными: 700.00 [00:27:49]line Безнал.: 0.00 [00:27:49]line Место: АЗС № 130 "Партнер Нефть" [00:27:49]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:27:49]line СНО: Общий режим [00:27:49]line Чек 2 24.08.2024 00:27 [00:27:49]line Смена: 471 ФФД: 1.0 [00:27:49]line ЗНМ: 0300000071 [00:27:49]line РНМ: 0000000000092561 [00:27:49]line Версия ККМ: 001 [00:27:49]line ФМ: 0000000000871778 [00:27:49]line ФД: 178776 [00:27:49]line ФПД: 49629173829015 [00:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T002747&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178776&fm=49629173829015&tin=02508201610067®Number=0000000000092561&sum=70000 [00:27:49]written 0, free lines is 4095 [00:27:49]OFD Sender: Processing packet 178776 [packets to send 500, broken 499] [00:27:49]ProducePacketName [00:27:49]name=ofd_packets/00178776 [00:27:49]OFD Sender: To server: pG, [00:27:49]CommunicateWithHost lk.salyk.kg:30040 [00:27:49]ConnectInit lk.salyk.kg [00:27:49]Write to MH i2c: 01 00 00 00 02 02 [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: 01 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: 01 07 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 C6 0C DB [00:27:49]RasterBufferAndPrint [00:27:49]line [00:27:49]line [00:27:49]line [00:27:49]line [00:27:49]line [00:27:49]written 0, free lines is 3276 [00:27:49]MH_Cut [00:27:49]Write to MH i2c: D1 01 00 07 02 01 DB [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: D1 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: D1 01 00 [00:27:49]MH_I2C_Read... [00:27:49]Read from MH i2c: D1 01 00 07 02 00 DA [00:27:49]Write to MH i2c: 01 00 00 08 02 0A [00:27:49]Write i2c OK [00:27:49]MH_I2C_Read... [00:27:50]*** Cut start [00:27:50]*** Partial cut [00:27:50]*** CUTSNS_PIN = 1 [00:27:50]*** CUTSNS_PIN = 0 [00:27:50]*** Brake cut motor [00:27:50]Read from MH i2c: 01 [00:27:50]MH_I2C_Read... [00:27:50]*** Stop cut motor [00:27:50]*** Cut end [00:27:50]Read from MH i2c: 01 07 00 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 FF 0F 1F [00:27:50]process_action close_receipt done [00:27:50]requested_data is exist [00:27:50]produce_requested_data [00:27:50]requested_item fm.sn is exist - process it [00:27:50]wFMCommunicate request_size=4 [00:27:50]MH_SAM_APDU [00:27:50]CAPDU: 80 11 00 00 [00:27:50]Write to MH i2c: E2 08 00 09 02 80 11 00 00 00 00 00 00 85 [00:27:50]Write i2c OK [00:27:50]MH_I2C_Read... [00:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:50]Read from MH i2c: E2 [00:27:50]MH_I2C_Read... [00:27:50]Read from MH i2c: E2 17 00 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 17 00 09 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DE [00:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:27:51]wFMCommunicate OK [00:27:51]requested_item fd.num is exist - process it [00:27:51]SAM_PROTO_GetFieldsCounters [00:27:51]wFMCommunicate request_size=4 [00:27:51]MH_SAM_APDU [00:27:51]CAPDU: 80 13 00 00 [00:27:51]Write to MH i2c: E2 08 00 0A 02 80 13 00 00 00 00 00 00 88 [00:27:51]Write i2c OK [00:27:51]MH_I2C_Read... [00:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:51]Read from MH i2c: E2 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 62 00 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 62 00 0A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 58 BA 02 00 0E 04 04 00 D7 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 9F [00: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 58 BA 02 00 0E 04 04 00 D7 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:27:51]wFMCommunicate OK [00:27:51]SAM_PROTO_GetFieldsCounters done [00:27:51]requested_item shift.num is exist - process it [00:27:51]requested_item shift.opened is exist - process it [00:27:51]req_shift_opened [00:27:51]FM_GetShiftState [00:27:51]SAM_PROTO_GetShiftState [00:27:51]wFMCommunicate request_size=4 [00:27:51]MH_SAM_APDU [00:27:51]CAPDU: 80 13 01 00 [00:27:51]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [00:27:51]Write i2c OK [00:27:51]MH_I2C_Read... [00:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:51]Read from MH i2c: E2 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 0E 00 [00:27:51]MH_I2C_Read... [00:27:51]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 48 [00:27:51]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:27:51]wFMCommunicate OK [00:27:51]SAM_PROTO_GetShiftState done [00:27:51]FM_GetShiftState done [00:27:51]req_shift_opened done [00:27:51]requested_item shift.open_date is exist - process it [00:27:51]req_shift_open_date [00:27:51]req_shift_open_date done [00:27:51]produce_requested_data done [00:27:51]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178776,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:27:51]process_action_free close_receipt [00:27:51]json_value_free [00:27:51]json_value_free done [00:27:51]process_json_proto returns [00:27:51]Send response to host [00:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178776,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:27:51]free response buf [00:27:51]execute_script done [00:27:51]execute_script returns [00:27:51]free content buf [00:27:51]Sock 10.Close socket [00:27:51]Sock 10.Thread stoped [00:27:51]Connected sock=11 [00:27:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 7A 1C 07 01 32 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 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 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 0E 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 02 00 00 00 F4 03 04 00 03 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 58 BA 02 00 35 04 06 00 2D 23 31 46 CD 97 BB 29 7A F0 08 8F C1 CD [00:27:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 9A D8 47 00 BC 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 31 37 37 38 10 04 04 00 58 BA 02 00 F4 03 04 00 AB D4 C8 66 B6 04 01 00 00 26 29 A2 AD 46 8B F9 0A [00:27:51]CommunicateWithHost err = 0 [00:27:51]CheckOFDResponse [00:27:51]1017 (14) - 77093643461234 [00:27:51]1041 (16) - 0000000000871778 [00:27:51]1040 (4) - 178776 [00:27:51]1012 (4) - 23.08.2024 18:27 [00:27:51]1206 (1) - 0 [00:27:51]OFD Sender: Remove packet 178776 [00:27:51]ProducePacketName [00:27:51]name=ofd_packets/00178776 [00:27:51]NVStorageDeleteData [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:13]recv_with_timeout no data received [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:49]accept exits with 7 [00:29:49]New connection [00:29:49]New thread 3067559268 created [00:29:49]Thread 3067415908 joined [00:29:49]Waiting for new connection... [00:29:49] Sock 7.Parse request [00:29:49]Sock 7.Check first char [00:29:49]Sock 7.First char is OK [00:29:49]request: POST /json_proto HTTP/1.0 [00:29:49]Method: POST [00:29:49]URL: /json_proto [00:29:49]Method is POST - this is cgi request [00:29:49]url: /json_proto [00:29:49]query_string will be loaded in cgi processing [00:29:49]execute_cgi json_proto POST (null) [00:29:49]execute_cgi path=json_proto method=POST [00:29:49]POST find Content-Length [00:29:49]Host: 172.17.44.131:8080 [00:29:49]Content-Length: 795 [00:29:49]Content-Type: application/json [00:29:49] [00:29:49]POST finish read [00:29:49]Found Content-Length = 795 [00:29:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 0.00, "quantity" : 20.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90797", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:49]execute_script... [00:29:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 0.00, "quantity" : 20.060, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A90797", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:49]POST & json_proto [00:29:49]process_json_proto [00:29:49]json parsed OK: [00:29:49]protocol is kg_v1.0 [00:29:49]action value=close_receipt [00:29:49]process_action close_receipt [00:29:49]cmd_close_receipt [00:29:49]MH_GetDate [00:29:49]Write to MH i2c: F0 00 00 0C 02 FD [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: F0 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: F0 09 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: F0 09 00 0C 02 00 7D 29 C9 66 4F 53 BE 66 A1 [00:29:49]GetLastDocTimeStamp 1724459267 [00:29:49]current date 1724459389 [00:29:49]FM_GetShiftState [00:29:49]SAM_PROTO_GetShiftState [00:29:49]wFMCommunicate request_size=4 [00:29:49]MH_SAM_APDU [00:29:49]CAPDU: 80 13 01 00 [00:29:49]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [00:29:49]Write i2c OK [00:29:49]MH_I2C_Read... [00:29:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:49]Read from MH i2c: E2 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 0E 00 [00:29:49]MH_I2C_Read... [00:29:49]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4A [00:29:49]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:29:49]wFMCommunicate OK [00:29:49]SAM_PROTO_GetShiftState done [00:29:49]FM_GetShiftState done [00:29:49]opened in 1724458079 [00:29:49]opened+sec_in_day 1724544479 [00:29:49]quantity*price = 0 [00:29:49]sum+1 = 1 [00:29:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 4 24.08.2024 00:31 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 Талоны: Топливная Карта 90797 ФМ: 0000000000871778 ФД: 178778 ФПД: 93345561068794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003101&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178778&fm=93345561068794&tin=02508201610067®Number=0000000000092561&sum=0 [00:31:02]StoreToDocumentArchive [00:31:02]shift 471 fd 178778 [00:31:02]save to /storage/0471/doc_00178778 [00:31:02]save last doc name /storage/0471/doc_00178778 to /storage/kkm_last_doc_name [00:31:02]save OK [00:31:02]Clear old archive folders... [00:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:31:02]tlvbuf is 002E5400 [00:31:02]SAM_PROTO_ClearQueue [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 09 00 00 [00:31:02]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [00:31:02]RAPDU: 90 00 [00:31:02]wFMCommunicate OK [00:31:02]SAM_PROTO_ClearQueue done [00:31:02]KKMCreateOFDPacket [00:31:02]OFDProtocolAddRootSTLVToBuf [00:31:02]FM_MakeSignedData [00:31:02]FM_MakeSignedData [00:31:02]SAM_PROTO_SignData [00:31:02]wFMCommunicate request_size=4 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 0D 01 02 [00:31:02]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [00:31:02]RAPDU: 90 00 [00:31:02]wFMCommunicate OK [00:31:02]wFMCommunicate request_size=255 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C5 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5A BA 02 00 35 04 06 00 54 E5 [00:31:02]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C5 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5A BA 02 00 35 04 06 00 54 E5 00 00 55 [00:31:02]Write i2c OK [00:31:02]MH_I2C_Read... [00:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:02]Read from MH i2c: E2 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 [00:31:02]MH_I2C_Read... [00:31:02]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [00:31:02]RAPDU: 90 00 [00:31:02]wFMCommunicate OK [00:31:02]wFMCommunicate request_size=9 [00:31:02]MH_SAM_APDU [00:31:02]CAPDU: 80 0D 02 02 04 B5 02 44 FA [00:31:03]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 B5 02 44 FA 00 00 A5 [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 03 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [00:31:03]RAPDU: 90 00 [00:31:03]wFMCommunicate OK [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 0D 03 02 [00:31:03]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 0B 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 0B 00 2F 00 00 C2 06 11 B1 5D C9 C3 5E 90 00 7C [00:31:03]RAPDU: C2 06 11 B1 5D C9 C3 5E 90 00 [00:31:03]wFMCommunicate OK [00:31:03]SAM_PROTO_SignData done [00:31:03]FM_MakeSignedData done [00:31:03]CreateOFDProtocolMessage [00:31:03]wFMCommunicate request_size=4 [00:31:03]MH_SAM_APDU [00:31:03]CAPDU: 80 11 00 00 [00:31:03]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:03]Read from MH i2c: E2 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 17 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [00:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:31:03]wFMCommunicate OK [00:31:03]CreateOFDProtocolMessage done [00:31:03]OFDSenderStorePacket 178778 [00:31:03]StoreOFDPacket docnum=178778 [00:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 85 A5 06 01 18 52 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C5 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5A BA 02 00 35 04 06 00 54 E5 B5 02 44 FA C2 06 11 B1 5D C9 C3 5E [00:31:03]CheckFolder [00:31:03]dirname=/storage/ofd_packets [00:31:03]CheckFolder done [00:31:03]ProducePacketName [00:31:03]name=ofd_packets/00178778 [00:31:03]NVStorageSaveData ofd_packets/00178778 [00:31:03]File name is /storage/ofd_packets/00178778 [00:31:03]Write 300 bytes [00:31:03]NVStorageSaveData done [00:31:03]OFDSenderStorePacket done [00:31:03]KKMCreateOFDPacket done [00:31:03]NVStorageSaveData kkm_last_timestamp [00:31:03]File name is /storage/kkm_last_timestamp [00:31:03]Write 4 bytes [00:31:03]NVStorageSaveData done [00:31:03]ExternCall_PrintAddStr [00:31:03]wPrintStart [00:31:03]Write to MH i2c: 01 00 00 31 00 31 [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: 01 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: 01 07 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [00:31:03]RasterBufferAndPrint [00:31:03]line Счет N : (1)294877 [00:31:03]line ИНН: 02508201610067 [00:31:03]line Контрольно-Кассовый Чек [00:31:03]line ПРОДАЖА [00:31:03]line ТРК (МРК, ГНК) : 71 [00:31:03]line Товар: 2711129700 [00:31:03]line ГАЗ-К-5 [00:31:03]line 20.060 * 0.00 [00:31:03]line = 0.00 [00:31:03]line НДС 12% НСП 1% [00:31:03]line > о реализуемом товаре [00:31:03]line ИТОГО: 0.00 [00:31:03]line НСП 1% : 0.00 [00:31:03]line НДС 12% : 0.00 [00:31:03]line Наличными: 0.00 [00:31:03]line Безнал.: 0.00 [00:31:03]line Место: АЗС № 130 "Партнер Нефть" [00:31:03]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:31:03]line СНО: Общий режим [00:31:03]line Чек 4 24.08.2024 00:31 [00:31:03]line Смена: 471 ФФД: 1.0 [00:31:03]line ЗНМ: 0300000071 [00:31:03]line РНМ: 0000000000092561 [00:31:03]line Версия ККМ: 001 [00:31:03]line Талоны: Топливная Карта [00:31:03]line 90797 [00:31:03]line ФМ: 0000000000871778 [00:31:03]line ФД: 178778 [00:31:03]line ФПД: 93345561068794 [00:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003101&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178778&fm=93345561068794&tin=02508201610067®Number=0000000000092561&sum=0 [00:31:03]written 0, free lines is 4095 [00:31:03]OFD Sender: Processing packet 178778 [packets to send 500, broken 499] [00:31:03]ProducePacketName [00:31:03]name=ofd_packets/00178778 [00:31:03]OFD Sender: To server: pG, [00:31:03]CommunicateWithHost lk.salyk.kg:30040 [00:31:03]ConnectInit lk.salyk.kg [00:31:03]Write to MH i2c: 01 00 00 5B 00 5B [00:31:03]Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: 01 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: 01 07 00 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 D4 0C 42 [00:31:03]RasterBufferAndPrint [00:31:03]line [00:31:03]line [00:31:03]line [00:31:03]line [00:31:03]line [00:31:03]written 0, free lines is 3350 [00:31:03]Connected sock=10 [00:31:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 85 A5 06 01 18 52 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 MH_Cut [00:31:03]37 Write to MH i2c: 30 D1 30 01 06 00 04 62 0B 00 01 34 [00:31:03]00 Write i2c OK [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: D1 [00:31:03]MH_I2C_Read... [00:31:03]Read from MH i2c: D1 D0 01 93 00 D0 [00:31:03]MH_I2C_Read... [00:31:03]90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 4E 00 00 00 00 00 37 Read from MH i2c: D1 01 00 62 00 00 33 04 [00:31:03]06 Write to MH i2c: 00 01 00 00 00 00 00 63 00 00 00 63 00 [00:31:03]13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 Write i2c OK [00:31:03]FC MH_I2C_Read... [00:31:03]03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 C5 29 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5A BA 02 00 35 04 06 00 54 E5 B5 02 44 FA C2 06 11 B1 5D C9 C3 5E [00:31:04]*** Cut start [00:31:04]*** Partial cut [00:31:04]*** CUTSNS_PIN = 1 [00:31:04]*** CUTSNS_PIN = 0 [00:31:04]*** Brake cut motor [00:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 4F BF 47 00 F9 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 31 37 37 38 10 04 04 00 5A BA 02 00 F4 03 04 00 6C D5 C8 66 B6 04 01 00 00 D1 22 56 78 7C 3E FA 49 [00:31:04]CommunicateWithHost err = 0 [00:31:04]CheckOFDResponse [00:31:04]1017 (14) - 77093643461234 [00:31:04]1041 (16) - 0000000000871778 [00:31:04]1040 (4) - 178778 [00:31:04]1012 (4) - 23.08.2024 18:31 [00:31:04]1206 (1) - 0 [00:31:04]OFD Sender: Remove packet 178778 [00:31:04]ProducePacketName [00:31:04]name=ofd_packets/00178778 [00:31:04]NVStorageDeleteData [00:31:05]Read from MH i2c: 01 [00:31:05]MH_I2C_Read... [00:31:05]*** Stop cut motor [00:31:05]*** Cut end [00:31:05]Read from MH i2c: 01 07 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [00:31:05]process_action close_receipt done [00:31:05]requested_data is exist [00:31:05]produce_requested_data [00:31:05]requested_item fm.sn is exist - process it [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 11 00 00 [00:31:05]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 17 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [00:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:31:05]wFMCommunicate OK [00:31:05]requested_item fd.num is exist - process it [00:31:05]SAM_PROTO_GetFieldsCounters [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 13 00 00 [00:31:05]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 62 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5A BA 02 00 0E 04 04 00 D7 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 [00:31: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5A BA 02 00 0E 04 04 00 D7 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:31:05]wFMCommunicate OK [00:31:05]SAM_PROTO_GetFieldsCounters done [00:31:05]requested_item shift.num is exist - process it [00:31:05]requested_item shift.opened is exist - process it [00:31:05]req_shift_opened [00:31:05]FM_GetShiftState [00:31:05]SAM_PROTO_GetShiftState [00:31:05]wFMCommunicate request_size=4 [00:31:05]MH_SAM_APDU [00:31:05]CAPDU: 80 13 01 00 [00:31:05]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [00:31:05]Write i2c OK [00:31:05]MH_I2C_Read... [00:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:05]Read from MH i2c: E2 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 0E 00 [00:31:05]MH_I2C_Read... [00:31:05]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A1 [00:31:05]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:31:05]wFMCommunicate OK [00:31:05]SAM_PROTO_GetShiftState done [00:31:05]FM_GetShiftState done [00:31:05]req_shift_opened done [00:31:05]requested_item shift.open_date is exist - process it [00:31:05]req_shift_open_date [00:31:05]req_shift_open_date done [00:31:05]produce_requested_data done [00:31:05]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178778,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:31:05]process_action_free close_receipt [00:31:05]json_value_free [00:31:05]json_value_free done [00:31:05]process_json_proto returns [00:31:05]Send response to host [00:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178778,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:31:05]free response buf [00:31:05]execute_script done [00:31:05]execute_script returns [00:31:05]free content buf [00:31:05]Sock 8.Close socket [00:31:05]Sock 8.Thread stoped [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:46]recv_with_timeout no data received [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:19]recv_with_timeout no data received [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:31]accept exits with 9 [00:32:31]New connection [00:32:31]New thread 3067002212 created [00:32:31]Thread 3067145572 joined [00:32:31]Waiting for new connection... [00:32:31] Sock 9.Parse request [00:32:31]Sock 9.Check first char [00:32:31]Sock 9.First char is OK [00:32:31]request: POST /json_proto HTTP/1.0 [00:32:31]Method: POST [00:32:31]URL: /json_proto [00:32:31]Method is POST - this is cgi request [00:32:31]url: /json_proto [00:32:31]query_string will be loaded in cgi processing [00:32:31]execute_cgi json_proto POST (null) [00:32:31]execute_cgi path=json_proto method=POST [00:32:31]POST find Content-Length [00:32:31]Host: 172.17.44.131:8080 [00:32:31]Content-Length: 681 [00:32:31]Content-Type: application/json [00:32:31] [00:32:31]POST finish read [00:32:31]Found Content-Length = 681 [00:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "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" ] } } [00:32:31]execute_script... [00:32: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)294887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "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" ] } } [00:32:31]POST & json_proto [00:32:31]process_json_proto [00:32:31]json parsed OK: [00:32:31]protocol is kg_v1.0 [00:32:31]action value=close_receipt [00:32:31]process_action close_receipt [00:32:31]cmd_close_receipt [00:32:31]MH_GetDate [00:32:31]Write to MH i2c: F0 00 00 67 00 56 [00:32:31]Write i2c OK [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: F0 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: F0 09 00 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: F0 09 00 67 00 00 1F 2A C9 66 4F 53 BE 66 9D [00:32:31]GetLastDocTimeStamp 1724459461 [00:32:31]current date 1724459551 [00:32:31]FM_GetShiftState [00:32:31]SAM_PROTO_GetShiftState [00:32:31]wFMCommunicate request_size=4 [00:32:31]MH_SAM_APDU [00:32:31]CAPDU: 80 13 01 00 [00:32:31]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [00:32:31]Write i2c OK [00:32:31]MH_I2C_Read... [00:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:31]Read from MH i2c: E2 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 0E 00 [00:32:31]MH_I2C_Read... [00:32:31]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A3 [00:32:31]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:32:31]wFMCommunicate OK [00:32:31]SAM_PROTO_GetShiftState done [00:32:31]FM_GetShiftState done [00:32:31]opened in 1724458079 [00:32:31]opened+sec_in_day 1724544479 [00:32:31]quantity*price = 50003 [00:32:31]sum+1 = 50005 [00:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 5 24.08.2024 00:32 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178779 ФПД: 144701715200050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003231&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178779&fm=144701715200050&tin=02508201610067®Number=0000000000092561&sum=50000 [00:32:32]StoreToDocumentArchive [00:32:32]shift 471 fd 178779 [00:32:32]save to /storage/0471/doc_00178779 [00:32:32]save last doc name /storage/0471/doc_00178779 to /storage/kkm_last_doc_name [00:32:32]save OK [00:32:32]Clear old archive folders... [00:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:32:32]tlvbuf is 002F1BB0 [00:32:32]SAM_PROTO_ClearQueue [00:32:32]wFMCommunicate request_size=4 [00:32:32]MH_SAM_APDU [00:32:32]CAPDU: 80 09 00 00 [00:32:32]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [00:32:32]Write i2c OK [00:32:32]MH_I2C_Read... [00:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:32]Read from MH i2c: E2 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 03 00 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [00:32:32]RAPDU: 90 00 [00:32:32]wFMCommunicate OK [00:32:32]SAM_PROTO_ClearQueue done [00:32:32]KKMCreateOFDPacket [00:32:32]OFDProtocolAddRootSTLVToBuf [00:32:32]FM_MakeSignedData [00:32:32]FM_MakeSignedData [00:32:32]SAM_PROTO_SignData [00:32:32]wFMCommunicate request_size=4 [00:32:32]MH_SAM_APDU [00:32:32]CAPDU: 80 0D 01 02 [00:32:32]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [00:32:32]Write i2c OK [00:32:32]MH_I2C_Read... [00:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:32]Read from MH i2c: E2 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 03 00 [00:32:32]MH_I2C_Read... [00:32:32]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [00:32:32]RAPDU: 90 00 [00:32:32]wFMCommunicate OK [00:32:32]wFMCommunicate request_size=255 [00:32:32]MH_SAM_APDU [00:32:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5B BA 02 00 35 04 06 00 83 9A [00:32:32]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5B BA 02 00 35 04 06 00 83 9A 00 00 18 [00:32:32]Write i2c OK [00:32:32]MH_I2C_Read... [00:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:33]Read from MH i2c: E2 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 03 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [00:32:33]RAPDU: 90 00 [00:32:33]wFMCommunicate OK [00:32:33]wFMCommunicate request_size=9 [00:32:33]MH_SAM_APDU [00:32:33]CAPDU: 80 0D 02 02 04 FE 55 38 32 [00:32:33]Write to MH i2c: E2 0C 00 78 00 80 0D 02 02 04 00 FE 55 38 32 00 00 B7 [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:33]Read from MH i2c: E2 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 03 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [00:32:33]RAPDU: 90 00 [00:32:33]wFMCommunicate OK [00:32:33]wFMCommunicate request_size=4 [00:32:33]MH_SAM_APDU [00:32:33]CAPDU: 80 0D 03 02 [00:32:33]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:33]Read from MH i2c: E2 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 0B 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 0B 00 79 00 00 58 70 7D 43 BB 49 C1 CB 90 00 0D [00:32:33]RAPDU: 58 70 7D 43 BB 49 C1 CB 90 00 [00:32:33]wFMCommunicate OK [00:32:33]SAM_PROTO_SignData done [00:32:33]FM_MakeSignedData done [00:32:33]CreateOFDProtocolMessage [00:32:33]wFMCommunicate request_size=4 [00:32:33]MH_SAM_APDU [00:32:33]CAPDU: 80 11 00 00 [00:32:33]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:33]Read from MH i2c: E2 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 17 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4D [00:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:32:33]wFMCommunicate OK [00:32:33]CreateOFDProtocolMessage done [00:32:33]OFDSenderStorePacket 178779 [00:32:33]StoreOFDPacket docnum=178779 [00:32:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 03 08 06 01 4D 5C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5B BA 02 00 35 04 06 00 83 9A FE 55 38 32 58 70 7D 43 BB 49 C1 CB [00:32:33]CheckFolder [00:32:33]dirname=/storage/ofd_packets [00:32:33]CheckFolder done [00:32:33]ProducePacketName [00:32:33]name=ofd_packets/00178779 [00:32:33]NVStorageSaveData ofd_packets/00178779 [00:32:33]File name is /storage/ofd_packets/00178779 [00:32:33]Write 300 bytes [00:32:33]NVStorageSaveData done [00:32:33]OFDSenderStorePacket done [00:32:33]KKMCreateOFDPacket done [00:32:33]NVStorageSaveData kkm_last_timestamp [00:32:33]File name is /storage/kkm_last_timestamp [00:32:33]Write 4 bytes [00:32:33]NVStorageSaveData done [00:32:33]ExternCall_PrintAddStr [00:32:33]wPrintStart [00:32:33]Write to MH i2c: 01 00 00 7B 00 7B [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: 01 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: 01 07 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [00:32:33]RasterBufferAndPrint [00:32:33]line Счет N : (1)294887 [00:32:33]line ИНН: 02508201610067 [00:32:33]line Контрольно-Кассовый Чек [00:32:33]line ПРОДАЖА [00:32:33]line ТРК (МРК, ГНК) : 81 [00:32:33]line Товар: 2711129700 [00:32:33]line ГАЗ-К-5 [00:32:33]line 13.370 * 37.40 [00:32:33]line = 500.04 [00:32:33]line НДС 12% НСП 1% [00:32:33]line > о реализуемом товаре [00:32:33]line ОКРУГЛЕНИЕ: -0.04 [00:32:33]line ИТОГО: 500.00 [00:32:33]line Внесено: 500.00 [00:32:33]line СДАЧА: 0.00 [00:32:33]line НСП 1% : 4.42 [00:32:33]line НДС 12% : 53.10 [00:32:33]line Наличными: 500.00 [00:32:33]line Безнал.: 0.00 [00:32:33]line Место: АЗС № 130 "Партнер Нефть" [00:32:33]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:32:33]line СНО: Общий режим [00:32:33]line Чек 5 24.08.2024 00:32 [00:32:33]line Смена: 471 ФФД: 1.0 [00:32:33]line ЗНМ: 0300000071 [00:32:33]line РНМ: 0000000000092561 [00:32:33]line Версия ККМ: 001 [00:32:33]line ФМ: 0000000000871778 [00:32:33]line ФД: 178779 [00:32:33]line ФПД: 144701715200050 [00:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003231&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178779&fm=144701715200050&tin=02508201610067®Number=0000000000092561&sum=50000 [00:32:33]written 0, free lines is 4095 [00:32:33]OFD Sender: Processing packet 178779 [packets to send 500, broken 499] [00:32:33]ProducePacketName [00:32:33]name=ofd_packets/00178779 [00:32:33]OFD Sender: To server: pG, [00:32:33]CommunicateWithHost lk.salyk.kg:30040 [00:32:33]ConnectInit lk.salyk.kg [00:32:33]Write to MH i2c: 01 00 00 A6 00 A6 [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: 01 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: 01 07 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: 01 07 00 A6 00 00 00 00 00 00 B6 0C 6F [00:32:33]RasterBufferAndPrint [00:32:33]line [00:32:33]line [00:32:33]line [00:32:33]line [00:32:33]line [00:32:33]written 0, free lines is 3261 [00:32:33]MH_Cut [00:32:33]Write to MH i2c: D1 01 00 AD 00 01 7F [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: D1 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: D1 01 00 [00:32:33]MH_I2C_Read... [00:32:33]Read from MH i2c: D1 01 00 AD 00 00 7E [00:32:33]Write to MH i2c: 01 00 00 AE 00 AE [00:32:33]Write i2c OK [00:32:33]MH_I2C_Read... [00:32:33]Connected sock=10 [00:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 03 08 06 01 4D 5C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 1F 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5B BA 02 00 35 04 06 00 83 9A FE 55 38 32 58 70 7D 43 BB 49 C1 CB [00:32:34]*** Cut start [00:32:34]*** Partial cut [00:32:34]*** CUTSNS_PIN = 1 [00:32:34]*** CUTSNS_PIN = 0 [00:32:34]*** Brake cut motor [00:32:34]Read from MH i2c: 01 [00:32:34]MH_I2C_Read... [00:32:34]*** Stop cut motor [00:32:34]*** Cut end [00:32:34]Read from MH i2c: 01 07 00 [00:32:34]MH_I2C_Read... [00:32:34]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [00:32:34]process_action close_receipt done [00:32:34]requested_data is exist [00:32:34]produce_requested_data [00:32:34]requested_item fm.sn is exist - process it [00:32:34]wFMCommunicate request_size=4 [00:32:34]MH_SAM_APDU [00:32:34]CAPDU: 80 11 00 00 [00:32:34]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [00:32:34]Write i2c OK [00:32:34]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 17 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [00:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:32:35]wFMCommunicate OK [00:32:35]requested_item fd.num is exist - process it [00:32:35]SAM_PROTO_GetFieldsCounters [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 13 00 00 [00:32:35]Write to MH i2c: E2 08 00 B0 00 80 13 00 00 00 00 00 00 2C [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 62 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 62 00 B0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5B BA 02 00 0E 04 04 00 D7 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 4F [00:32: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5B BA 02 00 0E 04 04 00 D7 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:32:35]wFMCommunicate OK [00:32:35]SAM_PROTO_GetFieldsCounters done [00:32:35]requested_item shift.num is exist - process it [00:32:35]requested_item shift.opened is exist - process it [00:32:35]req_shift_opened [00:32:35]FM_GetShiftState [00:32:35]SAM_PROTO_GetShiftState [00:32:35]wFMCommunicate request_size=4 [00:32:35]MH_SAM_APDU [00:32:35]CAPDU: 80 13 01 00 [00:32:35]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [00:32:35]Write i2c OK [00:32:35]MH_I2C_Read... [00:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:35]Read from MH i2c: E2 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0E 00 [00:32:35]MH_I2C_Read... [00:32:35]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EC [00:32:35]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:32:35]wFMCommunicate OK [00:32:35]SAM_PROTO_GetShiftState done [00:32:35]FM_GetShiftState done [00:32:35]req_shift_opened done [00:32:35]requested_item shift.open_date is exist - process it [00:32:35]req_shift_open_date [00:32:35]req_shift_open_date done [00:32:35]produce_requested_data done [00:32:35]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178779,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:32:35]process_action_free close_receipt [00:32:35]json_value_free [00:32:35]json_value_free done [00:32:35]process_json_proto returns [00:32:35]Send response to host [00:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178779,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:32:35]free response buf [00:32:35]execute_script done [00:32:35]execute_script returns [00:32:35]free content buf [00:32:35]Sock 9.Close socket [00:32:35]Sock 9.Thread stoped [00:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 A3 24 47 00 58 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 31 37 37 38 10 04 04 00 5B BA 02 00 F4 03 04 00 C6 D5 C8 66 B6 04 01 00 00 45 F5 A8 A6 59 C3 BD 13 [00:32:35]CommunicateWithHost err = 0 [00:32:35]CheckOFDResponse [00:32:35]1017 (14) - 77093643461234 [00:32:35]1041 (16) - 0000000000871778 [00:32:35]1040 (4) - 178779 [00:32:35]1012 (4) - 23.08.2024 18:32 [00:32:35]1206 (1) - 0 [00:32:35]OFD Sender: Remove packet 178779 [00:32:35]ProducePacketName [00:32:35]name=ofd_packets/00178779 [00:32:35]NVStorageDeleteData [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:42]recv_with_timeout no data received [00:32:45]OFD Sender: No OFD packet to send [00:32:49]accept exits with 8 [00:32:49]New connection [00:32:49]New thread 3067145572 created [00:32:49]Thread 3067002212 joined [00:32:49]Waiting for new connection... [00:32:49] Sock 8.Parse request [00:32:49]Sock 8.Check first char [00:32:49]Sock 8.First char is OK [00:32:49]request: POST /json_proto HTTP/1.0 [00:32:49]Method: POST [00:32:49]URL: /json_proto [00:32:49]Method is POST - this is cgi request [00:32:49]url: /json_proto [00:32:49]query_string will be loaded in cgi processing [00:32:49]execute_cgi json_proto POST (null) [00:32:49]execute_cgi path=json_proto method=POST [00:32:49]POST find Content-Length [00:32:49]Host: 172.17.44.131:8080 [00:32:49]Content-Length: 677 [00:32:49]Content-Type: application/json [00:32:49] [00:32:49]POST finish read [00:32:49]Found Content-Length = 677 [00:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294888", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [00:32:49]execute_script... [00:32: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)294888", "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" : 67.80, "quantity" : 4.430, "sum" : 300.35, "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" ] } } [00:32:49]POST & json_proto [00:32:49]process_json_proto [00:32:49]json parsed OK: [00:32:49]protocol is kg_v1.0 [00:32:49]action value=close_receipt [00:32:49]process_action close_receipt [00:32:49]cmd_close_receipt [00:32:49]MH_GetDate [00:32:49]Write to MH i2c: F0 00 00 B2 00 A1 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: F0 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: F0 09 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: F0 09 00 B2 00 00 31 2A C9 66 4F 53 BE 66 FA [00:32:49]GetLastDocTimeStamp 1724459551 [00:32:49]current date 1724459569 [00:32:49]FM_GetShiftState [00:32:49]SAM_PROTO_GetShiftState [00:32:49]wFMCommunicate request_size=4 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 13 01 00 [00:32:49]Write to MH i2c: E2 08 00 B3 00 80 13 01 00 00 00 00 00 30 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 0E 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 0E 00 B3 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EE [00:32:49]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:32:49]wFMCommunicate OK [00:32:49]SAM_PROTO_GetShiftState done [00:32:49]FM_GetShiftState done [00:32:49]opened in 1724458079 [00:32:49]opened+sec_in_day 1724544479 [00:32:49]quantity*price = 30035 [00:32:49]sum+1 = 30036 [00:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 6 24.08.2024 00:32 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178780 ФПД: 250346779153379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003249&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178780&fm=250346779153379&tin=02508201610067®Number=0000000000092561&sum=30000 [00:32:50]StoreToDocumentArchive [00:32:50]shift 471 fd 178780 [00:32:50]save to /storage/0471/doc_00178780 [00:32:50]save last doc name /storage/0471/doc_00178780 to /storage/kkm_last_doc_name [00:32:50]save OK [00:32:50]Clear old archive folders... [00:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:32:50]tlvbuf is 002DD8D0 [00:32:50]SAM_PROTO_ClearQueue [00:32:50]wFMCommunicate request_size=4 [00:32:50]MH_SAM_APDU [00:32:50]CAPDU: 80 09 00 00 [00:32:50]Write to MH i2c: E2 08 00 C0 00 80 09 00 00 00 00 00 00 32 [00:32:50]Write i2c OK [00:32:50]MH_I2C_Read... [00:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:50]Read from MH i2c: E2 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [00:32:50]RAPDU: 90 00 [00:32:50]wFMCommunicate OK [00:32:50]SAM_PROTO_ClearQueue done [00:32:50]KKMCreateOFDPacket [00:32:50]OFDProtocolAddRootSTLVToBuf [00:32:50]FM_MakeSignedData [00:32:50]FM_MakeSignedData [00:32:50]SAM_PROTO_SignData [00:32:50]wFMCommunicate request_size=4 [00:32:50]MH_SAM_APDU [00:32:50]CAPDU: 80 0D 01 02 [00:32:50]Write to MH i2c: E2 08 00 C1 00 80 0D 01 02 00 00 00 00 3A [00:32:50]Write i2c OK [00:32:50]MH_I2C_Read... [00:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:50]Read from MH i2c: E2 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [00:32:50]RAPDU: 90 00 [00:32:50]wFMCommunicate OK [00:32:50]wFMCommunicate request_size=255 [00:32:50]MH_SAM_APDU [00:32: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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 31 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5C BA 02 00 35 04 06 00 E3 [00:32:50]Write to MH i2c: E2 02 01 C2 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 31 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5C BA 02 00 35 04 06 00 E3 00 00 3F [00:32:50]Write i2c OK [00:32:50]MH_I2C_Read... [00:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:50]Read from MH i2c: E2 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [00:32:50]RAPDU: 90 00 [00:32:50]wFMCommunicate OK [00:32:50]wFMCommunicate request_size=10 [00:32:50]MH_SAM_APDU [00:32:50]CAPDU: 80 0D 02 02 05 B0 66 D7 93 E3 [00:32:50]Write to MH i2c: E2 0D 00 C3 00 80 0D 02 02 05 00 B0 66 D7 93 E3 00 00 AA [00:32:50]Write i2c OK [00:32:50]MH_I2C_Read... [00:32:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:50]Read from MH i2c: E2 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [00:32:50]RAPDU: 90 00 [00:32:50]wFMCommunicate OK [00:32:50]wFMCommunicate request_size=4 [00:32:50]MH_SAM_APDU [00:32:50]CAPDU: 80 0D 03 02 [00:32:50]Write to MH i2c: E2 08 00 C4 00 80 0D 03 02 00 00 00 00 3F [00:32:50]Write i2c OK [00:32:50]MH_I2C_Read... [00:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:50]OFD Sender: No OFD packet to send [00:32:50]Read from MH i2c: E2 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 0B 00 [00:32:50]MH_I2C_Read... [00:32:50]Read from MH i2c: E2 0B 00 C4 00 00 16 59 A3 E4 62 38 A2 4D 90 00 BF [00:32:50]RAPDU: 16 59 A3 E4 62 38 A2 4D 90 00 [00:32:50]wFMCommunicate OK [00:32:50]SAM_PROTO_SignData done [00:32:50]FM_MakeSignedData done [00:32:50]CreateOFDProtocolMessage [00:32:50]wFMCommunicate request_size=4 [00:32:50]MH_SAM_APDU [00:32:50]CAPDU: 80 11 00 00 [00:32:50]Write to MH i2c: E2 08 00 C5 00 80 11 00 00 00 00 00 00 3F [00:32:50]Write i2c OK [00:32:50]MH_I2C_Read... [00:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:51]Read from MH i2c: E2 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: E2 17 00 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: E2 17 00 C5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 98 [00:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:32:51]wFMCommunicate OK [00:32:51]CreateOFDProtocolMessage done [00:32:51]OFDSenderStorePacket 178780 [00:32:51]StoreOFDPacket docnum=178780 [00:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 16 EC 07 01 25 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 31 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5C BA 02 00 35 04 06 00 E3 B0 66 D7 93 E3 16 59 A3 E4 62 38 A2 4D [00:32:51]CheckFolder [00:32:51]dirname=/storage/ofd_packets [00:32:51]CheckFolder done [00:32:51]ProducePacketName [00:32:51]name=ofd_packets/00178780 [00:32:51]NVStorageSaveData ofd_packets/00178780 [00:32:51]File name is /storage/ofd_packets/00178780 [00:32:51]Write 301 bytes [00:32:51]NVStorageSaveData done [00:32:51]OFDSenderStorePacket done [00:32:51]KKMCreateOFDPacket done [00:32:51]NVStorageSaveData kkm_last_timestamp [00:32:51]File name is /storage/kkm_last_timestamp [00:32:51]Write 4 bytes [00:32:51]NVStorageSaveData done [00:32:51]ExternCall_PrintAddStr [00:32:51]wPrintStart [00:32:51]Write to MH i2c: 01 00 00 C6 00 C6 [00:32:51]Write i2c OK [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: 01 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: 01 07 00 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: 01 07 00 C6 00 00 00 00 00 00 FF 0F DB [00:32:51]RasterBufferAndPrint [00:32:51]line Счет N : (1)294888 [00:32:51]line ИНН: 02508201610067 [00:32:51]line Контрольно-Кассовый Чек [00:32:51]line ПРОДАЖА [00:32:51]line ТРК (МРК, ГНК) : 32 [00:32:51]line Товар: 2710124130 [00:32:51]line Аи-92-К-5 [00:32:51]line 4.430 * 67.80 [00:32:51]line = 300.35 [00:32:51]line НДС 12% НСП 1% [00:32:51]line > о реализуемом товаре [00:32:51]line ОКРУГЛЕНИЕ: -0.35 [00:32:51]line ИТОГО: 300.00 [00:32:51]line Внесено: 300.00 [00:32:51]line СДАЧА: 0.00 [00:32:51]line НСП 1% : 2.66 [00:32:51]line НДС 12% : 31.90 [00:32:51]line Наличными: 300.00 [00:32:51]line Безнал.: 0.00 [00:32:51]line Место: АЗС № 130 "Партнер Нефть" [00:32:51]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:32:51]line СНО: Общий режим [00:32:51]line Чек 6 24.08.2024 00:32 [00:32:51]line Смена: 471 ФФД: 1.0 [00:32:51]line ЗНМ: 0300000071 [00:32:51]line РНМ: 0000000000092561 [00:32:51]line Версия ККМ: 001 [00:32:51]line ФМ: 0000000000871778 [00:32:51]line ФД: 178780 [00:32:51]line ФПД: 250346779153379 [00:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003249&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178780&fm=250346779153379&tin=02508201610067®Number=0000000000092561&sum=30000 [00:32:51]written 0, free lines is 4095 [00:32:51]OFD Sender: Processing packet 178780 [packets to send 500, broken 499] [00:32:51]ProducePacketName [00:32:51]name=ofd_packets/00178780 [00:32:51]OFD Sender: To server: pG, [00:32:51]CommunicateWithHost lk.salyk.kg:30040 [00:32:51]ConnectInit lk.salyk.kg [00:32:51]Write to MH i2c: 01 00 00 F1 00 F1 [00:32:51]Write i2c OK [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: 01 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: 01 07 00 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: 01 07 00 F1 00 00 00 00 00 00 C7 0C CB [00:32:51]RasterBufferAndPrint [00:32:51]line [00:32:51]line [00:32:51]line [00:32:51]line [00:32:51]line [00:32:51]written 0, free lines is 3280 [00:32:51]MH_Cut [00:32:51]Write to MH i2c: D1 01 00 F8 00 01 CA [00:32:51]Write i2c OK [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: D1 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: D1 01 00 [00:32:51]MH_I2C_Read... [00:32:51]Read from MH i2c: D1 01 00 F8 00 00 C9 [00:32:51]Write to MH i2c: 01 00 00 F9 00 F9 [00:32:51]Write i2c OK [00:32:51]MH_I2C_Read... [00:32:52]*** Cut start [00:32:52]*** Partial cut [00:32:52]*** CUTSNS_PIN = 1 [00:32:52]*** CUTSNS_PIN = 0 [00:32:52]*** Brake cut motor [00:32:52]Connected sock=11 [00:32:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 16 EC 07 01 25 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 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 31 2A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5C BA 02 00 35 04 06 00 E3 B0 66 D7 93 E3 16 59 A3 E4 62 38 A2 4D [00:32:52]Read from MH i2c: 01 [00:32:52]MH_I2C_Read... [00:32:52]*** Stop cut motor [00:32:52]*** Cut end [00:32:52]Read from MH i2c: 01 07 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [00:32:52]process_action close_receipt done [00:32:52]requested_data is exist [00:32:52]produce_requested_data [00:32:52]requested_item fm.sn is exist - process it [00:32:52]wFMCommunicate request_size=4 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 11 00 00 [00:32:52]Write to MH i2c: E2 08 00 FA 00 80 11 00 00 00 00 00 00 74 [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 17 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 17 00 FA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 CD [00:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:32:52]wFMCommunicate OK [00:32:52]requested_item fd.num is exist - process it [00:32:52]SAM_PROTO_GetFieldsCounters [00:32:52]wFMCommunicate request_size=4 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 13 00 00 [00:32:52]Write to MH i2c: E2 08 00 FB 00 80 13 00 00 00 00 00 00 77 [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:53]Read from MH i2c: E2 [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: E2 62 00 [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: E2 62 00 FB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5C BA 02 00 0E 04 04 00 D7 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 9E [00:32: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5C BA 02 00 0E 04 04 00 D7 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:32:53]wFMCommunicate OK [00:32:53]SAM_PROTO_GetFieldsCounters done [00:32:53]requested_item shift.num is exist - process it [00:32:53]requested_item shift.opened is exist - process it [00:32:53]req_shift_opened [00:32:53]FM_GetShiftState [00:32:53]SAM_PROTO_GetShiftState [00:32:53]wFMCommunicate request_size=4 [00:32:53]MH_SAM_APDU [00:32:53]CAPDU: 80 13 01 00 [00:32:53]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [00:32:53]Write i2c OK [00:32:53]MH_I2C_Read... [00:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:53]Read from MH i2c: E2 [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: E2 0E 00 [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 37 [00:32:53]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:32:53]wFMCommunicate OK [00:32:53]SAM_PROTO_GetShiftState done [00:32:53]FM_GetShiftState done [00:32:53]req_shift_opened done [00:32:53]requested_item shift.open_date is exist - process it [00:32:53]req_shift_open_date [00:32:53]req_shift_open_date done [00:32:53]produce_requested_data done [00:32:53]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178780,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:32:53]process_action_free close_receipt [00:32:53]json_value_free [00:32:53]json_value_free done [00:32:53]process_json_proto returns [00:32:53]Send response to host [00:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178780,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:32:53]free response buf [00:32:53]execute_script done [00:32:53]execute_script returns [00:32:53]free content buf [00:32:53]Sock 8.Close socket [00:32:53]Sock 8.Thread stoped [00:32:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 D8 06 47 00 47 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 31 37 37 38 10 04 04 00 5C BA 02 00 F4 03 04 00 D8 D5 C8 66 B6 04 01 00 00 5E 26 5F 2A E0 6E A9 11 [00:32:55]CommunicateWithHost err = 0 [00:32:55]CheckOFDResponse [00:32:55]1017 (14) - 77093643461234 [00:32:55]1041 (16) - 0000000000871778 [00:32:55]1040 (4) - 178780 [00:32:55]1012 (4) - 23.08.2024 18:32 [00:32:55]1206 (1) - 0 [00:32:55]OFD Sender: Remove packet 178780 [00:32:55]ProducePacketName [00:32:55]name=ofd_packets/00178780 [00:32:55]NVStorageDeleteData [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:02]recv_with_timeout no data received [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:30]OFD Sender: No OFD packet to send [00:34:35]OFD Sender: No OFD packet to send [00:34:40]OFD Sender: No OFD packet to send [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:19]recv_with_timeout no data received [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:22]accept exits with 10 [00:36:22]New connection [00:36:22]New thread 3067002212 created [00:36:22]Thread 3067145572 joined [00:36:22]Waiting for new connection... [00:36:22] Sock 10.Parse request [00:36:22]Sock 10.Check first char [00:36:22]Sock 10.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.44.131:8080 [00:36:22]Content-Length: 679 [00:36:22]Content-Type: application/json [00:36:22] [00:36:22]POST finish read [00:36:22]Found Content-Length = 679 [00:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:22]execute_script... [00:36: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)294890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194800", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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=close_receipt [00:36:22]process_action close_receipt [00:36:22]cmd_close_receipt [00:36:22]MH_GetDate [00:36:22]Write to MH i2c: F0 00 00 FD 00 EC [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: F0 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: F0 09 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: F0 09 00 FD 00 00 06 2B C9 66 4F 53 BE 66 1B [00:36:22]GetLastDocTimeStamp 1724459569 [00:36:22]current date 1724459782 [00:36:22]FM_GetShiftState [00:36:22]SAM_PROTO_GetShiftState [00:36:22]wFMCommunicate request_size=4 [00:36:22]MH_SAM_APDU [00:36:22]CAPDU: 80 13 01 00 [00:36:22]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [00:36:22]Write i2c OK [00:36:22]MH_I2C_Read... [00:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:22]Read from MH i2c: E2 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 0E 00 [00:36:22]MH_I2C_Read... [00:36:22]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 39 [00:36:22]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:36:22]wFMCommunicate OK [00:36:22]SAM_PROTO_GetShiftState done [00:36:22]FM_GetShiftState done [00:36:22]opened in 1724458079 [00:36:22]opened+sec_in_day 1724544479 [00:36:22]quantity*price = 200025 [00:36:22]sum+1 = 200026 [00:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 7 24.08.2024 00:36 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178781 ФПД: 86591483934494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003622&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178781&fm=86591483934494&tin=02508201610067®Number=0000000000092561&sum=200000 [00:36:23]StoreToDocumentArchive [00:36:23]shift 471 fd 178781 [00:36:23]save to /storage/0471/doc_00178781 [00:36:23]save last doc name /storage/0471/doc_00178781 to /storage/kkm_last_doc_name [00:36:23]save OK [00:36:23]Clear old archive folders... [00:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:36:23]tlvbuf is 00303860 [00:36:23]SAM_PROTO_ClearQueue [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 09 00 00 [00:36:23]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [00:36:23]RAPDU: 90 00 [00:36:23]wFMCommunicate OK [00:36:23]SAM_PROTO_ClearQueue done [00:36:23]KKMCreateOFDPacket [00:36:23]OFDProtocolAddRootSTLVToBuf [00:36:23]FM_MakeSignedData [00:36:23]FM_MakeSignedData [00:36:23]SAM_PROTO_SignData [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 0D 01 02 [00:36:23]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [00:36:23]RAPDU: 90 00 [00:36:23]wFMCommunicate OK [00:36:23]wFMCommunicate request_size=255 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5D BA 02 00 35 04 06 00 4E C1 26 A3 [00:36:23]Write to MH i2c: E2 02 01 0D 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5D BA 02 00 35 04 06 00 4E C1 26 A3 00 00 32 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [00:36:23]RAPDU: 90 00 [00:36:23]wFMCommunicate OK [00:36:23]wFMCommunicate request_size=7 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 0D 02 02 02 F7 1E [00:36:23]Write to MH i2c: E2 0A 00 0E 01 80 0D 02 02 02 00 F7 1E 00 00 A2 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [00:36:23]RAPDU: 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 0D 03 02 [00:36:23]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 0B 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 0B 00 0F 01 00 73 A0 0F 25 23 08 CF A3 90 00 70 [00:36:23]RAPDU: 73 A0 0F 25 23 08 CF A3 90 00 [00:36:23]wFMCommunicate OK [00:36:23]SAM_PROTO_SignData done [00:36:23]FM_MakeSignedData done [00:36:23]CreateOFDProtocolMessage [00:36:23]wFMCommunicate request_size=4 [00:36:23]MH_SAM_APDU [00:36:23]CAPDU: 80 11 00 00 [00:36:23]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:23]Read from MH i2c: E2 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 17 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E4 [00:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:36:23]wFMCommunicate OK [00:36:23]CreateOFDProtocolMessage done [00:36:23]OFDSenderStorePacket 178781 [00:36:23]StoreOFDPacket docnum=178781 [00:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A9 56 04 01 7C FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5D BA 02 00 35 04 06 00 4E C1 26 A3 F7 1E 73 A0 0F 25 23 08 CF A3 [00:36:23]CheckFolder [00:36:23]dirname=/storage/ofd_packets [00:36:23]CheckFolder done [00:36:23]ProducePacketName [00:36:23]name=ofd_packets/00178781 [00:36:23]NVStorageSaveData ofd_packets/00178781 [00:36:23]File name is /storage/ofd_packets/00178781 [00:36:23]Write 298 bytes [00:36:23]NVStorageSaveData done [00:36:23]OFDSenderStorePacket done [00:36:23]KKMCreateOFDPacket done [00:36:23]NVStorageSaveData kkm_last_timestamp [00:36:23]File name is /storage/kkm_last_timestamp [00:36:23]Write 4 bytes [00:36:23]NVStorageSaveData done [00:36:23]ExternCall_PrintAddStr [00:36:23]wPrintStart [00:36:23]Write to MH i2c: 01 00 00 11 01 12 [00:36:23]Write i2c OK [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 07 00 [00:36:23]MH_I2C_Read... [00:36:23]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [00:36:23]RasterBufferAndPrint [00:36:23]line Счет N : (1)294890 [00:36:23]line ИНН: 02508201610067 [00:36:23]line Контрольно-Кассовый Чек [00:36:23]line ПРОДАЖА [00:36:23]line ТРК (МРК, ГНК) : 34 [00:36:23]line Товар: 2710194800 [00:36:23]line ДТ-К-5 [00:36:23]line 26.250 * 76.20 [00:36:23]line = 2000.25 [00:36:23]line НДС 12% НСП 1% [00:36:23]line > о реализуемом товаре [00:36:23]line ОКРУГЛЕНИЕ: -0.25 [00:36:23]line ИТОГО: 2000.00 [00:36:23]line Внесено: 2000.00 [00:36:23]line СДАЧА: 0.00 [00:36:23]line НСП 1% : 17.70 [00:36:23]line НДС 12% : 212.42 [00:36:23]line Наличными: 2000.00 [00:36:23]line Безнал.: 0.00 [00:36:23]line Место: АЗС № 130 "Партнер Нефть" [00:36:23]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:36:23]line СНО: Общий режим [00:36:23]line Чек 7 24.08.2024 00:36 [00:36:23]line Смена: 471 ФФД: 1.0 [00:36:23]line ЗНМ: 0300000071 [00:36:23]line РНМ: 0000000000092561 [00:36:23]line Версия ККМ: 001 [00:36:23]line ФМ: 0000000000871778 [00:36:23]line ФД: 178781 [00:36:23]line ФПД: 86591483934494 [00:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003622&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178781&fm=86591483934494&tin=02508201610067®Number=0000000000092561&sum=200000 [00:36:24]OFD Sender: Processing packet 178781 [packets to send 500, broken 499] [00:36:24]ProducePacketName [00:36:24]name=ofd_packets/00178781 [00:36:24]OFD Sender: To server: pG, [00:36:24]CommunicateWithHost lk.salyk.kg:30040 [00:36:24]ConnectInit lk.salyk.kg [00:36:24]written 0, free lines is 4095 [00:36:24]Write to MH i2c: 01 00 00 3C 01 3D [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 07 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 C6 0C 16 [00:36:24]RasterBufferAndPrint [00:36:24]line [00:36:24]line [00:36:24]line [00:36:24]line [00:36:24]line [00:36:24]written 0, free lines is 3276 [00:36:24]MH_Cut [00:36:24]Write to MH i2c: D1 01 00 43 01 01 16 [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: D1 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: D1 01 00 [00:36:24]MH_I2C_Read... [00:36:24]Read from MH i2c: D1 01 00 43 01 00 15 [00:36:24]Write to MH i2c: 01 00 00 44 01 45 [00:36:24]Write i2c OK [00:36:24]MH_I2C_Read... [00:36:24]Connected sock=9 [00:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0C 01 00 00 A9 56 04 01 7C FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 06 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5D BA 02 00 35 04 06 00 4E C1 26 A3 F7 1E 73 A0 0F 25 23 08 CF A3 [00:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 8C 8C 47 00 F8 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5D BA 02 00 F4 03 04 00 AD D6 C8 66 B6 04 01 00 00 EF C1 54 CA 74 1E A9 93 [00:36:25]CommunicateWithHost err = 0 [00:36:25]CheckOFDResponse [00:36:25]1017 (14) - 77093643461234 [00:36:25]1041 (16) - 0000000000871778 [00:36:25]1040 (4) - 178781 [00:36:25]1012 (4) - 23.08.2024 18:36 [00:36:25]1206 (1) - 0 [00:36:25]OFD Sender: Remove packet 178781 [00:36:25]ProducePacketName [00:36:25]name=ofd_packets/00178781 [00:36:25]NVStorageDeleteData [00:36:25]*** Cut start [00:36:25]*** Partial cut [00:36:25]*** CUTSNS_PIN = 1 [00:36:25]*** CUTSNS_PIN = 0 [00:36:25]*** Brake cut motor [00:36:25]OFD Sender: No OFD packet to send [00:36:25]Read from MH i2c: 01 [00:36:25]MH_I2C_Read... [00:36:25]*** Stop cut motor [00:36:25]*** Cut end [00:36:25]Read from MH i2c: 01 07 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [00:36:25]process_action close_receipt done [00:36:25]requested_data is exist [00:36:25]produce_requested_data [00:36:25]requested_item fm.sn is exist - process it [00:36:25]wFMCommunicate request_size=4 [00:36:25]MH_SAM_APDU [00:36:25]CAPDU: 80 11 00 00 [00:36:25]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:25]Read from MH i2c: E2 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: E2 17 00 [00:36:25]MH_I2C_Read... [00:36:25]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 19 [00:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:36:25]wFMCommunicate OK [00:36:25]requested_item fd.num is exist - process it [00:36:25]SAM_PROTO_GetFieldsCounters [00:36:25]wFMCommunicate request_size=4 [00:36:25]MH_SAM_APDU [00:36:25]CAPDU: 80 13 00 00 [00:36:25]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [00:36:25]Write i2c OK [00:36:25]MH_I2C_Read... [00:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:26]Read from MH i2c: E2 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 62 00 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5D BA 02 00 0E 04 04 00 D7 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 EE [00:36: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5D BA 02 00 0E 04 04 00 D7 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:26]wFMCommunicate OK [00:36:26]SAM_PROTO_GetFieldsCounters done [00:36:26]requested_item shift.num is exist - process it [00:36:26]requested_item shift.opened is exist - process it [00:36:26]req_shift_opened [00:36:26]FM_GetShiftState [00:36:26]SAM_PROTO_GetShiftState [00:36:26]wFMCommunicate request_size=4 [00:36:26]MH_SAM_APDU [00:36:26]CAPDU: 80 13 01 00 [00:36:26]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [00:36:26]Write i2c OK [00:36:26]MH_I2C_Read... [00:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:26]Read from MH i2c: E2 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 0E 00 [00:36:26]MH_I2C_Read... [00:36:26]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 83 [00:36:26]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:36:26]wFMCommunicate OK [00:36:26]SAM_PROTO_GetShiftState done [00:36:26]FM_GetShiftState done [00:36:26]req_shift_opened done [00:36:26]requested_item shift.open_date is exist - process it [00:36:26]req_shift_open_date [00:36:26]req_shift_open_date done [00:36:26]produce_requested_data done [00:36:26]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178781,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:36:26]process_action_free close_receipt [00:36:26]json_value_free [00:36:26]json_value_free done [00:36:26]process_json_proto returns [00:36:26]Send response to host [00:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178781,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:36:26]free response buf [00:36:26]execute_script done [00:36:26]execute_script returns [00:36:26]free content buf [00:36:26]Sock 10.Close socket [00:36:26]Sock 10.Thread stoped [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:22]recv_with_timeout no data received [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:30]accept exits with 8 [00:39:30]New connection [00:39:30]New thread 3067145572 created [00:39:30]Thread 3067002212 joined [00:39:30]Waiting for new connection... [00:39:30] Sock 8.Parse request [00:39:30]Sock 8.Check first char [00:39:30]Sock 8.First char is OK [00:39:30]request: POST /json_proto HTTP/1.0 [00:39:30]Method: POST [00:39:30]URL: /json_proto [00:39:30]Method is POST - this is cgi request [00:39:30]url: /json_proto [00:39:30]query_string will be loaded in cgi processing [00:39:30]execute_cgi json_proto POST (null) [00:39:30]execute_cgi path=json_proto method=POST [00:39:30]POST find Content-Length [00:39:30]Host: 172.17.44.131:8080 [00:39:30]Content-Length: 682 [00:39:30]Content-Type: application/json [00:39:30] [00:39:30]POST finish read [00:39:30]Found Content-Length = 682 [00:39:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294893", "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" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:30]execute_script... [00:39: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)294893", "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" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:30]POST & json_proto [00:39:30]process_json_proto [00:39:30]json parsed OK: [00:39:30]protocol is kg_v1.0 [00:39:30]action value=close_receipt [00:39:30]process_action close_receipt [00:39:30]cmd_close_receipt [00:39:30]MH_GetDate [00:39:30]Write to MH i2c: F0 00 00 48 01 38 [00:39:30]Write i2c OK [00:39:30]MH_I2C_Read... [00:39:30]Read from MH i2c: F0 [00:39:30]MH_I2C_Read... [00:39:30]Read from MH i2c: F0 09 00 [00:39:30]MH_I2C_Read... [00:39:30]Read from MH i2c: F0 09 00 48 01 00 C2 2B C9 66 4F 53 BE 66 23 [00:39:30]GetLastDocTimeStamp 1724459782 [00:39:30]current date 1724459970 [00:39:30]FM_GetShiftState [00:39:30]SAM_PROTO_GetShiftState [00:39:30]wFMCommunicate request_size=4 [00:39:30]MH_SAM_APDU [00:39:30]CAPDU: 80 13 01 00 [00:39:30]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [00:39:30]Write i2c OK [00:39:30]MH_I2C_Read... [00:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:30]Read from MH i2c: E2 [00:39:30]MH_I2C_Read... [00:39:30]Read from MH i2c: E2 0E 00 [00:39:30]MH_I2C_Read... [00:39:30]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 85 [00:39:30]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:39:30]wFMCommunicate OK [00:39:30]SAM_PROTO_GetShiftState done [00:39:30]FM_GetShiftState done [00:39:30]opened in 1724458079 [00:39:30]opened+sec_in_day 1724544479 [00:39:30]quantity*price = 130072 [00:39:30]sum+1 = 130074 [00:39:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 8 24.08.2024 00:39 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178782 ФПД: 133444898098847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003930&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178782&fm=133444898098847&tin=02508201610067®Number=0000000000092561&sum=130000 [00:39:31]StoreToDocumentArchive [00:39:31]shift 471 fd 178782 [00:39:31]save to /storage/0471/doc_00178782 [00:39:31]save last doc name /storage/0471/doc_00178782 to /storage/kkm_last_doc_name [00:39:31]save OK [00:39:31]Clear old archive folders... [00:39:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:39:31]tlvbuf is 002F5410 [00:39:31]SAM_PROTO_ClearQueue [00:39:31]wFMCommunicate request_size=4 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 09 00 00 [00:39:31]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [00:39:31]RAPDU: 90 00 [00:39:31]wFMCommunicate OK [00:39:31]SAM_PROTO_ClearQueue done [00:39:31]KKMCreateOFDPacket [00:39:31]OFDProtocolAddRootSTLVToBuf [00:39:31]FM_MakeSignedData [00:39:31]FM_MakeSignedData [00:39:31]SAM_PROTO_SignData [00:39:31]wFMCommunicate request_size=4 [00:39:31]MH_SAM_APDU [00:39:31]CAPDU: 80 0D 01 02 [00:39:31]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:31]Read from MH i2c: E2 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 [00:39:31]MH_I2C_Read... [00:39:31]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [00:39:31]RAPDU: 90 00 [00:39:31]wFMCommunicate OK [00:39:31]wFMCommunicate request_size=255 [00:39:31]MH_SAM_APDU [00:39: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 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 C2 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5E BA 02 00 35 04 06 00 79 [00:39:31]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 C2 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5E BA 02 00 35 04 06 00 79 00 00 A3 [00:39:31]Write i2c OK [00:39:31]MH_I2C_Read... [00:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:32]Read from MH i2c: E2 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 03 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [00:39:32]RAPDU: 90 00 [00:39:32]wFMCommunicate OK [00:39:32]wFMCommunicate request_size=10 [00:39:32]MH_SAM_APDU [00:39:32]CAPDU: 80 0D 02 02 05 5E 0F BF 8E 9F [00:39:32]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 5E 0F BF 8E 9F 00 00 37 [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:32]Read from MH i2c: E2 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 03 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [00:39:32]RAPDU: 90 00 [00:39:32]wFMCommunicate OK [00:39:32]wFMCommunicate request_size=4 [00:39:32]MH_SAM_APDU [00:39:32]CAPDU: 80 0D 03 02 [00:39:32]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:32]Read from MH i2c: E2 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 0B 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 0B 00 5A 01 00 28 E7 72 C0 73 DA DD 80 90 00 C2 [00:39:32]RAPDU: 28 E7 72 C0 73 DA DD 80 90 00 [00:39:32]wFMCommunicate OK [00:39:32]SAM_PROTO_SignData done [00:39:32]FM_MakeSignedData done [00:39:32]CreateOFDProtocolMessage [00:39:32]wFMCommunicate request_size=4 [00:39:32]MH_SAM_APDU [00:39:32]CAPDU: 80 11 00 00 [00:39:32]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:32]Read from MH i2c: E2 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 17 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2F [00:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:39:32]wFMCommunicate OK [00:39:32]CreateOFDProtocolMessage done [00:39:32]OFDSenderStorePacket 178782 [00:39:32]StoreOFDPacket docnum=178782 [00:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9D 2F 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 C2 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5E BA 02 00 35 04 06 00 79 5E 0F BF 8E 9F 28 E7 72 C0 73 DA DD 80 [00:39:32]CheckFolder [00:39:32]dirname=/storage/ofd_packets [00:39:32]CheckFolder done [00:39:32]ProducePacketName [00:39:32]name=ofd_packets/00178782 [00:39:32]NVStorageSaveData ofd_packets/00178782 [00:39:32]File name is /storage/ofd_packets/00178782 [00:39:32]Write 301 bytes [00:39:32]NVStorageSaveData done [00:39:32]OFDSenderStorePacket done [00:39:32]KKMCreateOFDPacket done [00:39:32]NVStorageSaveData kkm_last_timestamp [00:39:32]File name is /storage/kkm_last_timestamp [00:39:32]Write 4 bytes [00:39:32]NVStorageSaveData done [00:39:32]ExternCall_PrintAddStr [00:39:32]wPrintStart [00:39:32]Write to MH i2c: 01 00 00 5C 01 5D [00:39:32]Write i2c OK [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: 01 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: 01 07 00 [00:39:32]MH_I2C_Read... [00:39:32]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [00:39:32]RasterBufferAndPrint [00:39:32]line Счет N : (1)294893 [00:39:32]line ИНН: 02508201610067 [00:39:32]line Контрольно-Кассовый Чек [00:39:32]line ПРОДАЖА [00:39:32]line ТРК (МРК, ГНК) : 63 [00:39:32]line Товар: 2710124500 [00:39:32]line Аи-95-К-5 [00:39:32]line 17.530 * 74.20 [00:39:32]line = 1300.73 [00:39:32]line НДС 12% НСП 1% [00:39:32]line > о реализуемом товаре [00:39:32]line ОКРУГЛЕНИЕ: -0.73 [00:39:32]line ИТОГО: 1300.00 [00:39:32]line Внесено: 1300.00 [00:39:32]line СДАЧА: 0.00 [00:39:32]line НСП 1% : 11.51 [00:39:32]line НДС 12% : 138.13 [00:39:32]line Наличными: 1300.00 [00:39:32]line Безнал.: 0.00 [00:39:32]line Место: АЗС № 130 "Партнер Нефть" [00:39:32]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:39:32]line СНО: Общий режим [00:39:32]line Чек 8 24.08.2024 00:39 [00:39:32]line Смена: 471 ФФД: 1.0 [00:39:32]line ЗНМ: 0300000071 [00:39:32]line РНМ: 0000000000092561 [00:39:32]line Версия ККМ: 001 [00:39:32]line ФМ: 0000000000871778 [00:39:32]line ФД: 178782 [00:39:32]line ФПД: 133444898098847 [00:39:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T003930&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178782&fm=133444898098847&tin=02508201610067®Number=0000000000092561&sum=130000 [00:39:32]OFD Sender: Processing packet 178782 [packets to send 500, broken 499] [00:39:32]ProducePacketName [00:39:32]name=ofd_packets/00178782 [00:39:32]OFD Sender: To server: pG, [00:39:32]CommunicateWithHost lk.salyk.kg:30040 [00:39:32]ConnectInit lk.salyk.kg [00:39:32]written 0, free lines is 4095 [00:39:33]Write to MH i2c: 01 00 00 87 01 88 [00:39:33]Write i2c OK [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: 01 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: 01 07 00 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 C1 0C 5C [00:39:33]RasterBufferAndPrint [00:39:33]line [00:39:33]line [00:39:33]line [00:39:33]line [00:39:33]line [00:39:33]written 0, free lines is 3271 [00:39:33]MH_Cut [00:39:33]Write to MH i2c: D1 01 00 8E 01 01 61 [00:39:33]Write i2c OK [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: D1 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: D1 01 00 [00:39:33]MH_I2C_Read... [00:39:33]Read from MH i2c: D1 01 00 8E 01 00 60 [00:39:33]Write to MH i2c: 01 00 00 8F 01 90 [00:39:33]Write i2c OK [00:39:33]MH_I2C_Read... [00:39:33]Connected sock=10 [00:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 9D 2F 07 01 3D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 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 C2 2B C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5E BA 02 00 35 04 06 00 79 5E 0F BF 8E 9F 28 E7 72 C0 73 DA DD 80 [00:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 00 41 47 00 FE 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 31 37 37 38 10 04 04 00 5E BA 02 00 F4 03 04 00 69 D7 C8 66 B6 04 01 00 00 78 58 E7 D6 D6 9B 4D B7 [00:39:33]CommunicateWithHost err = 0 [00:39:33]CheckOFDResponse [00:39:33]1017 (14) - 77093643461234 [00:39:33]1041 (16) - 0000000000871778 [00:39:33]1040 (4) - 178782 [00:39:33]1012 (4) - 23.08.2024 18:39 [00:39:33]1206 (1) - 0 [00:39:33]OFD Sender: Remove packet 178782 [00:39:33]ProducePacketName [00:39:33]name=ofd_packets/00178782 [00:39:33]NVStorageDeleteData [00:39:33]*** Cut start [00:39:33]*** Partial cut [00:39:33]*** CUTSNS_PIN = 1 [00:39:33]*** CUTSNS_PIN = 0 [00:39:34]*** Brake cut motor [00:39:34]OFD Sender: No OFD packet to send [00:39:34]Read from MH i2c: 01 [00:39:34]MH_I2C_Read... [00:39:34]*** Stop cut motor [00:39:34]*** Cut end [00:39:34]Read from MH i2c: 01 07 00 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [00:39:34]process_action close_receipt done [00:39:34]requested_data is exist [00:39:34]produce_requested_data [00:39:34]requested_item fm.sn is exist - process it [00:39:34]wFMCommunicate request_size=4 [00:39:34]MH_SAM_APDU [00:39:34]CAPDU: 80 11 00 00 [00:39:34]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [00:39:34]Write i2c OK [00:39:34]MH_I2C_Read... [00:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:34]Read from MH i2c: E2 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: E2 17 00 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 64 [00:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:39:34]wFMCommunicate OK [00:39:34]requested_item fd.num is exist - process it [00:39:34]SAM_PROTO_GetFieldsCounters [00:39:34]wFMCommunicate request_size=4 [00:39:34]MH_SAM_APDU [00:39:34]CAPDU: 80 13 00 00 [00:39:34]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [00:39:34]Write i2c OK [00:39:34]MH_I2C_Read... [00:39:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:34]Read from MH i2c: E2 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: E2 62 00 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5E BA 02 00 0E 04 04 00 D7 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 3D [00:39: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5E BA 02 00 0E 04 04 00 D7 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:39:34]wFMCommunicate OK [00:39:34]SAM_PROTO_GetFieldsCounters done [00:39:34]requested_item shift.num is exist - process it [00:39:34]requested_item shift.opened is exist - process it [00:39:34]req_shift_opened [00:39:34]FM_GetShiftState [00:39:34]SAM_PROTO_GetShiftState [00:39:34]wFMCommunicate request_size=4 [00:39:34]MH_SAM_APDU [00:39:34]CAPDU: 80 13 01 00 [00:39:34]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [00:39:34]Write i2c OK [00:39:34]MH_I2C_Read... [00:39:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:34]Read from MH i2c: E2 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: E2 0E 00 [00:39:34]MH_I2C_Read... [00:39:34]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 CE [00:39:34]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:39:34]wFMCommunicate OK [00:39:34]SAM_PROTO_GetShiftState done [00:39:34]FM_GetShiftState done [00:39:34]req_shift_opened done [00:39:34]requested_item shift.open_date is exist - process it [00:39:34]req_shift_open_date [00:39:34]req_shift_open_date done [00:39:34]produce_requested_data done [00:39:34]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178782,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:39:34]process_action_free close_receipt [00:39:34]json_value_free [00:39:34]json_value_free done [00:39:34]process_json_proto returns [00:39:34]Send response to host [00:39:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178782,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:39:34]free response buf [00:39:34]execute_script done [00:39:34]execute_script returns [00:39:34]free content buf [00:39:34]Sock 8.Close socket [00:39:34]Sock 8.Thread stoped [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:19]recv_with_timeout no data received [00:40:24]OFD Sender: No OFD packet to send [00:40:29]OFD Sender: No OFD packet to send [00:40:32]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:43:48]ConnectInit Can't connect to host [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:32]recv_with_timeout no data received [00:44:34]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:45]OFD Sender: No OFD packet to send [00:45:46]recv_with_timeout no data received [00:45:50]OFD Sender: No OFD packet to send [00:45:55]OFD Sender: No OFD packet to send [00:46:00]OFD Sender: No OFD packet to send [00:46:05]OFD Sender: No OFD packet to send [00:46:10]OFD Sender: No OFD packet to send [00:46:15]OFD Sender: No OFD packet to send [00:46:20]OFD Sender: No OFD packet to send [00:46:25]OFD Sender: No OFD packet to send [00:46:30]OFD Sender: No OFD packet to send [00:46:35]OFD Sender: No OFD packet to send [00:46:40]OFD Sender: No OFD packet to send [00:46:45]OFD Sender: No OFD packet to send [00:46:50]OFD Sender: No OFD packet to send [00:46:55]OFD Sender: No OFD packet to send [00:47:00]OFD Sender: No OFD packet to send [00:47:05]OFD Sender: No OFD packet to send [00:47:10]OFD Sender: No OFD packet to send [00:47:15]OFD Sender: No OFD packet to send [00:47:20]OFD Sender: No OFD packet to send [00:47:25]OFD Sender: No OFD packet to send [00:47:30]OFD Sender: No OFD packet to send [00:47:35]OFD Sender: No OFD packet to send [00:47:40]OFD Sender: No OFD packet to send [00:47:45]OFD Sender: No OFD packet to send [00:47:50]OFD Sender: No OFD packet to send [00:47:55]OFD Sender: No OFD packet to send [00:48:00]OFD Sender: No OFD packet to send [00:48:05]OFD Sender: No OFD packet to send [00:48:10]OFD Sender: No OFD packet to send [00:48:15]OFD Sender: No OFD packet to send [00:48:20]OFD Sender: No OFD packet to send [00:48:25]OFD Sender: No OFD packet to send [00:48:30]OFD Sender: No OFD packet to send [00:48:35]OFD Sender: No OFD packet to send [00:48:40]OFD Sender: No OFD packet to send [00:48:45]OFD Sender: No OFD packet to send [00:48:50]OFD Sender: No OFD packet to send [00:48:55]OFD Sender: No OFD packet to send [00:49:00]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:54]recv_with_timeout no data received [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]recv_with_timeout no data received [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:27]accept exits with 9 [00:55:27]New connection [00:55:27]New thread 3067002212 created [00:55:27]Thread 3067145572 joined [00:55:27]Waiting for new connection... [00:55:27] Sock 9.Parse request [00:55:27]Sock 9.Check first char [00:55:27]Sock 9.First char is OK [00:55:27]request: POST /json_proto HTTP/1.0 [00:55:27]Method: POST [00:55:27]URL: /json_proto [00:55:27]Method is POST - this is cgi request [00:55:27]url: /json_proto [00:55:27]query_string will be loaded in cgi processing [00:55:27]execute_cgi json_proto POST (null) [00:55:27]execute_cgi path=json_proto method=POST [00:55:27]POST find Content-Length [00:55:27]Host: 172.17.44.131:8080 [00:55:27]Content-Length: 682 [00:55:27]Content-Type: application/json [00:55:27] [00:55:27]POST finish read [00:55:27]Found Content-Length = 682 [00:55:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294901", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:27]execute_script... [00:55: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)294901", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:27]POST & json_proto [00:55:27]process_json_proto [00:55:27]json parsed OK: [00:55:27]protocol is kg_v1.0 [00:55:27]action value=close_receipt [00:55:27]process_action close_receipt [00:55:27]cmd_close_receipt [00:55:27]MH_GetDate [00:55:27]Write to MH i2c: F0 00 00 93 01 83 [00:55:27]Write i2c OK [00:55:27]MH_I2C_Read... [00:55:27]Read from MH i2c: F0 [00:55:27]MH_I2C_Read... [00:55:27]Read from MH i2c: F0 09 00 [00:55:27]MH_I2C_Read... [00:55:27]Read from MH i2c: F0 09 00 93 01 00 7F 2F C9 66 4F 53 BE 66 2F [00:55:27]GetLastDocTimeStamp 1724459970 [00:55:27]current date 1724460927 [00:55:27]FM_GetShiftState [00:55:27]SAM_PROTO_GetShiftState [00:55:27]wFMCommunicate request_size=4 [00:55:27]MH_SAM_APDU [00:55:27]CAPDU: 80 13 01 00 [00:55:27]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [00:55:27]Write i2c OK [00:55:27]MH_I2C_Read... [00:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:27]Read from MH i2c: E2 [00:55:27]MH_I2C_Read... [00:55:27]Read from MH i2c: E2 0E 00 [00:55:27]MH_I2C_Read... [00:55:27]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D0 [00:55:27]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:55:27]wFMCommunicate OK [00:55:27]SAM_PROTO_GetShiftState done [00:55:27]FM_GetShiftState done [00:55:27]opened in 1724458079 [00:55:27]opened+sec_in_day 1724544479 [00:55:27]quantity*price = 100021 [00:55:27]sum+1 = 100023 [00:55:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 9 24.08.2024 00:55 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178783 ФПД: 214516583251225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T005527&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178783&fm=214516583251225&tin=02508201610067®Number=0000000000092561&sum=100000 [00:55:28]StoreToDocumentArchive [00:55:28]shift 471 fd 178783 [00:55:28]save to /storage/0471/doc_00178783 [00:55:28]save last doc name /storage/0471/doc_00178783 to /storage/kkm_last_doc_name [00:55:28]save OK [00:55:28]Clear old archive folders... [00:55:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:28]tlvbuf is 002F8320 [00:55:28]SAM_PROTO_ClearQueue [00:55:28]wFMCommunicate request_size=4 [00:55:28]MH_SAM_APDU [00:55:28]CAPDU: 80 09 00 00 [00:55:28]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:28]Read from MH i2c: E2 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [00:55:28]RAPDU: 90 00 [00:55:28]wFMCommunicate OK [00:55:28]SAM_PROTO_ClearQueue done [00:55:28]KKMCreateOFDPacket [00:55:28]OFDProtocolAddRootSTLVToBuf [00:55:28]FM_MakeSignedData [00:55:28]FM_MakeSignedData [00:55:28]SAM_PROTO_SignData [00:55:28]wFMCommunicate request_size=4 [00:55:28]MH_SAM_APDU [00:55:28]CAPDU: 80 0D 01 02 [00:55:28]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:28]Read from MH i2c: E2 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [00:55:28]RAPDU: 90 00 [00:55:28]wFMCommunicate OK [00:55:28]wFMCommunicate request_size=255 [00:55:28]MH_SAM_APDU [00:55: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 2F C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5F BA 02 00 35 04 06 00 C3 [00:55:28]Write to MH i2c: E2 02 01 A3 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 2F C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5F BA 02 00 35 04 06 00 C3 00 00 68 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:28]Read from MH i2c: E2 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [00:55:28]RAPDU: 90 00 [00:55:28]wFMCommunicate OK [00:55:28]wFMCommunicate request_size=10 [00:55:28]MH_SAM_APDU [00:55:28]CAPDU: 80 0D 02 02 05 1A 08 BE 3D 19 [00:55:28]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 1A 08 BE 3D 19 00 00 5F [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:28]Read from MH i2c: E2 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [00:55:28]RAPDU: 90 00 [00:55:28]wFMCommunicate OK [00:55:28]wFMCommunicate request_size=4 [00:55:28]MH_SAM_APDU [00:55:28]CAPDU: 80 0D 03 02 [00:55:28]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:28]Read from MH i2c: E2 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 0B 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 0B 00 A5 01 00 ED 66 70 F3 08 08 A0 DE 90 00 66 [00:55:28]RAPDU: ED 66 70 F3 08 08 A0 DE 90 00 [00:55:28]wFMCommunicate OK [00:55:28]SAM_PROTO_SignData done [00:55:28]FM_MakeSignedData done [00:55:28]CreateOFDProtocolMessage [00:55:28]wFMCommunicate request_size=4 [00:55:28]MH_SAM_APDU [00:55:28]CAPDU: 80 11 00 00 [00:55:28]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:28]Read from MH i2c: E2 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 17 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 7A [00:55:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:55:28]wFMCommunicate OK [00:55:28]CreateOFDProtocolMessage done [00:55:28]OFDSenderStorePacket 178783 [00:55:28]StoreOFDPacket docnum=178783 [00:55:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 C1 F8 07 01 7C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 2F C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5F BA 02 00 35 04 06 00 C3 1A 08 BE 3D 19 ED 66 70 F3 08 08 A0 DE [00:55:28]CheckFolder [00:55:28]dirname=/storage/ofd_packets [00:55:28]CheckFolder done [00:55:28]ProducePacketName [00:55:28]name=ofd_packets/00178783 [00:55:28]NVStorageSaveData ofd_packets/00178783 [00:55:28]File name is /storage/ofd_packets/00178783 [00:55:28]Write 301 bytes [00:55:28]NVStorageSaveData done [00:55:28]OFDSenderStorePacket done [00:55:28]KKMCreateOFDPacket done [00:55:28]NVStorageSaveData kkm_last_timestamp [00:55:28]File name is /storage/kkm_last_timestamp [00:55:28]Write 4 bytes [00:55:28]NVStorageSaveData done [00:55:28]ExternCall_PrintAddStr [00:55:28]wPrintStart [00:55:28]Write to MH i2c: 01 00 00 A7 01 A8 [00:55:28]Write i2c OK [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 [00:55:28]MH_I2C_Read... [00:55:28]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [00:55:28]RasterBufferAndPrint [00:55:28]line Счет N : (1)294901 [00:55:28]line ИНН: 02508201610067 [00:55:28]line Контрольно-Кассовый Чек [00:55:28]line ПРОДАЖА [00:55:28]line ТРК (МРК, ГНК) : 63 [00:55:28]line Товар: 2710124500 [00:55:28]line Аи-95-К-5 [00:55:28]line 13.480 * 74.20 [00:55:28]line = 1000.22 [00:55:28]line НДС 12% НСП 1% [00:55:28]line > о реализуемом товаре [00:55:28]line ОКРУГЛЕНИЕ: -0.22 [00:55:28]line ИТОГО: 1000.00 [00:55:28]line Внесено: 1000.00 [00:55:28]line СДАЧА: 0.00 [00:55:28]line НСП 1% : 8.85 [00:55:28]line НДС 12% : 106.22 [00:55:28]line Наличными: 1000.00 [00:55:28]line Безнал.: 0.00 [00:55:28]line Место: АЗС № 130 "Партнер Нефть" [00:55:28]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [00:55:28]line СНО: Общий режим [00:55:28]line Чек 9 24.08.2024 00:55 [00:55:28]line Смена: 471 ФФД: 1.0 [00:55:28]line ЗНМ: 0300000071 [00:55:28]line РНМ: 0000000000092561 [00:55:28]line Версия ККМ: 001 [00:55:28]line ФМ: 0000000000871778 [00:55:28]line ФД: 178783 [00:55:28]line ФПД: 214516583251225 [00:55:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T005527&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178783&fm=214516583251225&tin=02508201610067®Number=0000000000092561&sum=100000 [00:55:28]written 0, free lines is 4095 [00:55:28]OFD Sender: Processing packet 178783 [packets to send 500, broken 499] [00:55:28]ProducePacketName [00:55:28]name=ofd_packets/00178783 [00:55:28]OFD Sender: To server: pG, [00:55:28]CommunicateWithHost lk.salyk.kg:30040 [00:55:28]ConnectInit lk.salyk.kg [00:55:29]Write to MH i2c: 01 00 00 D2 01 D3 [00:55:29]Write i2c OK [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: 01 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: 01 07 00 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 C4 0C AA [00:55:29]RasterBufferAndPrint [00:55:29]line [00:55:29]line [00:55:29]line [00:55:29]line [00:55:29]line [00:55:29]written 0, free lines is 3274 [00:55:29]MH_Cut [00:55:29]Write to MH i2c: D1 01 00 D9 01 01 AC [00:55:29]Write i2c OK [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: D1 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: D1 01 00 [00:55:29]MH_I2C_Read... [00:55:29]Read from MH i2c: D1 01 00 D9 01 00 AB [00:55:29]Write to MH i2c: 01 00 00 DA 01 DB [00:55:29]Write i2c OK [00:55:29]MH_I2C_Read... [00:55:30]*** Cut start [00:55:30]*** Partial cut [00:55:30]*** CUTSNS_PIN = 1 [00:55:30]*** CUTSNS_PIN = 0 [00:55:30]Connected sock=10 [00:55:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 C1 F8 07 01 7C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 7F 2F C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5F BA 02 00 35 04 06 00 C3 1A 08 BE 3D 19 ED 66 70 F3 08 08 A0 DE [00:55:30]*** Brake cut motor [00:55:30]Read from MH i2c: 01 [00:55:30]MH_I2C_Read... [00:55:30]*** Stop cut motor [00:55:30]*** Cut end [00:55:30]Read from MH i2c: 01 07 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [00:55:30]process_action close_receipt done [00:55:30]requested_data is exist [00:55:30]produce_requested_data [00:55:30]requested_item fm.sn is exist - process it [00:55:30]wFMCommunicate request_size=4 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 11 00 00 [00:55:30]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:30]Read from MH i2c: E2 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 17 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 AF [00:55:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [00:55:30]wFMCommunicate OK [00:55:30]requested_item fd.num is exist - process it [00:55:30]SAM_PROTO_GetFieldsCounters [00:55:30]wFMCommunicate request_size=4 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 13 00 00 [00:55:30]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:30]Read from MH i2c: E2 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 62 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5F BA 02 00 0E 04 04 00 D7 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 8C [00:55: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 5F BA 02 00 0E 04 04 00 D7 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:55:30]wFMCommunicate OK [00:55:30]SAM_PROTO_GetFieldsCounters done [00:55:30]requested_item shift.num is exist - process it [00:55:30]requested_item shift.opened is exist - process it [00:55:30]req_shift_opened [00:55:30]FM_GetShiftState [00:55:30]SAM_PROTO_GetShiftState [00:55:30]wFMCommunicate request_size=4 [00:55:30]MH_SAM_APDU [00:55:30]CAPDU: 80 13 01 00 [00:55:30]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [00:55:30]Write i2c OK [00:55:30]MH_I2C_Read... [00:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:30]Read from MH i2c: E2 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 0E 00 [00:55:30]MH_I2C_Read... [00:55:30]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 19 [00:55:30]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [00:55:30]wFMCommunicate OK [00:55:30]SAM_PROTO_GetShiftState done [00:55:30]FM_GetShiftState done [00:55:30]req_shift_opened done [00:55:30]requested_item shift.open_date is exist - process it [00:55:30]req_shift_open_date [00:55:30]req_shift_open_date done [00:55:30]produce_requested_data done [00:55:30]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178783,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [00:55:30]process_action_free close_receipt [00:55:30]json_value_free [00:55:30]json_value_free done [00:55:30]process_json_proto returns [00:55:30]Send response to host [00:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178783,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [00:55:30]free response buf [00:55:30]execute_script done [00:55:30]execute_script returns [00:55:30]free content buf [00:55:30]Sock 9.Close socket [00:55:30]Sock 9.Thread stoped [00:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 32 2A 47 00 1F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 5F BA 02 00 F4 03 04 00 26 DB C8 66 B6 04 01 00 00 BB 9C DF C7 74 26 EC 6F [00:55:30]CommunicateWithHost err = 0 [00:55:30]CheckOFDResponse [00:55:30]1017 (14) - 77093643461234 [00:55:30]1041 (16) - 0000000000871778 [00:55:30]1040 (4) - 178783 [00:55:30]1012 (4) - 23.08.2024 18:55 [00:55:30]1206 (1) - 0 [00:55:30]OFD Sender: Remove packet 178783 [00:55:30]ProducePacketName [00:55:30]name=ofd_packets/00178783 [00:55:30]NVStorageDeleteData [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:43]recv_with_timeout no data received [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]recv_with_timeout no data received [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:38]recv_with_timeout no data received [00:56:41]OFD Sender: No OFD packet to send [00:57:33]ConnectInit Can't connect to host [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [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:28]recv_with_timeout no data received [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:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:48]recv_with_timeout no data received [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:15]recv_with_timeout no data received [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:05]recv_with_timeout no data received [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:56]recv_with_timeout no data received [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:07]recv_with_timeout no data received [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:46]recv_with_timeout no data received [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:06]recv_with_timeout no data received [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:37]recv_with_timeout no data received [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:49]recv_with_timeout no data received [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]recv_with_timeout no data received [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:49]OFD Sender: No OFD packet to send [01:12:54]OFD Sender: No OFD packet to send [01:12:59]OFD Sender: No OFD packet to send [01:13:04]OFD Sender: No OFD packet to send [01:13:09]OFD Sender: No OFD packet to send [01:13:14]OFD Sender: No OFD packet to send [01:13:19]OFD Sender: No OFD packet to send [01:13:24]OFD Sender: No OFD packet to send [01:13:29]OFD Sender: No OFD packet to send [01:13:34]OFD Sender: No OFD packet to send [01:13:39]OFD Sender: No OFD packet to send [01:13:44]OFD Sender: No OFD packet to send [01:13:49]OFD Sender: No OFD packet to send [01:13:54]OFD Sender: No OFD packet to send [01:13:59]OFD Sender: No OFD packet to send [01:14:04]OFD Sender: No OFD packet to send [01:14:09]OFD Sender: No OFD packet to send [01:14:14]OFD Sender: No OFD packet to send [01:14:50]ConnectInit Can't connect to host [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:07]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 60 BA 02 00 0E 04 04 00 D7 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 0C [01:19: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 60 BA 02 00 0E 04 04 00 D7 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 [01:19:02]wFMCommunicate OK [01:19:02]SAM_PROTO_GetFieldsCounters done [01:19:02]requested_item shift.num is exist - process it [01:19:02]requested_item shift.opened is exist - process it [01:19:02]req_shift_opened [01:19:02]FM_GetShiftState [01:19:02]SAM_PROTO_GetShiftState [01:19:02]wFMCommunicate request_size=4 [01:19:02]MH_SAM_APDU [01:19:02]CAPDU: 80 13 01 00 [01:19:02]Write to MH i2c: E2 08 00 5A 00 80 13 01 00 00 00 00 00 D7 [01:19:02]Write i2c OK [01:19:02]MH_I2C_Read... [01:19:02]Read from MH i2c: E2 [01:19:02]MH_I2C_Read... [01:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:02]Read from MH i2c: E2 0E 00 [01:19:02]MH_I2C_Read... [01:19:02]Read from MH i2c: E2 0E 00 5A 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 95 [01:19:02]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [01:19:02]wFMCommunicate OK [01:19:02]SAM_PROTO_GetShiftState done [01:19:02]FM_GetShiftState done [01:19:02]req_shift_opened done [01:19:02]requested_item shift.open_date is exist - process it [01:19:02]req_shift_open_date [01:19:02]req_shift_open_date done [01:19:02]produce_requested_data done [01:19:02]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178784,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [01:19:02]process_action_free close_receipt [01:19:02]json_value_free [01:19:02]json_value_free done [01:19:02]process_json_proto returns [01:19:02]Send response to host [01:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178784,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [01:19:02]free response buf [01:19:02]execute_script done [01:19:02]execute_script returns [01:19:02]free content buf [01:19:02]Sock 8.Close socket [01:19:02]Sock 8.Thread stoped [01:19:05]ConnectInit Can't take IP for lk.salyk.kg [01:19:05]CommunicateWithHost connect error [01:19:05]CommunicateWithHost err = -1 [01:19:05]OFD Sender: Server communicate error [01:19:10]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:19:10]ProducePacketName [01:19:10]name=ofd_packets/00178784 [01:19:10]OFD Sender: To server: pG, [01:19:10]CommunicateWithHost lk.salyk.kg:30040 [01:19:10]ConnectInit lk.salyk.kg [01:19:11]accept exits with 10 [01:19:11]New connection [01:19:11]New thread 3067288932 created [01:19:11]Thread 3067432292 joined [01:19:11]Waiting for new connection... [01:19:11] Sock 10.Parse request [01:19:11]Sock 10.Check first char [01:19:11]Sock 10.First char is OK [01:19:11]request: POST /json_proto HTTP/1.0 [01:19:11]Method: POST [01:19:11]URL: /json_proto [01:19:11]Method is POST - this is cgi request [01:19:11]url: /json_proto [01:19:11]query_string will be loaded in cgi processing [01:19:11]execute_cgi json_proto POST (null) [01:19:11]execute_cgi path=json_proto method=POST [01:19:11]POST find Content-Length [01:19:11]Host: 172.17.44.131:8080 [01:19:11]Content-Length: 215 [01:19:11]Content-Type: application/json [01:19:11] [01:19:11]POST finish read [01:19:11]Found Content-Length = 215 [01:19:11]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" ] } } [01:19:11]execute_script... [01:19:11]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" ] } } [01:19:11]POST & json_proto [01:19:11]process_json_proto [01:19:11]json parsed OK: [01:19:11]protocol is kg_v1.0 [01:19:11]action value=get_value [01:19:11]process_action get_value [01:19:11]cmd_get_value [01:19:11]process_action get_value done [01:19:11]requested_data is exist [01:19:11]produce_requested_data [01:19:11]requested_item kkm.sn is exist - process it [01:19:11]requested_item kkm.ver is exist - process it [01:19:11]requested_item fm.sn is exist - process it [01:19:11]wFMCommunicate request_size=4 [01:19:11]MH_SAM_APDU [01:19:11]CAPDU: 80 11 00 00 [01:19:11]Write to MH i2c: E2 08 00 5B 00 80 11 00 00 00 00 00 00 D5 [01:19:11]Write i2c OK [01:19:11]MH_I2C_Read... [01:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:19:11]Read from MH i2c: E2 [01:19:11]MH_I2C_Read... [01:19:11]Read from MH i2c: E2 17 00 [01:19:11]MH_I2C_Read... [01:19:11]Read from MH i2c: E2 17 00 5B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 2E [01:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [01:19:11]wFMCommunicate OK [01:19:11]requested_item fd.num is exist - process it [01:19:11]SAM_PROTO_GetFieldsCounters [01:19:11]wFMCommunicate request_size=4 [01:19:11]MH_SAM_APDU [01:19:11]CAPDU: 80 13 00 00 [01:19:11]Write to MH i2c: E2 08 00 5C 00 80 13 00 00 00 00 00 00 D8 [01:19:11]Write i2c OK [01:19:11]MH_I2C_Read... [01:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:19:11]Read from MH i2c: E2 [01:19:11]MH_I2C_Read... [01:19:11]Read from MH i2c: E2 62 00 [01:19:11]MH_I2C_Read... [01:19:11]Read from MH i2c: E2 62 00 5C 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 60 BA 02 00 0E 04 04 00 D7 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 0F [01: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 60 BA 02 00 0E 04 04 00 D7 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 [01:19:11]wFMCommunicate OK [01:19:11]SAM_PROTO_GetFieldsCounters done [01:19:11]requested_item shift.num is exist - process it [01:19:11]requested_item shift.opened is exist - process it [01:19:11]req_shift_opened [01:19:11]FM_GetShiftState [01:19:11]SAM_PROTO_GetShiftState [01:19:11]wFMCommunicate request_size=4 [01:19:11]MH_SAM_APDU [01:19:11]CAPDU: 80 13 01 00 [01:19:11]Write to MH i2c: E2 08 00 5D 00 80 13 01 00 00 00 00 00 DA [01:19:11]Write i2c OK [01:19:11]MH_I2C_Read... [01:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:19:11]Read from MH i2c: E2 [01:19:11]MH_I2C_Read... [01:19:11]Read from MH i2c: E2 0E 00 [01:19:11]MH_I2C_Read... [01:19:11]Read from MH i2c: E2 0E 00 5D 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 98 [01:19:11]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [01:19:11]wFMCommunicate OK [01:19:11]SAM_PROTO_GetShiftState done [01:19:11]FM_GetShiftState done [01:19:11]req_shift_opened done [01:19:11]requested_item shift.open_date is exist - process it [01:19:11]req_shift_open_date [01:19:11]req_shift_open_date done [01:19:11]produce_requested_data done [01:19:11]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178784,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [01:19:11]process_action_free get_value [01:19:11]json_value_free [01:19:11]json_value_free done [01:19:11]process_json_proto returns [01:19:12]Send response to host [01:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178784,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [01:19:12]free response buf [01:19:12]execute_script done [01:19:12]execute_script returns [01:19:12]free content buf [01:19:12]Sock 10.Close socket [01:19:12]Sock 10.Thread stoped [01:19:12]accept exits with 12 [01:19:12]New connection [01:19:12]New thread 3067432292 created [01:19:12]Thread 3067288932 joined [01:19:12]Waiting for new connection... [01:19:12] Sock 12.Parse request [01:19:12]Sock 12.Check first char [01:19:12]Sock 12.First char is OK [01:19:12]request: POST /json_proto HTTP/1.0 [01:19:12]Method: POST [01:19:12]URL: /json_proto [01:19:12]Method is POST - this is cgi request [01:19:12]url: /json_proto [01:19:12]query_string will be loaded in cgi processing [01:19:12]execute_cgi json_proto POST (null) [01:19:12]execute_cgi path=json_proto method=POST [01:19:12]POST find Content-Length [01:19:12]Host: 172.17.44.131:8080 [01:19:12]Content-Length: 331 [01:19:12]Content-Type: application/json [01:19:12] [01:19:12]POST finish read [01:19:12]Found Content-Length = 331 [01:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:19:12]execute_script... [01:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [01:19:12]POST & json_proto [01:19:12]process_json_proto [01:19:12]json parsed OK: [01:19:12]protocol is kg_v1.0 [01:19:12]action value=get_value [01:19:12]process_action get_value [01:19:12]cmd_get_value [01:19:12]process_action get_value done [01:19:12]requested_data is exist [01:19:12]produce_requested_data [01:19:12]requested_item fm.sale.total is exist - process it [01:19:12]SAM_PROTO_GetFMData [01:19:12]wFMCommunicate request_size=4 [01:19:12]MH_SAM_APDU [01:19:12]CAPDU: 80 13 03 00 [01:19:12]Write to MH i2c: E2 08 00 5E 00 80 13 03 00 00 00 00 00 DD [01:19:12]Write i2c OK [01:19:12]MH_I2C_Read... [01:19:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [01:19:12]Read from MH i2c: E2 [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: E2 FD 00 [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: E2 FD 00 5E 00 00 C6 04 85 04 C2 04 6E 04 04 00 B2 B6 02 00 69 04 A4 00 6F 04 04 00 1B B5 02 00 B1 04 05 00 72 44 B7 2B 05 70 04 05 00 F7 6A 06 15 04 72 04 05 00 7B D9 B0 16 01 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0E C0 9A 8C 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 A7 5D B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 D1 [01:19:12]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 B2 B6 02 00 69 04 A4 00 6F 04 04 00 1B B5 02 00 B1 04 05 00 72 44 B7 2B 05 70 04 05 00 F7 6A 06 15 04 72 04 05 00 7B D9 B0 16 01 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 0E C0 9A 8C 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 A7 5D B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [01:19:12]wFMCommunicate OK [01:19:12]wFMCommunicate request_size=4 [01:19:12]MH_SAM_APDU [01:19:12]CAPDU: 80 17 00 00 [01:19:12]Write to MH i2c: E2 08 00 5F 00 80 17 00 00 00 00 00 00 DF [01:19:12]Write i2c OK [01:19:12]MH_I2C_Read... [01:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:12]Read from MH i2c: E2 [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: E2 FD 00 [01:19:12]MH_I2C_Read... [01:19:12]Read from MH i2c: E2 FD 00 5F 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [01:19:12]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:12]wFMCommunicate OK [01:19:12]wFMCommunicate request_size=4 [01:19:12]MH_SAM_APDU [01:19:12]CAPDU: 80 17 00 00 [01:19:12]Write to MH i2c: E2 08 00 60 00 80 17 00 00 00 00 00 00 E0 [01:19:12]Write i2c OK [01:19:12]MH_I2C_Read... [01:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:13]Read from MH i2c: E2 [01:19:13]MH_I2C_Read... [01:19:13]Read from MH i2c: E2 FD 00 [01:19:13]MH_I2C_Read... [01:19:13]Read from MH i2c: E2 FD 00 60 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [01:19:13]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:13]wFMCommunicate OK [01:19:13]wFMCommunicate request_size=4 [01:19:13]MH_SAM_APDU [01:19:13]CAPDU: 80 17 00 00 [01:19:13]Write to MH i2c: E2 08 00 61 00 80 17 00 00 00 00 00 00 E1 [01:19:13]Write i2c OK [01:19:13]MH_I2C_Read... [01:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:13]Read from MH i2c: E2 [01:19:13]MH_I2C_Read... [01:19:13]Read from MH i2c: E2 FD 00 [01:19:13]MH_I2C_Read... [01:19:13]Read from MH i2c: E2 FD 00 61 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [01:19:13]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:13]wFMCommunicate OK [01:19:13]wFMCommunicate request_size=4 [01:19:13]MH_SAM_APDU [01:19:13]CAPDU: 80 17 00 00 [01:19:13]Write to MH i2c: E2 08 00 62 00 80 17 00 00 00 00 00 00 E2 [01:19:13]Write i2c OK [01:19:13]MH_I2C_Read... [01:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [01:19:13]Read from MH i2c: E2 [01:19:13]MH_I2C_Read... [01:19:13]Read from MH i2c: E2 E3 00 [01:19:13]MH_I2C_Read... [01:19:13]Read from MH i2c: E2 E3 00 62 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C1 [01:19:13]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:19:13]wFMCommunicate OK [01:19:13]SAM_PROTO_GetFMData done [01:19:13]requested_item fm.sale_refund.total is exist - process it [01:19:13]requested_item fm.buy.total is exist - process it [01:19:13]requested_item shift.sale.total is exist - process it [01:19:13]SAM_PROTO_GetShiftData [01:19:13]wFMCommunicate request_size=4 [01:19:13]MH_SAM_APDU [01:19:13]CAPDU: 80 13 02 00 [01:19:13]Write to MH i2c: E2 08 00 63 00 80 13 02 00 00 00 00 00 E1 [01:19:13]Write i2c OK [01:19:13]MH_I2C_Read... [01:19:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [01:19:14]Read from MH i2c: E2 [01:19:14]MH_I2C_Read... [01:19:14]Read from MH i2c: E2 FD 00 [01:19:14]MH_I2C_Read... [01:19:14]Read from MH i2c: E2 FD 00 63 00 00 AB 04 AA 04 A7 04 6E 04 04 00 0A 00 00 00 69 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 50 F8 0C 70 04 03 00 50 F8 0C 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 B7 60 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EE [01:19:14]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 0A 00 00 00 69 04 98 00 6F 04 04 00 0A 00 00 00 B1 04 03 00 50 F8 0C 70 04 03 00 50 F8 0C 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 B7 60 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 64 1D EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:14]wFMCommunicate OK [01:19:14]wFMCommunicate request_size=4 [01:19:14]MH_SAM_APDU [01:19:14]CAPDU: 80 17 00 00 [01:19:14]Write to MH i2c: E2 08 00 64 00 80 17 00 00 00 00 00 00 E4 [01:19:14]Write i2c OK [01:19:14]MH_I2C_Read... [01:19:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:14]Read from MH i2c: E2 [01:19:14]MH_I2C_Read... [01:19:14]Read from MH i2c: E2 FD 00 [01:19:14]MH_I2C_Read... [01:19:14]Read from MH i2c: E2 FD 00 64 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [01:19:14]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [01:19:14]wFMCommunicate OK [01:19:14]wFMCommunicate request_size=4 [01:19:14]MH_SAM_APDU [01:19:14]CAPDU: 80 17 00 00 [01:19:14]Write to MH i2c: E2 08 00 65 00 80 17 00 00 00 00 00 00 E5 [01:19:14]Write i2c OK [01:19:14]MH_I2C_Read... [01:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:15]Read from MH i2c: E2 [01:19:15]MH_I2C_Read... [01:19:15]Read from MH i2c: E2 FD 00 [01:19:15]MH_I2C_Read... [01:19:15]Read from MH i2c: E2 FD 00 65 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 95 [01:19:15]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [01:19:15]wFMCommunicate OK [01:19:15]wFMCommunicate request_size=4 [01:19:15]MH_SAM_APDU [01:19:15]CAPDU: 80 17 00 00 [01:19:15]Write to MH i2c: E2 08 00 66 00 80 17 00 00 00 00 00 00 E6 [01:19:15]Write i2c OK [01:19:15]MH_I2C_Read... [01:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [01:19:15]Read from MH i2c: E2 [01:19:15]MH_I2C_Read... [01:19:15]Read from MH i2c: E2 FD 00 [01:19:15]MH_I2C_Read... [01:19:15]ConnectInit Can't take IP for lk.salyk.kg [01:19:15]CommunicateWithHost connect error [01:19:15]CommunicateWithHost err = -1 [01:19:15]OFD Sender: Server communicate error [01:19:15]Read from MH i2c: E2 FD 00 66 00 00 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 90 00 6C [01:19:15]RAPDU: 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 90 00 [01:19:15]wFMCommunicate OK [01:19:15]wFMCommunicate request_size=4 [01:19:15]MH_SAM_APDU [01:19:15]CAPDU: 80 17 00 00 [01:19:15]Write to MH i2c: E2 08 00 67 00 80 17 00 00 00 00 00 00 E7 [01:19:15]Write i2c OK [01:19:15]MH_I2C_Read... [01:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [01:19:15]Read from MH i2c: E2 [01:19:15]MH_I2C_Read... [01:19:15]Read from MH i2c: E2 C8 00 [01:19:15]MH_I2C_Read... [01:19:15]Read from MH i2c: E2 C8 00 67 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CA [01:19:15]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [01:19:16]wFMCommunicate OK [01:19:16]SAM_PROTO_GetShiftData done [01:19:16]requested_item shift.sale.total_cash is exist - process it [01:19:16]requested_item shift.sale_refund.total is exist - process it [01:19:16]requested_item shift.sale_refund.total_cash is exist - process it [01:19:16]requested_item shift.buy.total is exist - process it [01:19:16]requested_item shift.buy.total_cash is exist - process it [01:19:16]produce_requested_data done [01:19:16]produce_requested_data return {"fm.sale.total":222082673.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":8500.00,"shift.sale.total_cash":8500.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} [01:19:16]process_action_free get_value [01:19:16]json_value_free [01:19:16]json_value_free done [01:19:16]process_json_proto returns [01:19:16]Send response to host [01:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222082673.78,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":8500.00,"shift.sale.total_cash":8500.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}}} [01:19:16]free response buf [01:19:16]execute_script done [01:19:16]execute_script returns [01:19:16]free content buf [01:19:16]Sock 12.Close socket [01:19:16]Sock 12.Thread stoped [01:19:20]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:19:20]ProducePacketName [01:19:20]name=ofd_packets/00178784 [01:19:20]OFD Sender: To server: pG, [01:19:20]CommunicateWithHost lk.salyk.kg:30040 [01:19:20]ConnectInit lk.salyk.kg [01:19:25]ConnectInit Can't take IP for lk.salyk.kg [01:19:25]CommunicateWithHost connect error [01:19:25]CommunicateWithHost err = -1 [01:19:25]OFD Sender: Server communicate error [01:19:30]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:19:30]ProducePacketName [01:19:30]name=ofd_packets/00178784 [01:19:30]OFD Sender: To server: pG, [01:19:30]CommunicateWithHost lk.salyk.kg:30040 [01:19:30]ConnectInit lk.salyk.kg [01:19:35]ConnectInit Can't take IP for lk.salyk.kg [01:19:35]CommunicateWithHost connect error [01:19:35]CommunicateWithHost err = -1 [01:19:35]OFD Sender: Server communicate error [01:19:40]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:19:40]ProducePacketName [01:19:40]name=ofd_packets/00178784 [01:19:40]OFD Sender: To server: pG, [01:19:40]CommunicateWithHost lk.salyk.kg:30040 [01:19:40]ConnectInit lk.salyk.kg [01:19:45]ConnectInit Can't take IP for lk.salyk.kg [01:19:45]CommunicateWithHost connect error [01:19:45]CommunicateWithHost err = -1 [01:19:45]OFD Sender: Server communicate error [01:19:50]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:19:50]ProducePacketName [01:19:50]name=ofd_packets/00178784 [01:19:50]OFD Sender: To server: pG, [01:19:50]CommunicateWithHost lk.salyk.kg:30040 [01:19:50]ConnectInit lk.salyk.kg [01:19:55]ConnectInit Can't take IP for lk.salyk.kg [01:19:55]CommunicateWithHost connect error [01:19:55]CommunicateWithHost err = -1 [01:19:55]OFD Sender: Server communicate error [01:19:57]ConnectInit Can't connect to host [01:20:00]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:20:00]ProducePacketName [01:20:00]name=ofd_packets/00178784 [01:20:00]OFD Sender: To server: pG, [01:20:00]CommunicateWithHost lk.salyk.kg:30040 [01:20:00]ConnectInit lk.salyk.kg [01:20:02]ConnectInit Can't connect to host [01:20:05]ConnectInit Can't take IP for lk.salyk.kg [01:20:05]CommunicateWithHost connect error [01:20:05]CommunicateWithHost err = -1 [01:20:05]OFD Sender: Server communicate error [01:20:07]ConnectInit Can't connect to host [01:20:10]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:20:10]ProducePacketName [01:20:10]name=ofd_packets/00178784 [01:20:10]OFD Sender: To server: pG, [01:20:10]CommunicateWithHost lk.salyk.kg:30040 [01:20:10]ConnectInit lk.salyk.kg [01:20:12]ConnectInit Can't connect to host [01:20:15]ConnectInit Can't take IP for lk.salyk.kg [01:20:15]CommunicateWithHost connect error [01:20:15]CommunicateWithHost err = -1 [01:20:15]OFD Sender: Server communicate error [01:20:20]OFD Sender: Processing packet 178784 [packets to send 500, broken 499] [01:20:20]ProducePacketName [01:20:20]name=ofd_packets/00178784 [01:20:20]OFD Sender: To server: pG, [01:20:20]CommunicateWithHost lk.salyk.kg:30040 [01:20:20]ConnectInit lk.salyk.kg [01:20:21]Connected sock=9 [01:20:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 B7 0F 07 01 E3 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 0A 00 00 00 F4 03 04 00 02 35 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 60 BA 02 00 35 04 06 00 04 6E 33 7B BE BA 74 AF 51 ED 91 1E FB 72 [01:20:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 83 D6 47 00 A9 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 31 37 37 38 10 04 04 00 60 BA 02 00 F4 03 04 00 F9 E0 C8 66 B6 04 01 00 00 A5 8E 56 4A 86 52 60 D9 [01:20:21]CommunicateWithHost err = 0 [01:20:21]CheckOFDResponse [01:20:21]1017 (14) - 77093643461234 [01:20:21]1041 (16) - 0000000000871778 [01:20:21]1040 (4) - 178784 [01:20:21]1012 (4) - 23.08.2024 19:20 [01:20:21]1206 (1) - 0 [01:20:21]OFD Sender: Remove packet 178784 [01:20:21]ProducePacketName [01:20:21]name=ofd_packets/00178784 [01:20:21]NVStorageDeleteData [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:31]recv_with_timeout no data received [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:41]recv_with_timeout no data received [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:06]recv_with_timeout no data received [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:23:58]recv_with_timeout no data received [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:27]recv_with_timeout no data received [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:26]recv_with_timeout no data received [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]recv_with_timeout no data received [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:22]recv_with_timeout no data received [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:26]recv_with_timeout no data received [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:39]recv_with_timeout no data received [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:12]recv_with_timeout no data received [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]recv_with_timeout no data received [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:08]recv_with_timeout no data received [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:02]recv_with_timeout no data received [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]accept exits with 10 [01:42:00]New connection [01:42:00]New thread 3067288932 created [01:42:00]Thread 3067432292 joined [01:42:00]Waiting for new connection... [01:42:00] Sock 10.Parse request [01:42:00]Sock 10.Check first char [01:42:00]Sock 10.First char is OK [01:42:00]request: POST /json_proto HTTP/1.0 [01:42:00]Method: POST [01:42:00]URL: /json_proto [01:42:00]Method is POST - this is cgi request [01:42:00]url: /json_proto [01:42:00]query_string will be loaded in cgi processing [01:42:00]execute_cgi json_proto POST (null) [01:42:00]execute_cgi path=json_proto method=POST [01:42:00]POST find Content-Length [01:42:00]Host: 172.17.44.131:8080 [01:42:00]Content-Length: 677 [01:42:00]Content-Type: application/json [01:42:00] [01:42:00]POST finish read [01:42:00]Found Content-Length = 677 [01:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294912", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [01:42:00]execute_script... [01:42: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)294912", "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" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [01:42:00]POST & json_proto [01:42:00]process_json_proto [01:42:00]json parsed OK: [01:42:00]protocol is kg_v1.0 [01:42:00]action value=close_receipt [01:42:00]process_action close_receipt [01:42:00]cmd_close_receipt [01:42:00]MH_GetDate [01:42:00]Write to MH i2c: F0 00 00 68 00 57 [01:42:00]Write i2c OK [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: F0 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: F0 09 00 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: F0 09 00 68 00 00 68 3A C9 66 4F 53 BE 66 F7 [01:42:00]GetLastDocTimeStamp 1724462338 [01:42:00]current date 1724463720 [01:42:00]FM_GetShiftState [01:42:00]SAM_PROTO_GetShiftState [01:42:00]wFMCommunicate request_size=4 [01:42:00]MH_SAM_APDU [01:42:00]CAPDU: 80 13 01 00 [01:42:00]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [01:42:00]Write i2c OK [01:42:00]MH_I2C_Read... [01:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:00]Read from MH i2c: E2 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 0E 00 [01:42:00]MH_I2C_Read... [01:42:00]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A4 [01:42:00]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [01:42:00]wFMCommunicate OK [01:42:00]SAM_PROTO_GetShiftState done [01:42:00]FM_GetShiftState done [01:42:00]opened in 1724458079 [01:42:00]opened+sec_in_day 1724544479 [01:42:00]quantity*price = 70044 [01:42:00]sum+1 = 70046 [01:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 11 24.08.2024 01:42 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178785 ФПД: 47754151812540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T014200&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178785&fm=47754151812540&tin=02508201610067®Number=0000000000092561&sum=70000 [01:42:01]StoreToDocumentArchive [01:42:01]shift 471 fd 178785 [01:42:01]save to /storage/0471/doc_00178785 [01:42:01]save last doc name /storage/0471/doc_00178785 to /storage/kkm_last_doc_name [01:42:01]save OK [01:42:01]Clear old archive folders... [01:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:42:01]tlvbuf is 007A7740 [01:42:01]SAM_PROTO_ClearQueue [01:42:01]wFMCommunicate request_size=4 [01:42:01]MH_SAM_APDU [01:42:01]CAPDU: 80 09 00 00 [01:42:01]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:01]Read from MH i2c: E2 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [01:42:01]RAPDU: 90 00 [01:42:01]wFMCommunicate OK [01:42:01]SAM_PROTO_ClearQueue done [01:42:01]KKMCreateOFDPacket [01:42:01]OFDProtocolAddRootSTLVToBuf [01:42:01]FM_MakeSignedData [01:42:01]FM_MakeSignedData [01:42:01]SAM_PROTO_SignData [01:42:01]wFMCommunicate request_size=4 [01:42:01]MH_SAM_APDU [01:42:01]CAPDU: 80 0D 01 02 [01:42:01]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:01]Read from MH i2c: E2 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [01:42:01]RAPDU: 90 00 [01:42:01]wFMCommunicate OK [01:42:01]wFMCommunicate request_size=255 [01:42:01]MH_SAM_APDU [01:42: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 0B 00 00 00 F4 03 04 00 68 3A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 61 BA 02 00 35 04 06 00 2B [01:42:01]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 0B 00 00 00 F4 03 04 00 68 3A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 61 BA 02 00 35 04 06 00 2B 00 00 66 [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:01]Read from MH i2c: E2 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [01:42:01]RAPDU: 90 00 [01:42:01]wFMCommunicate OK [01:42:01]wFMCommunicate request_size=10 [01:42:01]MH_SAM_APDU [01:42:01]CAPDU: 80 0D 02 02 05 6E A1 41 5D BC [01:42:01]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 6E A1 41 5D BC 00 00 66 [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:01]Read from MH i2c: E2 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [01:42:01]RAPDU: 90 00 [01:42:01]wFMCommunicate OK [01:42:01]wFMCommunicate request_size=4 [01:42:01]MH_SAM_APDU [01:42:01]CAPDU: 80 0D 03 02 [01:42:01]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:01]Read from MH i2c: E2 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 0B 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 0B 00 7A 00 00 FB 2B BF 89 A2 2E 1B 21 90 00 70 [01:42:01]RAPDU: FB 2B BF 89 A2 2E 1B 21 90 00 [01:42:01]wFMCommunicate OK [01:42:01]SAM_PROTO_SignData done [01:42:01]FM_MakeSignedData done [01:42:01]CreateOFDProtocolMessage [01:42:01]wFMCommunicate request_size=4 [01:42:01]MH_SAM_APDU [01:42:01]CAPDU: 80 11 00 00 [01:42:01]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:01]Read from MH i2c: E2 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 17 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 4E [01:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [01:42:01]wFMCommunicate OK [01:42:01]CreateOFDProtocolMessage done [01:42:01]OFDSenderStorePacket 178785 [01:42:01]StoreOFDPacket docnum=178785 [01:42:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 DD 99 07 01 7F 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 0B 00 00 00 F4 03 04 00 68 3A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 61 BA 02 00 35 04 06 00 2B 6E A1 41 5D BC FB 2B BF 89 A2 2E 1B 21 [01:42:01]CheckFolder [01:42:01]dirname=/storage/ofd_packets [01:42:01]CheckFolder done [01:42:01]ProducePacketName [01:42:01]name=ofd_packets/00178785 [01:42:01]NVStorageSaveData ofd_packets/00178785 [01:42:01]File name is /storage/ofd_packets/00178785 [01:42:01]Write 301 bytes [01:42:01]NVStorageSaveData done [01:42:01]OFDSenderStorePacket done [01:42:01]KKMCreateOFDPacket done [01:42:01]NVStorageSaveData kkm_last_timestamp [01:42:01]File name is /storage/kkm_last_timestamp [01:42:01]Write 4 bytes [01:42:01]NVStorageSaveData done [01:42:01]ExternCall_PrintAddStr [01:42:01]wPrintStart [01:42:01]Write to MH i2c: 01 00 00 7C 00 7C [01:42:01]Write i2c OK [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: 01 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: 01 07 00 [01:42:01]MH_I2C_Read... [01:42:01]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [01:42:01]RasterBufferAndPrint [01:42:01]line Счет N : (1)294912 [01:42:01]line ИНН: 02508201610067 [01:42:01]line Контрольно-Кассовый Чек [01:42:01]line ПРОДАЖА [01:42:01]line ТРК (МРК, ГНК) : 63 [01:42:01]line Товар: 2710124500 [01:42:01]line Аи-95-К-5 [01:42:01]line 9.440 * 74.20 [01:42:01]line = 700.45 [01:42:01]line НДС 12% НСП 1% [01:42:01]line > о реализуемом товаре [01:42:01]line ОКРУГЛЕНИЕ: -0.45 [01:42:01]line ИТОГО: 700.00 [01:42:01]line Внесено: 700.00 [01:42:01]line СДАЧА: 0.00 [01:42:01]line НСП 1% : 6.20 [01:42:01]line НДС 12% : 74.38 [01:42:01]line Наличными: 700.00 [01:42:01]line Безнал.: 0.00 [01:42:01]line Место: АЗС № 130 "Партнер Нефть" [01:42:01]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [01:42:01]line СНО: Общий режим [01:42:01]line Чек 11 24.08.2024 01:42 [01:42:01]line Смена: 471 ФФД: 1.0 [01:42:01]line ЗНМ: 0300000071 [01:42:01]line РНМ: 0000000000092561 [01:42:01]line Версия ККМ: 001 [01:42:01]line ФМ: 0000000000871778 [01:42:01]line ФД: 178785 [01:42:01]line ФПД: 47754151812540 [01:42:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T014200&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178785&fm=47754151812540&tin=02508201610067®Number=0000000000092561&sum=70000 [01:42:01]written 0, free lines is 4095 [01:42:01]OFD Sender: Processing packet 178785 [packets to send 500, broken 499] [01:42:01]ProducePacketName [01:42:01]name=ofd_packets/00178785 [01:42:01]OFD Sender: To server: pG, [01:42:01]CommunicateWithHost lk.salyk.kg:30040 [01:42:01]ConnectInit lk.salyk.kg [01:42:02]Write to MH i2c: 01 00 00 A7 00 A7 [01:42:02]Write i2c OK [01:42:02]MH_I2C_Read... [01:42:02]Read from MH i2c: 01 [01:42:02]MH_I2C_Read... [01:42:02]Read from MH i2c: 01 07 00 [01:42:02]MH_I2C_Read... [01:42:02]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 C6 0C 80 [01:42:02]RasterBufferAndPrint [01:42:02]line [01:42:02]line [01:42:02]line [01:42:02]line [01:42:02]line [01:42:02]written 0, free lines is 3275 [01:42:02]MH_Cut [01:42:02]Write to MH i2c: D1 01 00 AE 00 01 80 [01:42:02]Write i2c OK [01:42:02]MH_I2C_Read... [01:42:02]Read from MH i2c: D1 [01:42:02]MH_I2C_Read... [01:42:02]Read from MH i2c: D1 01 00 [01:42:02]MH_I2C_Read... [01:42:02]Read from MH i2c: D1 01 00 AE 00 00 7F [01:42:02]Write to MH i2c: 01 00 00 AF 00 AF [01:42:02]Write i2c OK [01:42:02]MH_I2C_Read... [01:42:02]Connected sock=11 [01:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 DD 99 07 01 7F 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 0E 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 0B 00 00 00 F4 03 04 00 68 3A C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 61 BA 02 00 35 04 06 00 2B 6E A1 41 5D BC FB 2B BF 89 A2 2E 1B 21 [01:42:03]*** Cut start [01:42:03]*** Partial cut [01:42:03]*** CUTSNS_PIN = 1 [01:42:03]*** CUTSNS_PIN = 0 [01:42:03]*** Brake cut motor [01:42:03]Read from MH i2c: 01 [01:42:03]MH_I2C_Read... [01:42:03]*** Stop cut motor [01:42:03]*** Cut end [01:42:03]Read from MH i2c: 01 07 00 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [01:42:03]process_action close_receipt done [01:42:03]requested_data is exist [01:42:03]produce_requested_data [01:42:03]requested_item fm.sn is exist - process it [01:42:03]wFMCommunicate request_size=4 [01:42:03]MH_SAM_APDU [01:42:03]CAPDU: 80 11 00 00 [01:42:03]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [01:42:03]Write i2c OK [01:42:03]MH_I2C_Read... [01:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:03]Read from MH i2c: E2 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: E2 17 00 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 83 [01:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [01:42:03]wFMCommunicate OK [01:42:03]requested_item fd.num is exist - process it [01:42:03]SAM_PROTO_GetFieldsCounters [01:42:03]wFMCommunicate request_size=4 [01:42:03]MH_SAM_APDU [01:42:03]CAPDU: 80 13 00 00 [01:42:03]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [01:42:03]Write i2c OK [01:42:03]MH_I2C_Read... [01:42:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:03]Read from MH i2c: E2 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: E2 62 00 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 61 BA 02 00 0E 04 04 00 D7 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 68 [01:42:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 61 BA 02 00 0E 04 04 00 D7 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 [01:42:03]wFMCommunicate OK [01:42:03]SAM_PROTO_GetFieldsCounters done [01:42:03]requested_item shift.num is exist - process it [01:42:03]requested_item shift.opened is exist - process it [01:42:03]req_shift_opened [01:42:03]FM_GetShiftState [01:42:03]SAM_PROTO_GetShiftState [01:42:03]wFMCommunicate request_size=4 [01:42:03]MH_SAM_APDU [01:42:03]CAPDU: 80 13 01 00 [01:42:03]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [01:42:03]Write i2c OK [01:42:03]MH_I2C_Read... [01:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:03]Read from MH i2c: E2 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: E2 0E 00 [01:42:03]MH_I2C_Read... [01:42:03]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 ED [01:42:03]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [01:42:03]wFMCommunicate OK [01:42:03]SAM_PROTO_GetShiftState done [01:42:03]FM_GetShiftState done [01:42:03]req_shift_opened done [01:42:03]requested_item shift.open_date is exist - process it [01:42:03]req_shift_open_date [01:42:03]req_shift_open_date done [01:42:03]produce_requested_data done [01:42:03]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178785,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [01:42:03]process_action_free close_receipt [01:42:03]json_value_free [01:42:03]json_value_free done [01:42:03]process_json_proto returns [01:42:03]Send response to host [01:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178785,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [01:42:03]free response buf [01:42:03]execute_script done [01:42:03]execute_script returns [01:42:03]free content buf [01:42:03]Sock 10.Close socket [01:42:03]Sock 10.Thread stoped [01:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 98 13 47 00 0E 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 31 37 37 38 10 04 04 00 61 BA 02 00 F4 03 04 00 0E E6 C8 66 B6 04 01 00 00 21 2A 0E 43 89 76 BD 67 [01:42:04]CommunicateWithHost err = 0 [01:42:04]CheckOFDResponse [01:42:04]1017 (14) - 77093643461234 [01:42:04]1041 (16) - 0000000000871778 [01:42:04]1040 (4) - 178785 [01:42:04]1012 (4) - 23.08.2024 19:42 [01:42:04]1206 (1) - 0 [01:42:04]OFD Sender: Remove packet 178785 [01:42:04]ProducePacketName [01:42:04]name=ofd_packets/00178785 [01:42:04]NVStorageDeleteData [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:37]recv_with_timeout no data received [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:22]recv_with_timeout no data received [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:13]accept exits with 9 [01:49:13]New connection [01:49:13]New thread 3067432292 created [01:49:13]Thread 3067288932 joined [01:49:13]Waiting for new connection... [01:49:13] Sock 9.Parse request [01:49:13]Sock 9.Check first char [01:49:13]Sock 9.First char is OK [01:49:13]request: POST /json_proto HTTP/1.0 [01:49:13]Method: POST [01:49:13]URL: /json_proto [01:49:13]Method is POST - this is cgi request [01:49:13]url: /json_proto [01:49:13]query_string will be loaded in cgi processing [01:49:13]execute_cgi json_proto POST (null) [01:49:13]execute_cgi path=json_proto method=POST [01:49:13]POST find Content-Length [01:49:13]Host: 172.17.44.131:8080 [01:49:13]Content-Length: 682 [01:49:13]Content-Type: application/json [01:49:13] [01:49:13]POST finish read [01:49:13]Found Content-Length = 682 [01:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294913", "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" : 67.80, "quantity" : 51.630, "sum" : 3500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:13]execute_script... [01:49: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)294913", "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" : 67.80, "quantity" : 51.630, "sum" : 3500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:13]POST & json_proto [01:49:13]process_json_proto [01:49:13]json parsed OK: [01:49:13]protocol is kg_v1.0 [01:49:13]action value=close_receipt [01:49:13]process_action close_receipt [01:49:13]cmd_close_receipt [01:49:13]MH_GetDate [01:49:13]Write to MH i2c: F0 00 00 B3 00 A2 [01:49:13]Write i2c OK [01:49:13]MH_I2C_Read... [01:49:13]Read from MH i2c: F0 [01:49:13]MH_I2C_Read... [01:49:13]Read from MH i2c: F0 09 00 [01:49:13]MH_I2C_Read... [01:49:13]Read from MH i2c: F0 09 00 B3 00 00 19 3C C9 66 4F 53 BE 66 F5 [01:49:13]GetLastDocTimeStamp 1724463720 [01:49:13]current date 1724464153 [01:49:13]FM_GetShiftState [01:49:13]SAM_PROTO_GetShiftState [01:49:13]wFMCommunicate request_size=4 [01:49:13]MH_SAM_APDU [01:49:13]CAPDU: 80 13 01 00 [01:49:13]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [01:49:13]Write i2c OK [01:49:13]MH_I2C_Read... [01:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:13]Read from MH i2c: E2 [01:49:13]MH_I2C_Read... [01:49:13]Read from MH i2c: E2 0E 00 [01:49:13]MH_I2C_Read... [01:49:13]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 EF [01:49:13]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [01:49:13]wFMCommunicate OK [01:49:13]SAM_PROTO_GetShiftState done [01:49:13]FM_GetShiftState done [01:49:13]opened in 1724458079 [01:49:13]opened+sec_in_day 1724544479 [01:49:13]quantity*price = 350051 [01:49:13]sum+1 = 350052 [01:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре [02:01:03]line ОКРУГЛЕНИЕ: -0.51 [02:01:03]line ИТОГО: 3500.00 [02:01:03]line Внесено: 3500.00 [02:01:03]line СДАЧА: 0.00 [02:01:03]line НСП 1% : 30.98 [02:01:03]line НДС 12% : 371.74 [02:01:03]line Наличными: 3500.00 [02:01:03]line Безнал.: 0.00 [02:01:03]line Место: АЗС № 130 "Партнер Нефть" [02:01:03]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [02:01:03]line СНО: Общий режим [02:01:03]line Чек 12 24.08.2024 01:49 [02:01:03]line Смена: 471 ФФД: 1.0 [02:01:03]line ЗНМ: 0300000071 [02:01:03]line РНМ: 0000000000092561 [02:01:03]line Версия ККМ: 001 [02:01:03]line ФМ: 0000000000871778 [02:01:03]line ФД: 178786 [02:01:03]line ФПД: 14246623717143 [02:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T014913&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178786&fm=14246623717143&tin=02508201610067®Number=0000000000092561&sum=350000 [02:01:04]written 0, free lines is 4095 [02:01:04]Connected sock=7 [02:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 52 25 07 01 85 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 AE C9 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 19 3C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 62 BA 02 00 35 04 06 00 0C F5 0C F2 27 17 67 22 BD DE 45 81 6A 04 [02:01:04]Write to MH i2c: 01 00 00 48 00 48 [02:01:04]Write i2c OK [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: 01 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: 01 07 00 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E1 0C 3C [02:01:04]RasterBufferAndPrint [02:01:04]line [02:01:04]line [02:01:04]line [02:01:04]line [02:01:04]line [02:01:04]written 0, free lines is 3315 [02:01:04]MH_Cut [02:01:04]Write to MH i2c: D1 01 00 4F 00 01 21 [02:01:04]Write i2c OK [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: D1 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: D1 01 00 [02:01:04]MH_I2C_Read... [02:01:04]Read from MH i2c: D1 01 00 4F 00 00 20 [02:01:04]Write to MH i2c: 01 00 00 50 00 50 [02:01:04]Write i2c OK [02:01:04]MH_I2C_Read... [02:01:05]*** Cut start [02:01:05]*** Partial cut [02:01:05]*** CUTSNS_PIN = 1 [02:01:05]*** CUTSNS_PIN = 0 [02:01:05]*** Brake cut motor [02:01:05]Read from MH i2c: 01 [02:01:05]MH_I2C_Read... [02:01:05]*** Stop cut motor [02:01:05]*** Cut end [02:01:05]Read from MH i2c: 01 07 00 [02:01:05]MH_I2C_Read... [02:01:05]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [02:01:05]process_action print_doc done [02:01:05]requested_data is exist [02:01:05]produce_requested_data [02:01:05]produce_requested_data return (null) [02:01:05]process_action_free print_doc [02:01:05]json_value_free [02:01:05]json_value_free done [02:01:05]process_json_proto returns [02:01:05]Send response to host [02:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [02:01:05]free response buf [02:01:05]execute_script done [02:01:05]execute_script returns [02:01:05]free content buf [02:01:05]Sock 9.Close socket [02:01:05]Sock 9.Thread stoped [02:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 8C 76 47 00 F4 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 31 37 37 38 10 04 04 00 62 BA 02 00 F4 03 04 00 85 EA C8 66 B6 04 01 00 00 7A 96 6E 2B 34 26 94 51 [02:01:06]CommunicateWithHost err = 0 [02:01:06]CheckOFDResponse [02:01:06]1017 (14) - 77093643461234 [02:01:06]1041 (16) - 0000000000871778 [02:01:06]1040 (4) - 178786 [02:01:06]1012 (4) - 23.08.2024 20:01 [02:01:06]1206 (1) - 0 [02:01:06]OFD Sender: Remove packet 178786 [02:01:06]ProducePacketName [02:01:06]name=ofd_packets/00178786 [02:01:06]NVStorageDeleteData [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:49]accept exits with 11 [02:01:49]New connection [02:01:49]New thread 3066576228 created [02:01:49]Thread 3066719588 joined [02:01:49]Waiting for new connection... [02:01:49] Sock 11.Parse request [02:01:49]Sock 11.Check first char [02:01:49]Sock 11.First char is OK [02:01:49]request: POST /json_proto HTTP/1.0 [02:01:49]Method: POST [02:01:49]URL: /json_proto [02:01:49]Method is POST - this is cgi request [02:01:49]url: /json_proto [02:01:49]query_string will be loaded in cgi processing [02:01:49]execute_cgi json_proto POST (null) [02:01:49]execute_cgi path=json_proto method=POST [02:01:49]POST find Content-Length [02:01:49]Host: 172.17.44.131:8080 [02:01:49]Content-Length: 677 [02:01:49]Content-Type: application/json [02:01:49] [02:01:49]POST finish read [02:01:49]Found Content-Length = 677 [02:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294920", "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" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [02:01:49]execute_script... [02:01: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)294920", "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" : 67.80, "quantity" : 8.850, "sum" : 600.03, "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" ] } } [02:01:49]POST & json_proto [02:01:49]process_json_proto [02:01:49]json parsed OK: [02:01:49]protocol is kg_v1.0 [02:01:49]action value=close_receipt [02:01:49]process_action close_receipt [02:01:49]cmd_close_receipt [02:01:49]MH_GetDate [02:01:49]Write to MH i2c: F0 00 00 51 00 40 [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: F0 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: F0 09 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: F0 09 00 51 00 00 0D 3F C9 66 4F 53 BE 66 8A [02:01:49]GetLastDocTimeStamp 1724464153 [02:01:49]current date 1724464909 [02:01:49]FM_GetShiftState [02:01:49]SAM_PROTO_GetShiftState [02:01:49]wFMCommunicate request_size=4 [02:01:49]MH_SAM_APDU [02:01:49]CAPDU: 80 13 01 00 [02:01:49]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [02:01:49]Write i2c OK [02:01:49]MH_I2C_Read... [02:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:49]Read from MH i2c: E2 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 0E 00 [02:01:49]MH_I2C_Read... [02:01:49]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 8D [02:01:49]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:01:49]wFMCommunicate OK [02:01:49]SAM_PROTO_GetShiftState done [02:01:49]FM_GetShiftState done [02:01:49]opened in 1724458079 [02:01:49]opened+sec_in_day 1724544479 [02:01:49]quantity*price = 60003 [02:01:49]sum+1 = 60004 [02:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре [02:08:54]line ОКРУГЛЕНИЕ: -0.03 [02:08:54]line ИТОГО: 600.00 [02:08:54]line Внесено: 600.00 [02:08:54]line СДАЧА: 0.00 [02:08:54]line НСП 1% : 5.31 [02:08:54]line НДС 12% : 63.72 [02:08:54]line Наличными: 600.00 [02:08:54]line Безнал.: 0.00 [02:08:54]line Место: АЗС № 130 "Партнер Нефть" [02:08:54]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [02:08:54]line СНО: Общий режим [02:08:54]line Чек 13 24.08.2024 02:01 [02:08:54]line Смена: 471 ФФД: 1.0 [02:08:54]line ЗНМ: 0300000071 [02:08:54]line РНМ: 0000000000092561 [02:08:54]line Версия ККМ: 001 [02:08:54]line ФМ: 0000000000871778 [02:08:54]line ФД: 178787 [02:08:54]line ФПД: 164642829916892 [02:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T020150&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178787&fm=164642829916892&tin=02508201610067®Number=0000000000092561&sum=60000 [02:08:54]written 0, free lines is 4095 [02:08:54]Connected sock=6 [02:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 49 7F 07 01 D9 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 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 E4 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 0D 00 00 00 F4 03 04 00 0E 3F C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 63 BA 02 00 35 04 06 00 95 BD E5 64 5A DC CE 79 3A EB 1D E5 33 6C [02:08:55]Write to MH i2c: 01 00 00 48 00 48 [02:08:55]Write i2c OK [02:08:55]MH_I2C_Read... [02:08:55]Read from MH i2c: 01 [02:08:55]MH_I2C_Read... [02:08:55]Read from MH i2c: 01 07 00 [02:08:55]MH_I2C_Read... [02:08:55]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 EB 0C 46 [02:08:55]RasterBufferAndPrint [02:08:55]line [02:08:55]line [02:08:55]line [02:08:55]line [02:08:55]line [02:08:55]written 0, free lines is 3326 [02:08:55]MH_Cut [02:08:55]Write to MH i2c: D1 01 00 4F 00 01 21 [02:08:55]Write i2c OK [02:08:55]MH_I2C_Read... [02:08:55]Read from MH i2c: D1 [02:08:55]MH_I2C_Read... [02:08:55]Read from MH i2c: D1 01 00 [02:08:55]MH_I2C_Read... [02:08:55]Read from MH i2c: D1 01 00 4F 00 00 20 [02:08:55]Write to MH i2c: 01 00 00 50 00 50 [02:08:55]Write i2c OK [02:08:55]MH_I2C_Read... [02:08:55]*** Cut start [02:08:55]*** Partial cut [02:08:55]*** CUTSNS_PIN = 1 [02:08:55]*** CUTSNS_PIN = 0 [02:08:56]*** Brake cut motor [02:08:56]Read from MH i2c: 01 [02:08:56]MH_I2C_Read... [02:08:56]*** Stop cut motor [02:08:56]*** Cut end [02:08:56]Read from MH i2c: 01 07 00 [02:08:56]MH_I2C_Read... [02:08:56]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [02:08:56]process_action print_doc done [02:08:56]requested_data is exist [02:08:56]produce_requested_data [02:08:56]produce_requested_data return (null) [02:08:56]process_action_free print_doc [02:08:56]json_value_free [02:08:56]json_value_free done [02:08:56]process_json_proto returns [02:08:56]Send response to host [02:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [02:08:56]free response buf [02:08:56]execute_script done [02:08:56]execute_script returns [02:08:56]free content buf [02:08:56]Sock 9.Close socket [02:08:56]Sock 9.Thread stoped [02:08:56]accept exits with 10 [02:08:56]New connection [02:08:56]New thread 3066568036 created [02:08:56]Thread 3066711396 joined [02:08:56]Waiting for new connection... [02:08:56] Sock 10.Parse request [02:08:56]Sock 10.Check first char [02:08:56]Sock 10.First char is OK [02:08:56]request: POST /json_proto HTTP/1.0 [02:08:56]Method: POST [02:08:56]URL: /json_proto [02:08:56]Method is POST - this is cgi request [02:08:56]url: /json_proto [02:08:56]query_string will be loaded in cgi processing [02:08:56]execute_cgi json_proto POST (null) [02:08:56]execute_cgi path=json_proto method=POST [02:08:56]POST find Content-Length [02:08:56]Host: 172.17.44.131:8080 [02:08:56]Content-Length: 682 [02:08:56]Content-Type: application/json [02:08:56] [02:08:56]POST finish read [02:08:56]Found Content-Length = 682 [02:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294921", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [02:08:56]execute_script... [02:08: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)294921", "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" : 67.80, "quantity" : 14.750, "sum" : 1000.05, "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" ] } } [02:08:56]POST & json_proto [02:08:56]process_json_proto [02:08:56]json parsed OK: [02:08:56]protocol is kg_v1.0 [02:08:56]action value=close_receipt [02:08:56]process_action close_receipt [02:08:56]cmd_close_receipt [02:08:56]MH_GetDate [02:08:56]Write to MH i2c: F0 00 00 51 00 40 [02:08:56]Write i2c OK [02:08:56]MH_I2C_Read... [02:08:56]Read from MH i2c: F0 [02:08:56]MH_I2C_Read... [02:08:56]Read from MH i2c: F0 09 00 [02:08:56]MH_I2C_Read... [02:08:56]Read from MH i2c: F0 09 00 51 00 00 B9 40 C9 66 4F 53 BE 66 37 [02:08:56]GetLastDocTimeStamp 1724464910 [02:08:56]current date 1724465337 [02:08:56]FM_GetShiftState [02:08:56]SAM_PROTO_GetShiftState [02:08:56]wFMCommunicate request_size=4 [02:08:56]MH_SAM_APDU [02:08:56]CAPDU: 80 13 01 00 [02:08:56]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [02:08:56]Write i2c OK [02:08:56]MH_I2C_Read... [02:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:56]Read from MH i2c: E2 [02:08:56]MH_I2C_Read... [02:08:56]Read from MH i2c: E2 0E 00 [02:08:56]MH_I2C_Read... [02:08:56]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 8D [02:08:56]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:08:56]wFMCommunicate OK [02:08:56]SAM_PROTO_GetShiftState done [02:08:56]FM_GetShiftState done [02:08:56]opened in 1724458079 [02:08:56]opened+sec_in_day 1724544479 [02:08:56]quantity*price = 100005 [02:08:56]sum+1 = 100006 [02:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 14 24.08.2024 02:08 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178788 ФПД: 246531652138244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T020857&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178788&fm=246531652138244&tin=02508201610067®Number=0000000000092561&sum=100000 [02:08:57]StoreToDocumentArchive [02:08:57]shift 471 fd 178788 [02:08:57]save to /storage/0471/doc_00178788 [02:08:57]save last doc name /storage/0471/doc_00178788 to /storage/kkm_last_doc_name [02:08:57]save OK [02:08:57]Clear old archive folders... [02:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:08:57]tlvbuf is 002F43B0 [02:08:57]SAM_PROTO_ClearQueue [02:08:57]wFMCommunicate request_size=4 [02:08:57]MH_SAM_APDU [02:08:57]CAPDU: 80 09 00 00 [02:08:57]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [02:08:57]Write i2c OK [02:08:57]MH_I2C_Read... [02:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:57]Read from MH i2c: E2 [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: E2 03 00 [02:08:57]MH_I2C_Read... [02:08:57]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [02:08:57]RAPDU: 90 00 [02:08:57]wFMCommunicate OK [02:08:57]SAM_PROTO_ClearQueue done [02:08:57]KKMCreateOFDPacket [02:08:57]OFDProtocolAddRootSTLVToBuf [02:08:57]FM_MakeSignedData [02:08:57]FM_MakeSignedData [02:08:57]SAM_PROTO_SignData [02:08:57]wFMCommunicate request_size=4 [02:08:57]MH_SAM_APDU [02:08:57]CAPDU: 80 0D 01 02 [02:08:57]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [02:08:57]Write i2c OK [02:08:57]MH_I2C_Read... [02:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:57]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]wFMCommunicate request_size=255 [02:08:58]MH_SAM_APDU [02:08: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 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B9 40 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 64 BA 02 00 35 04 06 00 E0 [02:08:58]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B9 40 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 64 BA 02 00 35 04 06 00 E0 00 00 F9 [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]wFMCommunicate request_size=10 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 0D 02 02 05 38 1F 8D 35 04 [02:08:58]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 38 1F 8D 35 04 00 00 03 [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [02:08:58]RAPDU: 90 00 [02:08:58]wFMCommunicate OK [02:08:58]wFMCommunicate request_size=4 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 0D 03 02 [02:08:58]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 0B 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 0B 00 63 00 00 85 40 4C 95 25 38 35 A8 90 00 BF [02:08:58]RAPDU: 85 40 4C 95 25 38 35 A8 90 00 [02:08:58]wFMCommunicate OK [02:08:58]SAM_PROTO_SignData done [02:08:58]FM_MakeSignedData done [02:08:58]CreateOFDProtocolMessage [02:08:58]wFMCommunicate request_size=4 [02:08:58]MH_SAM_APDU [02:08:58]CAPDU: 80 11 00 00 [02:08:58]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:58]Read from MH i2c: E2 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 17 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 37 [02:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:08:58]wFMCommunicate OK [02:08:58]CreateOFDProtocolMessage done [02:08:58]OFDSenderStorePacket 178788 [02:08:58]StoreOFDPacket docnum=178788 [02:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D4 14 07 01 00 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B9 40 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 64 BA 02 00 35 04 06 00 E0 38 1F 8D 35 04 85 40 4C 95 25 38 35 A8 [02:08:58]CheckFolder [02:08:58]dirname=/storage/ofd_packets [02:08:58]CheckFolder done [02:08:58]ProducePacketName [02:08:58]name=ofd_packets/00178788 [02:08:58]NVStorageSaveData ofd_packets/00178788 [02:08:58]File name is /storage/ofd_packets/00178788 [02:08:58]Write 301 bytes [02:08:58]NVStorageSaveData done [02:08:58]OFDSenderStorePacket done [02:08:58]KKMCreateOFDPacket done [02:08:58]NVStorageSaveData kkm_last_timestamp [02:08:58]File name is /storage/kkm_last_timestamp [02:08:58]Write 4 bytes [02:08:58]NVStorageSaveData done [02:08:58]ExternCall_PrintAddStr [02:08:58]wPrintStart [02:08:58]Write to MH i2c: 01 00 00 65 00 65 [02:08:58]Write i2c OK [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: 01 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: 01 07 00 [02:08:58]MH_I2C_Read... [02:08:58]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [02:08:58]RasterBufferAndPrint [02:08:58]line Счет N : (1)294921 [02:08:58]line ИНН: 02508201610067 [02:08:58]line Контрольно-Кассовый Чек [02:08:58]line ПРОДАЖА [02:08:58]line ТРК (МРК, ГНК) : 52 [02:08:58]line Товар: 2710124130 [02:08:58]line Аи-92-К-5 [02:08:58]line 14.750 * 67.80 [02:08:58]line = 1000.05 [02:08:58]line НДС 12% НСП 1% [02:08:58]line > о реализуемом товаре [02:08:58]line ОКРУГЛЕНИЕ: -0.05 [02:08:58]line ИТОГО: 1000.00 [02:08:58]line Внесено: 1000.00 [02:08:58]line СДАЧА: 0.00 [02:08:58]line НСП 1% : 8.85 [02:08:58]line НДС 12% : 106.20 [02:08:58]line Наличными: 1000.00 [02:08:58]line Безнал.: 0.00 [02:08:58]line Место: АЗС № 130 "Партнер Нефть" [02:08:58]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [02:08:58]line СНО: Общий режим [02:08:58]line Чек 14 24.08.2024 02:08 [02:08:58]line Смена: 471 ФФД: 1.0 [02:08:58]line ЗНМ: 0300000071 [02:08:58]line РНМ: 0000000000092561 [02:08:58]line Версия ККМ: 001 [02:08:58]line ФМ: 0000000000871778 [02:08:58]line ФД: 178788 [02:08:58]line ФПД: 246531652138244 [02:08:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T020857&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178788&fm=246531652138244&tin=02508201610067®Number=0000000000092561&sum=100000 [02:08:59]written 0, free lines is 4095 [02:08:59]Write to MH i2c: 01 00 00 90 00 90 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 07 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: 01 07 00 90 00 00 00 00 00 00 CF 0C 72 [02:08:59]RasterBufferAndPrint [02:08:59]line [02:08:59]line [02:08:59]line [02:08:59]line [02:08:59]line [02:08:59]written 0, free lines is 3303 [02:08:59]MH_Cut [02:08:59]Write to MH i2c: D1 01 00 97 00 01 69 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: D1 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: D1 01 00 [02:08:59]MH_I2C_Read... [02:08:59]Read from MH i2c: D1 01 00 97 00 00 68 [02:08:59]Write to MH i2c: 01 00 00 98 00 98 [02:08:59]Write i2c OK [02:08:59]MH_I2C_Read... [02:08:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 C9 CF 47 00 64 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 31 37 37 38 10 04 04 00 63 BA 02 00 F4 03 04 00 60 EC C8 66 B6 04 01 00 00 BC 54 41 C9 15 DC B6 6C [02:08:59]CommunicateWithHost err = 0 [02:08:59]CheckOFDResponse [02:08:59]1017 (14) - 77093643461234 [02:08:59]1041 (16) - 0000000000871778 [02:08:59]1040 (4) - 178787 [02:08:59]1012 (4) - 23.08.2024 20:09 [02:08:59]1206 (1) - 0 [02:08:59]OFD Sender: Remove packet 178787 [02:08:59]ProducePacketName [02:08:59]name=ofd_packets/00178787 [02:08:59]NVStorageDeleteData [02:09:00]OFD Sender: Processing packet 178788 [packets to send 500, broken 499] [02:09:00]ProducePacketName [02:09:00]name=ofd_packets/00178788 [02:09:00]OFD Sender: To server: pG, [02:09:00]CommunicateWithHost lk.salyk.kg:30040 [02:09:00]ConnectInit lk.salyk.kg [02:09:00]*** Cut start [02:09:00]*** Partial cut [02:09:00]*** CUTSNS_PIN = 1 [02:09:00]*** CUTSNS_PIN = 0 [02:09:00]*** Brake cut motor [02:09:00]Read from MH i2c: 01 [02:09:00]MH_I2C_Read... [02:09:00]*** Stop cut motor [02:09:00]*** Cut end [02:09:00]Read from MH i2c: 01 07 00 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: 01 07 00 98 00 00 00 00 00 00 FF 0F AD [02:09:00]process_action close_receipt done [02:09:00]requested_data is exist [02:09:00]produce_requested_data [02:09:00]requested_item fm.sn is exist - process it [02:09:00]wFMCommunicate request_size=4 [02:09:00]MH_SAM_APDU [02:09:00]CAPDU: 80 11 00 00 [02:09:00]Write to MH i2c: E2 08 00 99 00 80 11 00 00 00 00 00 00 13 [02:09:00]Write i2c OK [02:09:00]MH_I2C_Read... [02:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:00]Read from MH i2c: E2 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: E2 17 00 [02:09:00]MH_I2C_Read... [02:09:00]Read from MH i2c: E2 17 00 99 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 6C [02:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:09:00]wFMCommunicate OK [02:09:00]requested_item fd.num is exist - process it [02:09:00]SAM_PROTO_GetFieldsCounters [02:09:00]wFMCommunicate request_size=4 [02:09:00]MH_SAM_APDU [02:09:00]CAPDU: 80 13 00 00 [02:09:00]Write to MH i2c: E2 08 00 9A 00 80 13 00 00 00 00 00 00 16 [02:09:00]Write i2c OK [02:09:00]MH_I2C_Read... [02:09:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:01]Read from MH i2c: E2 [02:09:01]MH_I2C_Read... [02:09:01]Read from MH i2c: E2 62 00 [02:09:01]MH_I2C_Read... [02:09:01]Read from MH i2c: E2 62 00 9A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 64 BA 02 00 0E 04 04 00 D7 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 5D [02:09: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 64 BA 02 00 0E 04 04 00 D7 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 [02:09:01]wFMCommunicate OK [02:09:01]SAM_PROTO_GetFieldsCounters done [02:09:01]requested_item shift.num is exist - process it [02:09:01]requested_item shift.opened is exist - process it [02:09:01]req_shift_opened [02:09:01]FM_GetShiftState [02:09:01]SAM_PROTO_GetShiftState [02:09:01]wFMCommunicate request_size=4 [02:09:01]MH_SAM_APDU [02:09:01]CAPDU: 80 13 01 00 [02:09:01]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [02:09:01]Write i2c OK [02:09:01]MH_I2C_Read... [02:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:01]Read from MH i2c: E2 [02:09:01]MH_I2C_Read... [02:09:01]Read from MH i2c: E2 0E 00 [02:09:01]MH_I2C_Read... [02:09:01]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D6 [02:09:01]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:09:01]wFMCommunicate OK [02:09:01]SAM_PROTO_GetShiftState done [02:09:01]FM_GetShiftState done [02:09:01]req_shift_opened done [02:09:01]requested_item shift.open_date is exist - process it [02:09:01]req_shift_open_date [02:09:01]req_shift_open_date done [02:09:01]produce_requested_data done [02:09:01]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178788,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [02:09:01]process_action_free close_receipt [02:09:01]json_value_free [02:09:01]json_value_free done [02:09:01]process_json_proto returns [02:09:01]Send response to host [02:09:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178788,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [02:09:01]free response buf [02:09:01]execute_script done [02:09:01]execute_script returns [02:09:01]free content buf [02:09:01]Sock 10.Close socket [02:09:01]Sock 10.Thread stoped [02:09:01]Connected sock=6 [02:09:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 D4 14 07 01 00 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 39 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 A5 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 B9 40 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 64 BA 02 00 35 04 06 00 E0 38 1F 8D 35 04 85 40 4C 95 25 38 35 A8 [02:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 34 3B 47 00 45 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 31 37 37 38 10 04 04 00 64 BA 02 00 F4 03 04 00 63 EC C8 66 B6 04 01 00 00 B9 50 16 DD 4A 16 A7 55 [02:09:02]CommunicateWithHost err = 0 [02:09:02]CheckOFDResponse [02:09:02]1017 (14) - 77093643461234 [02:09:02]1041 (16) - 0000000000871778 [02:09:02]1040 (4) - 178788 [02:09:02]1012 (4) - 23.08.2024 20:09 [02:09:02]1206 (1) - 0 [02:09:02]OFD Sender: Remove packet 178788 [02:09:02]ProducePacketName [02:09:02]name=ofd_packets/00178788 [02:09:02]NVStorageDeleteData [02:09:03]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:38]recv_with_timeout no data received [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:54]recv_with_timeout no data received [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:13]recv_with_timeout no data received [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:32]recv_with_timeout no data received [02:10:33]OFD Sender: No OFD packet to send [02:11:12]ConnectInit Can't connect to host [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:33]accept exits with 9 [02:11:33]New connection [02:11:33]New thread 3066711396 created [02:11:33]Thread 3066568036 joined [02:11:33]Waiting for new connection... [02:11:33] Sock 9.Parse request [02:11:33]Sock 9.Check first char [02:11:33]Sock 9.First char is OK [02:11:33]request: POST /json_proto HTTP/1.0 [02:11:33]Method: POST [02:11:33]URL: /json_proto [02:11:33]Method is POST - this is cgi request [02:11:33]url: /json_proto [02:11:33]query_string will be loaded in cgi processing [02:11:33]execute_cgi json_proto POST (null) [02:11:33]execute_cgi path=json_proto method=POST [02:11:33]POST find Content-Length [02:11:33]Host: 172.17.44.131:8080 [02:11:33]Content-Length: 678 [02:11:33]Content-Type: application/json [02:11:33] [02:11:33]POST finish read [02:11:33]Found Content-Length = 678 [02:11:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.920, "sum" : 810.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:11:33]execute_script... [02:11: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)294926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.920, "sum" : 810.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:11:33]POST & json_proto [02:11:33]process_json_proto [02:11:33]json parsed OK: [02:11:33]protocol is kg_v1.0 [02:11:33]action value=close_receipt [02:11:33]process_action close_receipt [02:11:33]cmd_close_receipt [02:11:33]MH_GetDate [02:11:33]Write to MH i2c: F0 00 00 9C 00 8B [02:11:33]Write i2c OK [02:11:33]MH_I2C_Read... [02:11:33]Read from MH i2c: F0 [02:11:33]MH_I2C_Read... [02:11:33]Read from MH i2c: F0 09 00 [02:11:33]MH_I2C_Read... [02:11:33]Read from MH i2c: F0 09 00 9C 00 00 56 41 C9 66 4F 53 BE 66 20 [02:11:33]GetLastDocTimeStamp 1724465337 [02:11:33]current date 1724465494 [02:11:33]FM_GetShiftState [02:11:33]SAM_PROTO_GetShiftState [02:11:33]wFMCommunicate request_size=4 [02:11:33]MH_SAM_APDU [02:11:33]CAPDU: 80 13 01 00 [02:11:33]Write to MH i2c: E2 08 00 9D 00 80 13 01 00 00 00 00 00 1A [02:11:33]Write i2c OK [02:11:33]MH_I2C_Read... [02:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:11:33]Read from MH i2c: E2 [02:11:33]MH_I2C_Read... [02:11:33]Read from MH i2c: E2 0E 00 [02:11:33]MH_I2C_Read... [02:11:33]Read from MH i2c: E2 0E 00 9D 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 D8 [02:11:33]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:11:33]wFMCommunicate OK [02:11:33]SAM_PROTO_GetShiftState done [02:11:33]FM_GetShiftState done [02:11:33]opened in 1724458079 [02:11:33]opened+sec_in_day 1724544479 [02:11:33]quantity*price = 81026 [02:11:33]sum+1 = 81027 [02:11:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.04 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 15 24.08.2024 02:11 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178789 ФПД: 262253619087417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T021134&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178789&fm=262253619087417&tin=02508201610067®Number=0000000000092561&sum=81000 [02:11:34]StoreToDocumentArchive [02:11:34]shift 471 fd 178789 [02:11:34]save to /storage/0471/doc_00178789 [02:11:34]save last doc name /storage/0471/doc_00178789 to /storage/kkm_last_doc_name [02:11:34]save OK [02:11:34]Clear old archive folders... [02:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:11:34]tlvbuf is 00285E50 [02:11:34]SAM_PROTO_ClearQueue [02:11:34]wFMCommunicate request_size=4 [02:11:34]MH_SAM_APDU [02:11:34]CAPDU: 80 09 00 00 [02:11:34]Write to MH i2c: E2 08 00 AA 00 80 09 00 00 00 00 00 00 1C [02:11:34]Write i2c OK [02:11:34]MH_I2C_Read... [02:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:11:35]Read from MH i2c: E2 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [02:11:35]RAPDU: 90 00 [02:11:35]wFMCommunicate OK [02:11:35]SAM_PROTO_ClearQueue done [02:11:35]KKMCreateOFDPacket [02:11:35]OFDProtocolAddRootSTLVToBuf [02:11:35]FM_MakeSignedData [02:11:35]FM_MakeSignedData [02:11:35]SAM_PROTO_SignData [02:11:35]wFMCommunicate request_size=4 [02:11:35]MH_SAM_APDU [02:11:35]CAPDU: 80 0D 01 02 [02:11:35]Write to MH i2c: E2 08 00 AB 00 80 0D 01 02 00 00 00 00 24 [02:11:35]Write i2c OK [02:11:35]MH_I2C_Read... [02:11:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:11:35]Read from MH i2c: E2 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [02:11:35]RAPDU: 90 00 [02:11:35]wFMCommunicate OK [02:11:35]wFMCommunicate request_size=255 [02:11:35]MH_SAM_APDU [02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 56 41 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 65 BA 02 00 35 04 06 00 EE [02:11:35]Write to MH i2c: E2 02 01 AC 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 56 41 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 65 BA 02 00 35 04 06 00 EE 00 00 71 [02:11:35]Write i2c OK [02:11:35]MH_I2C_Read... [02:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:11:35]Read from MH i2c: E2 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [02:11:35]RAPDU: 90 00 [02:11:35]wFMCommunicate OK [02:11:35]wFMCommunicate request_size=10 [02:11:35]MH_SAM_APDU [02:11:35]CAPDU: 80 0D 02 02 05 84 AD CE 88 39 [02:11:35]Write to MH i2c: E2 0D 00 AD 00 80 0D 02 02 05 00 84 AD CE 88 39 00 00 F1 [02:11:35]Write i2c OK [02:11:35]MH_I2C_Read... [02:11:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:11:35]Read from MH i2c: E2 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 03 00 AD 00 00 90 00 21 [02:11:35]RAPDU: 90 00 [02:11:35]wFMCommunicate OK [02:11:35]wFMCommunicate request_size=4 [02:11:35]MH_SAM_APDU [02:11:35]CAPDU: 80 0D 03 02 [02:11:35]Write to MH i2c: E2 08 00 AE 00 80 0D 03 02 00 00 00 00 29 [02:11:35]Write i2c OK [02:11:35]MH_I2C_Read... [02:11:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:11:35]Read from MH i2c: E2 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 0B 00 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 0B 00 AE 00 00 41 FA DD AA 5E 64 1B 13 90 00 DC [02:11:35]RAPDU: 41 FA DD AA 5E 64 1B 13 90 00 [02:11:35]wFMCommunicate OK [02:11:35]SAM_PROTO_SignData done [02:11:35]FM_MakeSignedData done [02:11:35]CreateOFDProtocolMessage [02:11:35]wFMCommunicate request_size=4 [02:11:35]MH_SAM_APDU [02:11:35]CAPDU: 80 11 00 00 [02:11:35]Write to MH i2c: E2 08 00 AF 00 80 11 00 00 00 00 00 00 29 [02:11:35]Write i2c OK [02:11:35]MH_I2C_Read... [02:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:11:35]Read from MH i2c: E2 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 17 00 [02:11:35]MH_I2C_Read... [02:11:35]Read from MH i2c: E2 17 00 AF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 82 [02:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:11:35]wFMCommunicate OK [02:11:35]CreateOFDProtocolMessage done [02:11:35]OFDSenderStorePacket 178789 [02:11:35]StoreOFDPacket docnum=178789 [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]/dev/ttyS4 opened [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 716571+1723749199=1724465770 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 6B 42 C9 66 4F 53 BE 66 A1 [02:16:11]Current date/time: 24.08.2024 02:16 [02:16:11]FM_Init [02:16:11]wFMConnect [02:16:11]MH_SAM_On [02:16:11]Write to MH i2c: E0 00 00 08 00 E7 [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_init finished! [02:16:11]*** atr: [02:16:11]*** 0F 3B D5 18 FF 81 91 FE [02:16:11]*** 1F C3 80 73 C8 21 10 0A [02:16:11]*** 00 00 00 00 00 00 00 00 [02:16:11]*** 00 00 00 00 00 00 00 00 [02:16:11]*** 00 00 00 00 00 00 00 00 [02:16:11]*** 00 00 00 00 00 00 00 00 [02:16:11]*** 00 00 00 00 00 00 00 00 [02:16:11]*** 00 00 00 00 00 00 00 00 [02:16:11]Read from MH i2c: E0 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E0 10 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [02:16:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [02:16:11]wFMCommunicate request_size=10 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [02:16:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [02:16:11]Read from MH i2c: E2 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [02:16:11]RAPDU: 90 00 [02:16:11]wFMCommunicate OK [02:16:11]wFMCommunicate request_size=4 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 80 11 00 00 [02:16:11]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:11]Read from MH i2c: E2 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 17 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [02:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:16:11]wFMCommunicate OK [02:16:11]Detected FM SN is 0000000000871778 [02:16:11]Stored FM SN is 0000000000871778 [02:16:11]wFMCommunicate request_size=9 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 80 16 00 00 04 D9 BA 00 00 [02:16:11]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [02:16:11]Read from MH i2c: E2 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [02:16:11]RAPDU: 90 00 [02:16:11]wFMCommunicate OK [02:16:11]FM PIN OK [02:16:11]wFMCommunicate request_size=8 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 80 14 04 00 03 02 00 01 [02:16:11]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [02:16:11]Read from MH i2c: E2 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [02:16:11]RAPDU: 90 00 [02:16:11]wFMCommunicate OK [02:16:11]wFMCommunicate request_size=13 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [02:16:11]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [02:16:11]Read from MH i2c: E2 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [02:16:11]RAPDU: 90 00 [02:16:11]wFMCommunicate OK [02:16:11]wFMCommunicate request_size=4 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 80 11 00 00 [02:16:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:11]Read from MH i2c: E2 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 17 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [02:16:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:16:11]wFMCommunicate OK [02:16:11]DocumentArchiveInit [02:16:11]Start Httpd... [02:16:11]Httpd thread 3067907428 created [02:16:11]Write to MH i2c: 01 00 00 0F 00 0F [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: 01 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: 01 07 00 [02:16:11]MH_I2C_Read... [02:16:11]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [02:16:11]Allocated Socket 5 [02:16:11]Bind OK [02:16:11]Listen OK [02:16:11]httpd running on port 8080 [02:16:11]Waiting for new connection... [02:16:11]MH Int Process started [02:16:11]accept exits with 6 [02:16:11]New connection [02:16:11]New thread 3067620708 created [02:16:11]Waiting for new connection... [02:16:11] Sock 6.Parse request [02:16:11]Sock 6.Check first char [02:16:11]Sock 6.First char is OK [02:16:11]request: POST /json_proto HTTP/1.0 [02:16:11]Method: POST [02:16:11]URL: /json_proto [02:16:11]Method is POST - this is cgi request [02:16:11]url: /json_proto [02:16:11]query_string will be loaded in cgi processing [02:16:11]execute_cgi json_proto POST (null) [02:16:11]execute_cgi path=json_proto method=POST [02:16:11]POST find Content-Length [02:16:11]Host: 172.17.44.131:8080 [02:16:11]Content-Length: 215 [02:16:11]Content-Type: application/json [02:16:11] [02:16:11]POST finish read [02:16:11]Found Content-Length = 215 [02:16:11]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" ] } } [02:16:11]execute_script... [02:16:11]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" ] } } [02:16:11]POST & json_proto [02:16:11]process_json_proto [02:16:11]json parsed OK: [02:16:11]protocol is kg_v1.0 [02:16:11]action value=get_value [02:16:11]process_action get_value [02:16:11]cmd_get_value [02:16:11]process_action get_value done [02:16:11]requested_data is exist [02:16:11]produce_requested_data [02:16:11]requested_item kkm.sn is exist - process it [02:16:11]requested_item kkm.ver is exist - process it [02:16:11]requested_item fm.sn is exist - process it [02:16:11]wFMCommunicate request_size=4 [02:16:11]MH_SAM_APDU [02:16:11]CAPDU: 80 11 00 00 [02:16:11]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [02:16:11]Write i2c OK [02:16:11]MH_I2C_Read... [02:16:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:16:12]Read from MH i2c: E2 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 17 00 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [02:16:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:16:12]wFMCommunicate OK [02:16:12]requested_item fd.num is exist - process it [02:16:12]SAM_PROTO_GetFieldsCounters [02:16:12]wFMCommunicate request_size=4 [02:16:12]MH_SAM_APDU [02:16:12]CAPDU: 80 13 00 00 [02:16:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [02:16:12]Write i2c OK [02:16:12]MH_I2C_Read... [02:16:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:16:12]Read from MH i2c: E2 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 62 00 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 66 BA 02 00 0E 04 04 00 D7 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 DC [02:16:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 66 BA 02 00 0E 04 04 00 D7 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 [02:16:12]wFMCommunicate OK [02:16:12]SAM_PROTO_GetFieldsCounters done [02:16:12]requested_item shift.num is exist - process it [02:16:12]requested_item shift.opened is exist - process it [02:16:12]req_shift_opened [02:16:12]FM_GetShiftState [02:16:12]SAM_PROTO_GetShiftState [02:16:12]wFMCommunicate request_size=4 [02:16:12]MH_SAM_APDU [02:16:12]CAPDU: 80 13 01 00 [02:16:12]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [02:16:12]Write i2c OK [02:16:12]MH_I2C_Read... [02:16:12]OFD Sender: Processing packet 178789 [packets to send 501, broken 499] [02:16:12]ProducePacketName [02:16:12]name=ofd_packets/00178789 [02:16:12]OFD Sender: To server: pG, [02:16:12]CommunicateWithHost lk.salyk.kg:30040 [02:16:12]ConnectInit lk.salyk.kg [02:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:16:12]Read from MH i2c: E2 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 0E 00 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [02:16:12]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:16:12]wFMCommunicate OK [02:16:12]SAM_PROTO_GetShiftState done [02:16:12]FM_GetShiftState done [02:16:12]req_shift_opened done [02:16:12]requested_item shift.open_date is exist - process it [02:16:12]req_shift_open_date [02:16:12]req_shift_open_date done [02:16:12]produce_requested_data done [02:16:12]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178790,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [02:16:12]process_action_free get_value [02:16:12]json_value_free [02:16:12]json_value_free done [02:16:12]process_json_proto returns [02:16:12]Send response to host [02:16:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178790,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [02:16:12]free response buf [02:16:12]execute_script done [02:16:12]execute_script returns [02:16:12]free content buf [02:16:12]Sock 6.Close socket [02:16:12]Sock 6.Thread stoped [02:16:12]accept exits with 10 [02:16:12]New connection [02:16:12]New thread 3067477348 created [02:16:12]Thread 3067620708 joined [02:16:12]Waiting for new connection... [02:16:12] Sock 10.Parse request [02:16:12]Sock 10.Check first char [02:16:12]Sock 10.First char is OK [02:16:12]request: POST /json_proto HTTP/1.0 [02:16:12]Method: POST [02:16:12]URL: /json_proto [02:16:12]Method is POST - this is cgi request [02:16:12]url: /json_proto [02:16:12]query_string will be loaded in cgi processing [02:16:12]execute_cgi json_proto POST (null) [02:16:12]execute_cgi path=json_proto method=POST [02:16:12]POST find Content-Length [02:16:12]Host: 172.17.44.131:8080 [02:16:12]Content-Length: 331 [02:16:12]Content-Type: application/json [02:16:12] [02:16:12]POST finish read [02:16:12]Found Content-Length = 331 [02:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [02:16:12]execute_script... [02:16:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [02:16:12]POST & json_proto [02:16:12]process_json_proto [02:16:12]json parsed OK: [02:16:12]protocol is kg_v1.0 [02:16:12]action value=get_value [02:16:12]process_action get_value [02:16:12]cmd_get_value [02:16:12]process_action get_value done [02:16:12]requested_data is exist [02:16:12]produce_requested_data [02:16:12]requested_item fm.sale.total is exist - process it [02:16:12]SAM_PROTO_GetFMData [02:16:12]wFMCommunicate request_size=4 [02:16:12]MH_SAM_APDU [02:16:12]CAPDU: 80 13 03 00 [02:16:12]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [02:16:12]Write i2c OK [02:16:12]MH_I2C_Read... [02:16:12]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [02:16:12]Read from MH i2c: E2 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 FD 00 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 B8 B6 02 00 69 04 A4 00 6F 04 04 00 21 B5 02 00 B1 04 05 00 AA CF C1 2B 05 70 04 05 00 2F F6 10 15 04 72 04 05 00 7B D9 B0 16 01 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 C4 DE 9B 8C 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 8C 75 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 FF [02:16:12]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 B8 B6 02 00 69 04 A4 00 6F 04 04 00 21 B5 02 00 B1 04 05 00 AA CF C1 2B 05 70 04 05 00 2F F6 10 15 04 72 04 05 00 7B D9 B0 16 01 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 C4 DE 9B 8C 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 8C 75 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [02:16:12]wFMCommunicate OK [02:16:12]wFMCommunicate request_size=4 [02:16:12]MH_SAM_APDU [02:16:12]CAPDU: 80 17 00 00 [02:16:12]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [02:16:12]Write i2c OK [02:16:12]MH_I2C_Read... [02:16:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:16:12]Read from MH i2c: E2 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 FD 00 [02:16:12]MH_I2C_Read... [02:16:12]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [02:16:12]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:16:12]wFMCommunicate OK [02:16:12]wFMCommunicate request_size=4 [02:16:12]MH_SAM_APDU [02:16:12]CAPDU: 80 17 00 00 [02:16:12]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [02:16:12]Write i2c OK [02:16:12]MH_I2C_Read... [02:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:16:13]Read from MH i2c: E2 [02:16:13]MH_I2C_Read... [02:16:13]Read from MH i2c: E2 FD 00 [02:16:13]MH_I2C_Read... [02:16:13]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [02:16:13]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:16:13]wFMCommunicate OK [02:16:13]wFMCommunicate request_size=4 [02:16:13]MH_SAM_APDU [02:16:13]CAPDU: 80 17 00 00 [02:16:13]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [02:16:13]Write i2c OK [02:16:13]MH_I2C_Read... [02:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:16:13]Read from MH i2c: E2 [02:16:13]MH_I2C_Read... [02:16:13]Read from MH i2c: E2 FD 00 [02:16:13]MH_I2C_Read... [02:16:13]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [02:16:13]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:16:13]wFMCommunicate OK [02:16:13]wFMCommunicate request_size=4 [02:16:13]MH_SAM_APDU [02:16:13]CAPDU: 80 17 00 00 [02:16:13]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [02:16:13]Write i2c OK [02:16:13]MH_I2C_Read... [02:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [02:16:13]Read from MH i2c: E2 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 716823+1723749199=1724466022 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x20ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 66 43 C9 66 4F 53 BE 66 9D [02:20:22]Current date/time: 24.08.2024 02:20 [02:20:22]FM_Init [02:20:22]wFMConnect [02:20:22]MH_SAM_On [02:20:22]Write to MH i2c: E0 00 00 08 00 E7 [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_init finished! [02:20:22]*** atr: [02:20:22]*** 0F 3B D5 18 FF 81 91 FE [02:20:22]*** 1F C3 80 73 C8 21 10 0A [02:20:22]*** 00 00 00 00 00 00 00 00 [02:20:22]*** 00 00 00 00 00 00 00 00 [02:20:22]*** 00 00 00 00 00 00 00 00 [02:20:22]*** 00 00 00 00 00 00 00 00 [02:20:22]*** 00 00 00 00 00 00 00 00 [02:20:22]*** 00 00 00 00 00 00 00 00 [02:20:22]Read from MH i2c: E0 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E0 10 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [02:20:22]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [02:20:22]wFMCommunicate request_size=10 [02:20:22]MH_SAM_APDU [02:20:22]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [02:20:22]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [02:20:22]Read from MH i2c: E2 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [02:20:22]RAPDU: 90 00 [02:20:22]wFMCommunicate OK [02:20:22]wFMCommunicate request_size=4 [02:20:22]MH_SAM_APDU [02:20:22]CAPDU: 80 11 00 00 [02:20:22]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:22]Read from MH i2c: E2 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 17 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [02:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:20:22]wFMCommunicate OK [02:20:22]Detected FM SN is 0000000000871778 [02:20:22]Stored FM SN is 0000000000871778 [02:20:22]wFMCommunicate request_size=9 [02:20:22]MH_SAM_APDU [02:20:22]CAPDU: 80 16 00 00 04 D9 BA 00 00 [02:20:22]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [02:20:22]Read from MH i2c: E2 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [02:20:22]RAPDU: 90 00 [02:20:22]wFMCommunicate OK [02:20:22]FM PIN OK [02:20:22]wFMCommunicate request_size=8 [02:20:22]MH_SAM_APDU [02:20:22]CAPDU: 80 14 04 00 03 02 00 01 [02:20:22]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [02:20:22]Read from MH i2c: E2 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [02:20:22]RAPDU: 90 00 [02:20:22]wFMCommunicate OK [02:20:22]wFMCommunicate request_size=13 [02:20:22]MH_SAM_APDU [02:20:22]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [02:20:22]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [02:20:22]Read from MH i2c: E2 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [02:20:22]RAPDU: 90 00 [02:20:22]wFMCommunicate OK [02:20:22]wFMCommunicate request_size=4 [02:20:22]MH_SAM_APDU [02:20:22]CAPDU: 80 11 00 00 [02:20:22]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:22]Read from MH i2c: E2 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 17 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [02:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:20:22]wFMCommunicate OK [02:20:22]DocumentArchiveInit [02:20:22]Start Httpd... [02:20:22]Httpd thread 3067833700 created [02:20:22]Write to MH i2c: 01 00 00 0F 00 0F [02:20:22]Write i2c OK [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: 01 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: 01 07 00 [02:20:22]MH_I2C_Read... [02:20:22]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [02:20:22]MH Int Process started [02:20:22]Allocated Socket 7 [02:20:22]Bind OK [02:20:22]Listen OK [02:20:22]httpd running on port 8080 [02:20:22]Waiting for new connection... [02:20:23]OFD Sender: Processing packet 178789 [packets to send 502, broken 499] [02:20:23]ProducePacketName [02:20:23]name=ofd_packets/00178789 [02:20:23]OFD Sender: To server: pG, [02:20:23]CommunicateWithHost lk.salyk.kg:30040 [02:20:23]ConnectInit lk.salyk.kg [02:20:24]accept exits with 8 [02:20:24]New connection [02:20:24]New thread 3067546980 created [02:20:24]Waiting for new connection... [02:20:24] Sock 8.Parse request [02:20:24]Sock 8.Check first char [02:20:24]Sock 8.First char is OK [02:20:24]request: POST /json_proto HTTP/1.0 [02:20:24]Method: POST [02:20:24]URL: /json_proto [02:20:24]Method is POST - this is cgi request [02:20:24]url: /json_proto [02:20:24]query_string will be loaded in cgi processing [02:20:24]execute_cgi json_proto POST (null) [02:20:24]execute_cgi path=json_proto method=POST [02:20:24]POST find Content-Length [02:20:24]Host: 172.17.44.131:8080 [02:20:24]Content-Length: 215 [02:20:24]Content-Type: application/json [02:20:24] [02:20:24]POST finish read [02:20:24]Found Content-Length = 215 [02:20: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" ] } } [02:20:24]execute_script... [02:20: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" ] } } [02:20:24]POST & json_proto [02:20:24]process_json_proto [02:20:24]json parsed OK: [02:20:24]protocol is kg_v1.0 [02:20:24]action value=get_value [02:20:24]process_action get_value [02:20:24]cmd_get_value [02:20:24]process_action get_value done [02:20:24]requested_data is exist [02:20:24]produce_requested_data [02:20:24]requested_item kkm.sn is exist - process it [02:20:24]requested_item kkm.ver is exist - process it [02:20:24]requested_item fm.sn is exist - process it [02:20:24]wFMCommunicate request_size=4 [02:20:24]MH_SAM_APDU [02:20:24]CAPDU: 80 11 00 00 [02:20:24]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [02:20:24]Write i2c OK [02:20:24]MH_I2C_Read... [02:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:24]Read from MH i2c: E2 [02:20:24]MH_I2C_Read... [02:20:24]Read from MH i2c: E2 17 00 [02:20:24]MH_I2C_Read... [02:20:24]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [02:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:20:24]wFMCommunicate OK [02:20:24]requested_item fd.num is exist - process it [02:20:24]SAM_PROTO_GetFieldsCounters [02:20:24]wFMCommunicate request_size=4 [02:20:24]MH_SAM_APDU [02:20:24]CAPDU: 80 13 00 00 [02:20:24]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [02:20:24]Write i2c OK [02:20:24]MH_I2C_Read... [02:20:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:24]Read from MH i2c: E2 [02:20:24]MH_I2C_Read... [02:20:24]Read from MH i2c: E2 62 00 [02:20:24]MH_I2C_Read... [02:20:24]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 67 BA 02 00 0E 04 04 00 D7 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 E0 [02:20: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 67 BA 02 00 0E 04 04 00 D7 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 [02:20:24]wFMCommunicate OK [02:20:24]SAM_PROTO_GetFieldsCounters done [02:20:24]requested_item shift.num is exist - process it [02:20:24]requested_item shift.opened is exist - process it [02:20:24]req_shift_opened [02:20:24]FM_GetShiftState [02:20:24]SAM_PROTO_GetShiftState [02:20:24]wFMCommunicate request_size=4 [02:20:24]MH_SAM_APDU [02:20:24]CAPDU: 80 13 01 00 [02:20:24]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [02:20:24]Write i2c OK [02:20:24]MH_I2C_Read... [02:20:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:24]Read from MH i2c: E2 [02:20:24]MH_I2C_Read... [02:20:24]Read from MH i2c: E2 0E 00 [02:20:24]MH_I2C_Read... [02:20:24]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [02:20:24]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:20:24]wFMCommunicate OK [02:20:24]SAM_PROTO_GetShiftState done [02:20:24]FM_GetShiftState done [02:20:24]req_shift_opened done [02:20:24]requested_item shift.open_date is exist - process it [02:20:24]req_shift_open_date [02:20:24]req_shift_open_date done [02:20:24]produce_requested_data done [02:20:24]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178791,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [02:20:24]process_action_free get_value [02:20:24]json_value_free [02:20:24]json_value_free done [02:20:24]process_json_proto returns [02:20:24]Send response to host [02:20:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178791,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [02:20:24]free response buf [02:20:24]execute_script done [02:20:24]execute_script returns [02:20:24]free content buf [02:20:24]Sock 8.Close socket [02:20:24]Sock 8.Thread stoped [02:20:24]accept exits with 11 [02:20:24]New connection [02:20:24]New thread 3067403620 created [02:20:24]Thread 3067546980 joined [02:20:24]Waiting for new connection... [02:20:24] Sock 11.Parse request [02:20:24]Sock 11.Check first char [02:20:24]Sock 11.First char is OK [02:20:24]request: POST /json_proto HTTP/1.0 [02:20:24]Method: POST [02:20:24]URL: /json_proto [02:20:24]Method is POST - this is cgi request [02:20:24]url: /json_proto [02:20:24]query_string will be loaded in cgi processing [02:20:24]execute_cgi json_proto POST (null) [02:20:24]execute_cgi path=json_proto method=POST [02:20:24]POST find Content-Length [02:20:24]Host: 172.17.44.131:8080 [02:20:24]Content-Length: 331 [02:20:24]Content-Type: application/json [02:20:24] [02:20:24]POST finish read [02:20:24]Found Content-Length = 331 [02:20: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" ] } } [02:20:24]execute_script... [02:20: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" ] } } [02:20:24]POST & json_proto [02:20:24]process_json_proto [02:20:24]json parsed OK: [02:20:24]protocol is kg_v1.0 [02:20:24]action value=get_value [02:20:24]process_action get_value [02:20:24]cmd_get_value [02:20:24]process_action get_value done [02:20:24]requested_data is exist [02:20:24]produce_requested_data [02:20:24]requested_item fm.sale.total is exist - process it [02:20:24]SAM_PROTO_GetFMData [02:20:24]wFMCommunicate request_size=4 [02:20:24]MH_SAM_APDU [02:20:24]CAPDU: 80 13 03 00 [02:20:24]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [02:20:24]Write i2c OK [02:20:24]MH_I2C_Read... [02:20:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [02:20:25]Read from MH i2c: E2 [02:20:25]MH_I2C_Read... [02:20:25]Read from MH i2c: E2 FD 00 [02:20:25]MH_I2C_Read... [02:20:25]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 B9 B6 02 00 69 04 A4 00 6F 04 04 00 22 B5 02 00 B1 04 05 00 7F 41 CD 2B 05 70 04 05 00 2F F6 10 15 04 72 04 05 00 50 4B BC 16 01 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 E6 15 9D 8C 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 79 8F B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 09 [02:20:25]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 B9 B6 02 00 69 04 A4 00 6F 04 04 00 22 B5 02 00 B1 04 05 00 7F 41 CD 2B 05 70 04 05 00 2F F6 10 15 04 72 04 05 00 50 4B BC 16 01 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 E6 15 9D 8C 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 79 8F B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [02:20:25]wFMCommunicate OK [02:20:25]wFMCommunicate request_size=4 [02:20:25]MH_SAM_APDU [02:20:25]CAPDU: 80 17 00 00 [02:20:25]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [02:20:25]Write i2c OK [02:20:25]MH_I2C_Read... [02:20:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:20:25]Read from MH i2c: E2 [02:20:25]MH_I2C_Read... [02:20:25]Read from MH i2c: E2 FD 00 [02:20:25]MH_I2C_Read... [02:20:25]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [02:20:25]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:20:25]wFMCommunicate OK [02:20:25]wFMCommunicate request_size=4 [02:20:25]MH_SAM_APDU [02:20:25]CAPDU: 80 17 00 00 [02:20:25]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [02:20:25]Write i2c OK [02:20:25]MH_I2C_Read... [02:20:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:20:25]Read from MH i2c: E2 [02:20:25]MH_I2C_Read... [02:20:25]Read from MH i2c: E2 FD 00 [02:20:25]MH_I2C_Read... [02:20:25]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [02:20:25]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:20:25]wFMCommunicate OK [02:20:25]wFMCommunicate request_size=4 [02:20:25]MH_SAM_APDU [02:20:25]CAPDU: 80 17 00 00 [02:20:25]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [02:20:25]Write i2c OK [02:20:25]MH_I2C_Read... [02:20:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:20:26]Read from MH i2c: E2 [02:20:26]MH_I2C_Read... [02:20:26]Read from MH i2c: E2 FD 00 [02:20:26]MH_I2C_Read... [02:20:26]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [02:20:26]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:20:26]wFMCommunicate OK [02:20:26]wFMCommunicate request_size=4 [02:20:26]MH_SAM_APDU [02:20:26]CAPDU: 80 17 00 00 [02:20:26]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [02:20:26]Write i2c OK [02:20:26]MH_I2C_Read... [02:20:26]Connected sock=9 [02:20:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 EE 4E 07 01 12 55 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 82 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 56 41 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 65 BA 02 00 35 04 06 00 EE 84 AD CE 88 39 41 FA DD AA 5E 64 1B 13 [02:20:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [02:20:26]Read from MH i2c: E2 [02:20:26]MH_I2C_Read... [02:20:26]Read from MH i2c: E2 E3 00 [02:20:26]MH_I2C_Read... [02:20:26]Read from MH i2c: E2 E3 00 17 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 76 [02:20:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:20:26]wFMCommunicate OK [02:20:26]SAM_PROTO_GetFMData done [02:20:26]requested_item fm.sale_refund.total is exist - process it [02:20:26]requested_item fm.buy.total is exist - process it [02:20:26]requested_item shift.sale.total is exist - process it [02:20:26]SAM_PROTO_GetShiftData [02:20:26]wFMCommunicate request_size=4 [02:20:26]MH_SAM_APDU [02:20:26]CAPDU: 80 13 02 00 [02:20:26]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [02:20:26]Write i2c OK [02:20:26]MH_I2C_Read... [02:20:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [02:20:26]Read from MH i2c: E2 [02:20:26]MH_I2C_Read... [02:20:26]Read from MH i2c: E2 FD 00 [02:20:26]MH_I2C_Read... [02:20:26]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 11 00 00 00 69 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 5D F5 22 70 04 03 00 88 83 17 72 04 03 00 D5 71 0B 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 8F B6 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 36 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [02:20:26]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 11 00 00 00 69 04 9B 00 6F 04 04 00 11 00 00 00 B1 04 03 00 5D F5 22 70 04 03 00 88 83 17 72 04 03 00 D5 71 0B 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 8F B6 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 36 4F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:20:26]wFMCommunicate OK [02:20:26]wFMCommunicate request_size=4 [02:20:26]MH_SAM_APDU [02:20:26]CAPDU: 80 17 00 00 [02:20:26]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [02:20:26]Write i2c OK [02:20:26]MH_I2C_Read... [02:20:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 25 57 47 00 31 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 31 37 37 38 10 04 04 00 65 BA 02 00 F4 03 04 00 0F EF C8 66 B6 04 01 00 00 30 0A 4C 8F BF 55 4D 90 [02:20:27]CommunicateWithHost err = 0 [02:20:27]CheckOFDResponse [02:20:27]1017 (14) - 77093643461234 [02:20:27]1041 (16) - 0000000000871778 [02:20:27]1040 (4) - 178789 [02:20:27]1012 (4) - 23.08.2024 20:20 [02:20:27]1206 (1) - 0 [02:20:27]OFD Sender: Remove packet 178789 [02:20:27]ProducePacketName [02:20:27]name=ofd_packets/00178789 [02:20:27]NVStorageDeleteData [02:20:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:20:27]Read from MH i2c: E2 [02:20:27]MH_I2C_Read... [02:20:27]Read from MH i2c: E2 FD 00 [02:20:27]MH_I2C_Read... [02:20:27]Read from MH i2c: E2 FD 00 19 00 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 BB [02:20:27]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 [02:20:27]wFMCommunicate OK [02:20:27]wFMCommunicate request_size=4 [02:20:27]MH_SAM_APDU [02:20:27]CAPDU: 80 17 00 00 [02:20:27]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [02:20:27]Write i2c OK [02:20:27]MH_I2C_Read... [02:20:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:20:27]Read from MH i2c: E2 [02:20:27]MH_I2C_Read... [02:20:27]Read from MH i2c: E2 FD 00 [02:20:27]MH_I2C_Read... [02:20:27]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [02:20: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 [02:20:27]wFMCommunicate OK [02:20:27]wFMCommunicate request_size=4 [02:20:27]MH_SAM_APDU [02:20:27]CAPDU: 80 17 00 00 [02:20:27]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [02:20:27]Write i2c OK [02:20:27]MH_I2C_Read... [02:20:27]OFD Sender: Processing packet 178790 [packets to send 501, broken 499] [02:20:27]ProducePacketName [02:20:27]name=ofd_packets/00178790 [02:20:27]OFD Sender: To server: pG, [02:20:27]CommunicateWithHost lk.salyk.kg:30040 [02:20:27]ConnectInit lk.salyk.kg [02:20:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:20:27]Read from MH i2c: E2 [02:20:27]MH_I2C_Read... [02:20:27]Read from MH i2c: E2 FD 00 [02:20:27]MH_I2C_Read... [02:20:27]Read from MH i2c: E2 FD 00 1B 00 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 0D [02:20: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 [02:20:27]wFMCommunicate OK [02:20:27]wFMCommunicate request_size=4 [02:20:27]MH_SAM_APDU [02:20:27]CAPDU: 80 17 00 00 [02:20:27]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [02:20:27]Write i2c OK [02:20:27]MH_I2C_Read... [02:20:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [02:20:28]Read from MH i2c: E2 [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: E2 CB 00 [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: E2 CB 00 1C 00 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 85 [02:20:28]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 [02:20:28]wFMCommunicate OK [02:20:28]SAM_PROTO_GetShiftData done [02:20:28]requested_item shift.sale.total_cash is exist - process it [02:20:28]requested_item shift.sale_refund.total is exist - process it [02:20:28]requested_item shift.sale_refund.total_cash is exist - process it [02:20:28]requested_item shift.buy.total is exist - process it [02:20:28]requested_item shift.buy.total_cash is exist - process it [02:20:28]produce_requested_data done [02:20:28]produce_requested_data return {"fm.sale.total":222097084.15,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":22910.37,"shift.sale.total_cash":15410.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} [02:20:28]process_action_free get_value [02:20:28]json_value_free [02:20:28]json_value_free done [02:20:28]process_json_proto returns [02:20:28]Send response to host [02:20:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222097084.15,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":22910.37,"shift.sale.total_cash":15410.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}}} [02:20:28]free response buf [02:20:28]execute_script done [02:20:28]execute_script returns [02:20:28]free content buf [02:20:28]Sock 11.Close socket [02:20:28]Sock 11.Thread stoped [02:20:28]accept exits with 8 [02:20:28]New connection [02:20:28]New thread 3067546980 created [02:20:28]Thread 3067403620 joined [02:20:28]Waiting for new connection... [02:20:28] Sock 8.Parse request [02:20:28]Sock 8.Check first char [02:20:28]Sock 8.First char is OK [02:20:28]request: POST /json_proto HTTP/1.0 [02:20:28]Method: POST [02:20:28]URL: /json_proto [02:20:28]Method is POST - this is cgi request [02:20:28]url: /json_proto [02:20:28]query_string will be loaded in cgi processing [02:20:28]execute_cgi json_proto POST (null) [02:20:28]execute_cgi path=json_proto method=POST [02:20:28]POST find Content-Length [02:20:28]Host: 172.17.44.131:8080 [02:20:28]Content-Length: 681 [02:20:28]Content-Type: application/json [02:20:28] [02:20:28]POST finish read [02:20:28]Found Content-Length = 681 [02:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "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:20:28]execute_script... [02:20:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711129700", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 37.40, "quantity" : 13.370, "sum" : 500.04, "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:20:28]POST & json_proto [02:20:28]process_json_proto [02:20:28]json parsed OK: [02:20:28]protocol is kg_v1.0 [02:20:28]action value=close_receipt [02:20:28]process_action close_receipt [02:20:28]cmd_close_receipt [02:20:28]MH_GetDate [02:20:28]Write to MH i2c: F0 00 00 1D 00 0C [02:20:28]Write i2c OK [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: F0 [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: F0 09 00 [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: F0 09 00 1D 00 00 6D 43 C9 66 4F 53 BE 66 BA [02:20:28]GetLastDocTimeStamp 1724465776 [02:20:28]current date 1724466029 [02:20:28]FM_GetShiftState [02:20:28]SAM_PROTO_GetShiftState [02:20:28]wFMCommunicate request_size=4 [02:20:28]MH_SAM_APDU [02:20:28]CAPDU: 80 13 01 00 [02:20:28]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [02:20:28]Write i2c OK [02:20:28]MH_I2C_Read... [02:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:28]Read from MH i2c: E2 [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: E2 0E 00 [02:20:28]MH_I2C_Read... [02:20:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [02:20:28]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:20:28]wFMCommunicate OK [02:20:28]SAM_PROTO_GetShiftState done [02:20:28]FM_GetShiftState done [02:20:28]opened in 1724458079 [02:20:28]opened+sec_in_day 1724544479 [02:20:28]quantity*price = 50003 [02:20:28]sum+1 = 50005 [02:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 18 24.08.2024 02:20 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178792 ФПД: 152598663341966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T022029&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178792&fm=152598663341966&tin=02508201610067®Number=0000000000092561&sum=50000 [02:20:30]StoreToDocumentArchive [02:20:30]shift 471 fd 178792 [02:20:30]save to /storage/0471/doc_00178792 [02:20:30]save last doc name /storage/0471/doc_00178792 to /storage/kkm_last_doc_name [02:20:30]save OK [02:20:30]Clear old archive folders... [02:20:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:20:30]tlvbuf is 0149A760 [02:20:30]SAM_PROTO_ClearQueue [02:20:30]wFMCommunicate request_size=4 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 09 00 00 [02:20:30]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:20:30]Read from MH i2c: E2 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [02:20:30]RAPDU: 90 00 [02:20:30]wFMCommunicate OK [02:20:30]SAM_PROTO_ClearQueue done [02:20:30]KKMCreateOFDPacket [02:20:30]OFDProtocolAddRootSTLVToBuf [02:20:30]FM_MakeSignedData [02:20:30]FM_MakeSignedData [02:20:30]SAM_PROTO_SignData [02:20:30]wFMCommunicate request_size=4 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 0D 01 02 [02:20:30]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:20:30]Read from MH i2c: E2 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [02:20:30]RAPDU: 90 00 [02:20:30]wFMCommunicate OK [02:20:30]wFMCommunicate request_size=255 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 43 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 68 BA 02 00 35 04 06 00 8A C9 [02:20:30]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 43 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 68 BA 02 00 35 04 06 00 8A C9 00 00 85 [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:30]Read from MH i2c: E2 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [02:20:30]RAPDU: 90 00 [02:20:30]wFMCommunicate OK [02:20:30]wFMCommunicate request_size=9 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 0D 02 02 04 A5 1F 27 8E [02:20:30]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 A5 1F 27 8E 00 00 29 [02:20:30]Connected sock=9 [02:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0F 01 00 00 2E 78 07 01 89 9E 5A 03 01 00 03 00 *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:30]FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 11 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 64 41 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 66 BA 02 00 35 04 06 00 E1 B2 70 31 0F 1A 30 50 83 43 EF 10 5A 57 [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [02:20:30]RAPDU: 90 00 [02:20:30]wFMCommunicate OK [02:20:30]wFMCommunicate request_size=4 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 0D 03 02 [02:20:30]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:20:30]Read from MH i2c: E2 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 0B 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 0B 00 2F 00 00 92 AD DA F3 3A 90 CB 6F 90 00 BB [02:20:30]RAPDU: 92 AD DA F3 3A 90 CB 6F 90 00 [02:20:30]wFMCommunicate OK [02:20:30]SAM_PROTO_SignData done [02:20:30]FM_MakeSignedData done [02:20:30]CreateOFDProtocolMessage [02:20:30]wFMCommunicate request_size=4 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 11 00 00 [02:20:30]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:31]Read from MH i2c: E2 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: E2 17 00 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [02:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:20:31]wFMCommunicate OK [02:20:31]CreateOFDProtocolMessage done [02:20:31]OFDSenderStorePacket 178792 [02:20:31]StoreOFDPacket docnum=178792 [02:20:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 CD 3A 06 01 99 03 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 43 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 68 BA 02 00 35 04 06 00 8A C9 A5 1F 27 8E 92 AD DA F3 3A 90 CB 6F [02:20:31]CheckFolder [02:20:31]dirname=/storage/ofd_packets [02:20:31]CheckFolder done [02:20:31]ProducePacketName [02:20:31]name=ofd_packets/00178792 [02:20:31]NVStorageSaveData ofd_packets/00178792 [02:20:31]File name is /storage/ofd_packets/00178792 [02:20:31]Write 300 bytes [02:20:31]NVStorageSaveData done [02:20:31]OFDSenderStorePacket done [02:20:31]KKMCreateOFDPacket done [02:20:31]NVStorageSaveData kkm_last_timestamp [02:20:31]File name is /storage/kkm_last_timestamp [02:20:31]Write 4 bytes [02:20:31]NVStorageSaveData done [02:20:31]ExternCall_PrintAddStr [02:20:31]wPrintStart [02:20:31]Write to MH i2c: 01 00 00 31 00 31 [02:20:31]Write i2c OK [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: 01 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: 01 07 00 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [02:20:31]RasterBufferAndPrint [02:20:31]line Счет N : (1)294930 [02:20:31]line ИНН: 02508201610067 [02:20:31]line Контрольно-Кассовый Чек [02:20:31]line ПРОДАЖА [02:20:31]line ТРК (МРК, ГНК) : 81 [02:20:31]line Товар: 2711129700 [02:20:31]line ГАЗ-К-5 [02:20:31]line 13.370 * 37.40 [02:20:31]line = 500.04 [02:20:31]line НДС 12% НСП 1% [02:20:31]line > о реализуемом товаре [02:20:31]line ОКРУГЛЕНИЕ: -0.04 [02:20:31]line ИТОГО: 500.00 [02:20:31]line Внесено: 500.00 [02:20:31]line СДАЧА: 0.00 [02:20:31]line НСП 1% : 4.42 [02:20:31]line НДС 12% : 53.10 [02:20:31]line Наличными: 500.00 [02:20:31]line Безнал.: 0.00 [02:20:31]line Место: АЗС № 130 "Партнер Нефть" [02:20:31]line Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 [02:20:31]line СНО: Общий режим [02:20:31]line Чек 18 24.08.2024 02:20 [02:20:31]line Смена: 471 ФФД: 1.0 [02:20:31]line ЗНМ: 0300000071 [02:20:31]line РНМ: 0000000000092561 [02:20:31]line Версия ККМ: 001 [02:20:31]line ФМ: 0000000000871778 [02:20:31]line ФД: 178792 [02:20:31]line ФПД: 152598663341966 [02:20:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T022029&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178792&fm=152598663341966&tin=02508201610067®Number=0000000000092561&sum=50000 [02:20:31]written 0, free lines is 4095 [02:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 B7 59 47 00 F1 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 31 37 37 38 10 04 04 00 66 BA 02 00 F4 03 04 00 13 EF C8 66 B6 04 01 00 00 5D D7 40 1C ED 71 94 72 [02:20:31]CommunicateWithHost err = 0 [02:20:31]CheckOFDResponse [02:20:31]1017 (14) - 77093643461234 [02:20:31]1041 (16) - 0000000000871778 [02:20:31]1040 (4) - 178790 [02:20:31]1012 (4) - 23.08.2024 20:20 [02:20:31]1206 (1) - 0 [02:20:31]OFD Sender: Remove packet 178790 [02:20:31]ProducePacketName [02:20:31]name=ofd_packets/00178790 [02:20:31]NVStorageDeleteData [02:20:31]Write to MH i2c: 01 00 00 5C 00 5C [02:20:31]Write i2c OK [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: 01 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: 01 07 00 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 F5 0C 64 [02:20:31]RasterBufferAndPrint [02:20:31]line [02:20:31]line [02:20:31]line [02:20:31]line [02:20:31]line [02:20:31]written 0, free lines is 3341 [02:20:31]MH_Cut [02:20:31]Write to MH i2c: D1 01 00 63 00 01 35 [02:20:31]Write i2c OK [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: D1 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: D1 01 00 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: D1 01 00 63 00 00 34 [02:20:31]Write to MH i2c: 01 00 00 64 00 64 [02:20:31]Write i2c OK [02:20:31]MH_I2C_Read... [02:20:31]OFD Sender: Processing packet 178791 [packets to send 501, broken 499] [02:20:31]ProducePacketName [02:20:31]name=ofd_packets/00178791 [02:20:31]OFD Sender: To server: pG, [02:20:31]CommunicateWithHost lk.salyk.kg:30040 [02:20:31]ConnectInit lk.salyk.kg [02:20:32]Connected sock=9 [02: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 31 37 37 38 0C 01 00 00 0F 60 04 01 36 81 5A 03 01 00 03 00 F8 00 *** Cut start [02:20:32]1E *** Partial cut [02:20:32]04 *** CUTSNS_PIN = 1 [02:20:32]01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 *** CUTSNS_PIN = 0 [02:20:32]00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D5 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D5 71 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 70 42 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 67 BA 02 00 35 04 06 00 37 F4 B3 91 D2 DD D4 25 52 69 E6 DC A6 69 [02:20:32]*** Brake cut motor [02:20:32]Read from MH i2c: 01 *** Stop cut motor [02:20:32] [02:20:32]*** Cut end [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 07 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [02:20:32]process_action close_receipt done [02:20:32]requested_data is exist [02:20:32]produce_requested_data [02:20:32]requested_item fm.sn is exist - process it [02:20:32]wFMCommunicate request_size=4 [02:20:32]MH_SAM_APDU [02:20:32]CAPDU: 80 11 00 00 [02:20:32]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 E4 B7 47 00 B4 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:32]39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 67 BA 02 00 F4 03 04 00 15 EF C8 66 B6 04 01 00 00 13 EF 9D 91 7C 30 99 F1 [02:20:32]CommunicateWithHost err = 0 [02:20:32]CheckOFDResponse [02:20:32]1017 (14) - 77093643461234 [02:20:32]1041 (16) - 0000000000871778 [02:20:32]1040 (4) - 178791 [02:20:32]1012 (4) - 23.08.2024 20:20 [02:20:32]1206 (1) - 0 [02:20:32]OFD Sender: Remove packet 178791 [02:20:32]ProducePacketName [02:20:32]name=ofd_packets/00178791 [02:20:32]NVStorageDeleteData [02:20:32]Read from MH i2c: E2 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 17 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 38 [02:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:20:33]wFMCommunicate OK [02:20:33]requested_item fd.num is exist - process it [02:20:33]SAM_PROTO_GetFieldsCounters [02:20:33]wFMCommunicate request_size=4 [02:20:33]MH_SAM_APDU [02:20:33]CAPDU: 80 13 00 00 [02:20:33]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [02:20:33]Write i2c OK [02:20:33]MH_I2C_Read... [02:20:33]Read from MH i2c: *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:33]E2 [02:20:33]MH_I2C_Read... [02:20:33]Read from MH i2c: E2 62 00 [02:20:33]MH_I2C_Read... [02:20:33]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 68 BA 02 00 0E 04 04 00 D7 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 39 [02:20: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 68 BA 02 00 0E 04 04 00 D7 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 [02:20:33]wFMCommunicate OK [02:20:33]SAM_PROTO_GetFieldsCounters done [02:20:33]requested_item shift.num is exist - process it [02:20:33]requested_item shift.opened is exist - process it [02:20:33]req_shift_opened [02:20:33]FM_GetShiftState [02:20:33]SAM_PROTO_GetShiftState [02:20:33]wFMCommunicate request_size=4 [02:20:33]MH_SAM_APDU [02:20:33]CAPDU: 80 13 01 00 [02:20:33]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [02:20:33]Write i2c OK [02:20:33]MH_I2C_Read... [02:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:33]Read from MH i2c: E2 [02:20:33]MH_I2C_Read... [02:20:33]Read from MH i2c: E2 0E 00 [02:20:33]MH_I2C_Read... [02:20:33]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 A2 [02:20:33]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:20:33]wFMCommunicate OK [02:20:33]SAM_PROTO_GetShiftState done [02:20:33]FM_GetShiftState done [02:20:33]req_shift_opened done [02:20:33]requested_item shift.open_date is exist - process it [02:20:33]req_shift_open_date [02:20:33]req_shift_open_date done [02:20:33]produce_requested_data done [02:20:33]produce_requested_data return {"fm.sn":"0000000000871778","fd.num":178792,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [02:20:33]process_action_free close_receipt [02:20:33]json_value_free [02:20:33]json_value_free done [02:20:33]process_json_proto returns [02:20:33]Send response to host [02:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871778","fd.num":178792,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [02:20:33]free response buf [02:20:33]execute_script done [02:20:33]execute_script returns [02:20:33]free content buf [02:20:33]Sock 8.Close socket [02:20:33]Sock 8.Thread stoped [02:20:33]OFD Sender: Processing packet 178792 [packets to send 500, broken 499] [02:20:33]ProducePacketName [02:20:33]name=ofd_packets/00178792 [02:20:33]OFD Sender: To server: pG, [02:20:33]CommunicateWithHost lk.salyk.kg:30040 [02:20:33]ConnectInit lk.salyk.kg [02:20:33]Connected sock=8 [02:20:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0E 01 00 00 CD 3A 06 01 99 03 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 32 39 37 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3A 34 00 00 00 00 00 37 04 06 00 9C 0E 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 6D 43 C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 68 BA 02 00 35 04 06 00 8A C9 A5 1F 27 8E 92 AD DA F3 3A 90 CB 6F [02:20:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 4F 00 00 00 CB 23 47 00 63 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 31 37 37 38 10 04 04 00 68 BA 02 00 F4 03 04 00 16 EF C8 66 B6 04 01 00 00 5D A8 5C EC F2 19 60 4D [02:20:34]CommunicateWithHost err = 0 [02:20:34]CheckOFDResponse [02:20:34]1017 (14) - 77093643461234 [02:20:34]1041 (16) - 0000000000871778 [02:20:34]1040 (4) - 178792 [02:20:34]1012 (4) - 23.08.2024 20:20 [02:20:34]1206 (1) - 0 [02:20:34]OFD Sender: Remove packet 178792 [02:20:34]ProducePacketName [02:20:34]name=ofd_packets/00178792 [02:20:34]NVStorageDeleteData [02:20:34]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:20:55]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:31]recv_with_timeout no data received [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:42]recv_with_timeout no data received [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:53]recv_with_timeout no data received [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:49]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 4B [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725A6 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 717112+1723749199=1724466311 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 A6 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 4C [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 78 00 80 00 FF FF D6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 88 44 C9 66 4F 53 BE 66 C0 [02:25:12]Current date/time: 24.08.2024 02:25 [02:25:12]FM_Init [02:25:12]wFMConnect [02:25:12]MH_SAM_On [02:25:12]Write to MH i2c: E0 00 00 08 00 E7 [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_init finished! [02:25:12]*** atr: [02:25:12]*** 0F 3B D5 18 FF 81 91 FE [02:25:12]*** 1F C3 80 73 C8 21 10 0A [02:25:12]*** 00 00 00 00 00 00 00 00 [02:25:12]*** 00 00 00 00 00 00 00 00 [02:25:12]*** 00 00 00 00 00 00 00 00 [02:25:12]*** 00 00 00 00 00 00 00 00 [02:25:12]*** 00 00 00 00 00 00 00 00 [02:25:12]*** 00 00 00 00 00 00 00 00 [02:25:12]Read from MH i2c: E0 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E0 10 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [02:25:12]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [02:25:12]wFMCommunicate request_size=10 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [02:25:12]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [02:25:12]RAPDU: 90 00 [02:25:12]wFMCommunicate OK [02:25:12]wFMCommunicate request_size=4 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 11 00 00 [02:25:12]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 17 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 DD [02:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:25:12]wFMCommunicate OK [02:25:12]Detected FM SN is 0000000000871778 [02:25:12]Stored FM SN is 0000000000871778 [02:25:12]wFMCommunicate request_size=9 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 16 00 00 04 D9 BA 00 00 [02:25:12]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 D9 BA 00 00 00 00 25 [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [02:25:12]RAPDU: 90 00 [02:25:12]wFMCommunicate OK [02:25:12]FM PIN OK [02:25:12]wFMCommunicate request_size=8 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 14 04 00 03 02 00 01 [02:25:12]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [02:25:12]RAPDU: 90 00 [02:25:12]wFMCommunicate OK [02:25:12]wFMCommunicate request_size=13 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [02:25:12]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [02:25:12]RAPDU: 90 00 [02:25:12]wFMCommunicate OK [02:25:12]wFMCommunicate request_size=4 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 11 00 00 [02:25:12]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 17 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E1 [02:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:25:12]wFMCommunicate OK [02:25:12]DocumentArchiveInit [02:25:12]Start Httpd... [02:25:12]Httpd thread 3066912100 created [02:25:12]Write to MH i2c: 01 00 00 0F 00 0F [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: 01 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: 01 07 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [02:25:12]MH Int Process started [02:25:12]Allocated Socket 8 [02:25:12]Bind OK [02:25:12]Listen OK [02:25:12]httpd running on port 8080 [02:25:12]Waiting for new connection... [02:25:12]accept exits with 9 [02:25:12]New connection [02:25:12]New thread 3066625380 created [02:25:12]Waiting for new connection... [02:25:12] Sock 9.Parse request [02:25:12]Sock 9.Check first char [02:25:12]Sock 9.First char is OK [02:25:12]request: POST /json_proto HTTP/1.0 [02:25:12]Method: POST [02:25:12]URL: /json_proto [02:25:12]Method is POST - this is cgi request [02:25:12]url: /json_proto [02:25:12]query_string will be loaded in cgi processing [02:25:12]execute_cgi json_proto POST (null) [02:25:12]execute_cgi path=json_proto method=POST [02:25:12]POST find Content-Length [02:25:12]Host: 172.17.44.131:8080 [02:25:12]Content-Length: 215 [02:25:12]Content-Type: application/json [02:25:12] [02:25:12]POST finish read [02:25:12]Found Content-Length = 215 [02:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:12]execute_script... [02:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:25:12]POST & json_proto [02:25:12]process_json_proto [02:25:12]json parsed OK: [02:25:12]protocol is kg_v1.0 [02:25:12]action value=get_value [02:25:12]process_action get_value [02:25:12]cmd_get_value [02:25:12]process_action get_value done [02:25:12]requested_data is exist [02:25:12]produce_requested_data [02:25:12]requested_item kkm.sn is exist - process it [02:25:12]requested_item kkm.ver is exist - process it [02:25:12]requested_item fm.sn is exist - process it [02:25:12]wFMCommunicate request_size=4 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 11 00 00 [02:25:12]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:25:12]Read from MH i2c: E2 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 17 00 [02:25:12]MH_I2C_Read... [02:25:12]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 E3 [02:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:25:12]wFMCommunicate OK [02:25:12]requested_item fd.num is exist - process it [02:25:12]SAM_PROTO_GetFieldsCounters [02:25:12]wFMCommunicate request_size=4 [02:25:12]MH_SAM_APDU [02:25:12]CAPDU: 80 13 00 00 [02:25:12]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [02:25:12]Write i2c OK [02:25:12]MH_I2C_Read... [02:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:25:13]Read from MH i2c: E2 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 62 00 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 68 BA 02 00 0E 04 04 00 D7 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 E4 [02:25: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 31 37 37 38 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 10 04 04 00 68 BA 02 00 0E 04 04 00 D7 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 [02:25:13]wFMCommunicate OK [02:25:13]SAM_PROTO_GetFieldsCounters done [02:25:13]requested_item shift.num is exist - process it [02:25:13]requested_item shift.opened is exist - process it [02:25:13]req_shift_opened [02:25:13]FM_GetShiftState [02:25:13]SAM_PROTO_GetShiftState [02:25:13]wFMCommunicate request_size=4 [02:25:13]MH_SAM_APDU [02:25:13]CAPDU: 80 13 01 00 [02:25:13]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [02:25:13]Write i2c OK [02:25:13]MH_I2C_Read... [02:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:25:13]Read from MH i2c: E2 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 0E 00 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 4D [02:25:13]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:25:13]wFMCommunicate OK [02:25:13]SAM_PROTO_GetShiftState done [02:25:13]FM_GetShiftState done [02:25:13]req_shift_opened done [02:25:13]requested_item shift.open_date is exist - process it [02:25:13]req_shift_open_date [02:25:13]req_shift_open_date done [02:25:13]produce_requested_data done [02:25:13]produce_requested_data return {"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178792,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079} [02:25:13]process_action_free get_value [02:25:13]json_value_free [02:25:13]json_value_free done [02:25:13]process_json_proto returns [02:25:13]Send response to host [02:25:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000071","kkm.ver":"001","fm.sn":"0000000000871778","fd.num":178792,"shift.num":471,"shift.opened":1,"shift.open_date":1724458079}}} [02:25:13]free response buf [02:25:13]execute_script done [02:25:13]execute_script returns [02:25:13]free content buf [02:25:13]Sock 9.Close socket [02:25:13]Sock 9.Thread stoped [02:25:13]accept exits with 10 [02:25:13]New connection [02:25:13]New thread 3066482020 created [02:25:13]Waiting for new connection... [02:25:13] Sock 10.Parse request [02:25:13]Sock 10.Check first char [02:25:13]Sock 10.First char is OK [02:25:13]request: POST /json_proto HTTP/1.0 [02:25:13]Method: POST [02:25:13]URL: /json_proto [02:25:13]Method is POST - this is cgi request [02:25:13]url: /json_proto [02:25:13]query_string will be loaded in cgi processing [02:25:13]execute_cgi json_proto POST (null) [02:25:13]execute_cgi path=json_proto method=POST [02:25:13]POST find Content-Length [02:25:13]Host: 172.17.44.131:8080 [02:25:13]Content-Length: 331 [02:25:13]Content-Type: application/json [02:25:13] [02:25:13]POST finish read [02:25:13]Found Content-Length = 331 [02:25:13]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" ] } } [02:25:13]execute_script... [02:25:13]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" ] } } [02:25:13]POST & json_proto [02:25:13]process_json_proto [02:25:13]json parsed OK: [02:25:13]protocol is kg_v1.0 [02:25:13]action value=get_value [02:25:13]process_action get_value [02:25:13]cmd_get_value [02:25:13]process_action get_value done [02:25:13]requested_data is exist [02:25:13]produce_requested_data [02:25:13]requested_item fm.sale.total is exist - process it [02:25:13]SAM_PROTO_GetFMData [02:25:13]wFMCommunicate request_size=4 [02:25:13]MH_SAM_APDU [02:25:13]CAPDU: 80 13 03 00 [02:25:13]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [02:25:13]Write i2c OK [02:25:13]MH_I2C_Read... [02:25:13]OFD Sender: No OFD packet to send [02:25:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [02:25:13]Read from MH i2c: E2 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 FD 00 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 FD 00 13 00 00 C6 04 85 04 C2 04 6E 04 04 00 BA B6 02 00 69 04 A4 00 6F 04 04 00 23 B5 02 00 B1 04 05 00 CF 04 CE 2B 05 70 04 05 00 7F B9 11 15 04 72 04 05 00 50 4B BC 16 01 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 A4 2A 9D 8C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 33 91 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 C2 [02:25:13]RAPDU: C6 04 85 04 C2 04 6E 04 04 00 BA B6 02 00 69 04 A4 00 6F 04 04 00 23 B5 02 00 B1 04 05 00 CF 04 CE 2B 05 70 04 05 00 7F B9 11 15 04 72 04 05 00 50 4B BC 16 01 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 A4 2A 9D 8C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 33 91 B7 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C 00 6F 04 04 00 97 01 00 00 B1 04 04 00 F8 2F FD 6B 70 04 04 00 F8 2F FD 6B 72 04 00 00 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 2B 72 53 01 EF 03 90 00 [02:25:13]wFMCommunicate OK [02:25:13]wFMCommunicate request_size=4 [02:25:13]MH_SAM_APDU [02:25:13]CAPDU: 80 17 00 00 [02:25:13]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [02:25:13]Write i2c OK [02:25:13]MH_I2C_Read... [02:25:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:25:13]Read from MH i2c: E2 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 FD 00 [02:25:13]MH_I2C_Read... [02:25:13]Read from MH i2c: E2 FD 00 14 00 00 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 21 [02:25:13]RAPDU: 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6D 49 1C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:25:13]wFMCommunicate OK [02:25:13]wFMCommunicate request_size=4 [02:25:13]MH_SAM_APDU [02:25:13]CAPDU: 80 17 00 00 [02:25:13]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [02:25:13]Write i2c OK [02:25:13]MH_I2C_Read... [02:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:25:14]Read from MH i2c: E2 [02:25:14]MH_I2C_Read... [02:25:14]Read from MH i2c: E2 FD 00 [02:25:14]MH_I2C_Read... [02:25:14]Read from MH i2c: E2 FD 00 15 00 00 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [02:25:14]RAPDU: 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:25:14]wFMCommunicate OK [02:25:14]wFMCommunicate request_size=4 [02:25:14]MH_SAM_APDU [02:25:14]CAPDU: 80 17 00 00 [02:25:14]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [02:25:14]Write i2c OK [02:25:14]MH_I2C_Read... [02:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:25:14]Read from MH i2c: E2 [02:25:14]MH_I2C_Read... [02:25:14]Read from MH i2c: E2 FD 00 [02:25:14]MH_I2C_Read... [02:25:14]Read from MH i2c: E2 FD 00 16 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [02:25:14]RAPDU: EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [02:25:14]wFMCommunicate OK [02:25:14]wFMCommunicate request_size=4 [02:25:14]MH_SAM_APDU [02:25:14]CAPDU: 80 17 00 00 [02:25:14]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [02:25:14]Write i2c OK [02:25:14]MH_I2C_Read... [02:25:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 224! [02:25:14]Read from MH i2c: E2 [02:25:14]MH_I2C_Read... [02:25:14]Read from MH i2c: E2 E3 00 [02:25:14]MH_I2C_Read... [02:25:14]Read from MH i2c: E2 E3 00 17 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 76 [02:25:14]RAPDU: 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:25:14]wFMCommunicate OK [02:25:14]SAM_PROTO_GetFMData done [02:25:14]requested_item fm.sale_refund.total is exist - process it [02:25:14]requested_item fm.buy.total is exist - process it [02:25:14]requested_item shift.sale.total is exist - process it [02:25:14]SAM_PROTO_GetShiftData [02:25:14]wFMCommunicate request_size=4 [02:25:14]MH_SAM_APDU [02:25:14]CAPDU: 80 13 02 00 [02:25:14]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [02:25:14]Write i2c OK [02:25:14]MH_I2C_Read... [02:25:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [02:25:15]Read from MH i2c: E2 [02:25:15]MH_I2C_Read... [02:25:15]Read from MH i2c: E2 FD 00 [02:25:15]MH_I2C_Read... [02:25:15]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 AD B8 23 70 04 03 00 D8 46 18 72 04 03 00 D5 71 0B 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 4D CB 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [02:25:15]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 12 00 00 00 69 04 9B 00 6F 04 04 00 12 00 00 00 B1 04 03 00 AD B8 23 70 04 03 00 D8 46 18 72 04 03 00 D5 71 0B 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 4D CB 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 F0 50 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [02:25:15]wFMCommunicate OK [02:25:15]wFMCommunicate request_size=4 [02:25:15]MH_SAM_APDU [02:25:15]CAPDU: 80 17 00 00 [02:25:15]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [02:25:15]Write i2c OK [02:25:15]MH_I2C_Read... [02:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:25:15]Read from MH i2c: E2 [02:25:15]MH_I2C_Read... [02:25:15]Read from MH i2c: E2 FD 00 [02:25:15]MH_I2C_Read... [02:25:15]Read from MH i2c: E2 FD 00 19 00 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 BB [02:25:15]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 [02:25:15]wFMCommunicate OK [02:25:15]wFMCommunicate request_size=4 [02:25:15]MH_SAM_APDU [02:25:15]CAPDU: 80 17 00 00 [02:25:15]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [02:25:15]Write i2c OK [02:25:15]MH_I2C_Read... [02:25:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:25:15]Read from MH i2c: E2 [02:25:15]MH_I2C_Read... [02:25:15]Read from MH i2c: E2 FD 00 [02:25:15]MH_I2C_Read... [02:25:15]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [02:25:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [02:25:15]wFMCommunicate OK [02:25:15]wFMCommunicate request_size=4 [02:25:15]MH_SAM_APDU [02:25:15]CAPDU: 80 17 00 00 [02:25:15]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [02:25:15]Write i2c OK [02:25:15]MH_I2C_Read... [02:25:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [02:25:16]Read from MH i2c: E2 [02:25:16]MH_I2C_Read... [02:25:16]Read from MH i2c: E2 FD 00 [02:25:16]MH_I2C_Read... [02:25:16]Read from MH i2c: E2 FD 00 1B 00 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 0D [02:25:16]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 [02:25:16]wFMCommunicate OK [02:25:16]wFMCommunicate request_size=4 [02:25:16]MH_SAM_APDU [02:25:16]CAPDU: 80 17 00 00 [02:25:16]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [02:25:16]Write i2c OK [02:25:16]MH_I2C_Read... [02:25:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [02:25:16]Read from MH i2c: E2 [02:25:16]MH_I2C_Read... [02:25:16]Read from MH i2c: E2 CB 00 [02:25:16]MH_I2C_Read... [02:25:16]Read from MH i2c: E2 CB 00 1C 00 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 85 [02:25:16]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 [02:25:16]wFMCommunicate OK [02:25:16]SAM_PROTO_GetShiftData done [02:25:16]requested_item shift.sale.total_cash is exist - process it [02:25:16]requested_item shift.sale_refund.total is exist - process it [02:25:16]requested_item shift.sale_refund.total_cash is exist - process it [02:25:16]requested_item shift.buy.total is exist - process it [02:25:16]requested_item shift.buy.total_cash is exist - process it [02:25:16]produce_requested_data done [02:25:16]produce_requested_data return {"fm.sale.total":222097584.15,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":23410.37,"shift.sale.total_cash":15910.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} [02:25:16]process_action_free get_value [02:25:16]json_value_free [02:25:16]json_value_free done [02:25:16]process_json_proto returns [02:25:16]Send response to host [02:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":222097584.15,"fm.sale_refund.total":18117550.00,"fm.buy.total":0.00,"shift.sale.total":23410.37,"shift.sale.total_cash":15910.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}}} [02:25:16]free response buf [02:25:16]execute_script done [02:25:16]execute_script returns [02:25:16]free content buf [02:25:16]Sock 10.Close socket [02:25:16]Sock 10.Thread stoped [02:25:18]OFD Sender: No OFD packet to send [02:25:21]recv_with_timeout no data received [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:38]OFD Sender: No OFD packet to send [02:25:43]OFD Sender: No OFD packet to send [02:25:48]OFD Sender: No OFD packet to send [02:25:53]OFD Sender: No OFD packet to send [02:25:58]OFD Sender: No OFD packet to send [02:26:03]OFD Sender: No OFD packet to send [02:26:08]OFD Sender: No OFD packet to send [02:26:13]OFD Sender: No OFD packet to send [02:26:18]OFD Sender: No OFD packet to send [02:26:23]OFD Sender: No OFD packet to send [02:26:28]OFD Sender: No OFD packet to send [02:26:33]OFD Sender: No OFD packet to send [02:26:38]OFD Sender: No OFD packet to send [02:26:43]OFD Sender: No OFD packet to send [02:26:48]OFD Sender: No OFD packet to send [02:26:53]OFD Sender: No OFD packet to send [02:26:58]OFD Sender: No OFD packet to send [02:27:03]OFD Sender: No OFD packet to send [02:27:08]OFD Sender: No OFD packet to send [02:27:13]OFD Sender: No OFD packet to send [02:27:18]OFD Sender: No OFD packet to send [02:27:23]OFD Sender: No OFD packet to send [02:27:28]OFD Sender: No OFD packet to send [02:27:33]OFD Sender: No OFD packet to send [02:27:38]OFD Sender: No OFD packet to send [02:27:43]OFD Sender: No OFD packet to send [02:27:48]OFD Sender: No OFD packet to send [02:27:53]OFD Sender: No OFD packet to send [02:27:58]OFD Sender: No OFD packet to send [02:28:03]OFD Sender: No OFD packet to send [02:28:08]OFD Sender: No OFD packet to send [02:28:13]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:37]recv_with_timeout no data received [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:58]recv_with_timeout no data received [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:23]recv_with_timeout no data received [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:32:59]OFD Sender: No OFD packet to send [02:33:04]OFD Sender: No OFD packet to send [02:33:09]OFD Sender: No OFD packet to send [02:33:14]OFD Sender: No OFD packet to send [02:33:19]OFD Sender: No OFD packet to send [02:33:24]OFD Sender: No OFD packet to send [02:33:29]OFD Sender: No OFD packet to send [02:33:34]OFD Sender: No OFD packet to send [02:33:39]OFD Sender: No OFD packet to send [02:33:44]OFD Sender: No OFD packet to send [02:33:49]OFD Sender: No OFD packet to send [02:33:54]OFD Sender: No OFD packet to send [02:33:59]OFD Sender: No OFD packet to send [02:34:04]OFD Sender: No OFD packet to send [02:34:09]OFD Sender: No OFD packet to send [02:34:12]recv_with_timeout no data received [02:34:14]OFD Sender: No OFD packet to send [02:34:19]OFD Sender: No OFD packet to send [02:34:24]OFD Sender: No OFD packet to send [02:34:29]OFD Sender: No OFD packet to send [02:34:34]OFD Sender: No OFD packet to send [02:34:39]OFD Sender: No OFD packet to send [02:34:44]OFD Sender: No OFD packet to send [02:34:49]OFD Sender: No OFD packet to send [02:34:54]OFD Sender: No OFD packet to send [02:34:59]OFD Sender: No OFD packet to send [02:35:04]OFD Sender: No OFD packet to send [02:35:09]OFD Sender: No OFD packet to send [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:49]OFD Sender: No OFD packet to send [02:35:54]OFD Sender: No OFD packet to send [02:35:59]OFD Sender: No OFD packet to send [02:36:04]OFD Sender: No OFD packet to send [02:36:09]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:36:58]recv_with_timeout no data received [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:18]recv_with_timeout no data received [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:44]recv_with_timeout no data received [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:41]recv_with_timeout no data received [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:36]recv_with_timeout no data received [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:50]recv_with_timeout no data received [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:47]recv_with_timeout no data received [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:35]recv_with_timeout no data received [02:49:36]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]recv_with_timeout no data received [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:32]ConnectInit Can't connect to host [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:11]accept exits with 9 [02:58:11]New connection [02:58:11]New thread 3066338660 created [02:58:11]Thread 3066625380 joined [02:58:11]Thread 3066482020 joined [02:58:11]Waiting for new connection... [02:58:11] Sock 9.Parse request [02:58:11]Sock 9.Check first char [02:58:11]Sock 9.First char is OK [02:58:11]request: POST /json_proto HTTP/1.0 [02:58:11]Method: POST [02:58:11]URL: /json_proto [02:58:11]Method is POST - this is cgi request [02:58:11]url: /json_proto [02:58:11]query_string will be loaded in cgi processing [02:58:11]execute_cgi json_proto POST (null) [02:58:11]execute_cgi path=json_proto method=POST [02:58:11]POST find Content-Length [02:58:11]Host: 172.17.44.131:8080 [02:58:11]Content-Length: 672 [02:58:11]Content-Type: application/json [02:58:11] [02:58:11]POST finish read [02:58:11]Found Content-Length = 672 [02:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)294933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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" ] } } [02:58:11]execute_script... [02:58: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)294933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "SU-92-\u041A-5", "price" : 68.80, "quantity" : 14.540, "sum" : 1000.35, "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" ] } } [02:58:11]POST & json_proto [02:58:11]process_json_proto [02:58:11]json parsed OK: [02:58:11]protocol is kg_v1.0 [02:58:11]action value=close_receipt [02:58:11]process_action close_receipt [02:58:11]cmd_close_receipt [02:58:11]MH_GetDate [02:58:11]Write to MH i2c: F0 00 00 1D 00 0C [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: F0 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: F0 09 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: F0 09 00 1D 00 00 44 4C C9 66 4F 53 BE 66 9A [02:58:11]GetLastDocTimeStamp 1724466029 [02:58:11]current date 1724468292 [02:58:11]FM_GetShiftState [02:58:11]SAM_PROTO_GetShiftState [02:58:11]wFMCommunicate request_size=4 [02:58:11]MH_SAM_APDU [02:58:11]CAPDU: 80 13 01 00 [02:58:11]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [02:58:11]Write i2c OK [02:58:11]MH_I2C_Read... [02:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:58:11]Read from MH i2c: E2 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 0E 00 [02:58:11]MH_I2C_Read... [02:58:11]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 5F 24 C9 66 00 00 00 00 90 00 59 [02:58:11]RAPDU: 09 00 01 5F 24 C9 66 00 00 00 00 90 00 [02:58:11]wFMCommunicate OK [02:58:11]SAM_PROTO_GetShiftState done [02:58:11]FM_GetShiftState done [02:58:11]opened in 1724458079 [02:58:11]opened+sec_in_day 1724544479 [02:58:11]quantity*price = 100035 [02:58:11]sum+1 = 100036 [02:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 130 "Партнер Нефть" Адрес: 720001, с. Прогресс, Жылалды а/а, 40.791354, 73.323015 СНО: Общий режим Чек 19 24.08.2024 02:58 Смена: 471 ФФД: 1.0 ЗНМ: 0300000071 РНМ: 0000000000092561 Версия ККМ: 001 ФМ: 0000000000871778 ФД: 178793 ФПД: 8949343501564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240824T025812&type=1&operation_type=1&fn_number=0000000000871778&fd_number=178793&fm=8949343501564&tin=02508201610067®Number=0000000000092561&sum=100000 [02:58:13]StoreToDocumentArchive [02:58:13]shift 471 fd 178793 [02:58:13]save to /storage/0471/doc_00178793 [02:58:13]save last doc name /storage/0471/doc_00178793 to /storage/kkm_last_doc_name [02:58:13]save OK [02:58:13]Clear old archive folders... [02:58:13]ProcessDocumentItem done err = 0, tmpTLVsize=249 [02:58:13]tlvbuf is 01AC2AE0 [02:58:13]SAM_PROTO_ClearQueue [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 09 00 00 [02:58:13]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [02:58:13]RAPDU: 90 00 [02:58:13]wFMCommunicate OK [02:58:13]SAM_PROTO_ClearQueue done [02:58:13]KKMCreateOFDPacket [02:58:13]OFDProtocolAddRootSTLVToBuf [02:58:13]FM_MakeSignedData [02:58:13]FM_MakeSignedData [02:58:13]SAM_PROTO_SignData [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 0D 01 02 [02:58:13]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [02:58:13]RAPDU: 90 00 [02:58:13]wFMCommunicate OK [02:58:13]wFMCommunicate request_size=255 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 0D 02 02 FA 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 13 00 00 00 F4 03 04 00 44 4C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 69 BA 02 00 35 04 06 00 08 23 AE [02:58:13]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 F9 00 1E 04 01 00 01 23 04 4B 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0A 00 53 55 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 38 00 00 00 00 00 37 04 06 00 E0 1A 00 00 00 00 13 04 06 00 C3 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 13 00 00 00 F4 03 04 00 44 4C C9 66 0E 04 04 00 D7 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 36 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 10 04 04 00 69 BA 02 00 35 04 06 00 08 23 AE 00 00 CB [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]OFD Sender: No OFD packet to send [02:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [02:58:13]RAPDU: 90 00 [02:58:13]wFMCommunicate OK [02:58:13]wFMCommunicate request_size=8 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 0D 02 02 03 70 BC FC [02:58:13]Write to MH i2c: E2 0B 00 2E 00 80 0D 02 02 03 00 70 BC FC 00 00 D6 [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [02:58:13]RAPDU: 90 00 [02:58:13]wFMCommunicate OK [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 0D 03 02 [02:58:13]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 0B 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 0B 00 2F 00 00 39 15 F3 F1 37 D9 5A D3 90 00 1A [02:58:13]RAPDU: 39 15 F3 F1 37 D9 5A D3 90 00 [02:58:13]wFMCommunicate OK [02:58:13]SAM_PROTO_SignData done [02:58:13]FM_MakeSignedData done [02:58:13]CreateOFDProtocolMessage [02:58:13]wFMCommunicate request_size=4 [02:58:13]MH_SAM_APDU [02:58:13]CAPDU: 80 11 00 00 [02:58:13]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [02:58:13]Write i2c OK [02:58:13]MH_I2C_Read... [02:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:58:13]Read from MH i2c: E2 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 17 00 [02:58:13]MH_I2C_Read... [02:58:13]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 03 [02:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 37 38 90 00 [02:58:13]wFMCommunicate OK [02:58:13]CreateOFDProtocolMessage done [02:58:13]OFDSenderStorePacket 178793 [02:58:13]StoreOFDPacket docnum=178793